mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-26 12:28:01 +08:00
21 lines
5.8 MiB
21 lines
5.8 MiB
var N7e=Object.freeze,Xbt=Object.defineProperty;var Jbe=(kB,zte)=>N7e(Xbt(kB,"raw",{value:N7e(zte||kB.slice())}));var P7e,M7e;(function(){"use strict";var y1e,b1e,E1e,S1e;class kB{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(v){setTimeout(()=>{throw v.stack?vM.isErrorNoTelemetry(v)?new vM(v.message+"\n\n"+v.stack):new Error(v.message+"\n\n"+v.stack):v},0)}}emit(v){this.listeners.forEach(T=>{T(v)})}onUnexpectedError(v){this.unexpectedErrorHandler(v),this.emit(v)}onUnexpectedExternalError(v){this.unexpectedErrorHandler(v)}}const zte=new kB;function _6(g){B7e(g)||zte.onUnexpectedError(g)}function Zbe(g){if(g instanceof Error){const{name:v,message:T}=g,W=g.stacktrace||g.stack;return{$isError:!0,name:v,message:T,stack:W,noTelemetry:vM.isErrorNoTelemetry(g)}}return g}const Bte="Canceled";function B7e(g){return g instanceof G7e?!0:g instanceof Error&&g.name===Bte&&g.message===Bte}class G7e extends Error{constructor(){super(Bte),this.name=this.message}}class vM extends Error{constructor(v){super(v),this.name="CodeExpectedError"}static fromError(v){if(v instanceof vM)return v;const T=new vM;return T.message=v.message,T.stack=v.stack,T}static isErrorNoTelemetry(v){return v.name==="CodeExpectedError"}}class Ay extends Error{constructor(v){super(v||"An unexpected bug occurred."),Object.setPrototypeOf(this,Ay.prototype)}}function V7e(g,v){const T=this;let W=!1,X;return function(){return W||(W=!0,X=g.apply(T,arguments)),X}}var wB;(function(g){function v(Br){return Br&&typeof Br=="object"&&typeof Br[Symbol.iterator]=="function"}g.is=v;const T=Object.freeze([]);function W(){return T}g.empty=W;function*X(Br){yield Br}g.single=X;function ue(Br){return v(Br)?Br:X(Br)}g.wrap=ue;function Te(Br){return Br||T}g.from=Te;function*Be(Br){for(let zi=Br.length-1;zi>=0;zi--)yield Br[zi]}g.reverse=Be;function at(Br){return!Br||Br[Symbol.iterator]().next().done===!0}g.isEmpty=at;function Le(Br){return Br[Symbol.iterator]().next().value}g.first=Le;function He(Br,zi){let Go=0;for(const Nr of Br)if(zi(Nr,Go++))return!0;return!1}g.some=He;function jt(Br,zi){for(const Go of Br)if(zi(Go))return Go}g.find=jt;function*qt(Br,zi){for(const Go of Br)zi(Go)&&(yield Go)}g.filter=qt;function*fn(Br,zi){let Go=0;for(const Nr of Br)yield zi(Nr,Go++)}g.map=fn;function*Mr(Br,zi){let Go=0;for(const Nr of Br)yield*zi(Nr,Go++)}g.flatMap=Mr;function*hi(...Br){for(const zi of Br)yield*zi}g.concat=hi;function oo(Br,zi,Go){let Nr=Go;for(const Na of Br)Nr=zi(Nr,Na);return Nr}g.reduce=oo;function*Yn(Br,zi,Go=Br.length){for(zi<0&&(zi+=Br.length),Go<0?Go+=Br.length:Go>Br.length&&(Go=Br.length);zi<Go;zi++)yield Br[zi]}g.slice=Yn;function Tn(Br,zi=Number.POSITIVE_INFINITY){const Go=[];if(zi===0)return[Go,Br];const Nr=Br[Symbol.iterator]();for(let Na=0;Na<zi;Na++){const Ac=Nr.next();if(Ac.done)return[Go,g.empty()];Go.push(Ac.value)}return[Go,{[Symbol.iterator](){return Nr}}]}g.consume=Tn;async function ko(Br){const zi=[];for await(const Go of Br)zi.push(Go);return Promise.resolve(zi)}g.asyncToArray=ko})(wB||(wB={}));function Ybt(g){return g}function $bt(g,v){}function e0e(g){if(wB.is(g)){const v=[];for(const T of g)if(T)try{T.dispose()}catch(W){v.push(W)}if(v.length===1)throw v[0];if(v.length>1)throw new AggregateError(v,"Encountered errors while disposing of store");return Array.isArray(g)?[]:g}else if(g)return g.dispose(),g}function j7e(...g){return OB(()=>e0e(g))}function OB(g){return{dispose:V7e(()=>{g()})}}const rG=class rG{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{e0e(this._toDispose)}finally{this._toDispose.clear()}}add(v){if(!v)return v;if(v===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?rG.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(v),v}deleteAndLeak(v){v&&this._toDispose.has(v)&&this._toDispose.delete(v)}};rG.DISABLE_DISPOSED_WARNING=!1;let h6=rG;const Rne=class Rne{constructor(){this._store=new h6,this._store}dispose(){this._store.dispose()}_register(v){if(v===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(v)}};Rne.None=Object.freeze({dispose(){}});let yM=Rne;const PM=class PM{constructor(v){this.element=v,this.next=PM.Undefined,this.prev=PM.Undefined}};PM.Undefined=new PM(void 0);let mp=PM;class U7e{constructor(){this._first=mp.Undefined,this._last=mp.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===mp.Undefined}clear(){let v=this._first;for(;v!==mp.Undefined;){const T=v.next;v.prev=mp.Undefined,v.next=mp.Undefined,v=T}this._first=mp.Undefined,this._last=mp.Undefined,this._size=0}unshift(v){return this._insert(v,!1)}push(v){return this._insert(v,!0)}_insert(v,T){const W=new mp(v);if(this._first===mp.Undefined)this._first=W,this._last=W;else if(T){const ue=this._last;this._last=W,W.prev=ue,ue.next=W}else{const ue=this._first;this._first=W,W.next=ue,ue.prev=W}this._size+=1;let X=!1;return()=>{X||(X=!0,this._remove(W))}}shift(){if(this._first!==mp.Undefined){const v=this._first.element;return this._remove(this._first),v}}pop(){if(this._last!==mp.Undefined){const v=this._last.element;return this._remove(this._last),v}}_remove(v){if(v.prev!==mp.Undefined&&v.next!==mp.Undefined){const T=v.prev;T.next=v.next,v.next.prev=T}else v.prev===mp.Undefined&&v.next===mp.Undefined?(this._first=mp.Undefined,this._last=mp.Undefined):v.next===mp.Undefined?(this._last=this._last.prev,this._last.next=mp.Undefined):v.prev===mp.Undefined&&(this._first=this._first.next,this._first.prev=mp.Undefined);this._size-=1}*[Symbol.iterator](){let v=this._first;for(;v!==mp.Undefined;)yield v.element,v=v.next}}const H7e=globalThis.performance&&typeof globalThis.performance.now=="function";class WB{static create(v){return new WB(v)}constructor(v){this._now=H7e&&v===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var FB;(function(g){g.None=()=>yM.None;function v(zo,Ot){return qt(zo,()=>{},0,void 0,!0,void 0,Ot)}g.defer=v;function T(zo){return(Ot,Ia=null,no)=>{let ra=!1,Pi;return Pi=zo(sc=>{if(!ra)return Pi?Pi.dispose():ra=!0,Ot.call(Ia,sc)},null,no),ra&&Pi.dispose(),Pi}}g.once=T;function W(zo,Ot){return g.once(g.filter(zo,Ot))}g.onceIf=W;function X(zo,Ot,Ia){return He((no,ra=null,Pi)=>zo(sc=>no.call(ra,Ot(sc)),null,Pi),Ia)}g.map=X;function ue(zo,Ot,Ia){return He((no,ra=null,Pi)=>zo(sc=>{Ot(sc),no.call(ra,sc)},null,Pi),Ia)}g.forEach=ue;function Te(zo,Ot,Ia){return He((no,ra=null,Pi)=>zo(sc=>Ot(sc)&&no.call(ra,sc),null,Pi),Ia)}g.filter=Te;function Be(zo){return zo}g.signal=Be;function at(...zo){return(Ot,Ia=null,no)=>{const ra=j7e(...zo.map(Pi=>Pi(sc=>Ot.call(Ia,sc))));return jt(ra,no)}}g.any=at;function Le(zo,Ot,Ia,no){let ra=Ia;return X(zo,Pi=>(ra=Ot(ra,Pi),ra),no)}g.reduce=Le;function He(zo,Ot){let Ia;const no={onWillAddFirstListener(){Ia=zo(ra.fire,ra)},onDidRemoveLastListener(){Ia==null||Ia.dispose()}},ra=new e0(no);return Ot==null||Ot.add(ra),ra.event}function jt(zo,Ot){return Ot instanceof Array?Ot.push(zo):Ot&&Ot.add(zo),zo}function qt(zo,Ot,Ia=100,no=!1,ra=!1,Pi,sc){let Qp,Sm,CE,Hi=0,kg;const N6={leakWarningThreshold:Pi,onWillAddFirstListener(){Qp=zo(Dv=>{Hi++,Sm=Ot(Sm,Dv),no&&!CE&&(i0.fire(Sm),Sm=void 0),kg=()=>{const P6=Sm;Sm=void 0,CE=void 0,(!no||Hi>1)&&i0.fire(P6),Hi=0},typeof Ia=="number"?(clearTimeout(CE),CE=setTimeout(kg,Ia)):CE===void 0&&(CE=0,queueMicrotask(kg))})},onWillRemoveListener(){ra&&Hi>0&&(kg==null||kg())},onDidRemoveLastListener(){kg=void 0,Qp.dispose()}},i0=new e0(N6);return sc==null||sc.add(i0),i0.event}g.debounce=qt;function fn(zo,Ot=0,Ia){return g.debounce(zo,(no,ra)=>no?(no.push(ra),no):[ra],Ot,void 0,!0,void 0,Ia)}g.accumulate=fn;function Mr(zo,Ot=(no,ra)=>no===ra,Ia){let no=!0,ra;return Te(zo,Pi=>{const sc=no||!Ot(Pi,ra);return no=!1,ra=Pi,sc},Ia)}g.latch=Mr;function hi(zo,Ot,Ia){return[g.filter(zo,Ot,Ia),g.filter(zo,no=>!Ot(no),Ia)]}g.split=hi;function oo(zo,Ot=!1,Ia=[],no){let ra=Ia.slice(),Pi=zo(Sm=>{ra?ra.push(Sm):Qp.fire(Sm)});no&&no.add(Pi);const sc=()=>{ra==null||ra.forEach(Sm=>Qp.fire(Sm)),ra=null},Qp=new e0({onWillAddFirstListener(){Pi||(Pi=zo(Sm=>Qp.fire(Sm)),no&&no.add(Pi))},onDidAddFirstListener(){ra&&(Ot?setTimeout(sc):sc())},onDidRemoveLastListener(){Pi&&Pi.dispose(),Pi=null}});return no&&no.add(Qp),Qp.event}g.buffer=oo;function Yn(zo,Ot){return(no,ra,Pi)=>{const sc=Ot(new ko);return zo(function(Qp){const Sm=sc.evaluate(Qp);Sm!==Tn&&no.call(ra,Sm)},void 0,Pi)}}g.chain=Yn;const Tn=Symbol("HaltChainable");class ko{constructor(){this.steps=[]}map(Ot){return this.steps.push(Ot),this}forEach(Ot){return this.steps.push(Ia=>(Ot(Ia),Ia)),this}filter(Ot){return this.steps.push(Ia=>Ot(Ia)?Ia:Tn),this}reduce(Ot,Ia){let no=Ia;return this.steps.push(ra=>(no=Ot(no,ra),no)),this}latch(Ot=(Ia,no)=>Ia===no){let Ia=!0,no;return this.steps.push(ra=>{const Pi=Ia||!Ot(ra,no);return Ia=!1,no=ra,Pi?ra:Tn}),this}evaluate(Ot){for(const Ia of this.steps)if(Ot=Ia(Ot),Ot===Tn)break;return Ot}}function Br(zo,Ot,Ia=no=>no){const no=(...Qp)=>sc.fire(Ia(...Qp)),ra=()=>zo.on(Ot,no),Pi=()=>zo.removeListener(Ot,no),sc=new e0({onWillAddFirstListener:ra,onDidRemoveLastListener:Pi});return sc.event}g.fromNodeEventEmitter=Br;function zi(zo,Ot,Ia=no=>no){const no=(...Qp)=>sc.fire(Ia(...Qp)),ra=()=>zo.addEventListener(Ot,no),Pi=()=>zo.removeEventListener(Ot,no),sc=new e0({onWillAddFirstListener:ra,onDidRemoveLastListener:Pi});return sc.event}g.fromDOMEventEmitter=zi;function Go(zo){return new Promise(Ot=>T(zo)(Ot))}g.toPromise=Go;function Nr(zo){const Ot=new e0;return zo.then(Ia=>{Ot.fire(Ia)},()=>{Ot.fire(void 0)}).finally(()=>{Ot.dispose()}),Ot.event}g.fromPromise=Nr;function Na(zo,Ot){return zo(Ia=>Ot.fire(Ia))}g.forward=Na;function Ac(zo,Ot,Ia){return Ot(Ia),zo(no=>Ot(no))}g.runAndSubscribe=Ac;class lu{constructor(Ot,Ia){this._observable=Ot,this._counter=0,this._hasChanged=!1;const no={onWillAddFirstListener:()=>{Ot.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{Ot.removeObserver(this)}};this.emitter=new e0(no),Ia&&Ia.add(this.emitter)}beginUpdate(Ot){this._counter++}handlePossibleChange(Ot){}handleChange(Ot,Ia){this._hasChanged=!0}endUpdate(Ot){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function rr(zo,Ot){return new lu(zo,Ot).emitter.event}g.fromObservable=rr;function Ks(zo){return(Ot,Ia,no)=>{let ra=0,Pi=!1;const sc={beginUpdate(){ra++},endUpdate(){ra--,ra===0&&(zo.reportChanges(),Pi&&(Pi=!1,Ot.call(Ia)))},handlePossibleChange(){},handleChange(){Pi=!0}};zo.addObserver(sc),zo.reportChanges();const Qp={dispose(){zo.removeObserver(sc)}};return no instanceof h6?no.add(Qp):Array.isArray(no)&&no.push(Qp),Qp}}g.fromObservableLight=Ks})(FB||(FB={}));const MM=class MM{constructor(v){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name="".concat(v,"_").concat(MM._idPool++),MM.all.add(this)}start(v){this._stopWatch=new WB,this.listenerCount=v}stop(){if(this._stopWatch){const v=this._stopWatch.elapsed();this.durations.push(v),this.elapsedOverall+=v,this.invocationCount+=1,this._stopWatch=void 0}}};MM.all=new Set,MM._idPool=0;let Gte=MM,q7e=-1;const iG=class iG{constructor(v,T,W=(iG._idPool++).toString(16).padStart(3,"0")){this._errorHandler=v,this.threshold=T,this.name=W,this._warnCountdown=0}dispose(){var v;(v=this._stacks)==null||v.clear()}check(v,T){const W=this.threshold;if(W<=0||T<W)return;this._stacks||(this._stacks=new Map);const X=this._stacks.get(v.value)||0;if(this._stacks.set(v.value,X+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=W*.5;const[ue,Te]=this.getMostFrequentStack(),Be="[".concat(this.name,"] potential listener LEAK detected, having ").concat(T," listeners already. MOST frequent listener (").concat(Te,"):");console.warn(Be),console.warn(ue);const at=new J7e(Be,ue);this._errorHandler(at)}return()=>{const ue=this._stacks.get(v.value)||0;this._stacks.set(v.value,ue-1)}}getMostFrequentStack(){if(!this._stacks)return;let v,T=0;for(const[W,X]of this._stacks)(!v||T<X)&&(v=[W,X],T=X);return v}};iG._idPool=1;let Vte=iG;class jte{static create(){var T;const v=new Error;return new jte((T=v.stack)!=null?T:"")}constructor(v){this.value=v}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class J7e extends Error{constructor(v,T){super(v),this.name="ListenerLeakError",this.stack=T}}class K7e extends Error{constructor(v,T){super(v),this.name="ListenerRefusalError",this.stack=T}}class Ute{constructor(v){this.value=v}}const X7e=2;class e0{constructor(v){var T,W,X,ue,Te,Be;this._size=0,this._options=v,this._leakageMon=(T=this._options)!=null&&T.leakWarningThreshold?new Vte((W=v==null?void 0:v.onListenerError)!=null?W:_6,(ue=(X=this._options)==null?void 0:X.leakWarningThreshold)!=null?ue:q7e):void 0,this._perfMon=(Te=this._options)!=null&&Te._profName?new Gte(this._options._profName):void 0,this._deliveryQueue=(Be=this._options)==null?void 0:Be.deliveryQueue}dispose(){var v,T,W,X;this._disposed||(this._disposed=!0,((v=this._deliveryQueue)==null?void 0:v.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(W=(T=this._options)==null?void 0:T.onDidRemoveLastListener)==null||W.call(T),(X=this._leakageMon)==null||X.dispose())}get event(){var v;return(v=this._event)!=null||(this._event=(T,W,X)=>{var at,Le,He,jt,qt,fn,Mr;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const hi="[".concat(this._leakageMon.name,"] REFUSES to accept new listeners because it exceeded its threshold by far (").concat(this._size," vs ").concat(this._leakageMon.threshold,")");console.warn(hi);const oo=(at=this._leakageMon.getMostFrequentStack())!=null?at:["UNKNOWN stack",-1],Yn=new K7e("".concat(hi,". HINT: Stack shows most frequent listener (").concat(oo[1],"-times)"),oo[0]);return(((Le=this._options)==null?void 0:Le.onListenerError)||_6)(Yn),yM.None}if(this._disposed)return yM.None;W&&(T=T.bind(W));const ue=new Ute(T);let Te;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(ue.stack=jte.create(),Te=this._leakageMon.check(ue.stack,this._size+1)),this._listeners?this._listeners instanceof Ute?((Mr=this._deliveryQueue)!=null||(this._deliveryQueue=new Y7e),this._listeners=[this._listeners,ue]):this._listeners.push(ue):((jt=(He=this._options)==null?void 0:He.onWillAddFirstListener)==null||jt.call(He,this),this._listeners=ue,(fn=(qt=this._options)==null?void 0:qt.onDidAddFirstListener)==null||fn.call(qt,this)),this._size++;const Be=OB(()=>{Te==null||Te(),this._removeListener(ue)});return X instanceof h6?X.add(Be):Array.isArray(X)&&X.push(Be),Be}),this._event}_removeListener(v){var ue,Te,Be,at;if((Te=(ue=this._options)==null?void 0:ue.onWillRemoveListener)==null||Te.call(ue,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(at=(Be=this._options)==null?void 0:Be.onDidRemoveLastListener)==null||at.call(Be,this),this._size=0;return}const T=this._listeners,W=T.indexOf(v);if(W===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,T[W]=void 0;const X=this._deliveryQueue.current===this;if(this._size*X7e<=T.length){let Le=0;for(let He=0;He<T.length;He++)T[He]?T[Le++]=T[He]:X&&(this._deliveryQueue.end--,Le<this._deliveryQueue.i&&this._deliveryQueue.i--);T.length=Le}}_deliver(v,T){var X;if(!v)return;const W=((X=this._options)==null?void 0:X.onListenerError)||_6;if(!W){v.value(T);return}try{v.value(T)}catch(ue){W(ue)}}_deliverQueue(v){const T=v.current._listeners;for(;v.i<v.end;)this._deliver(T[v.i++],v.value);v.reset()}fire(v){var T,W,X,ue;if((T=this._deliveryQueue)!=null&&T.current&&(this._deliverQueue(this._deliveryQueue),(W=this._perfMon)==null||W.stop()),(X=this._perfMon)==null||X.start(this._size),this._listeners)if(this._listeners instanceof Ute)this._deliver(this._listeners,v);else{const Te=this._deliveryQueue;Te.enqueue(this,v,this._listeners.length),this._deliverQueue(Te)}(ue=this._perfMon)==null||ue.stop()}hasListeners(){return this._size>0}}class Y7e{constructor(){this.i=-1,this.end=0}enqueue(v,T,W){this.i=0,this.end=W,this.current=v,this.value=T}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function $7e(){return globalThis._VSCODE_NLS_MESSAGES}function t0e(){return globalThis._VSCODE_NLS_LANGUAGE}const Q7e=t0e()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function n0e(g,v){let T;return v.length===0?T=g:T=g.replace(/\{(\d+)\}/g,(W,X)=>{const ue=X[0],Te=v[ue];let Be=W;return typeof Te=="string"?Be=Te:(typeof Te=="number"||typeof Te=="boolean"||Te===void 0||Te===null)&&(Be=String(Te)),Be}),Q7e&&(T="["+T.replace(/[aouei]/g,"$&$&")+"]"),T}function Qd(g,v,...T){return n0e(typeof g=="number"?Z7e(g,v):v,T)}function Z7e(g,v){var W;const T=(W=$7e())==null?void 0:W[g];if(typeof T!="string"){if(typeof v=="string")return v;throw new Error("!!! NLS MISSING: ".concat(g," !!!"))}return T}const bM="en";let Hte=!1,qte=!1,Jte=!1,r0e=!1,Kte=!1,zB,Xte=bM,i0e=bM,e5e,AE;const _A=globalThis;let lh;typeof _A.vscode<"u"&&typeof _A.vscode.process<"u"?lh=_A.vscode.process:typeof process<"u"&&typeof((y1e=process==null?void 0:process.versions)==null?void 0:y1e.node)=="string"&&(lh=process);const t5e=typeof((b1e=lh==null?void 0:lh.versions)==null?void 0:b1e.electron)=="string"&&(lh==null?void 0:lh.type)==="renderer";if(typeof lh=="object"){Hte=lh.platform==="win32",qte=lh.platform==="darwin",Jte=lh.platform==="linux",Jte&&lh.env.SNAP&&lh.env.SNAP_REVISION,lh.env.CI||lh.env.BUILD_ARTIFACTSTAGINGDIRECTORY,zB=bM,Xte=bM;const g=lh.env.VSCODE_NLS_CONFIG;if(g)try{const v=JSON.parse(g);zB=v.userLocale,i0e=v.osLocale,Xte=v.resolvedLanguage||bM,e5e=(E1e=v.languagePack)==null?void 0:E1e.translationsConfigFile}catch(v){}r0e=!0}else typeof navigator=="object"&&!t5e?(AE=navigator.userAgent,Hte=AE.indexOf("Windows")>=0,qte=AE.indexOf("Macintosh")>=0,(AE.indexOf("Macintosh")>=0||AE.indexOf("iPad")>=0||AE.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Jte=AE.indexOf("Linux")>=0,(AE==null?void 0:AE.indexOf("Mobi"))>=0,Kte=!0,Xte=t0e()||bM,zB=navigator.language.toLowerCase(),i0e=zB):console.error("Unable to resolve platform.");const g6=Hte,n5e=qte,r5e=r0e,i5e=Kte,o5e=Kte&&typeof _A.importScripts=="function"?_A.origin:void 0,sS=AE,a5e=typeof _A.postMessage=="function"&&!_A.importScripts;(()=>{if(a5e){const g=[];_A.addEventListener("message",T=>{if(T.data&&T.data.vscodeScheduleAsyncWork)for(let W=0,X=g.length;W<X;W++){const ue=g[W];if(ue.id===T.data.vscodeScheduleAsyncWork){g.splice(W,1),ue.callback();return}}});let v=0;return T=>{const W=++v;g.push({id:W,callback:T}),_A.postMessage({vscodeScheduleAsyncWork:W},"*")}}return g=>setTimeout(g)})();const s5e=!!(sS&&sS.indexOf("Chrome")>=0);sS&&sS.indexOf("Firefox")>=0,!s5e&&sS&&sS.indexOf("Safari")>=0,sS&&sS.indexOf("Edg/")>=0,sS&&sS.indexOf("Android")>=0;function l5e(g){return g}class c5e{constructor(v,T){this.lastCache=void 0,this.lastArgKey=void 0,typeof v=="function"?(this._fn=v,this._computeKey=l5e):(this._fn=T,this._computeKey=v.getCacheKey)}get(v){const T=this._computeKey(v);return this.lastArgKey!==T&&(this.lastArgKey=T,this.lastCache=this._fn(v)),this.lastCache}}class o0e{constructor(v){this.executor=v,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(v){this._error=v}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function u5e(g){return g.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d5e(g){return g.split(/\r\n|\r|\n/)}function p5e(g){for(let v=0,T=g.length;v<T;v++){const W=g.charCodeAt(v);if(W!==32&&W!==9)return v}return-1}function f5e(g,v=g.length-1){for(let T=v;T>=0;T--){const W=g.charCodeAt(T);if(W!==32&&W!==9)return T}return-1}function a0e(g){return g>=65&&g<=90}function BB(g){return 55296<=g&&g<=56319}function Yte(g){return 56320<=g&&g<=57343}function s0e(g,v){return(g-55296<<10)+(v-56320)+65536}function m5e(g,v,T){const W=g.charCodeAt(T);if(BB(W)&&T+1<v){const X=g.charCodeAt(T+1);if(Yte(X))return s0e(W,X)}return W}const _5e=/^[\t\n\r\x20-\x7E]*$/;function h5e(g){return _5e.test(g)}const cS=class cS{static getInstance(v){return cS.cache.get(Array.from(v))}static getLocales(){return cS._locales.value}constructor(v){this.confusableDictionary=v}isAmbiguous(v){return this.confusableDictionary.has(v)}getPrimaryConfusable(v){return this.confusableDictionary.get(v)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};cS.ambiguousCharacterData=new o0e(()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')),cS.cache=new c5e({getCacheKey:JSON.stringify},v=>{function T(He){const jt=new Map;for(let qt=0;qt<He.length;qt+=2)jt.set(He[qt],He[qt+1]);return jt}function W(He,jt){const qt=new Map(He);for(const[fn,Mr]of jt)qt.set(fn,Mr);return qt}function X(He,jt){if(!He)return jt;const qt=new Map;for(const[fn,Mr]of He)jt.has(fn)&&qt.set(fn,Mr);return qt}const ue=cS.ambiguousCharacterData.value;let Te=v.filter(He=>!He.startsWith("_")&&He in ue);Te.length===0&&(Te=["_default"]);let Be;for(const He of Te){const jt=T(ue[He]);Be=X(Be,jt)}const at=T(ue._common),Le=W(at,Be);return new cS(Le)}),cS._locales=new o0e(()=>Object.keys(cS.ambiguousCharacterData.value).filter(v=>!v.startsWith("_")));let v6=cS;const LM=class LM{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static getData(){return this._data||(this._data=new Set(LM.getRawData())),this._data}static isInvisibleCharacter(v){return LM.getData().has(v)}static get codePoints(){return LM.getData()}};LM._data=void 0;let y6=LM;var l0e={};let EM;const $te=globalThis.vscode;if(typeof $te<"u"&&typeof $te.process<"u"){const g=$te.process;EM={get platform(){return g.platform},get arch(){return g.arch},get env(){return g.env},cwd(){return g.cwd()}}}else typeof process<"u"&&typeof((S1e=process==null?void 0:process.versions)==null?void 0:S1e.node)=="string"?EM={get platform(){return process.platform},get arch(){return process.arch},get env(){return l0e},cwd(){return l0e.VSCODE_CWD||process.cwd()}}:EM={get platform(){return g6?"win32":n5e?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const GB=EM.cwd,g5e=EM.env,v5e=EM.platform,y5e=65,b5e=97,E5e=90,S5e=122,Nx=46,T_=47,xv=92,Px=58,T5e=63;class c0e extends Error{constructor(v,T,W){let X;typeof T=="string"&&T.indexOf("not ")===0?(X="must not be",T=T.replace(/^not /,"")):X="must be";const ue=v.indexOf(".")!==-1?"property":"argument";let Te='The "'.concat(v,'" ').concat(ue," ").concat(X," of type ").concat(T);Te+=". Received type ".concat(typeof W),super(Te),this.code="ERR_INVALID_ARG_TYPE"}}function A5e(g,v){if(g===null||typeof g!="object")throw new c0e(v,"Object",g)}function Sf(g,v){if(typeof g!="string")throw new c0e(v,"string",g)}const hA=v5e==="win32";function ql(g){return g===T_||g===xv}function Qte(g){return g===T_}function Mx(g){return g>=y5e&&g<=E5e||g>=b5e&&g<=S5e}function VB(g,v,T,W){let X="",ue=0,Te=-1,Be=0,at=0;for(let Le=0;Le<=g.length;++Le){if(Le<g.length)at=g.charCodeAt(Le);else{if(W(at))break;at=T_}if(W(at)){if(!(Te===Le-1||Be===1))if(Be===2){if(X.length<2||ue!==2||X.charCodeAt(X.length-1)!==Nx||X.charCodeAt(X.length-2)!==Nx){if(X.length>2){const He=X.lastIndexOf(T);He===-1?(X="",ue=0):(X=X.slice(0,He),ue=X.length-1-X.lastIndexOf(T)),Te=Le,Be=0;continue}else if(X.length!==0){X="",ue=0,Te=Le,Be=0;continue}}v&&(X+=X.length>0?"".concat(T,".."):"..",ue=2)}else X.length>0?X+="".concat(T).concat(g.slice(Te+1,Le)):X=g.slice(Te+1,Le),ue=Le-Te-1;Te=Le,Be=0}else at===Nx&&Be!==-1?++Be:Be=-1}return X}function I5e(g){return g?"".concat(g[0]==="."?"":".").concat(g):""}function u0e(g,v){A5e(v,"pathObject");const T=v.dir||v.root,W=v.base||"".concat(v.name||"").concat(I5e(v.ext));return T?T===v.root?"".concat(T).concat(W):"".concat(T).concat(g).concat(W):W}const Yh={resolve(...g){let v="",T="",W=!1;for(let X=g.length-1;X>=-1;X--){let ue;if(X>=0){if(ue=g[X],Sf(ue,"paths[".concat(X,"]")),ue.length===0)continue}else v.length===0?ue=GB():(ue=g5e["=".concat(v)]||GB(),(ue===void 0||ue.slice(0,2).toLowerCase()!==v.toLowerCase()&&ue.charCodeAt(2)===xv)&&(ue="".concat(v,"\\")));const Te=ue.length;let Be=0,at="",Le=!1;const He=ue.charCodeAt(0);if(Te===1)ql(He)&&(Be=1,Le=!0);else if(ql(He))if(Le=!0,ql(ue.charCodeAt(1))){let jt=2,qt=jt;for(;jt<Te&&!ql(ue.charCodeAt(jt));)jt++;if(jt<Te&&jt!==qt){const fn=ue.slice(qt,jt);for(qt=jt;jt<Te&&ql(ue.charCodeAt(jt));)jt++;if(jt<Te&&jt!==qt){for(qt=jt;jt<Te&&!ql(ue.charCodeAt(jt));)jt++;(jt===Te||jt!==qt)&&(at="\\\\".concat(fn,"\\").concat(ue.slice(qt,jt)),Be=jt)}}}else Be=1;else Mx(He)&&ue.charCodeAt(1)===Px&&(at=ue.slice(0,2),Be=2,Te>2&&ql(ue.charCodeAt(2))&&(Le=!0,Be=3));if(at.length>0)if(v.length>0){if(at.toLowerCase()!==v.toLowerCase())continue}else v=at;if(W){if(v.length>0)break}else if(T="".concat(ue.slice(Be),"\\").concat(T),W=Le,Le&&v.length>0)break}return T=VB(T,!W,"\\",ql),W?"".concat(v,"\\").concat(T):"".concat(v).concat(T)||"."},normalize(g){Sf(g,"path");const v=g.length;if(v===0)return".";let T=0,W,X=!1;const ue=g.charCodeAt(0);if(v===1)return Qte(ue)?"\\":g;if(ql(ue))if(X=!0,ql(g.charCodeAt(1))){let Be=2,at=Be;for(;Be<v&&!ql(g.charCodeAt(Be));)Be++;if(Be<v&&Be!==at){const Le=g.slice(at,Be);for(at=Be;Be<v&&ql(g.charCodeAt(Be));)Be++;if(Be<v&&Be!==at){for(at=Be;Be<v&&!ql(g.charCodeAt(Be));)Be++;if(Be===v)return"\\\\".concat(Le,"\\").concat(g.slice(at),"\\");Be!==at&&(W="\\\\".concat(Le,"\\").concat(g.slice(at,Be)),T=Be)}}}else T=1;else Mx(ue)&&g.charCodeAt(1)===Px&&(W=g.slice(0,2),T=2,v>2&&ql(g.charCodeAt(2))&&(X=!0,T=3));let Te=T<v?VB(g.slice(T),!X,"\\",ql):"";return Te.length===0&&!X&&(Te="."),Te.length>0&&ql(g.charCodeAt(v-1))&&(Te+="\\"),W===void 0?X?"\\".concat(Te):Te:X?"".concat(W,"\\").concat(Te):"".concat(W).concat(Te)},isAbsolute(g){Sf(g,"path");const v=g.length;if(v===0)return!1;const T=g.charCodeAt(0);return ql(T)||v>2&&Mx(T)&&g.charCodeAt(1)===Px&&ql(g.charCodeAt(2))},join(...g){if(g.length===0)return".";let v,T;for(let ue=0;ue<g.length;++ue){const Te=g[ue];Sf(Te,"path"),Te.length>0&&(v===void 0?v=T=Te:v+="\\".concat(Te))}if(v===void 0)return".";let W=!0,X=0;if(typeof T=="string"&&ql(T.charCodeAt(0))){++X;const ue=T.length;ue>1&&ql(T.charCodeAt(1))&&(++X,ue>2&&(ql(T.charCodeAt(2))?++X:W=!1))}if(W){for(;X<v.length&&ql(v.charCodeAt(X));)X++;X>=2&&(v="\\".concat(v.slice(X)))}return Yh.normalize(v)},relative(g,v){if(Sf(g,"from"),Sf(v,"to"),g===v)return"";const T=Yh.resolve(g),W=Yh.resolve(v);if(T===W||(g=T.toLowerCase(),v=W.toLowerCase(),g===v))return"";let X=0;for(;X<g.length&&g.charCodeAt(X)===xv;)X++;let ue=g.length;for(;ue-1>X&&g.charCodeAt(ue-1)===xv;)ue--;const Te=ue-X;let Be=0;for(;Be<v.length&&v.charCodeAt(Be)===xv;)Be++;let at=v.length;for(;at-1>Be&&v.charCodeAt(at-1)===xv;)at--;const Le=at-Be,He=Te<Le?Te:Le;let jt=-1,qt=0;for(;qt<He;qt++){const Mr=g.charCodeAt(X+qt);if(Mr!==v.charCodeAt(Be+qt))break;Mr===xv&&(jt=qt)}if(qt!==He){if(jt===-1)return W}else{if(Le>He){if(v.charCodeAt(Be+qt)===xv)return W.slice(Be+qt+1);if(qt===2)return W.slice(Be+qt)}Te>He&&(g.charCodeAt(X+qt)===xv?jt=qt:qt===2&&(jt=3)),jt===-1&&(jt=0)}let fn="";for(qt=X+jt+1;qt<=ue;++qt)(qt===ue||g.charCodeAt(qt)===xv)&&(fn+=fn.length===0?"..":"\\..");return Be+=jt,fn.length>0?"".concat(fn).concat(W.slice(Be,at)):(W.charCodeAt(Be)===xv&&++Be,W.slice(Be,at))},toNamespacedPath(g){if(typeof g!="string"||g.length===0)return g;const v=Yh.resolve(g);if(v.length<=2)return g;if(v.charCodeAt(0)===xv){if(v.charCodeAt(1)===xv){const T=v.charCodeAt(2);if(T!==T5e&&T!==Nx)return"\\\\?\\UNC\\".concat(v.slice(2))}}else if(Mx(v.charCodeAt(0))&&v.charCodeAt(1)===Px&&v.charCodeAt(2)===xv)return"\\\\?\\".concat(v);return g},dirname(g){Sf(g,"path");const v=g.length;if(v===0)return".";let T=-1,W=0;const X=g.charCodeAt(0);if(v===1)return ql(X)?g:".";if(ql(X)){if(T=W=1,ql(g.charCodeAt(1))){let Be=2,at=Be;for(;Be<v&&!ql(g.charCodeAt(Be));)Be++;if(Be<v&&Be!==at){for(at=Be;Be<v&&ql(g.charCodeAt(Be));)Be++;if(Be<v&&Be!==at){for(at=Be;Be<v&&!ql(g.charCodeAt(Be));)Be++;if(Be===v)return g;Be!==at&&(T=W=Be+1)}}}}else Mx(X)&&g.charCodeAt(1)===Px&&(T=v>2&&ql(g.charCodeAt(2))?3:2,W=T);let ue=-1,Te=!0;for(let Be=v-1;Be>=W;--Be)if(ql(g.charCodeAt(Be))){if(!Te){ue=Be;break}}else Te=!1;if(ue===-1){if(T===-1)return".";ue=T}return g.slice(0,ue)},basename(g,v){v!==void 0&&Sf(v,"suffix"),Sf(g,"path");let T=0,W=-1,X=!0,ue;if(g.length>=2&&Mx(g.charCodeAt(0))&&g.charCodeAt(1)===Px&&(T=2),v!==void 0&&v.length>0&&v.length<=g.length){if(v===g)return"";let Te=v.length-1,Be=-1;for(ue=g.length-1;ue>=T;--ue){const at=g.charCodeAt(ue);if(ql(at)){if(!X){T=ue+1;break}}else Be===-1&&(X=!1,Be=ue+1),Te>=0&&(at===v.charCodeAt(Te)?--Te===-1&&(W=ue):(Te=-1,W=Be))}return T===W?W=Be:W===-1&&(W=g.length),g.slice(T,W)}for(ue=g.length-1;ue>=T;--ue)if(ql(g.charCodeAt(ue))){if(!X){T=ue+1;break}}else W===-1&&(X=!1,W=ue+1);return W===-1?"":g.slice(T,W)},extname(g){Sf(g,"path");let v=0,T=-1,W=0,X=-1,ue=!0,Te=0;g.length>=2&&g.charCodeAt(1)===Px&&Mx(g.charCodeAt(0))&&(v=W=2);for(let Be=g.length-1;Be>=v;--Be){const at=g.charCodeAt(Be);if(ql(at)){if(!ue){W=Be+1;break}continue}X===-1&&(ue=!1,X=Be+1),at===Nx?T===-1?T=Be:Te!==1&&(Te=1):T!==-1&&(Te=-1)}return T===-1||X===-1||Te===0||Te===1&&T===X-1&&T===W+1?"":g.slice(T,X)},format:u0e.bind(null,"\\"),parse(g){Sf(g,"path");const v={root:"",dir:"",base:"",ext:"",name:""};if(g.length===0)return v;const T=g.length;let W=0,X=g.charCodeAt(0);if(T===1)return ql(X)?(v.root=v.dir=g,v):(v.base=v.name=g,v);if(ql(X)){if(W=1,ql(g.charCodeAt(1))){let jt=2,qt=jt;for(;jt<T&&!ql(g.charCodeAt(jt));)jt++;if(jt<T&&jt!==qt){for(qt=jt;jt<T&&ql(g.charCodeAt(jt));)jt++;if(jt<T&&jt!==qt){for(qt=jt;jt<T&&!ql(g.charCodeAt(jt));)jt++;jt===T?W=jt:jt!==qt&&(W=jt+1)}}}}else if(Mx(X)&&g.charCodeAt(1)===Px){if(T<=2)return v.root=v.dir=g,v;if(W=2,ql(g.charCodeAt(2))){if(T===3)return v.root=v.dir=g,v;W=3}}W>0&&(v.root=g.slice(0,W));let ue=-1,Te=W,Be=-1,at=!0,Le=g.length-1,He=0;for(;Le>=W;--Le){if(X=g.charCodeAt(Le),ql(X)){if(!at){Te=Le+1;break}continue}Be===-1&&(at=!1,Be=Le+1),X===Nx?ue===-1?ue=Le:He!==1&&(He=1):ue!==-1&&(He=-1)}return Be!==-1&&(ue===-1||He===0||He===1&&ue===Be-1&&ue===Te+1?v.base=v.name=g.slice(Te,Be):(v.name=g.slice(Te,ue),v.base=g.slice(Te,Be),v.ext=g.slice(ue,Be))),Te>0&&Te!==W?v.dir=g.slice(0,Te-1):v.dir=v.root,v},sep:"\\",delimiter:";",win32:null,posix:null},x5e=(()=>{if(hA){const g=/\\/g;return()=>{const v=GB().replace(g,"/");return v.slice(v.indexOf("/"))}}return()=>GB()})(),$h={resolve(...g){let v="",T=!1;for(let W=g.length-1;W>=-1&&!T;W--){const X=W>=0?g[W]:x5e();Sf(X,"paths[".concat(W,"]")),X.length!==0&&(v="".concat(X,"/").concat(v),T=X.charCodeAt(0)===T_)}return v=VB(v,!T,"/",Qte),T?"/".concat(v):v.length>0?v:"."},normalize(g){if(Sf(g,"path"),g.length===0)return".";const v=g.charCodeAt(0)===T_,T=g.charCodeAt(g.length-1)===T_;return g=VB(g,!v,"/",Qte),g.length===0?v?"/":T?"./":".":(T&&(g+="/"),v?"/".concat(g):g)},isAbsolute(g){return Sf(g,"path"),g.length>0&&g.charCodeAt(0)===T_},join(...g){if(g.length===0)return".";let v;for(let T=0;T<g.length;++T){const W=g[T];Sf(W,"path"),W.length>0&&(v===void 0?v=W:v+="/".concat(W))}return v===void 0?".":$h.normalize(v)},relative(g,v){if(Sf(g,"from"),Sf(v,"to"),g===v||(g=$h.resolve(g),v=$h.resolve(v),g===v))return"";const T=1,W=g.length,X=W-T,ue=1,Te=v.length-ue,Be=X<Te?X:Te;let at=-1,Le=0;for(;Le<Be;Le++){const jt=g.charCodeAt(T+Le);if(jt!==v.charCodeAt(ue+Le))break;jt===T_&&(at=Le)}if(Le===Be)if(Te>Be){if(v.charCodeAt(ue+Le)===T_)return v.slice(ue+Le+1);if(Le===0)return v.slice(ue+Le)}else X>Be&&(g.charCodeAt(T+Le)===T_?at=Le:Le===0&&(at=0));let He="";for(Le=T+at+1;Le<=W;++Le)(Le===W||g.charCodeAt(Le)===T_)&&(He+=He.length===0?"..":"/..");return"".concat(He).concat(v.slice(ue+at))},toNamespacedPath(g){return g},dirname(g){if(Sf(g,"path"),g.length===0)return".";const v=g.charCodeAt(0)===T_;let T=-1,W=!0;for(let X=g.length-1;X>=1;--X)if(g.charCodeAt(X)===T_){if(!W){T=X;break}}else W=!1;return T===-1?v?"/":".":v&&T===1?"//":g.slice(0,T)},basename(g,v){v!==void 0&&Sf(v,"ext"),Sf(g,"path");let T=0,W=-1,X=!0,ue;if(v!==void 0&&v.length>0&&v.length<=g.length){if(v===g)return"";let Te=v.length-1,Be=-1;for(ue=g.length-1;ue>=0;--ue){const at=g.charCodeAt(ue);if(at===T_){if(!X){T=ue+1;break}}else Be===-1&&(X=!1,Be=ue+1),Te>=0&&(at===v.charCodeAt(Te)?--Te===-1&&(W=ue):(Te=-1,W=Be))}return T===W?W=Be:W===-1&&(W=g.length),g.slice(T,W)}for(ue=g.length-1;ue>=0;--ue)if(g.charCodeAt(ue)===T_){if(!X){T=ue+1;break}}else W===-1&&(X=!1,W=ue+1);return W===-1?"":g.slice(T,W)},extname(g){Sf(g,"path");let v=-1,T=0,W=-1,X=!0,ue=0;for(let Te=g.length-1;Te>=0;--Te){const Be=g.charCodeAt(Te);if(Be===T_){if(!X){T=Te+1;break}continue}W===-1&&(X=!1,W=Te+1),Be===Nx?v===-1?v=Te:ue!==1&&(ue=1):v!==-1&&(ue=-1)}return v===-1||W===-1||ue===0||ue===1&&v===W-1&&v===T+1?"":g.slice(v,W)},format:u0e.bind(null,"/"),parse(g){Sf(g,"path");const v={root:"",dir:"",base:"",ext:"",name:""};if(g.length===0)return v;const T=g.charCodeAt(0)===T_;let W;T?(v.root="/",W=1):W=0;let X=-1,ue=0,Te=-1,Be=!0,at=g.length-1,Le=0;for(;at>=W;--at){const He=g.charCodeAt(at);if(He===T_){if(!Be){ue=at+1;break}continue}Te===-1&&(Be=!1,Te=at+1),He===Nx?X===-1?X=at:Le!==1&&(Le=1):X!==-1&&(Le=-1)}if(Te!==-1){const He=ue===0&&T?1:ue;X===-1||Le===0||Le===1&&X===Te-1&&X===ue+1?v.base=v.name=g.slice(He,Te):(v.name=g.slice(He,X),v.base=g.slice(He,Te),v.ext=g.slice(X,Te))}return ue>0?v.dir=g.slice(0,ue-1):T&&(v.dir="/"),v},sep:"/",delimiter:":",win32:null,posix:null};$h.win32=Yh.win32=Yh,$h.posix=Yh.posix=$h,hA?Yh.normalize:$h.normalize;const R5e=hA?Yh.join:$h.join;hA?Yh.resolve:$h.resolve,hA?Yh.relative:$h.relative,hA?Yh.dirname:$h.dirname,hA?Yh.basename:$h.basename,hA?Yh.extname:$h.extname,hA?Yh.sep:$h.sep;const D5e=/^\w[\w\d+.-]*$/,C5e=/^\//,N5e=/^\/\//;function P5e(g,v){if(!g.scheme&&v)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(g.authority,'", path: "').concat(g.path,'", query: "').concat(g.query,'", fragment: "').concat(g.fragment,'"}'));if(g.scheme&&!D5e.test(g.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(g.path){if(g.authority){if(!C5e.test(g.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(N5e.test(g.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function M5e(g,v){return!g&&!v?"file":g}function L5e(g,v){switch(g){case"https":case"http":case"file":v?v[0]!==IE&&(v=IE+v):v=IE;break}return v}const Od="",IE="/",k5e=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Rv{static isUri(v){return v instanceof Rv?!0:v?typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function":!1}constructor(v,T,W,X,ue,Te=!1){typeof v=="object"?(this.scheme=v.scheme||Od,this.authority=v.authority||Od,this.path=v.path||Od,this.query=v.query||Od,this.fragment=v.fragment||Od):(this.scheme=M5e(v,Te),this.authority=T||Od,this.path=L5e(this.scheme,W||Od),this.query=X||Od,this.fragment=ue||Od,P5e(this,Te))}get fsPath(){return Zte(this,!1)}with(v){if(!v)return this;let{scheme:T,authority:W,path:X,query:ue,fragment:Te}=v;return T===void 0?T=this.scheme:T===null&&(T=Od),W===void 0?W=this.authority:W===null&&(W=Od),X===void 0?X=this.path:X===null&&(X=Od),ue===void 0?ue=this.query:ue===null&&(ue=Od),Te===void 0?Te=this.fragment:Te===null&&(Te=Od),T===this.scheme&&W===this.authority&&X===this.path&&ue===this.query&&Te===this.fragment?this:new SM(T,W,X,ue,Te)}static parse(v,T=!1){const W=k5e.exec(v);return W?new SM(W[2]||Od,jB(W[4]||Od),jB(W[5]||Od),jB(W[7]||Od),jB(W[9]||Od),T):new SM(Od,Od,Od,Od,Od)}static file(v){let T=Od;if(g6&&(v=v.replace(/\\/g,IE)),v[0]===IE&&v[1]===IE){const W=v.indexOf(IE,2);W===-1?(T=v.substring(2),v=IE):(T=v.substring(2,W),v=v.substring(W)||IE)}return new SM("file",T,v,Od,Od)}static from(v,T){return new SM(v.scheme,v.authority,v.path,v.query,v.fragment,T)}static joinPath(v,...T){if(!v.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let W;return g6&&v.scheme==="file"?W=Rv.file(Yh.join(Zte(v,!0),...T)).path:W=$h.join(v.path,...T),v.with({path:W})}toString(v=!1){return ene(this,v)}toJSON(){return this}static revive(v){var T,W;if(v){if(v instanceof Rv)return v;{const X=new SM(v);return X._formatted=(T=v.external)!=null?T:null,X._fsPath=v._sep===d0e&&(W=v.fsPath)!=null?W:null,X}}else return v}}const d0e=g6?1:void 0;class SM extends Rv{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Zte(this,!1)),this._fsPath}toString(v=!1){return v?ene(this,!0):(this._formatted||(this._formatted=ene(this,!1)),this._formatted)}toJSON(){const v={$mid:1};return this._fsPath&&(v.fsPath=this._fsPath,v._sep=d0e),this._formatted&&(v.external=this._formatted),this.path&&(v.path=this.path),this.scheme&&(v.scheme=this.scheme),this.authority&&(v.authority=this.authority),this.query&&(v.query=this.query),this.fragment&&(v.fragment=this.fragment),v}}const p0e={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 f0e(g,v,T){let W,X=-1;for(let ue=0;ue<g.length;ue++){const Te=g.charCodeAt(ue);if(Te>=97&&Te<=122||Te>=65&&Te<=90||Te>=48&&Te<=57||Te===45||Te===46||Te===95||Te===126||v&&Te===47||T&&Te===91||T&&Te===93||T&&Te===58)X!==-1&&(W+=encodeURIComponent(g.substring(X,ue)),X=-1),W!==void 0&&(W+=g.charAt(ue));else{W===void 0&&(W=g.substr(0,ue));const Be=p0e[Te];Be!==void 0?(X!==-1&&(W+=encodeURIComponent(g.substring(X,ue)),X=-1),W+=Be):X===-1&&(X=ue)}}return X!==-1&&(W+=encodeURIComponent(g.substring(X))),W!==void 0?W:g}function w5e(g){let v;for(let T=0;T<g.length;T++){const W=g.charCodeAt(T);W===35||W===63?(v===void 0&&(v=g.substr(0,T)),v+=p0e[W]):v!==void 0&&(v+=g[T])}return v!==void 0?v:g}function Zte(g,v){let T;return g.authority&&g.path.length>1&&g.scheme==="file"?T="//".concat(g.authority).concat(g.path):g.path.charCodeAt(0)===47&&(g.path.charCodeAt(1)>=65&&g.path.charCodeAt(1)<=90||g.path.charCodeAt(1)>=97&&g.path.charCodeAt(1)<=122)&&g.path.charCodeAt(2)===58?v?T=g.path.substr(1):T=g.path[1].toLowerCase()+g.path.substr(2):T=g.path,g6&&(T=T.replace(/\//g,"\\")),T}function ene(g,v){const T=v?w5e:f0e;let W="",{scheme:X,authority:ue,path:Te,query:Be,fragment:at}=g;if(X&&(W+=X,W+=":"),(ue||X==="file")&&(W+=IE,W+=IE),ue){let Le=ue.indexOf("@");if(Le!==-1){const He=ue.substr(0,Le);ue=ue.substr(Le+1),Le=He.lastIndexOf(":"),Le===-1?W+=T(He,!1,!1):(W+=T(He.substr(0,Le),!1,!1),W+=":",W+=T(He.substr(Le+1),!1,!0)),W+="@"}ue=ue.toLowerCase(),Le=ue.lastIndexOf(":"),Le===-1?W+=T(ue,!1,!0):(W+=T(ue.substr(0,Le),!1,!0),W+=ue.substr(Le))}if(Te){if(Te.length>=3&&Te.charCodeAt(0)===47&&Te.charCodeAt(2)===58){const Le=Te.charCodeAt(1);Le>=65&&Le<=90&&(Te="/".concat(String.fromCharCode(Le+32),":").concat(Te.substr(3)))}else if(Te.length>=2&&Te.charCodeAt(1)===58){const Le=Te.charCodeAt(0);Le>=65&&Le<=90&&(Te="".concat(String.fromCharCode(Le+32),":").concat(Te.substr(2)))}W+=T(Te,!0,!1)}return Be&&(W+="?",W+=T(Be,!1,!1)),at&&(W+="#",W+=v?at:f0e(at,!1,!1)),W}function m0e(g){try{return decodeURIComponent(g)}catch(v){return g.length>3?g.substr(0,3)+m0e(g.substr(3)):g}}const _0e=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function jB(g){return g.match(_0e)?g.replace(_0e,v=>m0e(v)):g}var Lx;(function(g){g.inMemory="inmemory",g.vscode="vscode",g.internal="private",g.walkThrough="walkThrough",g.walkThroughSnippet="walkThroughSnippet",g.http="http",g.https="https",g.file="file",g.mailto="mailto",g.untitled="untitled",g.data="data",g.command="command",g.vscodeRemote="vscode-remote",g.vscodeRemoteResource="vscode-remote-resource",g.vscodeManagedRemoteResource="vscode-managed-remote-resource",g.vscodeUserData="vscode-userdata",g.vscodeCustomEditor="vscode-custom-editor",g.vscodeNotebookCell="vscode-notebook-cell",g.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",g.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",g.vscodeNotebookCellOutput="vscode-notebook-cell-output",g.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",g.vscodeNotebookMetadata="vscode-notebook-metadata",g.vscodeInteractiveInput="vscode-interactive-input",g.vscodeSettings="vscode-settings",g.vscodeWorkspaceTrust="vscode-workspace-trust",g.vscodeTerminal="vscode-terminal",g.vscodeChatCodeBlock="vscode-chat-code-block",g.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",g.vscodeChatSesssion="vscode-chat-editor",g.webviewPanel="webview-panel",g.vscodeWebview="vscode-webview",g.extension="extension",g.vscodeFileResource="vscode-file",g.tmp="tmp",g.vsls="vsls",g.vscodeSourceControl="vscode-scm",g.commentsInput="comment",g.codeSetting="code-setting",g.outputChannel="output"})(Lx||(Lx={}));const O5e="tkn";class W5e{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(v){this._preferredWebSchema=v}get _remoteResourcesPath(){return $h.join(this._serverRootPath,Lx.vscodeRemoteResource)}rewrite(v){if(this._delegate)try{return this._delegate(v)}catch(Be){return _6(Be),v}const T=v.authority;let W=this._hosts[T];W&&W.indexOf(":")!==-1&&W.indexOf("[")===-1&&(W="[".concat(W,"]"));const X=this._ports[T],ue=this._connectionTokens[T];let Te="path=".concat(encodeURIComponent(v.path));return typeof ue=="string"&&(Te+="&".concat(O5e,"=").concat(encodeURIComponent(ue))),Rv.from({scheme:i5e?this._preferredWebSchema:Lx.vscodeRemoteResource,authority:"".concat(W,":").concat(X),path:this._remoteResourcesPath,query:Te})}}const F5e=new W5e,z5e="vscode-app",R6=class R6{asBrowserUri(v){const T=this.toUri(v);return this.uriToBrowserUri(T)}uriToBrowserUri(v){return v.scheme===Lx.vscodeRemote?F5e.rewrite(v):v.scheme===Lx.file&&(r5e||o5e==="".concat(Lx.vscodeFileResource,"://").concat(R6.FALLBACK_AUTHORITY))?v.with({scheme:Lx.vscodeFileResource,authority:v.authority||R6.FALLBACK_AUTHORITY,query:null,fragment:null}):v}toUri(v,T){if(Rv.isUri(v))return v;if(globalThis._VSCODE_FILE_ROOT){const W=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(W))return Rv.joinPath(Rv.parse(W,!0),v);const X=R5e(W,v);return Rv.file(X)}return Rv.parse(T.toUrl(v))}};R6.FALLBACK_AUTHORITY=z5e;let tne=R6;const h0e=new tne;var g0e;(function(g){const v=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);g.CoopAndCoep=Object.freeze(v.get("3"));const T="vscode-coi";function W(ue){let Te;typeof ue=="string"?Te=new URL(ue).searchParams:ue instanceof URL?Te=ue.searchParams:Rv.isUri(ue)&&(Te=new URL(ue.toString(!0)).searchParams);const Be=Te==null?void 0:Te.get(T);if(Be)return v.get(Be)}g.getHeadersFromQuery=W;function X(ue,Te,Be){if(!globalThis.crossOriginIsolated)return;const at=Te&&Be?"3":Be?"2":"1";ue instanceof URLSearchParams?ue.set(T,at):ue[T]=at}g.addSearchParam=X})(g0e||(g0e={}));const nne="default",B5e="$initialize";class G5e{constructor(v,T,W,X,ue){this.vsWorker=v,this.req=T,this.channel=W,this.method=X,this.args=ue,this.type=0}}class v0e{constructor(v,T,W,X){this.vsWorker=v,this.seq=T,this.res=W,this.err=X,this.type=1}}class V5e{constructor(v,T,W,X,ue){this.vsWorker=v,this.req=T,this.channel=W,this.eventName=X,this.arg=ue,this.type=2}}class j5e{constructor(v,T,W){this.vsWorker=v,this.req=T,this.event=W,this.type=3}}class U5e{constructor(v,T){this.vsWorker=v,this.req=T,this.type=4}}class H5e{constructor(v){this._workerId=-1,this._handler=v,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(v){this._workerId=v}sendMessage(v,T,W){const X=String(++this._lastSentReq);return new Promise((ue,Te)=>{this._pendingReplies[X]={resolve:ue,reject:Te},this._send(new G5e(this._workerId,X,v,T,W))})}listen(v,T,W){let X=null;const ue=new e0({onWillAddFirstListener:()=>{X=String(++this._lastSentReq),this._pendingEmitters.set(X,ue),this._send(new V5e(this._workerId,X,v,T,W))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(X),this._send(new U5e(this._workerId,X)),X=null}});return ue.event}handleMessage(v){!v||!v.vsWorker||this._workerId!==-1&&v.vsWorker!==this._workerId||this._handleMessage(v)}createProxyToRemoteChannel(v,T){const W={get:(X,ue)=>(typeof ue=="string"&&!X[ue]&&(b0e(ue)?X[ue]=Te=>this.listen(v,ue,Te):y0e(ue)?X[ue]=this.listen(v,ue,void 0):ue.charCodeAt(0)===36&&(X[ue]=async(...Te)=>(await(T==null?void 0:T()),this.sendMessage(v,ue,Te)))),X[ue])};return new Proxy(Object.create(null),W)}_handleMessage(v){switch(v.type){case 1:return this._handleReplyMessage(v);case 0:return this._handleRequestMessage(v);case 2:return this._handleSubscribeEventMessage(v);case 3:return this._handleEventMessage(v);case 4:return this._handleUnsubscribeEventMessage(v)}}_handleReplyMessage(v){if(!this._pendingReplies[v.seq]){console.warn("Got reply to unknown seq");return}const T=this._pendingReplies[v.seq];if(delete this._pendingReplies[v.seq],v.err){let W=v.err;v.err.$isError&&(W=new Error,W.name=v.err.name,W.message=v.err.message,W.stack=v.err.stack),T.reject(W);return}T.resolve(v.res)}_handleRequestMessage(v){const T=v.req;this._handler.handleMessage(v.channel,v.method,v.args).then(X=>{this._send(new v0e(this._workerId,T,X,void 0))},X=>{X.detail instanceof Error&&(X.detail=Zbe(X.detail)),this._send(new v0e(this._workerId,T,void 0,Zbe(X)))})}_handleSubscribeEventMessage(v){const T=v.req,W=this._handler.handleEvent(v.channel,v.eventName,v.arg)(X=>{this._send(new j5e(this._workerId,T,X))});this._pendingEvents.set(T,W)}_handleEventMessage(v){if(!this._pendingEmitters.has(v.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(v.req).fire(v.event)}_handleUnsubscribeEventMessage(v){if(!this._pendingEvents.has(v.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(v.req).dispose(),this._pendingEvents.delete(v.req)}_send(v){const T=[];if(v.type===0)for(let W=0;W<v.args.length;W++)v.args[W]instanceof ArrayBuffer&&T.push(v.args[W]);else v.type===1&&v.res instanceof ArrayBuffer&&T.push(v.res);this._handler.sendMessage(v,T)}}function y0e(g){return g[0]==="o"&&g[1]==="n"&&a0e(g.charCodeAt(2))}function b0e(g){return/^onDynamic/.test(g)&&a0e(g.charCodeAt(9))}class q5e{constructor(v,T){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=T,this._requestHandler=null,this._protocol=new H5e({sendMessage:(W,X)=>{v(W,X)},handleMessage:(W,X,ue)=>this._handleMessage(W,X,ue),handleEvent:(W,X,ue)=>this._handleEvent(W,X,ue)})}onmessage(v){this._protocol.handleMessage(v)}_handleMessage(v,T,W){if(v===nne&&T===B5e)return this.initialize(W[0],W[1],W[2]);const X=v===nne?this._requestHandler:this._localChannels.get(v);if(!X)return Promise.reject(new Error("Missing channel ".concat(v," on worker thread")));if(typeof X[T]!="function")return Promise.reject(new Error("Missing method ".concat(T," on worker thread channel ").concat(v)));try{return Promise.resolve(X[T].apply(X,W))}catch(ue){return Promise.reject(ue)}}_handleEvent(v,T,W){const X=v===nne?this._requestHandler:this._localChannels.get(v);if(!X)throw new Error("Missing channel ".concat(v," on worker thread"));if(b0e(T)){const ue=X[T].call(X,W);if(typeof ue!="function")throw new Error("Missing dynamic event ".concat(T," on request handler."));return ue}if(y0e(T)){const ue=X[T];if(typeof ue!="function")throw new Error("Missing event ".concat(T," on request handler."));return ue}throw new Error("Malformed event name ".concat(T))}getChannel(v){if(!this._remoteChannels.has(v)){const T=this._protocol.createProxyToRemoteChannel(v);this._remoteChannels.set(v,T)}return this._remoteChannels.get(v)}async initialize(v,T,W){if(this._protocol.setWorkerId(v),this._requestHandlerFactory){this._requestHandler=this._requestHandlerFactory(this);return}T&&(typeof T.baseUrl<"u"&&delete T.baseUrl,typeof T.paths<"u"&&typeof T.paths.vs<"u"&&delete T.paths.vs,typeof T.trustedTypesPolicy<"u"&&delete T.trustedTypesPolicy,T.catchError=!0,globalThis.require.config(T));{const X=h0e.asBrowserUri("".concat(W,".js")).toString(!0);return import("".concat(X)).then(ue=>{if(this._requestHandler=ue.create(this),!this._requestHandler)throw new Error("No RequestHandler!")})}}}class kx{constructor(v,T,W,X){this.originalStart=v,this.originalLength=T,this.modifiedStart=W,this.modifiedLength=X}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function E0e(g,v){return(v<<5)-v+g|0}function J5e(g,v){v=E0e(149417,v);for(let T=0,W=g.length;T<W;T++)v=E0e(g.charCodeAt(T),v);return v}function rne(g,v,T=32){const W=T-v,X=~((1<<W)-1);return(g<<v|(X&g)>>>W)>>>0}function S0e(g,v=0,T=g.byteLength,W=0){for(let X=0;X<T;X++)g[v+X]=W}function K5e(g,v,T="0"){for(;g.length<v;)g=T+g;return g}function b6(g,v=32){return g instanceof ArrayBuffer?Array.from(new Uint8Array(g)).map(T=>T.toString(16).padStart(2,"0")).join(""):K5e((g>>>0).toString(16),v/4)}const oG=class oG{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(v){const T=v.length;if(T===0)return;const W=this._buff;let X=this._buffLen,ue=this._leftoverHighSurrogate,Te,Be;for(ue!==0?(Te=ue,Be=-1,ue=0):(Te=v.charCodeAt(0),Be=0);;){let at=Te;if(BB(Te))if(Be+1<T){const Le=v.charCodeAt(Be+1);Yte(Le)?(Be++,at=s0e(Te,Le)):at=65533}else{ue=Te;break}else Yte(Te)&&(at=65533);if(X=this._push(W,X,at),Be++,Be<T)Te=v.charCodeAt(Be);else break}this._buffLen=X,this._leftoverHighSurrogate=ue}_push(v,T,W){return W<128?v[T++]=W:W<2048?(v[T++]=192|(W&1984)>>>6,v[T++]=128|(W&63)>>>0):W<65536?(v[T++]=224|(W&61440)>>>12,v[T++]=128|(W&4032)>>>6,v[T++]=128|(W&63)>>>0):(v[T++]=240|(W&1835008)>>>18,v[T++]=128|(W&258048)>>>12,v[T++]=128|(W&4032)>>>6,v[T++]=128|(W&63)>>>0),T>=64&&(this._step(),T-=64,this._totalLen+=64,v[0]=v[64],v[1]=v[65],v[2]=v[66]),T}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),b6(this._h0)+b6(this._h1)+b6(this._h2)+b6(this._h3)+b6(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,S0e(this._buff,this._buffLen),this._buffLen>56&&(this._step(),S0e(this._buff));const v=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(v/4294967296),!1),this._buffDV.setUint32(60,v%4294967296,!1),this._step()}_step(){const v=oG._bigBlock32,T=this._buffDV;for(let jt=0;jt<64;jt+=4)v.setUint32(jt,T.getUint32(jt,!1),!1);for(let jt=64;jt<320;jt+=4)v.setUint32(jt,rne(v.getUint32(jt-12,!1)^v.getUint32(jt-32,!1)^v.getUint32(jt-56,!1)^v.getUint32(jt-64,!1),1),!1);let W=this._h0,X=this._h1,ue=this._h2,Te=this._h3,Be=this._h4,at,Le,He;for(let jt=0;jt<80;jt++)jt<20?(at=X&ue|~X&Te,Le=1518500249):jt<40?(at=X^ue^Te,Le=1859775393):jt<60?(at=X&ue|X&Te|ue&Te,Le=2400959708):(at=X^ue^Te,Le=3395469782),He=rne(W,5)+at+Be+Le+v.getUint32(jt*4,!1)&4294967295,Be=Te,Te=ue,ue=rne(X,30),X=W,W=He;this._h0=this._h0+W&4294967295,this._h1=this._h1+X&4294967295,this._h2=this._h2+ue&4294967295,this._h3=this._h3+Te&4294967295,this._h4=this._h4+Be&4294967295}};oG._bigBlock32=new DataView(new ArrayBuffer(320));let T0e=oG;class A0e{constructor(v){this.source=v}getElements(){const v=this.source,T=new Int32Array(v.length);for(let W=0,X=v.length;W<X;W++)T[W]=v.charCodeAt(W);return T}}function X5e(g,v,T){return new wx(new A0e(g),new A0e(v)).ComputeDiff(T).changes}class TM{static Assert(v,T){if(!v)throw new Error(T)}}class AM{static Copy(v,T,W,X,ue){for(let Te=0;Te<ue;Te++)W[X+Te]=v[T+Te]}static Copy2(v,T,W,X,ue){for(let Te=0;Te<ue;Te++)W[X+Te]=v[T+Te]}}class I0e{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 kx(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(v,T){this.m_originalStart=Math.min(this.m_originalStart,v),this.m_modifiedStart=Math.min(this.m_modifiedStart,T),this.m_originalCount++}AddModifiedElement(v,T){this.m_originalStart=Math.min(this.m_originalStart,v),this.m_modifiedStart=Math.min(this.m_modifiedStart,T),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 wx{constructor(v,T,W=null){this.ContinueProcessingPredicate=W,this._originalSequence=v,this._modifiedSequence=T;const[X,ue,Te]=wx._getElements(v),[Be,at,Le]=wx._getElements(T);this._hasStrings=Te&&Le,this._originalStringElements=X,this._originalElementsOrHash=ue,this._modifiedStringElements=Be,this._modifiedElementsOrHash=at,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(v){return v.length>0&&typeof v[0]=="string"}static _getElements(v){const T=v.getElements();if(wx._isStringArray(T)){const W=new Int32Array(T.length);for(let X=0,ue=T.length;X<ue;X++)W[X]=J5e(T[X],0);return[T,W,!0]}return T instanceof Int32Array?[[],T,!1]:[[],new Int32Array(T),!1]}ElementsAreEqual(v,T){return this._originalElementsOrHash[v]!==this._modifiedElementsOrHash[T]?!1:this._hasStrings?this._originalStringElements[v]===this._modifiedStringElements[T]:!0}ElementsAreStrictEqual(v,T){if(!this.ElementsAreEqual(v,T))return!1;const W=wx._getStrictElement(this._originalSequence,v),X=wx._getStrictElement(this._modifiedSequence,T);return W===X}static _getStrictElement(v,T){return typeof v.getStrictElement=="function"?v.getStrictElement(T):null}OriginalElementsAreEqual(v,T){return this._originalElementsOrHash[v]!==this._originalElementsOrHash[T]?!1:this._hasStrings?this._originalStringElements[v]===this._originalStringElements[T]:!0}ModifiedElementsAreEqual(v,T){return this._modifiedElementsOrHash[v]!==this._modifiedElementsOrHash[T]?!1:this._hasStrings?this._modifiedStringElements[v]===this._modifiedStringElements[T]:!0}ComputeDiff(v){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,v)}_ComputeDiff(v,T,W,X,ue){const Te=[!1];let Be=this.ComputeDiffRecursive(v,T,W,X,Te);return ue&&(Be=this.PrettifyChanges(Be)),{quitEarly:Te[0],changes:Be}}ComputeDiffRecursive(v,T,W,X,ue){for(ue[0]=!1;v<=T&&W<=X&&this.ElementsAreEqual(v,W);)v++,W++;for(;T>=v&&X>=W&&this.ElementsAreEqual(T,X);)T--,X--;if(v>T||W>X){let jt;return W<=X?(TM.Assert(v===T+1,"originalStart should only be one more than originalEnd"),jt=[new kx(v,0,W,X-W+1)]):v<=T?(TM.Assert(W===X+1,"modifiedStart should only be one more than modifiedEnd"),jt=[new kx(v,T-v+1,W,0)]):(TM.Assert(v===T+1,"originalStart should only be one more than originalEnd"),TM.Assert(W===X+1,"modifiedStart should only be one more than modifiedEnd"),jt=[]),jt}const Te=[0],Be=[0],at=this.ComputeRecursionPoint(v,T,W,X,Te,Be,ue),Le=Te[0],He=Be[0];if(at!==null)return at;if(!ue[0]){const jt=this.ComputeDiffRecursive(v,Le,W,He,ue);let qt=[];return ue[0]?qt=[new kx(Le+1,T-(Le+1)+1,He+1,X-(He+1)+1)]:qt=this.ComputeDiffRecursive(Le+1,T,He+1,X,ue),this.ConcatenateChanges(jt,qt)}return[new kx(v,T-v+1,W,X-W+1)]}WALKTRACE(v,T,W,X,ue,Te,Be,at,Le,He,jt,qt,fn,Mr,hi,oo,Yn,Tn){let ko=null,Br=null,zi=new I0e,Go=T,Nr=W,Na=fn[0]-oo[0]-X,Ac=-1073741824,lu=this.m_forwardHistory.length-1;do{const rr=Na+v;rr===Go||rr<Nr&&Le[rr-1]<Le[rr+1]?(jt=Le[rr+1],Mr=jt-Na-X,jt<Ac&&zi.MarkNextChange(),Ac=jt,zi.AddModifiedElement(jt+1,Mr),Na=rr+1-v):(jt=Le[rr-1]+1,Mr=jt-Na-X,jt<Ac&&zi.MarkNextChange(),Ac=jt-1,zi.AddOriginalElement(jt,Mr+1),Na=rr-1-v),lu>=0&&(Le=this.m_forwardHistory[lu],v=Le[0],Go=1,Nr=Le.length-1)}while(--lu>=-1);if(ko=zi.getReverseChanges(),Tn[0]){let rr=fn[0]+1,Ks=oo[0]+1;if(ko!==null&&ko.length>0){const zo=ko[ko.length-1];rr=Math.max(rr,zo.getOriginalEnd()),Ks=Math.max(Ks,zo.getModifiedEnd())}Br=[new kx(rr,qt-rr+1,Ks,hi-Ks+1)]}else{zi=new I0e,Go=Te,Nr=Be,Na=fn[0]-oo[0]-at,Ac=1073741824,lu=Yn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const rr=Na+ue;rr===Go||rr<Nr&&He[rr-1]>=He[rr+1]?(jt=He[rr+1]-1,Mr=jt-Na-at,jt>Ac&&zi.MarkNextChange(),Ac=jt+1,zi.AddOriginalElement(jt+1,Mr+1),Na=rr+1-ue):(jt=He[rr-1],Mr=jt-Na-at,jt>Ac&&zi.MarkNextChange(),Ac=jt,zi.AddModifiedElement(jt+1,Mr+1),Na=rr-1-ue),lu>=0&&(He=this.m_reverseHistory[lu],ue=He[0],Go=1,Nr=He.length-1)}while(--lu>=-1);Br=zi.getChanges()}return this.ConcatenateChanges(ko,Br)}ComputeRecursionPoint(v,T,W,X,ue,Te,Be){let at=0,Le=0,He=0,jt=0,qt=0,fn=0;v--,W--,ue[0]=0,Te[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const Mr=T-v+(X-W),hi=Mr+1,oo=new Int32Array(hi),Yn=new Int32Array(hi),Tn=X-W,ko=T-v,Br=v-W,zi=T-X,Nr=(ko-Tn)%2===0;oo[Tn]=v,Yn[ko]=T,Be[0]=!1;for(let Na=1;Na<=Mr/2+1;Na++){let Ac=0,lu=0;He=this.ClipDiagonalBound(Tn-Na,Na,Tn,hi),jt=this.ClipDiagonalBound(Tn+Na,Na,Tn,hi);for(let Ks=He;Ks<=jt;Ks+=2){Ks===He||Ks<jt&&oo[Ks-1]<oo[Ks+1]?at=oo[Ks+1]:at=oo[Ks-1]+1,Le=at-(Ks-Tn)-Br;const zo=at;for(;at<T&&Le<X&&this.ElementsAreEqual(at+1,Le+1);)at++,Le++;if(oo[Ks]=at,at+Le>Ac+lu&&(Ac=at,lu=Le),!Nr&&Math.abs(Ks-ko)<=Na-1&&at>=Yn[Ks])return ue[0]=at,Te[0]=Le,zo<=Yn[Ks]&&Na<=1448?this.WALKTRACE(Tn,He,jt,Br,ko,qt,fn,zi,oo,Yn,at,T,ue,Le,X,Te,Nr,Be):null}const rr=(Ac-v+(lu-W)-Na)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Ac,rr))return Be[0]=!0,ue[0]=Ac,Te[0]=lu,rr>0&&Na<=1448?this.WALKTRACE(Tn,He,jt,Br,ko,qt,fn,zi,oo,Yn,at,T,ue,Le,X,Te,Nr,Be):(v++,W++,[new kx(v,T-v+1,W,X-W+1)]);qt=this.ClipDiagonalBound(ko-Na,Na,ko,hi),fn=this.ClipDiagonalBound(ko+Na,Na,ko,hi);for(let Ks=qt;Ks<=fn;Ks+=2){Ks===qt||Ks<fn&&Yn[Ks-1]>=Yn[Ks+1]?at=Yn[Ks+1]-1:at=Yn[Ks-1],Le=at-(Ks-ko)-zi;const zo=at;for(;at>v&&Le>W&&this.ElementsAreEqual(at,Le);)at--,Le--;if(Yn[Ks]=at,Nr&&Math.abs(Ks-Tn)<=Na&&at<=oo[Ks])return ue[0]=at,Te[0]=Le,zo>=oo[Ks]&&Na<=1448?this.WALKTRACE(Tn,He,jt,Br,ko,qt,fn,zi,oo,Yn,at,T,ue,Le,X,Te,Nr,Be):null}if(Na<=1447){let Ks=new Int32Array(jt-He+2);Ks[0]=Tn-He+1,AM.Copy2(oo,He,Ks,1,jt-He+1),this.m_forwardHistory.push(Ks),Ks=new Int32Array(fn-qt+2),Ks[0]=ko-qt+1,AM.Copy2(Yn,qt,Ks,1,fn-qt+1),this.m_reverseHistory.push(Ks)}}return this.WALKTRACE(Tn,He,jt,Br,ko,qt,fn,zi,oo,Yn,at,T,ue,Le,X,Te,Nr,Be)}PrettifyChanges(v){for(let T=0;T<v.length;T++){const W=v[T],X=T<v.length-1?v[T+1].originalStart:this._originalElementsOrHash.length,ue=T<v.length-1?v[T+1].modifiedStart:this._modifiedElementsOrHash.length,Te=W.originalLength>0,Be=W.modifiedLength>0;for(;W.originalStart+W.originalLength<X&&W.modifiedStart+W.modifiedLength<ue&&(!Te||this.OriginalElementsAreEqual(W.originalStart,W.originalStart+W.originalLength))&&(!Be||this.ModifiedElementsAreEqual(W.modifiedStart,W.modifiedStart+W.modifiedLength));){const Le=this.ElementsAreStrictEqual(W.originalStart,W.modifiedStart);if(this.ElementsAreStrictEqual(W.originalStart+W.originalLength,W.modifiedStart+W.modifiedLength)&&!Le)break;W.originalStart++,W.modifiedStart++}const at=[null];if(T<v.length-1&&this.ChangesOverlap(v[T],v[T+1],at)){v[T]=at[0],v.splice(T+1,1),T--;continue}}for(let T=v.length-1;T>=0;T--){const W=v[T];let X=0,ue=0;if(T>0){const jt=v[T-1];X=jt.originalStart+jt.originalLength,ue=jt.modifiedStart+jt.modifiedLength}const Te=W.originalLength>0,Be=W.modifiedLength>0;let at=0,Le=this._boundaryScore(W.originalStart,W.originalLength,W.modifiedStart,W.modifiedLength);for(let jt=1;;jt++){const qt=W.originalStart-jt,fn=W.modifiedStart-jt;if(qt<X||fn<ue||Te&&!this.OriginalElementsAreEqual(qt,qt+W.originalLength)||Be&&!this.ModifiedElementsAreEqual(fn,fn+W.modifiedLength))break;const hi=(qt===X&&fn===ue?5:0)+this._boundaryScore(qt,W.originalLength,fn,W.modifiedLength);hi>Le&&(Le=hi,at=jt)}W.originalStart-=at,W.modifiedStart-=at;const He=[null];if(T>0&&this.ChangesOverlap(v[T-1],v[T],He)){v[T-1]=He[0],v.splice(T,1),T++;continue}}if(this._hasStrings)for(let T=1,W=v.length;T<W;T++){const X=v[T-1],ue=v[T],Te=ue.originalStart-X.originalStart-X.originalLength,Be=X.originalStart,at=ue.originalStart+ue.originalLength,Le=at-Be,He=X.modifiedStart,jt=ue.modifiedStart+ue.modifiedLength,qt=jt-He;if(Te<5&&Le<20&&qt<20){const fn=this._findBetterContiguousSequence(Be,Le,He,qt,Te);if(fn){const[Mr,hi]=fn;(Mr!==X.originalStart+X.originalLength||hi!==X.modifiedStart+X.modifiedLength)&&(X.originalLength=Mr-X.originalStart,X.modifiedLength=hi-X.modifiedStart,ue.originalStart=Mr+Te,ue.modifiedStart=hi+Te,ue.originalLength=at-ue.originalStart,ue.modifiedLength=jt-ue.modifiedStart)}}}return v}_findBetterContiguousSequence(v,T,W,X,ue){if(T<ue||X<ue)return null;const Te=v+T-ue+1,Be=W+X-ue+1;let at=0,Le=0,He=0;for(let jt=v;jt<Te;jt++)for(let qt=W;qt<Be;qt++){const fn=this._contiguousSequenceScore(jt,qt,ue);fn>0&&fn>at&&(at=fn,Le=jt,He=qt)}return at>0?[Le,He]:null}_contiguousSequenceScore(v,T,W){let X=0;for(let ue=0;ue<W;ue++){if(!this.ElementsAreEqual(v+ue,T+ue))return 0;X+=this._originalStringElements[v+ue].length}return X}_OriginalIsBoundary(v){return v<=0||v>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[v])}_OriginalRegionIsBoundary(v,T){if(this._OriginalIsBoundary(v)||this._OriginalIsBoundary(v-1))return!0;if(T>0){const W=v+T;if(this._OriginalIsBoundary(W-1)||this._OriginalIsBoundary(W))return!0}return!1}_ModifiedIsBoundary(v){return v<=0||v>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[v])}_ModifiedRegionIsBoundary(v,T){if(this._ModifiedIsBoundary(v)||this._ModifiedIsBoundary(v-1))return!0;if(T>0){const W=v+T;if(this._ModifiedIsBoundary(W-1)||this._ModifiedIsBoundary(W))return!0}return!1}_boundaryScore(v,T,W,X){const ue=this._OriginalRegionIsBoundary(v,T)?1:0,Te=this._ModifiedRegionIsBoundary(W,X)?1:0;return ue+Te}ConcatenateChanges(v,T){const W=[];if(v.length===0||T.length===0)return T.length>0?T:v;if(this.ChangesOverlap(v[v.length-1],T[0],W)){const X=new Array(v.length+T.length-1);return AM.Copy(v,0,X,0,v.length-1),X[v.length-1]=W[0],AM.Copy(T,1,X,v.length,T.length-1),X}else{const X=new Array(v.length+T.length);return AM.Copy(v,0,X,0,v.length),AM.Copy(T,0,X,v.length,T.length),X}}ChangesOverlap(v,T,W){if(TM.Assert(v.originalStart<=T.originalStart,"Left change is not less than or equal to right change"),TM.Assert(v.modifiedStart<=T.modifiedStart,"Left change is not less than or equal to right change"),v.originalStart+v.originalLength>=T.originalStart||v.modifiedStart+v.modifiedLength>=T.modifiedStart){const X=v.originalStart;let ue=v.originalLength;const Te=v.modifiedStart;let Be=v.modifiedLength;return v.originalStart+v.originalLength>=T.originalStart&&(ue=T.originalStart+T.originalLength-v.originalStart),v.modifiedStart+v.modifiedLength>=T.modifiedStart&&(Be=T.modifiedStart+T.modifiedLength-v.modifiedStart),W[0]=new kx(X,ue,Te,Be),!0}else return W[0]=null,!1}ClipDiagonalBound(v,T,W,X){if(v>=0&&v<X)return v;const ue=W,Te=X-W-1,Be=T%2===0;if(v<0){const at=ue%2===0;return Be===at?0:1}else{const at=Te%2===0;return Be===at?X-1:X-2}}}class rd{constructor(v,T){this.lineNumber=v,this.column=T}with(v=this.lineNumber,T=this.column){return v===this.lineNumber&&T===this.column?this:new rd(v,T)}delta(v=0,T=0){return this.with(this.lineNumber+v,this.column+T)}equals(v){return rd.equals(this,v)}static equals(v,T){return!v&&!T?!0:!!v&&!!T&&v.lineNumber===T.lineNumber&&v.column===T.column}isBefore(v){return rd.isBefore(this,v)}static isBefore(v,T){return v.lineNumber<T.lineNumber?!0:T.lineNumber<v.lineNumber?!1:v.column<T.column}isBeforeOrEqual(v){return rd.isBeforeOrEqual(this,v)}static isBeforeOrEqual(v,T){return v.lineNumber<T.lineNumber?!0:T.lineNumber<v.lineNumber?!1:v.column<=T.column}static compare(v,T){const W=v.lineNumber|0,X=T.lineNumber|0;if(W===X){const ue=v.column|0,Te=T.column|0;return ue-Te}return W-X}clone(){return new rd(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(v){return new rd(v.lineNumber,v.column)}static isIPosition(v){return v&&typeof v.lineNumber=="number"&&typeof v.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class Ss{constructor(v,T,W,X){v>W||v===W&&T>X?(this.startLineNumber=W,this.startColumn=X,this.endLineNumber=v,this.endColumn=T):(this.startLineNumber=v,this.startColumn=T,this.endLineNumber=W,this.endColumn=X)}isEmpty(){return Ss.isEmpty(this)}static isEmpty(v){return v.startLineNumber===v.endLineNumber&&v.startColumn===v.endColumn}containsPosition(v){return Ss.containsPosition(this,v)}static containsPosition(v,T){return!(T.lineNumber<v.startLineNumber||T.lineNumber>v.endLineNumber||T.lineNumber===v.startLineNumber&&T.column<v.startColumn||T.lineNumber===v.endLineNumber&&T.column>v.endColumn)}static strictContainsPosition(v,T){return!(T.lineNumber<v.startLineNumber||T.lineNumber>v.endLineNumber||T.lineNumber===v.startLineNumber&&T.column<=v.startColumn||T.lineNumber===v.endLineNumber&&T.column>=v.endColumn)}containsRange(v){return Ss.containsRange(this,v)}static containsRange(v,T){return!(T.startLineNumber<v.startLineNumber||T.endLineNumber<v.startLineNumber||T.startLineNumber>v.endLineNumber||T.endLineNumber>v.endLineNumber||T.startLineNumber===v.startLineNumber&&T.startColumn<v.startColumn||T.endLineNumber===v.endLineNumber&&T.endColumn>v.endColumn)}strictContainsRange(v){return Ss.strictContainsRange(this,v)}static strictContainsRange(v,T){return!(T.startLineNumber<v.startLineNumber||T.endLineNumber<v.startLineNumber||T.startLineNumber>v.endLineNumber||T.endLineNumber>v.endLineNumber||T.startLineNumber===v.startLineNumber&&T.startColumn<=v.startColumn||T.endLineNumber===v.endLineNumber&&T.endColumn>=v.endColumn)}plusRange(v){return Ss.plusRange(this,v)}static plusRange(v,T){let W,X,ue,Te;return T.startLineNumber<v.startLineNumber?(W=T.startLineNumber,X=T.startColumn):T.startLineNumber===v.startLineNumber?(W=T.startLineNumber,X=Math.min(T.startColumn,v.startColumn)):(W=v.startLineNumber,X=v.startColumn),T.endLineNumber>v.endLineNumber?(ue=T.endLineNumber,Te=T.endColumn):T.endLineNumber===v.endLineNumber?(ue=T.endLineNumber,Te=Math.max(T.endColumn,v.endColumn)):(ue=v.endLineNumber,Te=v.endColumn),new Ss(W,X,ue,Te)}intersectRanges(v){return Ss.intersectRanges(this,v)}static intersectRanges(v,T){let W=v.startLineNumber,X=v.startColumn,ue=v.endLineNumber,Te=v.endColumn;const Be=T.startLineNumber,at=T.startColumn,Le=T.endLineNumber,He=T.endColumn;return W<Be?(W=Be,X=at):W===Be&&(X=Math.max(X,at)),ue>Le?(ue=Le,Te=He):ue===Le&&(Te=Math.min(Te,He)),W>ue||W===ue&&X>Te?null:new Ss(W,X,ue,Te)}equalsRange(v){return Ss.equalsRange(this,v)}static equalsRange(v,T){return!v&&!T?!0:!!v&&!!T&&v.startLineNumber===T.startLineNumber&&v.startColumn===T.startColumn&&v.endLineNumber===T.endLineNumber&&v.endColumn===T.endColumn}getEndPosition(){return Ss.getEndPosition(this)}static getEndPosition(v){return new rd(v.endLineNumber,v.endColumn)}getStartPosition(){return Ss.getStartPosition(this)}static getStartPosition(v){return new rd(v.startLineNumber,v.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(v,T){return new Ss(this.startLineNumber,this.startColumn,v,T)}setStartPosition(v,T){return new Ss(v,T,this.endLineNumber,this.endColumn)}collapseToStart(){return Ss.collapseToStart(this)}static collapseToStart(v){return new Ss(v.startLineNumber,v.startColumn,v.startLineNumber,v.startColumn)}collapseToEnd(){return Ss.collapseToEnd(this)}static collapseToEnd(v){return new Ss(v.endLineNumber,v.endColumn,v.endLineNumber,v.endColumn)}delta(v){return new Ss(this.startLineNumber+v,this.startColumn,this.endLineNumber+v,this.endColumn)}static fromPositions(v,T=v){return new Ss(v.lineNumber,v.column,T.lineNumber,T.column)}static lift(v){return v?new Ss(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):null}static isIRange(v){return v&&typeof v.startLineNumber=="number"&&typeof v.startColumn=="number"&&typeof v.endLineNumber=="number"&&typeof v.endColumn=="number"}static areIntersectingOrTouching(v,T){return!(v.endLineNumber<T.startLineNumber||v.endLineNumber===T.startLineNumber&&v.endColumn<T.startColumn||T.endLineNumber<v.startLineNumber||T.endLineNumber===v.startLineNumber&&T.endColumn<v.startColumn)}static areIntersecting(v,T){return!(v.endLineNumber<T.startLineNumber||v.endLineNumber===T.startLineNumber&&v.endColumn<=T.startColumn||T.endLineNumber<v.startLineNumber||T.endLineNumber===v.startLineNumber&&T.endColumn<=v.startColumn)}static compareRangesUsingStarts(v,T){if(v&&T){const ue=v.startLineNumber|0,Te=T.startLineNumber|0;if(ue===Te){const Be=v.startColumn|0,at=T.startColumn|0;if(Be===at){const Le=v.endLineNumber|0,He=T.endLineNumber|0;if(Le===He){const jt=v.endColumn|0,qt=T.endColumn|0;return jt-qt}return Le-He}return Be-at}return ue-Te}return(v?1:0)-(T?1:0)}static compareRangesUsingEnds(v,T){return v.endLineNumber===T.endLineNumber?v.endColumn===T.endColumn?v.startLineNumber===T.startLineNumber?v.startColumn-T.startColumn:v.startLineNumber-T.startLineNumber:v.endColumn-T.endColumn:v.endLineNumber-T.endLineNumber}static spansMultipleLines(v){return v.endLineNumber>v.startLineNumber}toJSON(){return this}}function x0e(g){return g<0?0:g>255?255:g|0}function IM(g){return g<0?0:g>4294967295?4294967295:g|0}class ine{constructor(v){const T=x0e(v);this._defaultValue=T,this._asciiMap=ine._createAsciiMap(T),this._map=new Map}static _createAsciiMap(v){const T=new Uint8Array(256);return T.fill(v),T}set(v,T){const W=x0e(T);v>=0&&v<256?this._asciiMap[v]=W:this._map.set(v,W)}get(v){return v>=0&&v<256?this._asciiMap[v]:this._map.get(v)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Y5e{constructor(v,T,W){const X=new Uint8Array(v*T);for(let ue=0,Te=v*T;ue<Te;ue++)X[ue]=W;this._data=X,this.rows=v,this.cols=T}get(v,T){return this._data[v*this.cols+T]}set(v,T,W){this._data[v*this.cols+T]=W}}class $5e{constructor(v){let T=0,W=0;for(let ue=0,Te=v.length;ue<Te;ue++){const[Be,at,Le]=v[ue];at>T&&(T=at),Be>W&&(W=Be),Le>W&&(W=Le)}T++,W++;const X=new Y5e(W,T,0);for(let ue=0,Te=v.length;ue<Te;ue++){const[Be,at,Le]=v[ue];X.set(Be,at,Le)}this._states=X,this._maxCharCode=T}nextState(v,T){return T<0||T>=this._maxCharCode?0:this._states.get(v,T)}}let one=null;function Q5e(){return one===null&&(one=new $5e([[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]])),one}let E6=null;function Z5e(){if(E6===null){E6=new ine(0);const g=" <>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let T=0;T<g.length;T++)E6.set(g.charCodeAt(T),1);const v=".,;:";for(let T=0;T<v.length;T++)E6.set(v.charCodeAt(T),2)}return E6}class UB{static _createLink(v,T,W,X,ue){let Te=ue-1;do{const Be=T.charCodeAt(Te);if(v.get(Be)!==2)break;Te--}while(Te>X);if(X>0){const Be=T.charCodeAt(X-1),at=T.charCodeAt(Te);(Be===40&&at===41||Be===91&&at===93||Be===123&&at===125)&&Te--}return{range:{startLineNumber:W,startColumn:X+1,endLineNumber:W,endColumn:Te+2},url:T.substring(X,Te+1)}}static computeLinks(v,T=Q5e()){const W=Z5e(),X=[];for(let ue=1,Te=v.getLineCount();ue<=Te;ue++){const Be=v.getLineContent(ue),at=Be.length;let Le=0,He=0,jt=0,qt=1,fn=!1,Mr=!1,hi=!1,oo=!1;for(;Le<at;){let Yn=!1;const Tn=Be.charCodeAt(Le);if(qt===13){let ko;switch(Tn){case 40:fn=!0,ko=0;break;case 41:ko=fn?0:1;break;case 91:hi=!0,Mr=!0,ko=0;break;case 93:hi=!1,ko=Mr?0:1;break;case 123:oo=!0,ko=0;break;case 125:ko=oo?0:1;break;case 39:case 34:case 96:jt===Tn?ko=1:jt===39||jt===34||jt===96?ko=0:ko=1;break;case 42:ko=jt===42?1:0;break;case 124:ko=jt===124?1:0;break;case 32:ko=hi?0:1;break;default:ko=W.get(Tn)}ko===1&&(X.push(UB._createLink(W,Be,ue,He,Le)),Yn=!0)}else if(qt===12){let ko;Tn===91?(Mr=!0,ko=0):ko=W.get(Tn),ko===1?Yn=!0:qt=13}else qt=T.nextState(qt,Tn),qt===0&&(Yn=!0);Yn&&(qt=1,fn=!1,Mr=!1,oo=!1,He=Le+1,jt=Tn),Le++}qt===13&&X.push(UB._createLink(W,Be,ue,He,at))}return X}}function eze(g){return!g||typeof g.getLineCount!="function"||typeof g.getLineContent!="function"?[]:UB.computeLinks(g)}const aG=class aG{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(v,T,W,X,ue){if(v&&T){const Te=this.doNavigateValueSet(T,ue);if(Te)return{range:v,value:Te}}if(W&&X){const Te=this.doNavigateValueSet(X,ue);if(Te)return{range:W,value:Te}}return null}doNavigateValueSet(v,T){const W=this.numberReplace(v,T);return W!==null?W:this.textReplace(v,T)}numberReplace(v,T){const W=Math.pow(10,v.length-(v.lastIndexOf(".")+1));let X=Number(v);const ue=parseFloat(v);return!isNaN(X)&&!isNaN(ue)&&X===ue?X===0&&!T?null:(X=Math.floor(X*W),X+=T?W:-W,String(X/W)):null}textReplace(v,T){return this.valueSetsReplace(this._defaultValueSet,v,T)}valueSetsReplace(v,T,W){let X=null;for(let ue=0,Te=v.length;X===null&&ue<Te;ue++)X=this.valueSetReplace(v[ue],T,W);return X}valueSetReplace(v,T,W){let X=v.indexOf(T);return X>=0?(X+=W?1:-1,X<0?X=v.length-1:X%=v.length,v[X]):null}};aG.INSTANCE=new aG;let ane=aG;const R0e=Object.freeze(function(g,v){const T=setTimeout(g.bind(v),0);return{dispose(){clearTimeout(T)}}});var HB;(function(g){function v(T){return T===g.None||T===g.Cancelled||T instanceof qB?!0:!T||typeof T!="object"?!1:typeof T.isCancellationRequested=="boolean"&&typeof T.onCancellationRequested=="function"}g.isCancellationToken=v,g.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:FB.None}),g.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:R0e})})(HB||(HB={}));class qB{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?R0e:(this._emitter||(this._emitter=new e0),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class tze{constructor(v){this._token=void 0,this._parentListener=void 0,this._parentListener=v&&v.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new qB),this._token}cancel(){this._token?this._token instanceof qB&&this._token.cancel():this._token=HB.Cancelled}dispose(v=!1){var T;v&&this.cancel(),(T=this._parentListener)==null||T.dispose(),this._token?this._token instanceof qB&&this._token.dispose():this._token=HB.None}}class sne{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(v,T){this._keyCodeToStr[v]=T,this._strToKeyCode[T.toLowerCase()]=v}keyCodeToStr(v){return this._keyCodeToStr[v]}strToKeyCode(v){return this._strToKeyCode[v.toLowerCase()]||0}}const JB=new sne,lne=new sne,cne=new sne,nze=new Array(230),rze=Object.create(null),ize=Object.create(null);(function(){const g="",v=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",g,g],[1,1,"Hyper",0,g,0,g,g,g],[1,2,"Super",0,g,0,g,g,g],[1,3,"Fn",0,g,0,g,g,g],[1,4,"FnLock",0,g,0,g,g,g],[1,5,"Suspend",0,g,0,g,g,g],[1,6,"Resume",0,g,0,g,g,g],[1,7,"Turbo",0,g,0,g,g,g],[1,8,"Sleep",0,g,0,"VK_SLEEP",g,g],[1,9,"WakeUp",0,g,0,g,g,g],[0,10,"KeyA",31,"A",65,"VK_A",g,g],[0,11,"KeyB",32,"B",66,"VK_B",g,g],[0,12,"KeyC",33,"C",67,"VK_C",g,g],[0,13,"KeyD",34,"D",68,"VK_D",g,g],[0,14,"KeyE",35,"E",69,"VK_E",g,g],[0,15,"KeyF",36,"F",70,"VK_F",g,g],[0,16,"KeyG",37,"G",71,"VK_G",g,g],[0,17,"KeyH",38,"H",72,"VK_H",g,g],[0,18,"KeyI",39,"I",73,"VK_I",g,g],[0,19,"KeyJ",40,"J",74,"VK_J",g,g],[0,20,"KeyK",41,"K",75,"VK_K",g,g],[0,21,"KeyL",42,"L",76,"VK_L",g,g],[0,22,"KeyM",43,"M",77,"VK_M",g,g],[0,23,"KeyN",44,"N",78,"VK_N",g,g],[0,24,"KeyO",45,"O",79,"VK_O",g,g],[0,25,"KeyP",46,"P",80,"VK_P",g,g],[0,26,"KeyQ",47,"Q",81,"VK_Q",g,g],[0,27,"KeyR",48,"R",82,"VK_R",g,g],[0,28,"KeyS",49,"S",83,"VK_S",g,g],[0,29,"KeyT",50,"T",84,"VK_T",g,g],[0,30,"KeyU",51,"U",85,"VK_U",g,g],[0,31,"KeyV",52,"V",86,"VK_V",g,g],[0,32,"KeyW",53,"W",87,"VK_W",g,g],[0,33,"KeyX",54,"X",88,"VK_X",g,g],[0,34,"KeyY",55,"Y",89,"VK_Y",g,g],[0,35,"KeyZ",56,"Z",90,"VK_Z",g,g],[0,36,"Digit1",22,"1",49,"VK_1",g,g],[0,37,"Digit2",23,"2",50,"VK_2",g,g],[0,38,"Digit3",24,"3",51,"VK_3",g,g],[0,39,"Digit4",25,"4",52,"VK_4",g,g],[0,40,"Digit5",26,"5",53,"VK_5",g,g],[0,41,"Digit6",27,"6",54,"VK_6",g,g],[0,42,"Digit7",28,"7",55,"VK_7",g,g],[0,43,"Digit8",29,"8",56,"VK_8",g,g],[0,44,"Digit9",30,"9",57,"VK_9",g,g],[0,45,"Digit0",21,"0",48,"VK_0",g,g],[1,46,"Enter",3,"Enter",13,"VK_RETURN",g,g],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",g,g],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",g,g],[1,49,"Tab",2,"Tab",9,"VK_TAB",g,g],[1,50,"Space",10,"Space",32,"VK_SPACE",g,g],[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,g,0,g,g,g],[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",g,g],[1,64,"F1",59,"F1",112,"VK_F1",g,g],[1,65,"F2",60,"F2",113,"VK_F2",g,g],[1,66,"F3",61,"F3",114,"VK_F3",g,g],[1,67,"F4",62,"F4",115,"VK_F4",g,g],[1,68,"F5",63,"F5",116,"VK_F5",g,g],[1,69,"F6",64,"F6",117,"VK_F6",g,g],[1,70,"F7",65,"F7",118,"VK_F7",g,g],[1,71,"F8",66,"F8",119,"VK_F8",g,g],[1,72,"F9",67,"F9",120,"VK_F9",g,g],[1,73,"F10",68,"F10",121,"VK_F10",g,g],[1,74,"F11",69,"F11",122,"VK_F11",g,g],[1,75,"F12",70,"F12",123,"VK_F12",g,g],[1,76,"PrintScreen",0,g,0,g,g,g],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",g,g],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",g,g],[1,79,"Insert",19,"Insert",45,"VK_INSERT",g,g],[1,80,"Home",14,"Home",36,"VK_HOME",g,g],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",g,g],[1,82,"Delete",20,"Delete",46,"VK_DELETE",g,g],[1,83,"End",13,"End",35,"VK_END",g,g],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",g,g],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",g],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",g],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",g],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",g],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",g,g],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",g,g],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",g,g],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",g,g],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",g,g],[1,94,"NumpadEnter",3,g,0,g,g,g],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",g,g],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",g,g],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",g,g],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",g,g],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",g,g],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",g,g],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",g,g],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",g,g],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",g,g],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",g,g],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",g,g],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",g,g],[1,107,"ContextMenu",58,"ContextMenu",93,g,g,g],[1,108,"Power",0,g,0,g,g,g],[1,109,"NumpadEqual",0,g,0,g,g,g],[1,110,"F13",71,"F13",124,"VK_F13",g,g],[1,111,"F14",72,"F14",125,"VK_F14",g,g],[1,112,"F15",73,"F15",126,"VK_F15",g,g],[1,113,"F16",74,"F16",127,"VK_F16",g,g],[1,114,"F17",75,"F17",128,"VK_F17",g,g],[1,115,"F18",76,"F18",129,"VK_F18",g,g],[1,116,"F19",77,"F19",130,"VK_F19",g,g],[1,117,"F20",78,"F20",131,"VK_F20",g,g],[1,118,"F21",79,"F21",132,"VK_F21",g,g],[1,119,"F22",80,"F22",133,"VK_F22",g,g],[1,120,"F23",81,"F23",134,"VK_F23",g,g],[1,121,"F24",82,"F24",135,"VK_F24",g,g],[1,122,"Open",0,g,0,g,g,g],[1,123,"Help",0,g,0,g,g,g],[1,124,"Select",0,g,0,g,g,g],[1,125,"Again",0,g,0,g,g,g],[1,126,"Undo",0,g,0,g,g,g],[1,127,"Cut",0,g,0,g,g,g],[1,128,"Copy",0,g,0,g,g,g],[1,129,"Paste",0,g,0,g,g,g],[1,130,"Find",0,g,0,g,g,g],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",g,g],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",g,g],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",g,g],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",g,g],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",g,g],[1,136,"KanaMode",0,g,0,g,g,g],[0,137,"IntlYen",0,g,0,g,g,g],[1,138,"Convert",0,g,0,g,g,g],[1,139,"NonConvert",0,g,0,g,g,g],[1,140,"Lang1",0,g,0,g,g,g],[1,141,"Lang2",0,g,0,g,g,g],[1,142,"Lang3",0,g,0,g,g,g],[1,143,"Lang4",0,g,0,g,g,g],[1,144,"Lang5",0,g,0,g,g,g],[1,145,"Abort",0,g,0,g,g,g],[1,146,"Props",0,g,0,g,g,g],[1,147,"NumpadParenLeft",0,g,0,g,g,g],[1,148,"NumpadParenRight",0,g,0,g,g,g],[1,149,"NumpadBackspace",0,g,0,g,g,g],[1,150,"NumpadMemoryStore",0,g,0,g,g,g],[1,151,"NumpadMemoryRecall",0,g,0,g,g,g],[1,152,"NumpadMemoryClear",0,g,0,g,g,g],[1,153,"NumpadMemoryAdd",0,g,0,g,g,g],[1,154,"NumpadMemorySubtract",0,g,0,g,g,g],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",g,g],[1,156,"NumpadClearEntry",0,g,0,g,g,g],[1,0,g,5,"Ctrl",17,"VK_CONTROL",g,g],[1,0,g,4,"Shift",16,"VK_SHIFT",g,g],[1,0,g,6,"Alt",18,"VK_MENU",g,g],[1,0,g,57,"Meta",91,"VK_COMMAND",g,g],[1,157,"ControlLeft",5,g,0,"VK_LCONTROL",g,g],[1,158,"ShiftLeft",4,g,0,"VK_LSHIFT",g,g],[1,159,"AltLeft",6,g,0,"VK_LMENU",g,g],[1,160,"MetaLeft",57,g,0,"VK_LWIN",g,g],[1,161,"ControlRight",5,g,0,"VK_RCONTROL",g,g],[1,162,"ShiftRight",4,g,0,"VK_RSHIFT",g,g],[1,163,"AltRight",6,g,0,"VK_RMENU",g,g],[1,164,"MetaRight",57,g,0,"VK_RWIN",g,g],[1,165,"BrightnessUp",0,g,0,g,g,g],[1,166,"BrightnessDown",0,g,0,g,g,g],[1,167,"MediaPlay",0,g,0,g,g,g],[1,168,"MediaRecord",0,g,0,g,g,g],[1,169,"MediaFastForward",0,g,0,g,g,g],[1,170,"MediaRewind",0,g,0,g,g,g],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",g,g],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",g,g],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",g,g],[1,174,"Eject",0,g,0,g,g,g],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",g,g],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",g,g],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",g,g],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",g,g],[1,179,"LaunchApp1",0,g,0,"VK_MEDIA_LAUNCH_APP1",g,g],[1,180,"SelectTask",0,g,0,g,g,g],[1,181,"LaunchScreenSaver",0,g,0,g,g,g],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",g,g],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",g,g],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",g,g],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",g,g],[1,186,"BrowserStop",0,g,0,"VK_BROWSER_STOP",g,g],[1,187,"BrowserRefresh",0,g,0,"VK_BROWSER_REFRESH",g,g],[1,188,"BrowserFavorites",0,g,0,"VK_BROWSER_FAVORITES",g,g],[1,189,"ZoomToggle",0,g,0,g,g,g],[1,190,"MailReply",0,g,0,g,g,g],[1,191,"MailForward",0,g,0,g,g,g],[1,192,"MailSend",0,g,0,g,g,g],[1,0,g,114,"KeyInComposition",229,g,g,g],[1,0,g,116,"ABNT_C2",194,"VK_ABNT_C2",g,g],[1,0,g,96,"OEM_8",223,"VK_OEM_8",g,g],[1,0,g,0,g,0,"VK_KANA",g,g],[1,0,g,0,g,0,"VK_HANGUL",g,g],[1,0,g,0,g,0,"VK_JUNJA",g,g],[1,0,g,0,g,0,"VK_FINAL",g,g],[1,0,g,0,g,0,"VK_HANJA",g,g],[1,0,g,0,g,0,"VK_KANJI",g,g],[1,0,g,0,g,0,"VK_CONVERT",g,g],[1,0,g,0,g,0,"VK_NONCONVERT",g,g],[1,0,g,0,g,0,"VK_ACCEPT",g,g],[1,0,g,0,g,0,"VK_MODECHANGE",g,g],[1,0,g,0,g,0,"VK_SELECT",g,g],[1,0,g,0,g,0,"VK_PRINT",g,g],[1,0,g,0,g,0,"VK_EXECUTE",g,g],[1,0,g,0,g,0,"VK_SNAPSHOT",g,g],[1,0,g,0,g,0,"VK_HELP",g,g],[1,0,g,0,g,0,"VK_APPS",g,g],[1,0,g,0,g,0,"VK_PROCESSKEY",g,g],[1,0,g,0,g,0,"VK_PACKET",g,g],[1,0,g,0,g,0,"VK_DBE_SBCSCHAR",g,g],[1,0,g,0,g,0,"VK_DBE_DBCSCHAR",g,g],[1,0,g,0,g,0,"VK_ATTN",g,g],[1,0,g,0,g,0,"VK_CRSEL",g,g],[1,0,g,0,g,0,"VK_EXSEL",g,g],[1,0,g,0,g,0,"VK_EREOF",g,g],[1,0,g,0,g,0,"VK_PLAY",g,g],[1,0,g,0,g,0,"VK_ZOOM",g,g],[1,0,g,0,g,0,"VK_NONAME",g,g],[1,0,g,0,g,0,"VK_PA1",g,g],[1,0,g,0,g,0,"VK_OEM_CLEAR",g,g]],T=[],W=[];for(const X of v){const[ue,Te,Be,at,Le,He,jt,qt,fn]=X;if(W[Te]||(W[Te]=!0,rze[Be]=Te,ize[Be.toLowerCase()]=Te),!T[at]){if(T[at]=!0,!Le)throw new Error("String representation missing for key code ".concat(at," around scan code ").concat(Be));JB.define(at,Le),lne.define(at,qt||Le),cne.define(at,fn||qt||Le)}He&&(nze[He]=at)}})();var D0e;(function(g){function v(Be){return JB.keyCodeToStr(Be)}g.toString=v;function T(Be){return JB.strToKeyCode(Be)}g.fromString=T;function W(Be){return lne.keyCodeToStr(Be)}g.toUserSettingsUS=W;function X(Be){return cne.keyCodeToStr(Be)}g.toUserSettingsGeneral=X;function ue(Be){return lne.strToKeyCode(Be)||cne.strToKeyCode(Be)}g.fromUserSettings=ue;function Te(Be){if(Be>=98&&Be<=113)return null;switch(Be){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return JB.keyCodeToStr(Be)}g.toElectronAccelerator=Te})(D0e||(D0e={}));function oze(g,v){const T=(v&65535)<<16>>>0;return(g|T)>>>0}class Iy extends Ss{constructor(v,T,W,X){super(v,T,W,X),this.selectionStartLineNumber=v,this.selectionStartColumn=T,this.positionLineNumber=W,this.positionColumn=X}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(v){return Iy.selectionsEqual(this,v)}static selectionsEqual(v,T){return v.selectionStartLineNumber===T.selectionStartLineNumber&&v.selectionStartColumn===T.selectionStartColumn&&v.positionLineNumber===T.positionLineNumber&&v.positionColumn===T.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(v,T){return this.getDirection()===0?new Iy(this.startLineNumber,this.startColumn,v,T):new Iy(v,T,this.startLineNumber,this.startColumn)}getPosition(){return new rd(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new rd(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(v,T){return this.getDirection()===0?new Iy(v,T,this.endLineNumber,this.endColumn):new Iy(this.endLineNumber,this.endColumn,v,T)}static fromPositions(v,T=v){return new Iy(v.lineNumber,v.column,T.lineNumber,T.column)}static fromRange(v,T){return T===0?new Iy(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):new Iy(v.endLineNumber,v.endColumn,v.startLineNumber,v.startColumn)}static liftSelection(v){return new Iy(v.selectionStartLineNumber,v.selectionStartColumn,v.positionLineNumber,v.positionColumn)}static selectionsArrEqual(v,T){if(v&&!T||!v&&T)return!1;if(!v&&!T)return!0;if(v.length!==T.length)return!1;for(let W=0,X=v.length;W<X;W++)if(!this.selectionsEqual(v[W],T[W]))return!1;return!0}static isISelection(v){return v&&typeof v.selectionStartLineNumber=="number"&&typeof v.selectionStartColumn=="number"&&typeof v.positionLineNumber=="number"&&typeof v.positionColumn=="number"}static createWithDirection(v,T,W,X,ue){return ue===0?new Iy(v,T,W,X):new Iy(W,X,v,T)}}function aze(g){return typeof g=="string"}const C0e=Object.create(null);function Re(g,v){if(aze(v)){const T=C0e[v];if(T===void 0)throw new Error("".concat(g," references an unknown codicon: ").concat(v));v=T}return C0e[g]=v,{id:g}}const sze={add:Re("add",6e4),plus:Re("plus",6e4),gistNew:Re("gist-new",6e4),repoCreate:Re("repo-create",6e4),lightbulb:Re("lightbulb",60001),lightBulb:Re("light-bulb",60001),repo:Re("repo",60002),repoDelete:Re("repo-delete",60002),gistFork:Re("gist-fork",60003),repoForked:Re("repo-forked",60003),gitPullRequest:Re("git-pull-request",60004),gitPullRequestAbandoned:Re("git-pull-request-abandoned",60004),recordKeys:Re("record-keys",60005),keyboard:Re("keyboard",60005),tag:Re("tag",60006),gitPullRequestLabel:Re("git-pull-request-label",60006),tagAdd:Re("tag-add",60006),tagRemove:Re("tag-remove",60006),person:Re("person",60007),personFollow:Re("person-follow",60007),personOutline:Re("person-outline",60007),personFilled:Re("person-filled",60007),gitBranch:Re("git-branch",60008),gitBranchCreate:Re("git-branch-create",60008),gitBranchDelete:Re("git-branch-delete",60008),sourceControl:Re("source-control",60008),mirror:Re("mirror",60009),mirrorPublic:Re("mirror-public",60009),star:Re("star",60010),starAdd:Re("star-add",60010),starDelete:Re("star-delete",60010),starEmpty:Re("star-empty",60010),comment:Re("comment",60011),commentAdd:Re("comment-add",60011),alert:Re("alert",60012),warning:Re("warning",60012),search:Re("search",60013),searchSave:Re("search-save",60013),logOut:Re("log-out",60014),signOut:Re("sign-out",60014),logIn:Re("log-in",60015),signIn:Re("sign-in",60015),eye:Re("eye",60016),eyeUnwatch:Re("eye-unwatch",60016),eyeWatch:Re("eye-watch",60016),circleFilled:Re("circle-filled",60017),primitiveDot:Re("primitive-dot",60017),closeDirty:Re("close-dirty",60017),debugBreakpoint:Re("debug-breakpoint",60017),debugBreakpointDisabled:Re("debug-breakpoint-disabled",60017),debugHint:Re("debug-hint",60017),terminalDecorationSuccess:Re("terminal-decoration-success",60017),primitiveSquare:Re("primitive-square",60018),edit:Re("edit",60019),pencil:Re("pencil",60019),info:Re("info",60020),issueOpened:Re("issue-opened",60020),gistPrivate:Re("gist-private",60021),gitForkPrivate:Re("git-fork-private",60021),lock:Re("lock",60021),mirrorPrivate:Re("mirror-private",60021),close:Re("close",60022),removeClose:Re("remove-close",60022),x:Re("x",60022),repoSync:Re("repo-sync",60023),sync:Re("sync",60023),clone:Re("clone",60024),desktopDownload:Re("desktop-download",60024),beaker:Re("beaker",60025),microscope:Re("microscope",60025),vm:Re("vm",60026),deviceDesktop:Re("device-desktop",60026),file:Re("file",60027),fileText:Re("file-text",60027),more:Re("more",60028),ellipsis:Re("ellipsis",60028),kebabHorizontal:Re("kebab-horizontal",60028),mailReply:Re("mail-reply",60029),reply:Re("reply",60029),organization:Re("organization",60030),organizationFilled:Re("organization-filled",60030),organizationOutline:Re("organization-outline",60030),newFile:Re("new-file",60031),fileAdd:Re("file-add",60031),newFolder:Re("new-folder",60032),fileDirectoryCreate:Re("file-directory-create",60032),trash:Re("trash",60033),trashcan:Re("trashcan",60033),history:Re("history",60034),clock:Re("clock",60034),folder:Re("folder",60035),fileDirectory:Re("file-directory",60035),symbolFolder:Re("symbol-folder",60035),logoGithub:Re("logo-github",60036),markGithub:Re("mark-github",60036),github:Re("github",60036),terminal:Re("terminal",60037),console:Re("console",60037),repl:Re("repl",60037),zap:Re("zap",60038),symbolEvent:Re("symbol-event",60038),error:Re("error",60039),stop:Re("stop",60039),variable:Re("variable",60040),symbolVariable:Re("symbol-variable",60040),array:Re("array",60042),symbolArray:Re("symbol-array",60042),symbolModule:Re("symbol-module",60043),symbolPackage:Re("symbol-package",60043),symbolNamespace:Re("symbol-namespace",60043),symbolObject:Re("symbol-object",60043),symbolMethod:Re("symbol-method",60044),symbolFunction:Re("symbol-function",60044),symbolConstructor:Re("symbol-constructor",60044),symbolBoolean:Re("symbol-boolean",60047),symbolNull:Re("symbol-null",60047),symbolNumeric:Re("symbol-numeric",60048),symbolNumber:Re("symbol-number",60048),symbolStructure:Re("symbol-structure",60049),symbolStruct:Re("symbol-struct",60049),symbolParameter:Re("symbol-parameter",60050),symbolTypeParameter:Re("symbol-type-parameter",60050),symbolKey:Re("symbol-key",60051),symbolText:Re("symbol-text",60051),symbolReference:Re("symbol-reference",60052),goToFile:Re("go-to-file",60052),symbolEnum:Re("symbol-enum",60053),symbolValue:Re("symbol-value",60053),symbolRuler:Re("symbol-ruler",60054),symbolUnit:Re("symbol-unit",60054),activateBreakpoints:Re("activate-breakpoints",60055),archive:Re("archive",60056),arrowBoth:Re("arrow-both",60057),arrowDown:Re("arrow-down",60058),arrowLeft:Re("arrow-left",60059),arrowRight:Re("arrow-right",60060),arrowSmallDown:Re("arrow-small-down",60061),arrowSmallLeft:Re("arrow-small-left",60062),arrowSmallRight:Re("arrow-small-right",60063),arrowSmallUp:Re("arrow-small-up",60064),arrowUp:Re("arrow-up",60065),bell:Re("bell",60066),bold:Re("bold",60067),book:Re("book",60068),bookmark:Re("bookmark",60069),debugBreakpointConditionalUnverified:Re("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:Re("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:Re("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:Re("debug-breakpoint-data-unverified",60072),debugBreakpointData:Re("debug-breakpoint-data",60073),debugBreakpointDataDisabled:Re("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:Re("debug-breakpoint-log-unverified",60074),debugBreakpointLog:Re("debug-breakpoint-log",60075),debugBreakpointLogDisabled:Re("debug-breakpoint-log-disabled",60075),briefcase:Re("briefcase",60076),broadcast:Re("broadcast",60077),browser:Re("browser",60078),bug:Re("bug",60079),calendar:Re("calendar",60080),caseSensitive:Re("case-sensitive",60081),check:Re("check",60082),checklist:Re("checklist",60083),chevronDown:Re("chevron-down",60084),chevronLeft:Re("chevron-left",60085),chevronRight:Re("chevron-right",60086),chevronUp:Re("chevron-up",60087),chromeClose:Re("chrome-close",60088),chromeMaximize:Re("chrome-maximize",60089),chromeMinimize:Re("chrome-minimize",60090),chromeRestore:Re("chrome-restore",60091),circleOutline:Re("circle-outline",60092),circle:Re("circle",60092),debugBreakpointUnverified:Re("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:Re("terminal-decoration-incomplete",60092),circleSlash:Re("circle-slash",60093),circuitBoard:Re("circuit-board",60094),clearAll:Re("clear-all",60095),clippy:Re("clippy",60096),closeAll:Re("close-all",60097),cloudDownload:Re("cloud-download",60098),cloudUpload:Re("cloud-upload",60099),code:Re("code",60100),collapseAll:Re("collapse-all",60101),colorMode:Re("color-mode",60102),commentDiscussion:Re("comment-discussion",60103),creditCard:Re("credit-card",60105),dash:Re("dash",60108),dashboard:Re("dashboard",60109),database:Re("database",60110),debugContinue:Re("debug-continue",60111),debugDisconnect:Re("debug-disconnect",60112),debugPause:Re("debug-pause",60113),debugRestart:Re("debug-restart",60114),debugStart:Re("debug-start",60115),debugStepInto:Re("debug-step-into",60116),debugStepOut:Re("debug-step-out",60117),debugStepOver:Re("debug-step-over",60118),debugStop:Re("debug-stop",60119),debug:Re("debug",60120),deviceCameraVideo:Re("device-camera-video",60121),deviceCamera:Re("device-camera",60122),deviceMobile:Re("device-mobile",60123),diffAdded:Re("diff-added",60124),diffIgnored:Re("diff-ignored",60125),diffModified:Re("diff-modified",60126),diffRemoved:Re("diff-removed",60127),diffRenamed:Re("diff-renamed",60128),diff:Re("diff",60129),diffSidebyside:Re("diff-sidebyside",60129),discard:Re("discard",60130),editorLayout:Re("editor-layout",60131),emptyWindow:Re("empty-window",60132),exclude:Re("exclude",60133),extensions:Re("extensions",60134),eyeClosed:Re("eye-closed",60135),fileBinary:Re("file-binary",60136),fileCode:Re("file-code",60137),fileMedia:Re("file-media",60138),filePdf:Re("file-pdf",60139),fileSubmodule:Re("file-submodule",60140),fileSymlinkDirectory:Re("file-symlink-directory",60141),fileSymlinkFile:Re("file-symlink-file",60142),fileZip:Re("file-zip",60143),files:Re("files",60144),filter:Re("filter",60145),flame:Re("flame",60146),foldDown:Re("fold-down",60147),foldUp:Re("fold-up",60148),fold:Re("fold",60149),folderActive:Re("folder-active",60150),folderOpened:Re("folder-opened",60151),gear:Re("gear",60152),gift:Re("gift",60153),gistSecret:Re("gist-secret",60154),gist:Re("gist",60155),gitCommit:Re("git-commit",60156),gitCompare:Re("git-compare",60157),compareChanges:Re("compare-changes",60157),gitMerge:Re("git-merge",60158),githubAction:Re("github-action",60159),githubAlt:Re("github-alt",60160),globe:Re("globe",60161),grabber:Re("grabber",60162),graph:Re("graph",60163),gripper:Re("gripper",60164),heart:Re("heart",60165),home:Re("home",60166),horizontalRule:Re("horizontal-rule",60167),hubot:Re("hubot",60168),inbox:Re("inbox",60169),issueReopened:Re("issue-reopened",60171),issues:Re("issues",60172),italic:Re("italic",60173),jersey:Re("jersey",60174),json:Re("json",60175),kebabVertical:Re("kebab-vertical",60176),key:Re("key",60177),law:Re("law",60178),lightbulbAutofix:Re("lightbulb-autofix",60179),linkExternal:Re("link-external",60180),link:Re("link",60181),listOrdered:Re("list-ordered",60182),listUnordered:Re("list-unordered",60183),liveShare:Re("live-share",60184),loading:Re("loading",60185),location:Re("location",60186),mailRead:Re("mail-read",60187),mail:Re("mail",60188),markdown:Re("markdown",60189),megaphone:Re("megaphone",60190),mention:Re("mention",60191),milestone:Re("milestone",60192),gitPullRequestMilestone:Re("git-pull-request-milestone",60192),mortarBoard:Re("mortar-board",60193),move:Re("move",60194),multipleWindows:Re("multiple-windows",60195),mute:Re("mute",60196),noNewline:Re("no-newline",60197),note:Re("note",60198),octoface:Re("octoface",60199),openPreview:Re("open-preview",60200),package:Re("package",60201),paintcan:Re("paintcan",60202),pin:Re("pin",60203),play:Re("play",60204),run:Re("run",60204),plug:Re("plug",60205),preserveCase:Re("preserve-case",60206),preview:Re("preview",60207),project:Re("project",60208),pulse:Re("pulse",60209),question:Re("question",60210),quote:Re("quote",60211),radioTower:Re("radio-tower",60212),reactions:Re("reactions",60213),references:Re("references",60214),refresh:Re("refresh",60215),regex:Re("regex",60216),remoteExplorer:Re("remote-explorer",60217),remote:Re("remote",60218),remove:Re("remove",60219),replaceAll:Re("replace-all",60220),replace:Re("replace",60221),repoClone:Re("repo-clone",60222),repoForcePush:Re("repo-force-push",60223),repoPull:Re("repo-pull",60224),repoPush:Re("repo-push",60225),report:Re("report",60226),requestChanges:Re("request-changes",60227),rocket:Re("rocket",60228),rootFolderOpened:Re("root-folder-opened",60229),rootFolder:Re("root-folder",60230),rss:Re("rss",60231),ruby:Re("ruby",60232),saveAll:Re("save-all",60233),saveAs:Re("save-as",60234),save:Re("save",60235),screenFull:Re("screen-full",60236),screenNormal:Re("screen-normal",60237),searchStop:Re("search-stop",60238),server:Re("server",60240),settingsGear:Re("settings-gear",60241),settings:Re("settings",60242),shield:Re("shield",60243),smiley:Re("smiley",60244),sortPrecedence:Re("sort-precedence",60245),splitHorizontal:Re("split-horizontal",60246),splitVertical:Re("split-vertical",60247),squirrel:Re("squirrel",60248),starFull:Re("star-full",60249),starHalf:Re("star-half",60250),symbolClass:Re("symbol-class",60251),symbolColor:Re("symbol-color",60252),symbolConstant:Re("symbol-constant",60253),symbolEnumMember:Re("symbol-enum-member",60254),symbolField:Re("symbol-field",60255),symbolFile:Re("symbol-file",60256),symbolInterface:Re("symbol-interface",60257),symbolKeyword:Re("symbol-keyword",60258),symbolMisc:Re("symbol-misc",60259),symbolOperator:Re("symbol-operator",60260),symbolProperty:Re("symbol-property",60261),wrench:Re("wrench",60261),wrenchSubaction:Re("wrench-subaction",60261),symbolSnippet:Re("symbol-snippet",60262),tasklist:Re("tasklist",60263),telescope:Re("telescope",60264),textSize:Re("text-size",60265),threeBars:Re("three-bars",60266),thumbsdown:Re("thumbsdown",60267),thumbsup:Re("thumbsup",60268),tools:Re("tools",60269),triangleDown:Re("triangle-down",60270),triangleLeft:Re("triangle-left",60271),triangleRight:Re("triangle-right",60272),triangleUp:Re("triangle-up",60273),twitter:Re("twitter",60274),unfold:Re("unfold",60275),unlock:Re("unlock",60276),unmute:Re("unmute",60277),unverified:Re("unverified",60278),verified:Re("verified",60279),versions:Re("versions",60280),vmActive:Re("vm-active",60281),vmOutline:Re("vm-outline",60282),vmRunning:Re("vm-running",60283),watch:Re("watch",60284),whitespace:Re("whitespace",60285),wholeWord:Re("whole-word",60286),window:Re("window",60287),wordWrap:Re("word-wrap",60288),zoomIn:Re("zoom-in",60289),zoomOut:Re("zoom-out",60290),listFilter:Re("list-filter",60291),listFlat:Re("list-flat",60292),listSelection:Re("list-selection",60293),selection:Re("selection",60293),listTree:Re("list-tree",60294),debugBreakpointFunctionUnverified:Re("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:Re("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:Re("debug-breakpoint-function-disabled",60296),debugStackframeActive:Re("debug-stackframe-active",60297),circleSmallFilled:Re("circle-small-filled",60298),debugStackframeDot:Re("debug-stackframe-dot",60298),terminalDecorationMark:Re("terminal-decoration-mark",60298),debugStackframe:Re("debug-stackframe",60299),debugStackframeFocused:Re("debug-stackframe-focused",60299),debugBreakpointUnsupported:Re("debug-breakpoint-unsupported",60300),symbolString:Re("symbol-string",60301),debugReverseContinue:Re("debug-reverse-continue",60302),debugStepBack:Re("debug-step-back",60303),debugRestartFrame:Re("debug-restart-frame",60304),debugAlt:Re("debug-alt",60305),callIncoming:Re("call-incoming",60306),callOutgoing:Re("call-outgoing",60307),menu:Re("menu",60308),expandAll:Re("expand-all",60309),feedback:Re("feedback",60310),gitPullRequestReviewer:Re("git-pull-request-reviewer",60310),groupByRefType:Re("group-by-ref-type",60311),ungroupByRefType:Re("ungroup-by-ref-type",60312),account:Re("account",60313),gitPullRequestAssignee:Re("git-pull-request-assignee",60313),bellDot:Re("bell-dot",60314),debugConsole:Re("debug-console",60315),library:Re("library",60316),output:Re("output",60317),runAll:Re("run-all",60318),syncIgnored:Re("sync-ignored",60319),pinned:Re("pinned",60320),githubInverted:Re("github-inverted",60321),serverProcess:Re("server-process",60322),serverEnvironment:Re("server-environment",60323),pass:Re("pass",60324),issueClosed:Re("issue-closed",60324),stopCircle:Re("stop-circle",60325),playCircle:Re("play-circle",60326),record:Re("record",60327),debugAltSmall:Re("debug-alt-small",60328),vmConnect:Re("vm-connect",60329),cloud:Re("cloud",60330),merge:Re("merge",60331),export:Re("export",60332),graphLeft:Re("graph-left",60333),magnet:Re("magnet",60334),notebook:Re("notebook",60335),redo:Re("redo",60336),checkAll:Re("check-all",60337),pinnedDirty:Re("pinned-dirty",60338),passFilled:Re("pass-filled",60339),circleLargeFilled:Re("circle-large-filled",60340),circleLarge:Re("circle-large",60341),circleLargeOutline:Re("circle-large-outline",60341),combine:Re("combine",60342),gather:Re("gather",60342),table:Re("table",60343),variableGroup:Re("variable-group",60344),typeHierarchy:Re("type-hierarchy",60345),typeHierarchySub:Re("type-hierarchy-sub",60346),typeHierarchySuper:Re("type-hierarchy-super",60347),gitPullRequestCreate:Re("git-pull-request-create",60348),runAbove:Re("run-above",60349),runBelow:Re("run-below",60350),notebookTemplate:Re("notebook-template",60351),debugRerun:Re("debug-rerun",60352),workspaceTrusted:Re("workspace-trusted",60353),workspaceUntrusted:Re("workspace-untrusted",60354),workspaceUnknown:Re("workspace-unknown",60355),terminalCmd:Re("terminal-cmd",60356),terminalDebian:Re("terminal-debian",60357),terminalLinux:Re("terminal-linux",60358),terminalPowershell:Re("terminal-powershell",60359),terminalTmux:Re("terminal-tmux",60360),terminalUbuntu:Re("terminal-ubuntu",60361),terminalBash:Re("terminal-bash",60362),arrowSwap:Re("arrow-swap",60363),copy:Re("copy",60364),personAdd:Re("person-add",60365),filterFilled:Re("filter-filled",60366),wand:Re("wand",60367),debugLineByLine:Re("debug-line-by-line",60368),inspect:Re("inspect",60369),layers:Re("layers",60370),layersDot:Re("layers-dot",60371),layersActive:Re("layers-active",60372),compass:Re("compass",60373),compassDot:Re("compass-dot",60374),compassActive:Re("compass-active",60375),azure:Re("azure",60376),issueDraft:Re("issue-draft",60377),gitPullRequestClosed:Re("git-pull-request-closed",60378),gitPullRequestDraft:Re("git-pull-request-draft",60379),debugAll:Re("debug-all",60380),debugCoverage:Re("debug-coverage",60381),runErrors:Re("run-errors",60382),folderLibrary:Re("folder-library",60383),debugContinueSmall:Re("debug-continue-small",60384),beakerStop:Re("beaker-stop",60385),graphLine:Re("graph-line",60386),graphScatter:Re("graph-scatter",60387),pieChart:Re("pie-chart",60388),bracket:Re("bracket",60175),bracketDot:Re("bracket-dot",60389),bracketError:Re("bracket-error",60390),lockSmall:Re("lock-small",60391),azureDevops:Re("azure-devops",60392),verifiedFilled:Re("verified-filled",60393),newline:Re("newline",60394),layout:Re("layout",60395),layoutActivitybarLeft:Re("layout-activitybar-left",60396),layoutActivitybarRight:Re("layout-activitybar-right",60397),layoutPanelLeft:Re("layout-panel-left",60398),layoutPanelCenter:Re("layout-panel-center",60399),layoutPanelJustify:Re("layout-panel-justify",60400),layoutPanelRight:Re("layout-panel-right",60401),layoutPanel:Re("layout-panel",60402),layoutSidebarLeft:Re("layout-sidebar-left",60403),layoutSidebarRight:Re("layout-sidebar-right",60404),layoutStatusbar:Re("layout-statusbar",60405),layoutMenubar:Re("layout-menubar",60406),layoutCentered:Re("layout-centered",60407),target:Re("target",60408),indent:Re("indent",60409),recordSmall:Re("record-small",60410),errorSmall:Re("error-small",60411),terminalDecorationError:Re("terminal-decoration-error",60411),arrowCircleDown:Re("arrow-circle-down",60412),arrowCircleLeft:Re("arrow-circle-left",60413),arrowCircleRight:Re("arrow-circle-right",60414),arrowCircleUp:Re("arrow-circle-up",60415),layoutSidebarRightOff:Re("layout-sidebar-right-off",60416),layoutPanelOff:Re("layout-panel-off",60417),layoutSidebarLeftOff:Re("layout-sidebar-left-off",60418),blank:Re("blank",60419),heartFilled:Re("heart-filled",60420),map:Re("map",60421),mapHorizontal:Re("map-horizontal",60421),foldHorizontal:Re("fold-horizontal",60421),mapFilled:Re("map-filled",60422),mapHorizontalFilled:Re("map-horizontal-filled",60422),foldHorizontalFilled:Re("fold-horizontal-filled",60422),circleSmall:Re("circle-small",60423),bellSlash:Re("bell-slash",60424),bellSlashDot:Re("bell-slash-dot",60425),commentUnresolved:Re("comment-unresolved",60426),gitPullRequestGoToChanges:Re("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:Re("git-pull-request-new-changes",60428),searchFuzzy:Re("search-fuzzy",60429),commentDraft:Re("comment-draft",60430),send:Re("send",60431),sparkle:Re("sparkle",60432),insert:Re("insert",60433),mic:Re("mic",60434),thumbsdownFilled:Re("thumbsdown-filled",60435),thumbsupFilled:Re("thumbsup-filled",60436),coffee:Re("coffee",60437),snake:Re("snake",60438),game:Re("game",60439),vr:Re("vr",60440),chip:Re("chip",60441),piano:Re("piano",60442),music:Re("music",60443),micFilled:Re("mic-filled",60444),repoFetch:Re("repo-fetch",60445),copilot:Re("copilot",60446),lightbulbSparkle:Re("lightbulb-sparkle",60447),robot:Re("robot",60448),sparkleFilled:Re("sparkle-filled",60449),diffSingle:Re("diff-single",60450),diffMultiple:Re("diff-multiple",60451),surroundWith:Re("surround-with",60452),share:Re("share",60453),gitStash:Re("git-stash",60454),gitStashApply:Re("git-stash-apply",60455),gitStashPop:Re("git-stash-pop",60456),vscode:Re("vscode",60457),vscodeInsiders:Re("vscode-insiders",60458),codeOss:Re("code-oss",60459),runCoverage:Re("run-coverage",60460),runAllCoverage:Re("run-all-coverage",60461),coverage:Re("coverage",60462),githubProject:Re("github-project",60463),mapVertical:Re("map-vertical",60464),foldVertical:Re("fold-vertical",60464),mapVerticalFilled:Re("map-vertical-filled",60465),foldVerticalFilled:Re("fold-vertical-filled",60465),goToSearch:Re("go-to-search",60466),percentage:Re("percentage",60467),sortPercentage:Re("sort-percentage",60467),attach:Re("attach",60468)},lze={dialogError:Re("dialog-error","error"),dialogWarning:Re("dialog-warning","warning"),dialogInfo:Re("dialog-info","info"),dialogClose:Re("dialog-close","close"),treeItemExpanded:Re("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:Re("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:Re("tree-filter-on-type-off","list-selection"),treeFilterClear:Re("tree-filter-clear","close"),treeItemLoading:Re("tree-item-loading","loading"),menuSelection:Re("menu-selection","check"),menuSubmenu:Re("menu-submenu","chevron-right"),menuBarMore:Re("menubar-more","more"),scrollbarButtonLeft:Re("scrollbar-button-left","triangle-left"),scrollbarButtonRight:Re("scrollbar-button-right","triangle-right"),scrollbarButtonUp:Re("scrollbar-button-up","triangle-up"),scrollbarButtonDown:Re("scrollbar-button-down","triangle-down"),toolBarMore:Re("toolbar-more","more"),quickInputBack:Re("quick-input-back","arrow-left"),dropDownButton:Re("drop-down-button",60084),symbolCustomColor:Re("symbol-customcolor",60252),exportIcon:Re("export",60332),workspaceUnspecified:Re("workspace-unspecified",60355),newLine:Re("newline",60394),thumbsDownFilled:Re("thumbsdown-filled",60435),thumbsUpFilled:Re("thumbsup-filled",60436),gitFetch:Re("git-fetch",60445),lightbulbSparkleAutofix:Re("lightbulb-sparkle-autofix",60447),debugBreakpointPending:Re("debug-breakpoint-pending",60377)},gs={...sze,...lze};class N0e{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new e0,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(v){this._onDidChange.fire({changedLanguages:v,changedColorMap:!1})}register(v,T){return this._tokenizationSupports.set(v,T),this.handleChange([v]),OB(()=>{this._tokenizationSupports.get(v)===T&&(this._tokenizationSupports.delete(v),this.handleChange([v]))})}get(v){return this._tokenizationSupports.get(v)||null}registerFactory(v,T){var X;(X=this._factories.get(v))==null||X.dispose();const W=new cze(this,v,T);return this._factories.set(v,W),OB(()=>{const ue=this._factories.get(v);!ue||ue!==W||(this._factories.delete(v),ue.dispose())})}async getOrCreate(v){const T=this.get(v);if(T)return T;const W=this._factories.get(v);return!W||W.isResolved?null:(await W.resolve(),this.get(v))}isResolved(v){if(this.get(v))return!0;const W=this._factories.get(v);return!!(!W||W.isResolved)}setColorMap(v){this._colorMap=v,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}}class cze extends yM{get isResolved(){return this._isResolved}constructor(v,T,W){super(),this._registry=v,this._languageId=T,this._factory=W,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 v=await this._factory.tokenizationSupport;this._isResolved=!0,v&&!this._isDisposed&&this._register(this._registry.register(this._languageId,v))}}class uze{constructor(v,T,W){this.offset=v,this.type=T,this.language=W,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var P0e;(function(g){g[g.Increase=0]="Increase",g[g.Decrease=1]="Decrease"})(P0e||(P0e={}));var M0e;(function(g){const v=new Map;v.set(0,gs.symbolMethod),v.set(1,gs.symbolFunction),v.set(2,gs.symbolConstructor),v.set(3,gs.symbolField),v.set(4,gs.symbolVariable),v.set(5,gs.symbolClass),v.set(6,gs.symbolStruct),v.set(7,gs.symbolInterface),v.set(8,gs.symbolModule),v.set(9,gs.symbolProperty),v.set(10,gs.symbolEvent),v.set(11,gs.symbolOperator),v.set(12,gs.symbolUnit),v.set(13,gs.symbolValue),v.set(15,gs.symbolEnum),v.set(14,gs.symbolConstant),v.set(15,gs.symbolEnum),v.set(16,gs.symbolEnumMember),v.set(17,gs.symbolKeyword),v.set(27,gs.symbolSnippet),v.set(18,gs.symbolText),v.set(19,gs.symbolColor),v.set(20,gs.symbolFile),v.set(21,gs.symbolReference),v.set(22,gs.symbolCustomColor),v.set(23,gs.symbolFolder),v.set(24,gs.symbolTypeParameter),v.set(25,gs.account),v.set(26,gs.issues);function T(ue){let Te=v.get(ue);return Te||(console.info("No codicon found for CompletionItemKind "+ue),Te=gs.symbolProperty),Te}g.toIcon=T;const W=new Map;W.set("method",0),W.set("function",1),W.set("constructor",2),W.set("field",3),W.set("variable",4),W.set("class",5),W.set("struct",6),W.set("interface",7),W.set("module",8),W.set("property",9),W.set("event",10),W.set("operator",11),W.set("unit",12),W.set("value",13),W.set("constant",14),W.set("enum",15),W.set("enum-member",16),W.set("enumMember",16),W.set("keyword",17),W.set("snippet",27),W.set("text",18),W.set("color",19),W.set("file",20),W.set("reference",21),W.set("customcolor",22),W.set("folder",23),W.set("type-parameter",24),W.set("typeParameter",24),W.set("account",25),W.set("issue",26);function X(ue,Te){let Be=W.get(ue);return typeof Be>"u"&&!Te&&(Be=9),Be}g.fromString=X})(M0e||(M0e={}));var L0e;(function(g){g[g.Automatic=0]="Automatic",g[g.Explicit=1]="Explicit"})(L0e||(L0e={}));var k0e;(function(g){g[g.Automatic=0]="Automatic",g[g.PasteAs=1]="PasteAs"})(k0e||(k0e={}));var w0e;(function(g){g[g.Invoke=1]="Invoke",g[g.TriggerCharacter=2]="TriggerCharacter",g[g.ContentChange=3]="ContentChange"})(w0e||(w0e={}));var O0e;(function(g){g[g.Text=0]="Text",g[g.Read=1]="Read",g[g.Write=2]="Write"})(O0e||(O0e={})),Qd("Array","array"),Qd("Boolean","boolean"),Qd("Class","class"),Qd("Constant","constant"),Qd("Constructor","constructor"),Qd("Enum","enumeration"),Qd("EnumMember","enumeration member"),Qd("Event","event"),Qd("Field","field"),Qd("File","file"),Qd("Function","function"),Qd("Interface","interface"),Qd("Key","key"),Qd("Method","method"),Qd("Module","module"),Qd("Namespace","namespace"),Qd("Null","null"),Qd("Number","number"),Qd("Object","object"),Qd("Operator","operator"),Qd("Package","package"),Qd("Property","property"),Qd("String","string"),Qd("Struct","struct"),Qd("TypeParameter","type parameter"),Qd("Variable","variable");var W0e;(function(g){const v=new Map;v.set(0,gs.symbolFile),v.set(1,gs.symbolModule),v.set(2,gs.symbolNamespace),v.set(3,gs.symbolPackage),v.set(4,gs.symbolClass),v.set(5,gs.symbolMethod),v.set(6,gs.symbolProperty),v.set(7,gs.symbolField),v.set(8,gs.symbolConstructor),v.set(9,gs.symbolEnum),v.set(10,gs.symbolInterface),v.set(11,gs.symbolFunction),v.set(12,gs.symbolVariable),v.set(13,gs.symbolConstant),v.set(14,gs.symbolString),v.set(15,gs.symbolNumber),v.set(16,gs.symbolBoolean),v.set(17,gs.symbolArray),v.set(18,gs.symbolObject),v.set(19,gs.symbolKey),v.set(20,gs.symbolNull),v.set(21,gs.symbolEnumMember),v.set(22,gs.symbolStruct),v.set(23,gs.symbolEvent),v.set(24,gs.symbolOperator),v.set(25,gs.symbolTypeParameter);function T(W){let X=v.get(W);return X||(console.info("No codicon found for SymbolKind "+W),X=gs.symbolProperty),X}g.toIcon=T})(W0e||(W0e={}));const r0=class r0{static fromValue(v){switch(v){case"comment":return r0.Comment;case"imports":return r0.Imports;case"region":return r0.Region}return new r0(v)}constructor(v){this.value=v}};r0.Comment=new r0("comment"),r0.Imports=new r0("imports"),r0.Region=new r0("region");let F0e=r0;var z0e;(function(g){g[g.AIGenerated=1]="AIGenerated"})(z0e||(z0e={}));var B0e;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(B0e||(B0e={}));var G0e;(function(g){function v(T){return!T||typeof T!="object"?!1:typeof T.id=="string"&&typeof T.title=="string"}g.is=v})(G0e||(G0e={}));var V0e;(function(g){g[g.Type=1]="Type",g[g.Parameter=2]="Parameter"})(V0e||(V0e={})),new N0e,new N0e;var j0e;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(j0e||(j0e={}));var U0e;(function(g){g[g.Unknown=0]="Unknown",g[g.Disabled=1]="Disabled",g[g.Enabled=2]="Enabled"})(U0e||(U0e={}));var H0e;(function(g){g[g.Invoke=1]="Invoke",g[g.Auto=2]="Auto"})(H0e||(H0e={}));var q0e;(function(g){g[g.None=0]="None",g[g.KeepWhitespace=1]="KeepWhitespace",g[g.InsertAsSnippet=4]="InsertAsSnippet"})(q0e||(q0e={}));var J0e;(function(g){g[g.Method=0]="Method",g[g.Function=1]="Function",g[g.Constructor=2]="Constructor",g[g.Field=3]="Field",g[g.Variable=4]="Variable",g[g.Class=5]="Class",g[g.Struct=6]="Struct",g[g.Interface=7]="Interface",g[g.Module=8]="Module",g[g.Property=9]="Property",g[g.Event=10]="Event",g[g.Operator=11]="Operator",g[g.Unit=12]="Unit",g[g.Value=13]="Value",g[g.Constant=14]="Constant",g[g.Enum=15]="Enum",g[g.EnumMember=16]="EnumMember",g[g.Keyword=17]="Keyword",g[g.Text=18]="Text",g[g.Color=19]="Color",g[g.File=20]="File",g[g.Reference=21]="Reference",g[g.Customcolor=22]="Customcolor",g[g.Folder=23]="Folder",g[g.TypeParameter=24]="TypeParameter",g[g.User=25]="User",g[g.Issue=26]="Issue",g[g.Snippet=27]="Snippet"})(J0e||(J0e={}));var K0e;(function(g){g[g.Deprecated=1]="Deprecated"})(K0e||(K0e={}));var X0e;(function(g){g[g.Invoke=0]="Invoke",g[g.TriggerCharacter=1]="TriggerCharacter",g[g.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(X0e||(X0e={}));var Y0e;(function(g){g[g.EXACT=0]="EXACT",g[g.ABOVE=1]="ABOVE",g[g.BELOW=2]="BELOW"})(Y0e||(Y0e={}));var $0e;(function(g){g[g.NotSet=0]="NotSet",g[g.ContentFlush=1]="ContentFlush",g[g.RecoverFromMarkers=2]="RecoverFromMarkers",g[g.Explicit=3]="Explicit",g[g.Paste=4]="Paste",g[g.Undo=5]="Undo",g[g.Redo=6]="Redo"})($0e||($0e={}));var Q0e;(function(g){g[g.LF=1]="LF",g[g.CRLF=2]="CRLF"})(Q0e||(Q0e={}));var Z0e;(function(g){g[g.Text=0]="Text",g[g.Read=1]="Read",g[g.Write=2]="Write"})(Z0e||(Z0e={}));var eEe;(function(g){g[g.None=0]="None",g[g.Keep=1]="Keep",g[g.Brackets=2]="Brackets",g[g.Advanced=3]="Advanced",g[g.Full=4]="Full"})(eEe||(eEe={}));var tEe;(function(g){g[g.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",g[g.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",g[g.accessibilitySupport=2]="accessibilitySupport",g[g.accessibilityPageSize=3]="accessibilityPageSize",g[g.ariaLabel=4]="ariaLabel",g[g.ariaRequired=5]="ariaRequired",g[g.autoClosingBrackets=6]="autoClosingBrackets",g[g.autoClosingComments=7]="autoClosingComments",g[g.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",g[g.autoClosingDelete=9]="autoClosingDelete",g[g.autoClosingOvertype=10]="autoClosingOvertype",g[g.autoClosingQuotes=11]="autoClosingQuotes",g[g.autoIndent=12]="autoIndent",g[g.automaticLayout=13]="automaticLayout",g[g.autoSurround=14]="autoSurround",g[g.bracketPairColorization=15]="bracketPairColorization",g[g.guides=16]="guides",g[g.codeLens=17]="codeLens",g[g.codeLensFontFamily=18]="codeLensFontFamily",g[g.codeLensFontSize=19]="codeLensFontSize",g[g.colorDecorators=20]="colorDecorators",g[g.colorDecoratorsLimit=21]="colorDecoratorsLimit",g[g.columnSelection=22]="columnSelection",g[g.comments=23]="comments",g[g.contextmenu=24]="contextmenu",g[g.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",g[g.cursorBlinking=26]="cursorBlinking",g[g.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",g[g.cursorStyle=28]="cursorStyle",g[g.cursorSurroundingLines=29]="cursorSurroundingLines",g[g.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",g[g.cursorWidth=31]="cursorWidth",g[g.disableLayerHinting=32]="disableLayerHinting",g[g.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",g[g.domReadOnly=34]="domReadOnly",g[g.dragAndDrop=35]="dragAndDrop",g[g.dropIntoEditor=36]="dropIntoEditor",g[g.emptySelectionClipboard=37]="emptySelectionClipboard",g[g.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",g[g.extraEditorClassName=39]="extraEditorClassName",g[g.fastScrollSensitivity=40]="fastScrollSensitivity",g[g.find=41]="find",g[g.fixedOverflowWidgets=42]="fixedOverflowWidgets",g[g.folding=43]="folding",g[g.foldingStrategy=44]="foldingStrategy",g[g.foldingHighlight=45]="foldingHighlight",g[g.foldingImportsByDefault=46]="foldingImportsByDefault",g[g.foldingMaximumRegions=47]="foldingMaximumRegions",g[g.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",g[g.fontFamily=49]="fontFamily",g[g.fontInfo=50]="fontInfo",g[g.fontLigatures=51]="fontLigatures",g[g.fontSize=52]="fontSize",g[g.fontWeight=53]="fontWeight",g[g.fontVariations=54]="fontVariations",g[g.formatOnPaste=55]="formatOnPaste",g[g.formatOnType=56]="formatOnType",g[g.glyphMargin=57]="glyphMargin",g[g.gotoLocation=58]="gotoLocation",g[g.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",g[g.hover=60]="hover",g[g.inDiffEditor=61]="inDiffEditor",g[g.inlineSuggest=62]="inlineSuggest",g[g.inlineEdit=63]="inlineEdit",g[g.letterSpacing=64]="letterSpacing",g[g.lightbulb=65]="lightbulb",g[g.lineDecorationsWidth=66]="lineDecorationsWidth",g[g.lineHeight=67]="lineHeight",g[g.lineNumbers=68]="lineNumbers",g[g.lineNumbersMinChars=69]="lineNumbersMinChars",g[g.linkedEditing=70]="linkedEditing",g[g.links=71]="links",g[g.matchBrackets=72]="matchBrackets",g[g.minimap=73]="minimap",g[g.mouseStyle=74]="mouseStyle",g[g.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",g[g.mouseWheelZoom=76]="mouseWheelZoom",g[g.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",g[g.multiCursorModifier=78]="multiCursorModifier",g[g.multiCursorPaste=79]="multiCursorPaste",g[g.multiCursorLimit=80]="multiCursorLimit",g[g.occurrencesHighlight=81]="occurrencesHighlight",g[g.overviewRulerBorder=82]="overviewRulerBorder",g[g.overviewRulerLanes=83]="overviewRulerLanes",g[g.padding=84]="padding",g[g.pasteAs=85]="pasteAs",g[g.parameterHints=86]="parameterHints",g[g.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",g[g.placeholder=88]="placeholder",g[g.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",g[g.quickSuggestions=90]="quickSuggestions",g[g.quickSuggestionsDelay=91]="quickSuggestionsDelay",g[g.readOnly=92]="readOnly",g[g.readOnlyMessage=93]="readOnlyMessage",g[g.renameOnType=94]="renameOnType",g[g.renderControlCharacters=95]="renderControlCharacters",g[g.renderFinalNewline=96]="renderFinalNewline",g[g.renderLineHighlight=97]="renderLineHighlight",g[g.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",g[g.renderValidationDecorations=99]="renderValidationDecorations",g[g.renderWhitespace=100]="renderWhitespace",g[g.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",g[g.roundedSelection=102]="roundedSelection",g[g.rulers=103]="rulers",g[g.scrollbar=104]="scrollbar",g[g.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",g[g.scrollBeyondLastLine=106]="scrollBeyondLastLine",g[g.scrollPredominantAxis=107]="scrollPredominantAxis",g[g.selectionClipboard=108]="selectionClipboard",g[g.selectionHighlight=109]="selectionHighlight",g[g.selectOnLineNumbers=110]="selectOnLineNumbers",g[g.showFoldingControls=111]="showFoldingControls",g[g.showUnused=112]="showUnused",g[g.snippetSuggestions=113]="snippetSuggestions",g[g.smartSelect=114]="smartSelect",g[g.smoothScrolling=115]="smoothScrolling",g[g.stickyScroll=116]="stickyScroll",g[g.stickyTabStops=117]="stickyTabStops",g[g.stopRenderingLineAfter=118]="stopRenderingLineAfter",g[g.suggest=119]="suggest",g[g.suggestFontSize=120]="suggestFontSize",g[g.suggestLineHeight=121]="suggestLineHeight",g[g.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",g[g.suggestSelection=123]="suggestSelection",g[g.tabCompletion=124]="tabCompletion",g[g.tabIndex=125]="tabIndex",g[g.unicodeHighlighting=126]="unicodeHighlighting",g[g.unusualLineTerminators=127]="unusualLineTerminators",g[g.useShadowDOM=128]="useShadowDOM",g[g.useTabStops=129]="useTabStops",g[g.wordBreak=130]="wordBreak",g[g.wordSegmenterLocales=131]="wordSegmenterLocales",g[g.wordSeparators=132]="wordSeparators",g[g.wordWrap=133]="wordWrap",g[g.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",g[g.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",g[g.wordWrapColumn=136]="wordWrapColumn",g[g.wordWrapOverride1=137]="wordWrapOverride1",g[g.wordWrapOverride2=138]="wordWrapOverride2",g[g.wrappingIndent=139]="wrappingIndent",g[g.wrappingStrategy=140]="wrappingStrategy",g[g.showDeprecated=141]="showDeprecated",g[g.inlayHints=142]="inlayHints",g[g.editorClassName=143]="editorClassName",g[g.pixelRatio=144]="pixelRatio",g[g.tabFocusMode=145]="tabFocusMode",g[g.layoutInfo=146]="layoutInfo",g[g.wrappingInfo=147]="wrappingInfo",g[g.defaultColorDecorators=148]="defaultColorDecorators",g[g.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",g[g.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"})(tEe||(tEe={}));var nEe;(function(g){g[g.TextDefined=0]="TextDefined",g[g.LF=1]="LF",g[g.CRLF=2]="CRLF"})(nEe||(nEe={}));var rEe;(function(g){g[g.LF=0]="LF",g[g.CRLF=1]="CRLF"})(rEe||(rEe={}));var iEe;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=3]="Right"})(iEe||(iEe={}));var oEe;(function(g){g[g.Increase=0]="Increase",g[g.Decrease=1]="Decrease"})(oEe||(oEe={}));var aEe;(function(g){g[g.None=0]="None",g[g.Indent=1]="Indent",g[g.IndentOutdent=2]="IndentOutdent",g[g.Outdent=3]="Outdent"})(aEe||(aEe={}));var sEe;(function(g){g[g.Both=0]="Both",g[g.Right=1]="Right",g[g.Left=2]="Left",g[g.None=3]="None"})(sEe||(sEe={}));var lEe;(function(g){g[g.Type=1]="Type",g[g.Parameter=2]="Parameter"})(lEe||(lEe={}));var cEe;(function(g){g[g.Automatic=0]="Automatic",g[g.Explicit=1]="Explicit"})(cEe||(cEe={}));var uEe;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(uEe||(uEe={}));var une;(function(g){g[g.DependsOnKbLayout=-1]="DependsOnKbLayout",g[g.Unknown=0]="Unknown",g[g.Backspace=1]="Backspace",g[g.Tab=2]="Tab",g[g.Enter=3]="Enter",g[g.Shift=4]="Shift",g[g.Ctrl=5]="Ctrl",g[g.Alt=6]="Alt",g[g.PauseBreak=7]="PauseBreak",g[g.CapsLock=8]="CapsLock",g[g.Escape=9]="Escape",g[g.Space=10]="Space",g[g.PageUp=11]="PageUp",g[g.PageDown=12]="PageDown",g[g.End=13]="End",g[g.Home=14]="Home",g[g.LeftArrow=15]="LeftArrow",g[g.UpArrow=16]="UpArrow",g[g.RightArrow=17]="RightArrow",g[g.DownArrow=18]="DownArrow",g[g.Insert=19]="Insert",g[g.Delete=20]="Delete",g[g.Digit0=21]="Digit0",g[g.Digit1=22]="Digit1",g[g.Digit2=23]="Digit2",g[g.Digit3=24]="Digit3",g[g.Digit4=25]="Digit4",g[g.Digit5=26]="Digit5",g[g.Digit6=27]="Digit6",g[g.Digit7=28]="Digit7",g[g.Digit8=29]="Digit8",g[g.Digit9=30]="Digit9",g[g.KeyA=31]="KeyA",g[g.KeyB=32]="KeyB",g[g.KeyC=33]="KeyC",g[g.KeyD=34]="KeyD",g[g.KeyE=35]="KeyE",g[g.KeyF=36]="KeyF",g[g.KeyG=37]="KeyG",g[g.KeyH=38]="KeyH",g[g.KeyI=39]="KeyI",g[g.KeyJ=40]="KeyJ",g[g.KeyK=41]="KeyK",g[g.KeyL=42]="KeyL",g[g.KeyM=43]="KeyM",g[g.KeyN=44]="KeyN",g[g.KeyO=45]="KeyO",g[g.KeyP=46]="KeyP",g[g.KeyQ=47]="KeyQ",g[g.KeyR=48]="KeyR",g[g.KeyS=49]="KeyS",g[g.KeyT=50]="KeyT",g[g.KeyU=51]="KeyU",g[g.KeyV=52]="KeyV",g[g.KeyW=53]="KeyW",g[g.KeyX=54]="KeyX",g[g.KeyY=55]="KeyY",g[g.KeyZ=56]="KeyZ",g[g.Meta=57]="Meta",g[g.ContextMenu=58]="ContextMenu",g[g.F1=59]="F1",g[g.F2=60]="F2",g[g.F3=61]="F3",g[g.F4=62]="F4",g[g.F5=63]="F5",g[g.F6=64]="F6",g[g.F7=65]="F7",g[g.F8=66]="F8",g[g.F9=67]="F9",g[g.F10=68]="F10",g[g.F11=69]="F11",g[g.F12=70]="F12",g[g.F13=71]="F13",g[g.F14=72]="F14",g[g.F15=73]="F15",g[g.F16=74]="F16",g[g.F17=75]="F17",g[g.F18=76]="F18",g[g.F19=77]="F19",g[g.F20=78]="F20",g[g.F21=79]="F21",g[g.F22=80]="F22",g[g.F23=81]="F23",g[g.F24=82]="F24",g[g.NumLock=83]="NumLock",g[g.ScrollLock=84]="ScrollLock",g[g.Semicolon=85]="Semicolon",g[g.Equal=86]="Equal",g[g.Comma=87]="Comma",g[g.Minus=88]="Minus",g[g.Period=89]="Period",g[g.Slash=90]="Slash",g[g.Backquote=91]="Backquote",g[g.BracketLeft=92]="BracketLeft",g[g.Backslash=93]="Backslash",g[g.BracketRight=94]="BracketRight",g[g.Quote=95]="Quote",g[g.OEM_8=96]="OEM_8",g[g.IntlBackslash=97]="IntlBackslash",g[g.Numpad0=98]="Numpad0",g[g.Numpad1=99]="Numpad1",g[g.Numpad2=100]="Numpad2",g[g.Numpad3=101]="Numpad3",g[g.Numpad4=102]="Numpad4",g[g.Numpad5=103]="Numpad5",g[g.Numpad6=104]="Numpad6",g[g.Numpad7=105]="Numpad7",g[g.Numpad8=106]="Numpad8",g[g.Numpad9=107]="Numpad9",g[g.NumpadMultiply=108]="NumpadMultiply",g[g.NumpadAdd=109]="NumpadAdd",g[g.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",g[g.NumpadSubtract=111]="NumpadSubtract",g[g.NumpadDecimal=112]="NumpadDecimal",g[g.NumpadDivide=113]="NumpadDivide",g[g.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",g[g.ABNT_C1=115]="ABNT_C1",g[g.ABNT_C2=116]="ABNT_C2",g[g.AudioVolumeMute=117]="AudioVolumeMute",g[g.AudioVolumeUp=118]="AudioVolumeUp",g[g.AudioVolumeDown=119]="AudioVolumeDown",g[g.BrowserSearch=120]="BrowserSearch",g[g.BrowserHome=121]="BrowserHome",g[g.BrowserBack=122]="BrowserBack",g[g.BrowserForward=123]="BrowserForward",g[g.MediaTrackNext=124]="MediaTrackNext",g[g.MediaTrackPrevious=125]="MediaTrackPrevious",g[g.MediaStop=126]="MediaStop",g[g.MediaPlayPause=127]="MediaPlayPause",g[g.LaunchMediaPlayer=128]="LaunchMediaPlayer",g[g.LaunchMail=129]="LaunchMail",g[g.LaunchApp2=130]="LaunchApp2",g[g.Clear=131]="Clear",g[g.MAX_VALUE=132]="MAX_VALUE"})(une||(une={}));var dne;(function(g){g[g.Hint=1]="Hint",g[g.Info=2]="Info",g[g.Warning=4]="Warning",g[g.Error=8]="Error"})(dne||(dne={}));var pne;(function(g){g[g.Unnecessary=1]="Unnecessary",g[g.Deprecated=2]="Deprecated"})(pne||(pne={}));var dEe;(function(g){g[g.Inline=1]="Inline",g[g.Gutter=2]="Gutter"})(dEe||(dEe={}));var pEe;(function(g){g[g.Normal=1]="Normal",g[g.Underlined=2]="Underlined"})(pEe||(pEe={}));var fEe;(function(g){g[g.UNKNOWN=0]="UNKNOWN",g[g.TEXTAREA=1]="TEXTAREA",g[g.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",g[g.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",g[g.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",g[g.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",g[g.CONTENT_TEXT=6]="CONTENT_TEXT",g[g.CONTENT_EMPTY=7]="CONTENT_EMPTY",g[g.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",g[g.CONTENT_WIDGET=9]="CONTENT_WIDGET",g[g.OVERVIEW_RULER=10]="OVERVIEW_RULER",g[g.SCROLLBAR=11]="SCROLLBAR",g[g.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",g[g.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(fEe||(fEe={}));var mEe;(function(g){g[g.AIGenerated=1]="AIGenerated"})(mEe||(mEe={}));var _Ee;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(_Ee||(_Ee={}));var hEe;(function(g){g[g.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",g[g.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",g[g.TOP_CENTER=2]="TOP_CENTER"})(hEe||(hEe={}));var gEe;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=4]="Right",g[g.Full=7]="Full"})(gEe||(gEe={}));var vEe;(function(g){g[g.Word=0]="Word",g[g.Line=1]="Line",g[g.Suggest=2]="Suggest"})(vEe||(vEe={}));var yEe;(function(g){g[g.Left=0]="Left",g[g.Right=1]="Right",g[g.None=2]="None",g[g.LeftOfInjectedText=3]="LeftOfInjectedText",g[g.RightOfInjectedText=4]="RightOfInjectedText"})(yEe||(yEe={}));var bEe;(function(g){g[g.Off=0]="Off",g[g.On=1]="On",g[g.Relative=2]="Relative",g[g.Interval=3]="Interval",g[g.Custom=4]="Custom"})(bEe||(bEe={}));var EEe;(function(g){g[g.None=0]="None",g[g.Text=1]="Text",g[g.Blocks=2]="Blocks"})(EEe||(EEe={}));var SEe;(function(g){g[g.Smooth=0]="Smooth",g[g.Immediate=1]="Immediate"})(SEe||(SEe={}));var TEe;(function(g){g[g.Auto=1]="Auto",g[g.Hidden=2]="Hidden",g[g.Visible=3]="Visible"})(TEe||(TEe={}));var fne;(function(g){g[g.LTR=0]="LTR",g[g.RTL=1]="RTL"})(fne||(fne={}));var AEe;(function(g){g.Off="off",g.OnCode="onCode",g.On="on"})(AEe||(AEe={}));var IEe;(function(g){g[g.Invoke=1]="Invoke",g[g.TriggerCharacter=2]="TriggerCharacter",g[g.ContentChange=3]="ContentChange"})(IEe||(IEe={}));var xEe;(function(g){g[g.File=0]="File",g[g.Module=1]="Module",g[g.Namespace=2]="Namespace",g[g.Package=3]="Package",g[g.Class=4]="Class",g[g.Method=5]="Method",g[g.Property=6]="Property",g[g.Field=7]="Field",g[g.Constructor=8]="Constructor",g[g.Enum=9]="Enum",g[g.Interface=10]="Interface",g[g.Function=11]="Function",g[g.Variable=12]="Variable",g[g.Constant=13]="Constant",g[g.String=14]="String",g[g.Number=15]="Number",g[g.Boolean=16]="Boolean",g[g.Array=17]="Array",g[g.Object=18]="Object",g[g.Key=19]="Key",g[g.Null=20]="Null",g[g.EnumMember=21]="EnumMember",g[g.Struct=22]="Struct",g[g.Event=23]="Event",g[g.Operator=24]="Operator",g[g.TypeParameter=25]="TypeParameter"})(xEe||(xEe={}));var REe;(function(g){g[g.Deprecated=1]="Deprecated"})(REe||(REe={}));var DEe;(function(g){g[g.Hidden=0]="Hidden",g[g.Blink=1]="Blink",g[g.Smooth=2]="Smooth",g[g.Phase=3]="Phase",g[g.Expand=4]="Expand",g[g.Solid=5]="Solid"})(DEe||(DEe={}));var CEe;(function(g){g[g.Line=1]="Line",g[g.Block=2]="Block",g[g.Underline=3]="Underline",g[g.LineThin=4]="LineThin",g[g.BlockOutline=5]="BlockOutline",g[g.UnderlineThin=6]="UnderlineThin"})(CEe||(CEe={}));var NEe;(function(g){g[g.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",g[g.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",g[g.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",g[g.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(NEe||(NEe={}));var PEe;(function(g){g[g.None=0]="None",g[g.Same=1]="Same",g[g.Indent=2]="Indent",g[g.DeepIndent=3]="DeepIndent"})(PEe||(PEe={}));const kM=class kM{static chord(v,T){return oze(v,T)}};kM.CtrlCmd=2048,kM.Shift=1024,kM.Alt=512,kM.WinCtrl=256;let mne=kM;function dze(){return{editor:void 0,languages:void 0,CancellationTokenSource:tze,Emitter:e0,KeyCode:une,KeyMod:mne,Position:rd,Range:Ss,Selection:Iy,SelectionDirection:fne,MarkerSeverity:dne,MarkerTag:pne,Uri:Rv,Token:uze}}const D6=class D6{static getChannel(v){return v.getChannel(D6.CHANNEL_NAME)}static setChannel(v,T){v.setChannel(D6.CHANNEL_NAME,T)}};D6.CHANNEL_NAME="editorWorkerHost";let _ne=D6;var MEe;class pze{constructor(){this[MEe]="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(){var v;return(v=this._head)==null?void 0:v.value}get last(){var v;return(v=this._tail)==null?void 0:v.value}has(v){return this._map.has(v)}get(v,T=0){const W=this._map.get(v);if(W)return T!==0&&this.touch(W,T),W.value}set(v,T,W=0){let X=this._map.get(v);if(X)X.value=T,W!==0&&this.touch(X,W);else{switch(X={key:v,value:T,next:void 0,previous:void 0},W){case 0:this.addItemLast(X);break;case 1:this.addItemFirst(X);break;case 2:this.addItemLast(X);break;default:this.addItemLast(X);break}this._map.set(v,X),this._size++}return this}delete(v){return!!this.remove(v)}remove(v){const T=this._map.get(v);if(T)return this._map.delete(v),this.removeItem(T),this._size--,T.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const v=this._head;return this._map.delete(v.key),this.removeItem(v),this._size--,v.value}forEach(v,T){const W=this._state;let X=this._head;for(;X;){if(T?v.bind(T)(X.value,X.key,this):v(X.value,X.key,this),this._state!==W)throw new Error("LinkedMap got modified during iteration.");X=X.next}}keys(){const v=this,T=this._state;let W=this._head;const X={[Symbol.iterator](){return X},next(){if(v._state!==T)throw new Error("LinkedMap got modified during iteration.");if(W){const ue={value:W.key,done:!1};return W=W.next,ue}else return{value:void 0,done:!0}}};return X}values(){const v=this,T=this._state;let W=this._head;const X={[Symbol.iterator](){return X},next(){if(v._state!==T)throw new Error("LinkedMap got modified during iteration.");if(W){const ue={value:W.value,done:!1};return W=W.next,ue}else return{value:void 0,done:!0}}};return X}entries(){const v=this,T=this._state;let W=this._head;const X={[Symbol.iterator](){return X},next(){if(v._state!==T)throw new Error("LinkedMap got modified during iteration.");if(W){const ue={value:[W.key,W.value],done:!1};return W=W.next,ue}else return{value:void 0,done:!0}}};return X}[(MEe=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(v){if(v>=this.size)return;if(v===0){this.clear();return}let T=this._head,W=this.size;for(;T&&W>v;)this._map.delete(T.key),T=T.next,W--;this._head=T,this._size=W,T&&(T.previous=void 0),this._state++}trimNew(v){if(v>=this.size)return;if(v===0){this.clear();return}let T=this._tail,W=this.size;for(;T&&W>v;)this._map.delete(T.key),T=T.previous,W--;this._tail=T,this._size=W,T&&(T.next=void 0),this._state++}addItemFirst(v){if(!this._head&&!this._tail)this._tail=v;else if(this._head)v.next=this._head,this._head.previous=v;else throw new Error("Invalid list");this._head=v,this._state++}addItemLast(v){if(!this._head&&!this._tail)this._head=v;else if(this._tail)v.previous=this._tail,this._tail.next=v;else throw new Error("Invalid list");this._tail=v,this._state++}removeItem(v){if(v===this._head&&v===this._tail)this._head=void 0,this._tail=void 0;else if(v===this._head){if(!v.next)throw new Error("Invalid list");v.next.previous=void 0,this._head=v.next}else if(v===this._tail){if(!v.previous)throw new Error("Invalid list");v.previous.next=void 0,this._tail=v.previous}else{const T=v.next,W=v.previous;if(!T||!W)throw new Error("Invalid list");T.previous=W,W.next=T}v.next=void 0,v.previous=void 0,this._state++}touch(v,T){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(T!==1&&T!==2)){if(T===1){if(v===this._head)return;const W=v.next,X=v.previous;v===this._tail?(X.next=void 0,this._tail=X):(W.previous=X,X.next=W),v.previous=void 0,v.next=this._head,this._head.previous=v,this._head=v,this._state++}else if(T===2){if(v===this._tail)return;const W=v.next,X=v.previous;v===this._head?(W.previous=void 0,this._head=W):(W.previous=X,X.next=W),v.next=void 0,v.previous=this._tail,this._tail.next=v,this._tail=v,this._state++}}}toJSON(){const v=[];return this.forEach((T,W)=>{v.push([W,T])}),v}fromJSON(v){this.clear();for(const[T,W]of v)this.set(T,W)}}class fze extends pze{constructor(v,T=1){super(),this._limit=v,this._ratio=Math.min(Math.max(0,T),1)}get limit(){return this._limit}set limit(v){this._limit=v,this.checkTrim()}get(v,T=2){return super.get(v,T)}peek(v){return super.get(v,0)}set(v,T){return super.set(v,T,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class mze extends fze{constructor(v,T=1){super(v,T)}trim(v){this.trimOld(v)}set(v,T){return super.set(v,T),this.checkTrim(),this}}class _ze{constructor(){this.map=new Map}add(v,T){let W=this.map.get(v);W||(W=new Set,this.map.set(v,W)),W.add(T)}delete(v,T){const W=this.map.get(v);W&&(W.delete(T),W.size===0&&this.map.delete(v))}forEach(v,T){const W=this.map.get(v);W&&W.forEach(T)}get(v){const T=this.map.get(v);return T||new Set}}new mze(10);function hze(g){let v=[];for(;Object.prototype!==g;)v=v.concat(Object.getOwnPropertyNames(g)),g=Object.getPrototypeOf(g);return v}function LEe(g){const v=[];for(const T of hze(g))typeof g[T]=="function"&&v.push(T);return v}function gze(g,v){const T=X=>function(){const ue=Array.prototype.slice.call(arguments,0);return v(X,ue)},W={};for(const X of g)W[X]=T(X);return W}var kEe;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=4]="Right",g[g.Full=7]="Full"})(kEe||(kEe={}));var wEe;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=3]="Right"})(wEe||(wEe={}));var OEe;(function(g){g[g.Both=0]="Both",g[g.Right=1]="Right",g[g.Left=2]="Left",g[g.None=3]="None"})(OEe||(OEe={}));function vze(g,v,T,W,X){if(W===0)return!0;const ue=v.charCodeAt(W-1);if(g.get(ue)!==0||ue===13||ue===10)return!0;if(X>0){const Te=v.charCodeAt(W);if(g.get(Te)!==0)return!0}return!1}function yze(g,v,T,W,X){if(W+X===T)return!0;const ue=v.charCodeAt(W+X);if(g.get(ue)!==0||ue===13||ue===10)return!0;if(X>0){const Te=v.charCodeAt(W+X-1);if(g.get(Te)!==0)return!0}return!1}function bze(g,v,T,W,X){return vze(g,v,T,W,X)&&yze(g,v,T,W,X)}class Eze{constructor(v,T){this._wordSeparators=v,this._searchRegex=T,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(v){this._searchRegex.lastIndex=v,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(v){const T=v.length;let W;do{if(this._prevMatchStartIndex+this._prevMatchLength===T||(W=this._searchRegex.exec(v),!W))return null;const X=W.index,ue=W[0].length;if(X===this._prevMatchStartIndex&&ue===this._prevMatchLength){if(ue===0){m5e(v,T,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=X,this._prevMatchLength=ue,!this._wordSeparators||bze(this._wordSeparators,v,T,X,ue))return W}while(W);return null}}function Sze(g,v="Unreachable"){throw new Error(v)}function KB(g){if(!g()){debugger;g(),_6(new Ay("Assertion Failed"))}}function WEe(g,v){let T=0;for(;T<g.length-1;){const W=g[T],X=g[T+1];if(!v(W,X))return!1;T++}return!0}const Tze="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Aze(g=""){let v="(-?\\d*\\.\\d\\w*)|([^";for(const T of Tze)g.indexOf(T)>=0||(v+="\\"+T);return v+="\\s]+)",new RegExp(v,"g")}const FEe=Aze();function zEe(g){let v=FEe;if(g&&g instanceof RegExp)if(g.global)v=g;else{let T="g";g.ignoreCase&&(T+="i"),g.multiline&&(T+="m"),g.unicode&&(T+="u"),v=new RegExp(g.source,T)}return v.lastIndex=0,v}const BEe=new U7e;BEe.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function hne(g,v,T,W,X){if(v=zEe(v),X||(X=wB.first(BEe)),T.length>X.maxLen){let Le=g-X.maxLen/2;return Le<0?Le=0:W+=Le,T=T.substring(Le,g+X.maxLen/2),hne(g,v,T,W,X)}const ue=Date.now(),Te=g-1-W;let Be=-1,at=null;for(let Le=1;!(Date.now()-ue>=X.timeBudget);Le++){const He=Te-X.windowSize*Le;v.lastIndex=Math.max(0,He);const jt=Ize(v,T,Te,Be);if(!jt&&at||(at=jt,He<=0))break;Be=He}if(at){const Le={word:at[0],startColumn:W+1+at.index,endColumn:W+1+at.index+at[0].length};return v.lastIndex=0,Le}return null}function Ize(g,v,T,W){let X;for(;X=g.exec(v);){const ue=X.index||0;if(ue<=T&&g.lastIndex>=T)return X;if(W>0&&ue>W)return null}return null}class xze{static computeUnicodeHighlights(v,T,W){const X=W?W.startLineNumber:1,ue=W?W.endLineNumber:v.getLineCount(),Te=new GEe(T),Be=Te.getCandidateCodePoints();let at;Be==="allNonBasicAscii"?at=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):at=new RegExp("".concat(Rze(Array.from(Be))),"g");const Le=new Eze(null,at),He=[];let jt=!1,qt,fn=0,Mr=0,hi=0;e:for(let oo=X,Yn=ue;oo<=Yn;oo++){const Tn=v.getLineContent(oo),ko=Tn.length;Le.reset(0);do if(qt=Le.next(Tn),qt){let Br=qt.index,zi=qt.index+qt[0].length;if(Br>0){const Ac=Tn.charCodeAt(Br-1);BB(Ac)&&Br--}if(zi+1<ko){const Ac=Tn.charCodeAt(zi-1);BB(Ac)&&zi++}const Go=Tn.substring(Br,zi);let Nr=hne(Br+1,FEe,Tn,0);Nr&&Nr.endColumn<=Br+1&&(Nr=null);const Na=Te.shouldHighlightNonBasicASCII(Go,Nr?Nr.word:null);if(Na!==0){if(Na===3?fn++:Na===2?Mr++:Na===1?hi++:Sze(),He.length>=1e3){jt=!0;break e}He.push(new Ss(oo,Br+1,oo,zi+1))}}while(qt)}return{ranges:He,hasMore:jt,ambiguousCharacterCount:fn,invisibleCharacterCount:Mr,nonBasicAsciiCharacterCount:hi}}static computeUnicodeHighlightReason(v,T){const W=new GEe(T);switch(W.shouldHighlightNonBasicASCII(v,null)){case 0:return null;case 2:return{kind:1};case 3:{const ue=v.codePointAt(0),Te=W.ambiguousCharacters.getPrimaryConfusable(ue),Be=v6.getLocales().filter(at=>!v6.getInstance(new Set([...T.allowedLocales,at])).isAmbiguous(ue));return{kind:0,confusableWith:String.fromCodePoint(Te),notAmbiguousInLocales:Be}}case 1:return{kind:2}}}}function Rze(g,v){return"[".concat(u5e(g.map(W=>String.fromCodePoint(W)).join("")),"]")}class GEe{constructor(v){this.options=v,this.allowedCodePoints=new Set(v.allowedCodePoints),this.ambiguousCharacters=v6.getInstance(new Set(v.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const v=new Set;if(this.options.invisibleCharacters)for(const T of y6.codePoints)VEe(String.fromCodePoint(T))||v.add(T);if(this.options.ambiguousCharacters)for(const T of this.ambiguousCharacters.getConfusableCodePoints())v.add(T);for(const T of this.allowedCodePoints)v.delete(T);return v}shouldHighlightNonBasicASCII(v,T){const W=v.codePointAt(0);if(this.allowedCodePoints.has(W))return 0;if(this.options.nonBasicASCII)return 1;let X=!1,ue=!1;if(T)for(const Te of T){const Be=Te.codePointAt(0),at=h5e(Te);X=X||at,!at&&!this.ambiguousCharacters.isAmbiguous(Be)&&!y6.isInvisibleCharacter(Be)&&(ue=!0)}return!X&&ue?0:this.options.invisibleCharacters&&!VEe(v)&&y6.isInvisibleCharacter(W)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(W)?3:0}}function VEe(g){return g===" "||g==="\n"||g===" "}class XB{constructor(v,T,W){this.changes=v,this.moves=T,this.hitTimeout=W}}class Dze{constructor(v,T){this.lineRangeMapping=v,this.changes=T}}class kc{static addRange(v,T){let W=0;for(;W<T.length&&T[W].endExclusive<v.start;)W++;let X=W;for(;X<T.length&&T[X].start<=v.endExclusive;)X++;if(W===X)T.splice(W,0,v);else{const ue=Math.min(v.start,T[W].start),Te=Math.max(v.endExclusive,T[X-1].endExclusive);T.splice(W,X-W,new kc(ue,Te))}}static tryCreate(v,T){if(!(v>T))return new kc(v,T)}static ofLength(v){return new kc(0,v)}static ofStartAndLength(v,T){return new kc(v,v+T)}constructor(v,T){if(this.start=v,this.endExclusive=T,v>T)throw new Ay("Invalid range: ".concat(this.toString()))}get isEmpty(){return this.start===this.endExclusive}delta(v){return new kc(this.start+v,this.endExclusive+v)}deltaStart(v){return new kc(this.start+v,this.endExclusive)}deltaEnd(v){return new kc(this.start,this.endExclusive+v)}get length(){return this.endExclusive-this.start}toString(){return"[".concat(this.start,", ").concat(this.endExclusive,")")}contains(v){return this.start<=v&&v<this.endExclusive}join(v){return new kc(Math.min(this.start,v.start),Math.max(this.endExclusive,v.endExclusive))}intersect(v){const T=Math.max(this.start,v.start),W=Math.min(this.endExclusive,v.endExclusive);if(T<=W)return new kc(T,W)}intersects(v){const T=Math.max(this.start,v.start),W=Math.min(this.endExclusive,v.endExclusive);return T<W}isBefore(v){return this.endExclusive<=v.start}isAfter(v){return this.start>=v.endExclusive}slice(v){return v.slice(this.start,this.endExclusive)}substring(v){return v.substring(this.start,this.endExclusive)}clip(v){if(this.isEmpty)throw new Ay("Invalid clipping range: ".concat(this.toString()));return Math.max(this.start,Math.min(this.endExclusive-1,v))}clipCyclic(v){if(this.isEmpty)throw new Ay("Invalid clipping range: ".concat(this.toString()));return v<this.start?this.endExclusive-(this.start-v)%this.length:v>=this.endExclusive?this.start+(v-this.start)%this.length:v}forEach(v){for(let T=this.start;T<this.endExclusive;T++)v(T)}}function xM(g,v){const T=S6(g,v);return T===-1?void 0:g[T]}function S6(g,v,T=0,W=g.length){let X=T,ue=W;for(;X<ue;){const Te=Math.floor((X+ue)/2);v(g[Te])?X=Te+1:ue=Te}return X-1}function Cze(g,v){const T=gne(g,v);return T===g.length?void 0:g[T]}function gne(g,v,T=0,W=g.length){let X=T,ue=W;for(;X<ue;){const Te=Math.floor((X+ue)/2);v(g[Te])?ue=Te:X=Te+1}return X}const sG=class sG{constructor(v){this._array=v,this._findLastMonotonousLastIdx=0}findLastMonotonous(v){if(sG.assertInvariants){if(this._prevFindLastPredicate){for(const W of this._array)if(this._prevFindLastPredicate(W)&&!v(W))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=v}const T=S6(this._array,v,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=T+1,T===-1?void 0:this._array[T]}};sG.assertInvariants=!1;let YB=sG;class Bl{static fromRangeInclusive(v){return new Bl(v.startLineNumber,v.endLineNumber+1)}static joinMany(v){if(v.length===0)return[];let T=new lS(v[0].slice());for(let W=1;W<v.length;W++)T=T.getUnion(new lS(v[W].slice()));return T.ranges}static join(v){if(v.length===0)throw new Ay("lineRanges cannot be empty");let T=v[0].startLineNumber,W=v[0].endLineNumberExclusive;for(let X=1;X<v.length;X++)T=Math.min(T,v[X].startLineNumber),W=Math.max(W,v[X].endLineNumberExclusive);return new Bl(T,W)}static ofLength(v,T){return new Bl(v,v+T)}static deserialize(v){return new Bl(v[0],v[1])}constructor(v,T){if(v>T)throw new Ay("startLineNumber ".concat(v," cannot be after endLineNumberExclusive ").concat(T));this.startLineNumber=v,this.endLineNumberExclusive=T}contains(v){return this.startLineNumber<=v&&v<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(v){return new Bl(this.startLineNumber+v,this.endLineNumberExclusive+v)}deltaLength(v){return new Bl(this.startLineNumber,this.endLineNumberExclusive+v)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(v){return new Bl(Math.min(this.startLineNumber,v.startLineNumber),Math.max(this.endLineNumberExclusive,v.endLineNumberExclusive))}toString(){return"[".concat(this.startLineNumber,",").concat(this.endLineNumberExclusive,")")}intersect(v){const T=Math.max(this.startLineNumber,v.startLineNumber),W=Math.min(this.endLineNumberExclusive,v.endLineNumberExclusive);if(T<=W)return new Bl(T,W)}intersectsStrict(v){return this.startLineNumber<v.endLineNumberExclusive&&v.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(v){return this.startLineNumber<=v.endLineNumberExclusive&&v.startLineNumber<=this.endLineNumberExclusive}equals(v){return this.startLineNumber===v.startLineNumber&&this.endLineNumberExclusive===v.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Ss(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Ss(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(v){const T=[];for(let W=this.startLineNumber;W<this.endLineNumberExclusive;W++)T.push(v(W));return T}forEach(v){for(let T=this.startLineNumber;T<this.endLineNumberExclusive;T++)v(T)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(v){return this.startLineNumber<=v&&v<this.endLineNumberExclusive}toOffsetRange(){return new kc(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class lS{constructor(v=[]){this._normalizedRanges=v}get ranges(){return this._normalizedRanges}addRange(v){if(v.length===0)return;const T=gne(this._normalizedRanges,X=>X.endLineNumberExclusive>=v.startLineNumber),W=S6(this._normalizedRanges,X=>X.startLineNumber<=v.endLineNumberExclusive)+1;if(T===W)this._normalizedRanges.splice(T,0,v);else if(T===W-1){const X=this._normalizedRanges[T];this._normalizedRanges[T]=X.join(v)}else{const X=this._normalizedRanges[T].join(this._normalizedRanges[W-1]).join(v);this._normalizedRanges.splice(T,W-T,X)}}contains(v){const T=xM(this._normalizedRanges,W=>W.startLineNumber<=v);return!!T&&T.endLineNumberExclusive>v}intersects(v){const T=xM(this._normalizedRanges,W=>W.startLineNumber<v.endLineNumberExclusive);return!!T&&T.endLineNumberExclusive>v.startLineNumber}getUnion(v){if(this._normalizedRanges.length===0)return v;if(v._normalizedRanges.length===0)return this;const T=[];let W=0,X=0,ue=null;for(;W<this._normalizedRanges.length||X<v._normalizedRanges.length;){let Te=null;if(W<this._normalizedRanges.length&&X<v._normalizedRanges.length){const Be=this._normalizedRanges[W],at=v._normalizedRanges[X];Be.startLineNumber<at.startLineNumber?(Te=Be,W++):(Te=at,X++)}else W<this._normalizedRanges.length?(Te=this._normalizedRanges[W],W++):(Te=v._normalizedRanges[X],X++);ue===null?ue=Te:ue.endLineNumberExclusive>=Te.startLineNumber?ue=new Bl(ue.startLineNumber,Math.max(ue.endLineNumberExclusive,Te.endLineNumberExclusive)):(T.push(ue),ue=Te)}return ue!==null&&T.push(ue),new lS(T)}subtractFrom(v){const T=gne(this._normalizedRanges,Te=>Te.endLineNumberExclusive>=v.startLineNumber),W=S6(this._normalizedRanges,Te=>Te.startLineNumber<=v.endLineNumberExclusive)+1;if(T===W)return new lS([v]);const X=[];let ue=v.startLineNumber;for(let Te=T;Te<W;Te++){const Be=this._normalizedRanges[Te];Be.startLineNumber>ue&&X.push(new Bl(ue,Be.startLineNumber)),ue=Be.endLineNumberExclusive}return ue<v.endLineNumberExclusive&&X.push(new Bl(ue,v.endLineNumberExclusive)),new lS(X)}toString(){return this._normalizedRanges.map(v=>v.toString()).join(", ")}getIntersection(v){const T=[];let W=0,X=0;for(;W<this._normalizedRanges.length&&X<v._normalizedRanges.length;){const ue=this._normalizedRanges[W],Te=v._normalizedRanges[X],Be=ue.intersect(Te);Be&&!Be.isEmpty&&T.push(Be),ue.endLineNumberExclusive<Te.endLineNumberExclusive?W++:X++}return new lS(T)}getWithDelta(v){return new lS(this._normalizedRanges.map(T=>T.delta(v)))}}const Wx=class Wx{static betweenPositions(v,T){return v.lineNumber===T.lineNumber?new Wx(0,T.column-v.column):new Wx(T.lineNumber-v.lineNumber,T.column-1)}static ofRange(v){return Wx.betweenPositions(v.getStartPosition(),v.getEndPosition())}static ofText(v){let T=0,W=0;for(const X of v)X==="\n"?(T++,W=0):W++;return new Wx(T,W)}constructor(v,T){this.lineCount=v,this.columnCount=T}isGreaterThanOrEqualTo(v){return this.lineCount!==v.lineCount?this.lineCount>v.lineCount:this.columnCount>=v.columnCount}createRange(v){return this.lineCount===0?new Ss(v.lineNumber,v.column,v.lineNumber,v.column+this.columnCount):new Ss(v.lineNumber,v.column,v.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(v){return this.lineCount===0?new rd(v.lineNumber,v.column+this.columnCount):new rd(v.lineNumber+this.lineCount,this.columnCount+1)}toString(){return"".concat(this.lineCount,",").concat(this.columnCount)}};Wx.zero=new Wx(0,0);let jEe=Wx;class Nze{constructor(v,T){this.range=v,this.text=T}toSingleEditOperation(){return{range:this.range,text:this.text}}}class t0{static inverse(v,T,W){const X=[];let ue=1,Te=1;for(const at of v){const Le=new t0(new Bl(ue,at.original.startLineNumber),new Bl(Te,at.modified.startLineNumber));Le.modified.isEmpty||X.push(Le),ue=at.original.endLineNumberExclusive,Te=at.modified.endLineNumberExclusive}const Be=new t0(new Bl(ue,T+1),new Bl(Te,W+1));return Be.modified.isEmpty||X.push(Be),X}static clip(v,T,W){const X=[];for(const ue of v){const Te=ue.original.intersect(T),Be=ue.modified.intersect(W);Te&&!Te.isEmpty&&Be&&!Be.isEmpty&&X.push(new t0(Te,Be))}return X}constructor(v,T){this.original=v,this.modified=T}toString(){return"{".concat(this.original.toString(),"->").concat(this.modified.toString(),"}")}flip(){return new t0(this.modified,this.original)}join(v){return new t0(this.original.join(v.original),this.modified.join(v.modified))}toRangeMapping(){const v=this.original.toInclusiveRange(),T=this.modified.toInclusiveRange();if(v&&T)return new xE(v,T);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new Ay("not a valid diff");return new xE(new Ss(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Ss(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new xE(new Ss(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Ss(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(v,T){if(UEe(this.original.endLineNumberExclusive,v)&&UEe(this.modified.endLineNumberExclusive,T))return new xE(new Ss(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Ss(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new xE(Ss.fromPositions(new rd(this.original.startLineNumber,1),RM(new rd(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),v)),Ss.fromPositions(new rd(this.modified.startLineNumber,1),RM(new rd(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),T)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new xE(Ss.fromPositions(RM(new rd(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),v),RM(new rd(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),v)),Ss.fromPositions(RM(new rd(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),T),RM(new rd(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),T)));throw new Ay}}function RM(g,v){if(g.lineNumber<1)return new rd(1,1);if(g.lineNumber>v.length)return new rd(v.length,v[v.length-1].length+1);const T=v[g.lineNumber-1];return g.column>T.length+1?new rd(g.lineNumber,T.length+1):g}function UEe(g,v){return g>=1&&g<=v.length}class gA extends t0{static fromRangeMappings(v){const T=Bl.join(v.map(X=>Bl.fromRangeInclusive(X.originalRange))),W=Bl.join(v.map(X=>Bl.fromRangeInclusive(X.modifiedRange)));return new gA(T,W,v)}constructor(v,T,W){super(v,T),this.innerChanges=W}flip(){var v;return new gA(this.modified,this.original,(v=this.innerChanges)==null?void 0:v.map(T=>T.flip()))}withInnerChangesFromLineRanges(){return new gA(this.original,this.modified,[this.toRangeMapping()])}}class xE{static assertSorted(v){for(let T=1;T<v.length;T++){const W=v[T-1],X=v[T];if(!(W.originalRange.getEndPosition().isBeforeOrEqual(X.originalRange.getStartPosition())&&W.modifiedRange.getEndPosition().isBeforeOrEqual(X.modifiedRange.getStartPosition())))throw new Ay("Range mappings must be sorted")}}constructor(v,T){this.originalRange=v,this.modifiedRange=T}toString(){return"{".concat(this.originalRange.toString(),"->").concat(this.modifiedRange.toString(),"}")}flip(){return new xE(this.modifiedRange,this.originalRange)}toTextEdit(v){const T=v.getValueOfRange(this.modifiedRange);return new Nze(this.originalRange,T)}}const Pze=3;class Mze{computeDiff(v,T,W){var at;const ue=new wze(v,T,{maxComputationTime:W.maxComputationTimeMs,shouldIgnoreTrimWhitespace:W.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Te=[];let Be=null;for(const Le of ue.changes){let He;Le.originalEndLineNumber===0?He=new Bl(Le.originalStartLineNumber+1,Le.originalStartLineNumber+1):He=new Bl(Le.originalStartLineNumber,Le.originalEndLineNumber+1);let jt;Le.modifiedEndLineNumber===0?jt=new Bl(Le.modifiedStartLineNumber+1,Le.modifiedStartLineNumber+1):jt=new Bl(Le.modifiedStartLineNumber,Le.modifiedEndLineNumber+1);let qt=new gA(He,jt,(at=Le.charChanges)==null?void 0:at.map(fn=>new xE(new Ss(fn.originalStartLineNumber,fn.originalStartColumn,fn.originalEndLineNumber,fn.originalEndColumn),new Ss(fn.modifiedStartLineNumber,fn.modifiedStartColumn,fn.modifiedEndLineNumber,fn.modifiedEndColumn))));Be&&(Be.modified.endLineNumberExclusive===qt.modified.startLineNumber||Be.original.endLineNumberExclusive===qt.original.startLineNumber)&&(qt=new gA(Be.original.join(qt.original),Be.modified.join(qt.modified),Be.innerChanges&&qt.innerChanges?Be.innerChanges.concat(qt.innerChanges):void 0),Te.pop()),Te.push(qt),Be=qt}return KB(()=>WEe(Te,(Le,He)=>He.original.startLineNumber-Le.original.endLineNumberExclusive===He.modified.startLineNumber-Le.modified.endLineNumberExclusive&&Le.original.endLineNumberExclusive<He.original.startLineNumber&&Le.modified.endLineNumberExclusive<He.modified.startLineNumber)),new XB(Te,[],ue.quitEarly)}}function HEe(g,v,T,W){return new wx(g,v,T).ComputeDiff(W)}let qEe=class{constructor(v){const T=[],W=[];for(let X=0,ue=v.length;X<ue;X++)T[X]=vne(v[X],1),W[X]=yne(v[X],1);this.lines=v,this._startColumns=T,this._endColumns=W}getElements(){const v=[];for(let T=0,W=this.lines.length;T<W;T++)v[T]=this.lines[T].substring(this._startColumns[T]-1,this._endColumns[T]-1);return v}getStrictElement(v){return this.lines[v]}getStartLineNumber(v){return v+1}getEndLineNumber(v){return v+1}createCharSequence(v,T,W){const X=[],ue=[],Te=[];let Be=0;for(let at=T;at<=W;at++){const Le=this.lines[at],He=v?this._startColumns[at]:1,jt=v?this._endColumns[at]:Le.length+1;for(let qt=He;qt<jt;qt++)X[Be]=Le.charCodeAt(qt-1),ue[Be]=at+1,Te[Be]=qt,Be++;!v&&at<W&&(X[Be]=10,ue[Be]=at+1,Te[Be]=Le.length+1,Be++)}return new Lze(X,ue,Te)}};class Lze{constructor(v,T,W){this._charCodes=v,this._lineNumbers=T,this._columns=W}toString(){return"["+this._charCodes.map((v,T)=>(v===10?"\\n":String.fromCharCode(v))+"-(".concat(this._lineNumbers[T],",").concat(this._columns[T],")")).join(", ")+"]"}_assertIndex(v,T){if(v<0||v>=T.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(v){return v>0&&v===this._lineNumbers.length?this.getEndLineNumber(v-1):(this._assertIndex(v,this._lineNumbers),this._lineNumbers[v])}getEndLineNumber(v){return v===-1?this.getStartLineNumber(v+1):(this._assertIndex(v,this._lineNumbers),this._charCodes[v]===10?this._lineNumbers[v]+1:this._lineNumbers[v])}getStartColumn(v){return v>0&&v===this._columns.length?this.getEndColumn(v-1):(this._assertIndex(v,this._columns),this._columns[v])}getEndColumn(v){return v===-1?this.getStartColumn(v+1):(this._assertIndex(v,this._columns),this._charCodes[v]===10?1:this._columns[v]+1)}}class DM{constructor(v,T,W,X,ue,Te,Be,at){this.originalStartLineNumber=v,this.originalStartColumn=T,this.originalEndLineNumber=W,this.originalEndColumn=X,this.modifiedStartLineNumber=ue,this.modifiedStartColumn=Te,this.modifiedEndLineNumber=Be,this.modifiedEndColumn=at}static createFromDiffChange(v,T,W){const X=T.getStartLineNumber(v.originalStart),ue=T.getStartColumn(v.originalStart),Te=T.getEndLineNumber(v.originalStart+v.originalLength-1),Be=T.getEndColumn(v.originalStart+v.originalLength-1),at=W.getStartLineNumber(v.modifiedStart),Le=W.getStartColumn(v.modifiedStart),He=W.getEndLineNumber(v.modifiedStart+v.modifiedLength-1),jt=W.getEndColumn(v.modifiedStart+v.modifiedLength-1);return new DM(X,ue,Te,Be,at,Le,He,jt)}}function kze(g){if(g.length<=1)return g;const v=[g[0]];let T=v[0];for(let W=1,X=g.length;W<X;W++){const ue=g[W],Te=ue.originalStart-(T.originalStart+T.originalLength),Be=ue.modifiedStart-(T.modifiedStart+T.modifiedLength);Math.min(Te,Be)<Pze?(T.originalLength=ue.originalStart+ue.originalLength-T.originalStart,T.modifiedLength=ue.modifiedStart+ue.modifiedLength-T.modifiedStart):(v.push(ue),T=ue)}return v}class T6{constructor(v,T,W,X,ue){this.originalStartLineNumber=v,this.originalEndLineNumber=T,this.modifiedStartLineNumber=W,this.modifiedEndLineNumber=X,this.charChanges=ue}static createFromDiffResult(v,T,W,X,ue,Te,Be){let at,Le,He,jt,qt;if(T.originalLength===0?(at=W.getStartLineNumber(T.originalStart)-1,Le=0):(at=W.getStartLineNumber(T.originalStart),Le=W.getEndLineNumber(T.originalStart+T.originalLength-1)),T.modifiedLength===0?(He=X.getStartLineNumber(T.modifiedStart)-1,jt=0):(He=X.getStartLineNumber(T.modifiedStart),jt=X.getEndLineNumber(T.modifiedStart+T.modifiedLength-1)),Te&&T.originalLength>0&&T.originalLength<20&&T.modifiedLength>0&&T.modifiedLength<20&&ue()){const fn=W.createCharSequence(v,T.originalStart,T.originalStart+T.originalLength-1),Mr=X.createCharSequence(v,T.modifiedStart,T.modifiedStart+T.modifiedLength-1);if(fn.getElements().length>0&&Mr.getElements().length>0){let hi=HEe(fn,Mr,ue,!0).changes;Be&&(hi=kze(hi)),qt=[];for(let oo=0,Yn=hi.length;oo<Yn;oo++)qt.push(DM.createFromDiffChange(hi[oo],fn,Mr))}}return new T6(at,Le,He,jt,qt)}}class wze{constructor(v,T,W){this.shouldComputeCharChanges=W.shouldComputeCharChanges,this.shouldPostProcessCharChanges=W.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=W.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=W.shouldMakePrettyDiff,this.originalLines=v,this.modifiedLines=T,this.original=new qEe(v),this.modified=new qEe(T),this.continueLineDiff=JEe(W.maxComputationTime),this.continueCharDiff=JEe(W.maxComputationTime===0?0:Math.min(W.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const v=HEe(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),T=v.changes,W=v.quitEarly;if(this.shouldIgnoreTrimWhitespace){const Be=[];for(let at=0,Le=T.length;at<Le;at++)Be.push(T6.createFromDiffResult(this.shouldIgnoreTrimWhitespace,T[at],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:W,changes:Be}}const X=[];let ue=0,Te=0;for(let Be=-1,at=T.length;Be<at;Be++){const Le=Be+1<at?T[Be+1]:null,He=Le?Le.originalStart:this.originalLines.length,jt=Le?Le.modifiedStart:this.modifiedLines.length;for(;ue<He&&Te<jt;){const qt=this.originalLines[ue],fn=this.modifiedLines[Te];if(qt!==fn){{let Mr=vne(qt,1),hi=vne(fn,1);for(;Mr>1&&hi>1;){const oo=qt.charCodeAt(Mr-2),Yn=fn.charCodeAt(hi-2);if(oo!==Yn)break;Mr--,hi--}(Mr>1||hi>1)&&this._pushTrimWhitespaceCharChange(X,ue+1,1,Mr,Te+1,1,hi)}{let Mr=yne(qt,1),hi=yne(fn,1);const oo=qt.length+1,Yn=fn.length+1;for(;Mr<oo&&hi<Yn;){const Tn=qt.charCodeAt(Mr-1),ko=qt.charCodeAt(hi-1);if(Tn!==ko)break;Mr++,hi++}(Mr<oo||hi<Yn)&&this._pushTrimWhitespaceCharChange(X,ue+1,Mr,oo,Te+1,hi,Yn)}}ue++,Te++}Le&&(X.push(T6.createFromDiffResult(this.shouldIgnoreTrimWhitespace,Le,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),ue+=Le.originalLength,Te+=Le.modifiedLength)}return{quitEarly:W,changes:X}}_pushTrimWhitespaceCharChange(v,T,W,X,ue,Te,Be){if(this._mergeTrimWhitespaceCharChange(v,T,W,X,ue,Te,Be))return;let at;this.shouldComputeCharChanges&&(at=[new DM(T,W,T,X,ue,Te,ue,Be)]),v.push(new T6(T,T,ue,ue,at))}_mergeTrimWhitespaceCharChange(v,T,W,X,ue,Te,Be){const at=v.length;if(at===0)return!1;const Le=v[at-1];return Le.originalEndLineNumber===0||Le.modifiedEndLineNumber===0?!1:Le.originalEndLineNumber===T&&Le.modifiedEndLineNumber===ue?(this.shouldComputeCharChanges&&Le.charChanges&&Le.charChanges.push(new DM(T,W,T,X,ue,Te,ue,Be)),!0):Le.originalEndLineNumber+1===T&&Le.modifiedEndLineNumber+1===ue?(Le.originalEndLineNumber=T,Le.modifiedEndLineNumber=ue,this.shouldComputeCharChanges&&Le.charChanges&&Le.charChanges.push(new DM(T,W,T,X,ue,Te,ue,Be)),!0):!1}}function vne(g,v){const T=p5e(g);return T===-1?v:T+1}function yne(g,v){const T=f5e(g);return T===-1?v:T+2}function JEe(g){if(g===0)return()=>!0;const v=Date.now();return()=>Date.now()-v<g}function Oze(g,v,T=(W,X)=>W===X){if(g===v)return!0;if(!g||!v||g.length!==v.length)return!1;for(let W=0,X=g.length;W<X;W++)if(!T(g[W],v[W]))return!1;return!0}function*Wze(g,v){let T,W;for(const X of g)W!==void 0&&v(W,X)?T.push(X):(T&&(yield T),T=[X]),W=X;T&&(yield T)}function Fze(g,v){for(let T=0;T<=g.length;T++)v(T===0?void 0:g[T-1],T===g.length?void 0:g[T])}function zze(g,v){for(let T=0;T<g.length;T++)v(T===0?void 0:g[T-1],g[T],T+1===g.length?void 0:g[T+1])}function Bze(g,v){for(const T of v)g.push(T)}var bne;(function(g){function v(ue){return ue<0}g.isLessThan=v;function T(ue){return ue<=0}g.isLessThanOrEqual=T;function W(ue){return ue>0}g.isGreaterThan=W;function X(ue){return ue===0}g.isNeitherLessOrGreaterThan=X,g.greaterThan=1,g.lessThan=-1,g.neitherLessOrGreaterThan=0})(bne||(bne={}));function $B(g,v){return(T,W)=>v(g(T),g(W))}const QB=(g,v)=>g-v;function Gze(g){return(v,T)=>-g(v,T)}const wM=class wM{constructor(v){this.iterate=v}toArray(){const v=[];return this.iterate(T=>(v.push(T),!0)),v}filter(v){return new wM(T=>this.iterate(W=>v(W)?T(W):!0))}map(v){return new wM(T=>this.iterate(W=>T(v(W))))}findLast(v){let T;return this.iterate(W=>(v(W)&&(T=W),!0)),T}findLastMaxBy(v){let T,W=!0;return this.iterate(X=>((W||bne.isGreaterThan(v(X,T)))&&(W=!1,T=X),!0)),T}};wM.empty=new wM(v=>{});let KEe=wM;class vA{static trivial(v,T){return new vA([new $p(kc.ofLength(v.length),kc.ofLength(T.length))],!1)}static trivialTimedOut(v,T){return new vA([new $p(kc.ofLength(v.length),kc.ofLength(T.length))],!0)}constructor(v,T){this.diffs=v,this.hitTimeout=T}}class $p{static invert(v,T){const W=[];return Fze(v,(X,ue)=>{W.push($p.fromOffsetPairs(X?X.getEndExclusives():yA.zero,ue?ue.getStarts():new yA(T,(X?X.seq2Range.endExclusive-X.seq1Range.endExclusive:0)+T)))}),W}static fromOffsetPairs(v,T){return new $p(new kc(v.offset1,T.offset1),new kc(v.offset2,T.offset2))}static assertSorted(v){let T;for(const W of v){if(T&&!(T.seq1Range.endExclusive<=W.seq1Range.start&&T.seq2Range.endExclusive<=W.seq2Range.start))throw new Ay("Sequence diffs must be sorted");T=W}}constructor(v,T){this.seq1Range=v,this.seq2Range=T}swap(){return new $p(this.seq2Range,this.seq1Range)}toString(){return"".concat(this.seq1Range," <-> ").concat(this.seq2Range)}join(v){return new $p(this.seq1Range.join(v.seq1Range),this.seq2Range.join(v.seq2Range))}delta(v){return v===0?this:new $p(this.seq1Range.delta(v),this.seq2Range.delta(v))}deltaStart(v){return v===0?this:new $p(this.seq1Range.deltaStart(v),this.seq2Range.deltaStart(v))}deltaEnd(v){return v===0?this:new $p(this.seq1Range.deltaEnd(v),this.seq2Range.deltaEnd(v))}intersect(v){const T=this.seq1Range.intersect(v.seq1Range),W=this.seq2Range.intersect(v.seq2Range);if(!(!T||!W))return new $p(T,W)}getStarts(){return new yA(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new yA(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const JC=class JC{constructor(v,T){this.offset1=v,this.offset2=T}toString(){return"".concat(this.offset1," <-> ").concat(this.offset2)}delta(v){return v===0?this:new JC(this.offset1+v,this.offset2+v)}equals(v){return this.offset1===v.offset1&&this.offset2===v.offset2}};JC.zero=new JC(0,0),JC.max=new JC(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let yA=JC;const lG=class lG{isValid(){return!0}};lG.instance=new lG;let A6=lG;class Vze{constructor(v){if(this.timeout=v,this.startTime=Date.now(),this.valid=!0,v<=0)throw new Ay("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class Ene{constructor(v,T){this.width=v,this.height=T,this.array=[],this.array=new Array(v*T)}get(v,T){return this.array[v+T*this.width]}set(v,T,W){this.array[v+T*this.width]=W}}function Sne(g){return g===32||g===9}const C6=class C6{static getKey(v){let T=this.chrKeys.get(v);return T===void 0&&(T=this.chrKeys.size,this.chrKeys.set(v,T)),T}constructor(v,T,W){this.range=v,this.lines=T,this.source=W,this.histogram=[];let X=0;for(let ue=v.startLineNumber-1;ue<v.endLineNumberExclusive-1;ue++){const Te=T[ue];for(let at=0;at<Te.length;at++){X++;const Le=Te[at],He=C6.getKey(Le);this.histogram[He]=(this.histogram[He]||0)+1}X++;const Be=C6.getKey("\n");this.histogram[Be]=(this.histogram[Be]||0)+1}this.totalCount=X}computeSimilarity(v){var X,ue;let T=0;const W=Math.max(this.histogram.length,v.histogram.length);for(let Te=0;Te<W;Te++)T+=Math.abs(((X=this.histogram[Te])!=null?X:0)-((ue=v.histogram[Te])!=null?ue:0));return 1-T/(this.totalCount+v.totalCount)}};C6.chrKeys=new Map;let ZB=C6;class jze{compute(v,T,W=A6.instance,X){if(v.length===0||T.length===0)return vA.trivial(v,T);const ue=new Ene(v.length,T.length),Te=new Ene(v.length,T.length),Be=new Ene(v.length,T.length);for(let Mr=0;Mr<v.length;Mr++)for(let hi=0;hi<T.length;hi++){if(!W.isValid())return vA.trivialTimedOut(v,T);const oo=Mr===0?0:ue.get(Mr-1,hi),Yn=hi===0?0:ue.get(Mr,hi-1);let Tn;v.getElement(Mr)===T.getElement(hi)?(Mr===0||hi===0?Tn=0:Tn=ue.get(Mr-1,hi-1),Mr>0&&hi>0&&Te.get(Mr-1,hi-1)===3&&(Tn+=Be.get(Mr-1,hi-1)),Tn+=X?X(Mr,hi):1):Tn=-1;const ko=Math.max(oo,Yn,Tn);if(ko===Tn){const Br=Mr>0&&hi>0?Be.get(Mr-1,hi-1):0;Be.set(Mr,hi,Br+1),Te.set(Mr,hi,3)}else ko===oo?(Be.set(Mr,hi,0),Te.set(Mr,hi,1)):ko===Yn&&(Be.set(Mr,hi,0),Te.set(Mr,hi,2));ue.set(Mr,hi,ko)}const at=[];let Le=v.length,He=T.length;function jt(Mr,hi){(Mr+1!==Le||hi+1!==He)&&at.push(new $p(new kc(Mr+1,Le),new kc(hi+1,He))),Le=Mr,He=hi}let qt=v.length-1,fn=T.length-1;for(;qt>=0&&fn>=0;)Te.get(qt,fn)===3?(jt(qt,fn),qt--,fn--):Te.get(qt,fn)===1?qt--:fn--;return jt(-1,-1),at.reverse(),new vA(at,!1)}}class XEe{compute(v,T,W=A6.instance){if(v.length===0||T.length===0)return vA.trivial(v,T);const X=v,ue=T;function Te(hi,oo){for(;hi<X.length&&oo<ue.length&&X.getElement(hi)===ue.getElement(oo);)hi++,oo++;return hi}let Be=0;const at=new Uze;at.set(0,Te(0,0));const Le=new Hze;Le.set(0,at.get(0)===0?null:new YEe(null,0,0,at.get(0)));let He=0;e:for(;;){if(Be++,!W.isValid())return vA.trivialTimedOut(X,ue);const hi=-Math.min(Be,ue.length+Be%2),oo=Math.min(Be,X.length+Be%2);for(He=hi;He<=oo;He+=2){const Yn=He===oo?-1:at.get(He+1),Tn=He===hi?-1:at.get(He-1)+1,ko=Math.min(Math.max(Yn,Tn),X.length),Br=ko-He;if(ko>X.length||Br>ue.length)continue;const zi=Te(ko,Br);at.set(He,zi);const Go=ko===Yn?Le.get(He+1):Le.get(He-1);if(Le.set(He,zi!==ko?new YEe(Go,ko,Br,zi-ko):Go),at.get(He)===X.length&&at.get(He)-He===ue.length)break e}}let jt=Le.get(He);const qt=[];let fn=X.length,Mr=ue.length;for(;;){const hi=jt?jt.x+jt.length:0,oo=jt?jt.y+jt.length:0;if((hi!==fn||oo!==Mr)&&qt.push(new $p(new kc(hi,fn),new kc(oo,Mr))),!jt)break;fn=jt.x,Mr=jt.y,jt=jt.prev}return qt.reverse(),new vA(qt,!1)}}class YEe{constructor(v,T,W,X){this.prev=v,this.x=T,this.y=W,this.length=X}}class Uze{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,T){if(v<0){if(v=-v-1,v>=this.negativeArr.length){const W=this.negativeArr;this.negativeArr=new Int32Array(W.length*2),this.negativeArr.set(W)}this.negativeArr[v]=T}else{if(v>=this.positiveArr.length){const W=this.positiveArr;this.positiveArr=new Int32Array(W.length*2),this.positiveArr.set(W)}this.positiveArr[v]=T}}}class Hze{constructor(){this.positiveArr=[],this.negativeArr=[]}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,T){v<0?(v=-v-1,this.negativeArr[v]=T):this.positiveArr[v]=T}}class eG{constructor(v,T,W){this.lines=v,this.range=T,this.considerWhitespaceChanges=W,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let X=this.range.startLineNumber;X<=this.range.endLineNumber;X++){let ue=v[X-1],Te=0;X===this.range.startLineNumber&&this.range.startColumn>1&&(Te=this.range.startColumn-1,ue=ue.substring(Te)),this.lineStartOffsets.push(Te);let Be=0;if(!W){const Le=ue.trimStart();Be=ue.length-Le.length,ue=Le.trimEnd()}this.trimmedWsLengthsByLineIdx.push(Be);const at=X===this.range.endLineNumber?Math.min(this.range.endColumn-1-Te-Be,ue.length):ue.length;for(let Le=0;Le<at;Le++)this.elements.push(ue.charCodeAt(Le));X<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return'Slice: "'.concat(this.text,'"')}get text(){return this.getText(new kc(0,this.length))}getText(v){return this.elements.slice(v.start,v.endExclusive).map(T=>String.fromCharCode(T)).join("")}getElement(v){return this.elements[v]}get length(){return this.elements.length}getBoundaryScore(v){const T=QEe(v>0?this.elements[v-1]:-1),W=QEe(v<this.elements.length?this.elements[v]:-1);if(T===7&&W===8)return 0;if(T===8)return 150;let X=0;return T!==W&&(X+=10,T===0&&W===1&&(X+=1)),X+=$Ee(T),X+=$Ee(W),X}translateOffset(v,T="right"){const W=S6(this.firstElementOffsetByLineIdx,ue=>ue<=v),X=v-this.firstElementOffsetByLineIdx[W];return new rd(this.range.startLineNumber+W,1+this.lineStartOffsets[W]+X+(X===0&&T==="left"?0:this.trimmedWsLengthsByLineIdx[W]))}translateRange(v){const T=this.translateOffset(v.start,"right"),W=this.translateOffset(v.endExclusive,"left");return W.isBefore(T)?Ss.fromPositions(W,W):Ss.fromPositions(T,W)}findWordContaining(v){if(v<0||v>=this.elements.length||!Tne(this.elements[v]))return;let T=v;for(;T>0&&Tne(this.elements[T-1]);)T--;let W=v;for(;W<this.elements.length&&Tne(this.elements[W]);)W++;return new kc(T,W)}countLinesIn(v){return this.translateOffset(v.endExclusive).lineNumber-this.translateOffset(v.start).lineNumber}isStronglyEqual(v,T){return this.elements[v]===this.elements[T]}extendToFullLines(v){var X,ue;const T=(X=xM(this.firstElementOffsetByLineIdx,Te=>Te<=v.start))!=null?X:0,W=(ue=Cze(this.firstElementOffsetByLineIdx,Te=>v.endExclusive<=Te))!=null?ue:this.elements.length;return new kc(T,W)}}function Tne(g){return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57}const qze={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function $Ee(g){return qze[g]}function QEe(g){return g===10?8:g===13?7:Sne(g)?6:g>=97&&g<=122?0:g>=65&&g<=90?1:g>=48&&g<=57?2:g===-1?3:g===44||g===59?5:4}function Jze(g,v,T,W,X,ue){let{moves:Te,excludedChanges:Be}=Xze(g,v,T,ue);if(!ue.isValid())return[];const at=g.filter(He=>!Be.has(He)),Le=Yze(at,W,X,v,T,ue);return Bze(Te,Le),Te=$ze(Te),Te=Te.filter(He=>{const jt=He.original.toOffsetRange().slice(v).map(fn=>fn.trim());return jt.join("\n").length>=15&&Kze(jt,fn=>fn.length>=2)>=2}),Te=Qze(g,Te),Te}function Kze(g,v){let T=0;for(const W of g)v(W)&&T++;return T}function Xze(g,v,T,W){const X=[],ue=g.filter(at=>at.modified.isEmpty&&at.original.length>=3).map(at=>new ZB(at.original,v,at)),Te=new Set(g.filter(at=>at.original.isEmpty&&at.modified.length>=3).map(at=>new ZB(at.modified,T,at))),Be=new Set;for(const at of ue){let Le=-1,He;for(const jt of Te){const qt=at.computeSimilarity(jt);qt>Le&&(Le=qt,He=jt)}if(Le>.9&&He&&(Te.delete(He),X.push(new t0(at.range,He.range)),Be.add(at.source),Be.add(He.source)),!W.isValid())return{moves:X,excludedChanges:Be}}return{moves:X,excludedChanges:Be}}function Yze(g,v,T,W,X,ue){const Te=[],Be=new _ze;for(const qt of g)for(let fn=qt.original.startLineNumber;fn<qt.original.endLineNumberExclusive-2;fn++){const Mr="".concat(v[fn-1],":").concat(v[fn+1-1],":").concat(v[fn+2-1]);Be.add(Mr,{range:new Bl(fn,fn+3)})}const at=[];g.sort($B(qt=>qt.modified.startLineNumber,QB));for(const qt of g){let fn=[];for(let Mr=qt.modified.startLineNumber;Mr<qt.modified.endLineNumberExclusive-2;Mr++){const hi="".concat(T[Mr-1],":").concat(T[Mr+1-1],":").concat(T[Mr+2-1]),oo=new Bl(Mr,Mr+3),Yn=[];Be.forEach(hi,({range:Tn})=>{for(const Br of fn)if(Br.originalLineRange.endLineNumberExclusive+1===Tn.endLineNumberExclusive&&Br.modifiedLineRange.endLineNumberExclusive+1===oo.endLineNumberExclusive){Br.originalLineRange=new Bl(Br.originalLineRange.startLineNumber,Tn.endLineNumberExclusive),Br.modifiedLineRange=new Bl(Br.modifiedLineRange.startLineNumber,oo.endLineNumberExclusive),Yn.push(Br);return}const ko={modifiedLineRange:oo,originalLineRange:Tn};at.push(ko),Yn.push(ko)}),fn=Yn}if(!ue.isValid())return[]}at.sort(Gze($B(qt=>qt.modifiedLineRange.length,QB)));const Le=new lS,He=new lS;for(const qt of at){const fn=qt.modifiedLineRange.startLineNumber-qt.originalLineRange.startLineNumber,Mr=Le.subtractFrom(qt.modifiedLineRange),hi=He.subtractFrom(qt.originalLineRange).getWithDelta(fn),oo=Mr.getIntersection(hi);for(const Yn of oo.ranges){if(Yn.length<3)continue;const Tn=Yn,ko=Yn.delta(-fn);Te.push(new t0(ko,Tn)),Le.addRange(Tn),He.addRange(ko)}}Te.sort($B(qt=>qt.original.startLineNumber,QB));const jt=new YB(g);for(let qt=0;qt<Te.length;qt++){const fn=Te[qt],Mr=jt.findLastMonotonous(Go=>Go.original.startLineNumber<=fn.original.startLineNumber),hi=xM(g,Go=>Go.modified.startLineNumber<=fn.modified.startLineNumber),oo=Math.max(fn.original.startLineNumber-Mr.original.startLineNumber,fn.modified.startLineNumber-hi.modified.startLineNumber),Yn=jt.findLastMonotonous(Go=>Go.original.startLineNumber<fn.original.endLineNumberExclusive),Tn=xM(g,Go=>Go.modified.startLineNumber<fn.modified.endLineNumberExclusive),ko=Math.max(Yn.original.endLineNumberExclusive-fn.original.endLineNumberExclusive,Tn.modified.endLineNumberExclusive-fn.modified.endLineNumberExclusive);let Br;for(Br=0;Br<oo;Br++){const Go=fn.original.startLineNumber-Br-1,Nr=fn.modified.startLineNumber-Br-1;if(Go>W.length||Nr>X.length||Le.contains(Nr)||He.contains(Go)||!ZEe(W[Go-1],X[Nr-1],ue))break}Br>0&&(He.addRange(new Bl(fn.original.startLineNumber-Br,fn.original.startLineNumber)),Le.addRange(new Bl(fn.modified.startLineNumber-Br,fn.modified.startLineNumber)));let zi;for(zi=0;zi<ko;zi++){const Go=fn.original.endLineNumberExclusive+zi,Nr=fn.modified.endLineNumberExclusive+zi;if(Go>W.length||Nr>X.length||Le.contains(Nr)||He.contains(Go)||!ZEe(W[Go-1],X[Nr-1],ue))break}zi>0&&(He.addRange(new Bl(fn.original.endLineNumberExclusive,fn.original.endLineNumberExclusive+zi)),Le.addRange(new Bl(fn.modified.endLineNumberExclusive,fn.modified.endLineNumberExclusive+zi))),(Br>0||zi>0)&&(Te[qt]=new t0(new Bl(fn.original.startLineNumber-Br,fn.original.endLineNumberExclusive+zi),new Bl(fn.modified.startLineNumber-Br,fn.modified.endLineNumberExclusive+zi)))}return Te}function ZEe(g,v,T){if(g.trim()===v.trim())return!0;if(g.length>300&&v.length>300)return!1;const X=new XEe().compute(new eG([g],new Ss(1,1,1,g.length),!1),new eG([v],new Ss(1,1,1,v.length),!1),T);let ue=0;const Te=$p.invert(X.diffs,g.length);for(const He of Te)He.seq1Range.forEach(jt=>{Sne(g.charCodeAt(jt))||ue++});function Be(He){let jt=0;for(let qt=0;qt<g.length;qt++)Sne(He.charCodeAt(qt))||jt++;return jt}const at=Be(g.length>v.length?g:v);return ue/at>.6&&at>10}function $ze(g){if(g.length===0)return g;g.sort($B(T=>T.original.startLineNumber,QB));const v=[g[0]];for(let T=1;T<g.length;T++){const W=v[v.length-1],X=g[T],ue=X.original.startLineNumber-W.original.endLineNumberExclusive,Te=X.modified.startLineNumber-W.modified.endLineNumberExclusive;if(ue>=0&&Te>=0&&ue+Te<=2){v[v.length-1]=W.join(X);continue}v.push(X)}return v}function Qze(g,v){const T=new YB(g);return v=v.filter(W=>{const X=T.findLastMonotonous(Be=>Be.original.startLineNumber<W.original.endLineNumberExclusive)||new t0(new Bl(1,1),new Bl(1,1)),ue=xM(g,Be=>Be.modified.startLineNumber<W.modified.endLineNumberExclusive);return X!==ue}),v}function e1e(g,v,T){let W=T;return W=t1e(g,v,W),W=t1e(g,v,W),W=Zze(g,v,W),W}function t1e(g,v,T){if(T.length===0)return T;const W=[];W.push(T[0]);for(let ue=1;ue<T.length;ue++){const Te=W[W.length-1];let Be=T[ue];if(Be.seq1Range.isEmpty||Be.seq2Range.isEmpty){const at=Be.seq1Range.start-Te.seq1Range.endExclusive;let Le;for(Le=1;Le<=at&&!(g.getElement(Be.seq1Range.start-Le)!==g.getElement(Be.seq1Range.endExclusive-Le)||v.getElement(Be.seq2Range.start-Le)!==v.getElement(Be.seq2Range.endExclusive-Le));Le++);if(Le--,Le===at){W[W.length-1]=new $p(new kc(Te.seq1Range.start,Be.seq1Range.endExclusive-at),new kc(Te.seq2Range.start,Be.seq2Range.endExclusive-at));continue}Be=Be.delta(-Le)}W.push(Be)}const X=[];for(let ue=0;ue<W.length-1;ue++){const Te=W[ue+1];let Be=W[ue];if(Be.seq1Range.isEmpty||Be.seq2Range.isEmpty){const at=Te.seq1Range.start-Be.seq1Range.endExclusive;let Le;for(Le=0;Le<at&&!(!g.isStronglyEqual(Be.seq1Range.start+Le,Be.seq1Range.endExclusive+Le)||!v.isStronglyEqual(Be.seq2Range.start+Le,Be.seq2Range.endExclusive+Le));Le++);if(Le===at){W[ue+1]=new $p(new kc(Be.seq1Range.start+at,Te.seq1Range.endExclusive),new kc(Be.seq2Range.start+at,Te.seq2Range.endExclusive));continue}Le>0&&(Be=Be.delta(Le))}X.push(Be)}return W.length>0&&X.push(W[W.length-1]),X}function Zze(g,v,T){if(!g.getBoundaryScore||!v.getBoundaryScore)return T;for(let W=0;W<T.length;W++){const X=W>0?T[W-1]:void 0,ue=T[W],Te=W+1<T.length?T[W+1]:void 0,Be=new kc(X?X.seq1Range.endExclusive+1:0,Te?Te.seq1Range.start-1:g.length),at=new kc(X?X.seq2Range.endExclusive+1:0,Te?Te.seq2Range.start-1:v.length);ue.seq1Range.isEmpty?T[W]=n1e(ue,g,v,Be,at):ue.seq2Range.isEmpty&&(T[W]=n1e(ue.swap(),v,g,at,Be).swap())}return T}function n1e(g,v,T,W,X){let Te=1;for(;g.seq1Range.start-Te>=W.start&&g.seq2Range.start-Te>=X.start&&T.isStronglyEqual(g.seq2Range.start-Te,g.seq2Range.endExclusive-Te)&&Te<100;)Te++;Te--;let Be=0;for(;g.seq1Range.start+Be<W.endExclusive&&g.seq2Range.endExclusive+Be<X.endExclusive&&T.isStronglyEqual(g.seq2Range.start+Be,g.seq2Range.endExclusive+Be)&&Be<100;)Be++;if(Te===0&&Be===0)return g;let at=0,Le=-1;for(let He=-Te;He<=Be;He++){const jt=g.seq2Range.start+He,qt=g.seq2Range.endExclusive+He,fn=g.seq1Range.start+He,Mr=v.getBoundaryScore(fn)+T.getBoundaryScore(jt)+T.getBoundaryScore(qt);Mr>Le&&(Le=Mr,at=He)}return g.delta(at)}function e9e(g,v,T){const W=[];for(const X of T){const ue=W[W.length-1];if(!ue){W.push(X);continue}X.seq1Range.start-ue.seq1Range.endExclusive<=2||X.seq2Range.start-ue.seq2Range.endExclusive<=2?W[W.length-1]=new $p(ue.seq1Range.join(X.seq1Range),ue.seq2Range.join(X.seq2Range)):W.push(X)}return W}function t9e(g,v,T){const W=$p.invert(T,g.length),X=[];let ue=new yA(0,0);function Te(at,Le){if(at.offset1<ue.offset1||at.offset2<ue.offset2)return;const He=g.findWordContaining(at.offset1),jt=v.findWordContaining(at.offset2);if(!He||!jt)return;let qt=new $p(He,jt);const fn=qt.intersect(Le);let Mr=fn.seq1Range.length,hi=fn.seq2Range.length;for(;W.length>0;){const oo=W[0];if(!(oo.seq1Range.intersects(qt.seq1Range)||oo.seq2Range.intersects(qt.seq2Range)))break;const Tn=g.findWordContaining(oo.seq1Range.start),ko=v.findWordContaining(oo.seq2Range.start),Br=new $p(Tn,ko),zi=Br.intersect(oo);if(Mr+=zi.seq1Range.length,hi+=zi.seq2Range.length,qt=qt.join(Br),qt.seq1Range.endExclusive>=oo.seq1Range.endExclusive)W.shift();else break}Mr+hi<(qt.seq1Range.length+qt.seq2Range.length)*2/3&&X.push(qt),ue=qt.getEndExclusives()}for(;W.length>0;){const at=W.shift();at.seq1Range.isEmpty||(Te(at.getStarts(),at),Te(at.getEndExclusives().delta(-1),at))}return n9e(T,X)}function n9e(g,v){const T=[];for(;g.length>0||v.length>0;){const W=g[0],X=v[0];let ue;W&&(!X||W.seq1Range.start<X.seq1Range.start)?ue=g.shift():ue=v.shift(),T.length>0&&T[T.length-1].seq1Range.endExclusive>=ue.seq1Range.start?T[T.length-1]=T[T.length-1].join(ue):T.push(ue)}return T}function r9e(g,v,T){let W=T;if(W.length===0)return W;let X=0,ue;do{ue=!1;const Te=[W[0]];for(let Be=1;Be<W.length;Be++){let He=function(qt,fn){const Mr=new kc(Le.seq1Range.endExclusive,at.seq1Range.start);return g.getText(Mr).replace(/\s/g,"").length<=4&&(qt.seq1Range.length+qt.seq2Range.length>5||fn.seq1Range.length+fn.seq2Range.length>5)};const at=W[Be],Le=Te[Te.length-1];He(Le,at)?(ue=!0,Te[Te.length-1]=Te[Te.length-1].join(at)):Te.push(at)}W=Te}while(X++<10&&ue);return W}function i9e(g,v,T){let W=T;if(W.length===0)return W;let X=0,ue;do{ue=!1;const Be=[W[0]];for(let at=1;at<W.length;at++){let jt=function(fn,Mr){const hi=new kc(He.seq1Range.endExclusive,Le.seq1Range.start);if(g.countLinesIn(hi)>5||hi.length>500)return!1;const Yn=g.getText(hi).trim();if(Yn.length>20||Yn.split(/\r\n|\r|\n/).length>1)return!1;const Tn=g.countLinesIn(fn.seq1Range),ko=fn.seq1Range.length,Br=v.countLinesIn(fn.seq2Range),zi=fn.seq2Range.length,Go=g.countLinesIn(Mr.seq1Range),Nr=Mr.seq1Range.length,Na=v.countLinesIn(Mr.seq2Range),Ac=Mr.seq2Range.length,lu=2*40+50;function rr(Ks){return Math.min(Ks,lu)}return Math.pow(Math.pow(rr(Tn*40+ko),1.5)+Math.pow(rr(Br*40+zi),1.5),1.5)+Math.pow(Math.pow(rr(Go*40+Nr),1.5)+Math.pow(rr(Na*40+Ac),1.5),1.5)>(lu**1.5)**1.5*1.3};const Le=W[at],He=Be[Be.length-1];jt(He,Le)?(ue=!0,Be[Be.length-1]=Be[Be.length-1].join(Le)):Be.push(Le)}W=Be}while(X++<10&&ue);const Te=[];return zze(W,(Be,at,Le)=>{let He=at;function jt(Yn){return Yn.length>0&&Yn.trim().length<=3&&at.seq1Range.length+at.seq2Range.length>100}const qt=g.extendToFullLines(at.seq1Range),fn=g.getText(new kc(qt.start,at.seq1Range.start));jt(fn)&&(He=He.deltaStart(-fn.length));const Mr=g.getText(new kc(at.seq1Range.endExclusive,qt.endExclusive));jt(Mr)&&(He=He.deltaEnd(Mr.length));const hi=$p.fromOffsetPairs(Be?Be.getEndExclusives():yA.zero,Le?Le.getStarts():yA.max),oo=He.intersect(hi);Te.length>0&&oo.getStarts().equals(Te[Te.length-1].getEndExclusives())?Te[Te.length-1]=Te[Te.length-1].join(oo):Te.push(oo)}),Te}class r1e{constructor(v,T){this.trimmedHash=v,this.lines=T}getElement(v){return this.trimmedHash[v]}get length(){return this.trimmedHash.length}getBoundaryScore(v){const T=v===0?0:i1e(this.lines[v-1]),W=v===this.lines.length?0:i1e(this.lines[v]);return 1e3-(T+W)}getText(v){return this.lines.slice(v.start,v.endExclusive).join("\n")}isStronglyEqual(v,T){return this.lines[v]===this.lines[T]}}function i1e(g){let v=0;for(;v<g.length&&(g.charCodeAt(v)===32||g.charCodeAt(v)===9);)v++;return v}class o9e{constructor(){this.dynamicProgrammingDiffing=new jze,this.myersDiffingAlgorithm=new XEe}computeDiff(v,T,W){if(v.length<=1&&Oze(v,T,(zi,Go)=>zi===Go))return new XB([],[],!1);if(v.length===1&&v[0].length===0||T.length===1&&T[0].length===0)return new XB([new gA(new Bl(1,v.length+1),new Bl(1,T.length+1),[new xE(new Ss(1,1,v.length,v[v.length-1].length+1),new Ss(1,1,T.length,T[T.length-1].length+1))])],[],!1);const X=W.maxComputationTimeMs===0?A6.instance:new Vze(W.maxComputationTimeMs),ue=!W.ignoreTrimWhitespace,Te=new Map;function Be(zi){let Go=Te.get(zi);return Go===void 0&&(Go=Te.size,Te.set(zi,Go)),Go}const at=v.map(zi=>Be(zi.trim())),Le=T.map(zi=>Be(zi.trim())),He=new r1e(at,v),jt=new r1e(Le,T),qt=He.length+jt.length<1700?this.dynamicProgrammingDiffing.compute(He,jt,X,(zi,Go)=>v[zi]===T[Go]?T[Go].length===0?.1:1+Math.log(1+T[Go].length):.99):this.myersDiffingAlgorithm.compute(He,jt,X);let fn=qt.diffs,Mr=qt.hitTimeout;fn=e1e(He,jt,fn),fn=r9e(He,jt,fn);const hi=[],oo=zi=>{if(ue)for(let Go=0;Go<zi;Go++){const Nr=Yn+Go,Na=Tn+Go;if(v[Nr]!==T[Na]){const Ac=this.refineDiff(v,T,new $p(new kc(Nr,Nr+1),new kc(Na,Na+1)),X,ue);for(const lu of Ac.mappings)hi.push(lu);Ac.hitTimeout&&(Mr=!0)}}};let Yn=0,Tn=0;for(const zi of fn){KB(()=>zi.seq1Range.start-Yn===zi.seq2Range.start-Tn);const Go=zi.seq1Range.start-Yn;oo(Go),Yn=zi.seq1Range.endExclusive,Tn=zi.seq2Range.endExclusive;const Nr=this.refineDiff(v,T,zi,X,ue);Nr.hitTimeout&&(Mr=!0);for(const Na of Nr.mappings)hi.push(Na)}oo(v.length-Yn);const ko=o1e(hi,v,T);let Br=[];return W.computeMoves&&(Br=this.computeMoves(ko,v,T,at,Le,X,ue)),KB(()=>{function zi(Nr,Na){if(Nr.lineNumber<1||Nr.lineNumber>Na.length)return!1;const Ac=Na[Nr.lineNumber-1];return!(Nr.column<1||Nr.column>Ac.length+1)}function Go(Nr,Na){return!(Nr.startLineNumber<1||Nr.startLineNumber>Na.length+1||Nr.endLineNumberExclusive<1||Nr.endLineNumberExclusive>Na.length+1)}for(const Nr of ko){if(!Nr.innerChanges)return!1;for(const Na of Nr.innerChanges)if(!(zi(Na.modifiedRange.getStartPosition(),T)&&zi(Na.modifiedRange.getEndPosition(),T)&&zi(Na.originalRange.getStartPosition(),v)&&zi(Na.originalRange.getEndPosition(),v)))return!1;if(!Go(Nr.modified,T)||!Go(Nr.original,v))return!1}return!0}),new XB(ko,Br,Mr)}computeMoves(v,T,W,X,ue,Te,Be){return Jze(v,T,W,X,ue,Te).map(He=>{const jt=this.refineDiff(T,W,new $p(He.original.toOffsetRange(),He.modified.toOffsetRange()),Te,Be),qt=o1e(jt.mappings,T,W,!0);return new Dze(He,qt)})}refineDiff(v,T,W,X,ue){const Be=s9e(W).toRangeMapping2(v,T),at=new eG(v,Be.originalRange,ue),Le=new eG(T,Be.modifiedRange,ue),He=at.length+Le.length<500?this.dynamicProgrammingDiffing.compute(at,Le,X):this.myersDiffingAlgorithm.compute(at,Le,X);let jt=He.diffs;return jt=e1e(at,Le,jt),jt=t9e(at,Le,jt),jt=e9e(at,Le,jt),jt=i9e(at,Le,jt),{mappings:jt.map(fn=>new xE(at.translateRange(fn.seq1Range),Le.translateRange(fn.seq2Range))),hitTimeout:He.hitTimeout}}}function o1e(g,v,T,W=!1){const X=[];for(const ue of Wze(g.map(Te=>a9e(Te,v,T)),(Te,Be)=>Te.original.overlapOrTouch(Be.original)||Te.modified.overlapOrTouch(Be.modified))){const Te=ue[0],Be=ue[ue.length-1];X.push(new gA(Te.original.join(Be.original),Te.modified.join(Be.modified),ue.map(at=>at.innerChanges[0])))}return KB(()=>!W&&X.length>0&&(X[0].modified.startLineNumber!==X[0].original.startLineNumber||T.length-X[X.length-1].modified.endLineNumberExclusive!==v.length-X[X.length-1].original.endLineNumberExclusive)?!1:WEe(X,(ue,Te)=>Te.original.startLineNumber-ue.original.endLineNumberExclusive===Te.modified.startLineNumber-ue.modified.endLineNumberExclusive&&ue.original.endLineNumberExclusive<Te.original.startLineNumber&&ue.modified.endLineNumberExclusive<Te.modified.startLineNumber)),X}function a9e(g,v,T){let W=0,X=0;g.modifiedRange.endColumn===1&&g.originalRange.endColumn===1&&g.originalRange.startLineNumber+W<=g.originalRange.endLineNumber&&g.modifiedRange.startLineNumber+W<=g.modifiedRange.endLineNumber&&(X=-1),g.modifiedRange.startColumn-1>=T[g.modifiedRange.startLineNumber-1].length&&g.originalRange.startColumn-1>=v[g.originalRange.startLineNumber-1].length&&g.originalRange.startLineNumber<=g.originalRange.endLineNumber+X&&g.modifiedRange.startLineNumber<=g.modifiedRange.endLineNumber+X&&(W=1);const ue=new Bl(g.originalRange.startLineNumber+W,g.originalRange.endLineNumber+1+X),Te=new Bl(g.modifiedRange.startLineNumber+W,g.modifiedRange.endLineNumber+1+X);return new gA(ue,Te,[g])}function s9e(g){return new t0(new Bl(g.seq1Range.start+1,g.seq1Range.endExclusive+1),new Bl(g.seq2Range.start+1,g.seq2Range.endExclusive+1))}const a1e={getLegacy:()=>new Mze,getDefault:()=>new o9e};function Ox(g,v){const T=Math.pow(10,v);return Math.round(g*T)/T}class Xm{constructor(v,T,W,X=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,v))|0,this.g=Math.min(255,Math.max(0,T))|0,this.b=Math.min(255,Math.max(0,W))|0,this.a=Ox(Math.max(Math.min(1,X),0),3)}static equals(v,T){return v.r===T.r&&v.g===T.g&&v.b===T.b&&v.a===T.a}}class n0{constructor(v,T,W,X){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=Ox(Math.max(Math.min(1,T),0),3),this.l=Ox(Math.max(Math.min(1,W),0),3),this.a=Ox(Math.max(Math.min(1,X),0),3)}static equals(v,T){return v.h===T.h&&v.s===T.s&&v.l===T.l&&v.a===T.a}static fromRGBA(v){const T=v.r/255,W=v.g/255,X=v.b/255,ue=v.a,Te=Math.max(T,W,X),Be=Math.min(T,W,X);let at=0,Le=0;const He=(Be+Te)/2,jt=Te-Be;if(jt>0){switch(Le=Math.min(He<=.5?jt/(2*He):jt/(2-2*He),1),Te){case T:at=(W-X)/jt+(W<X?6:0);break;case W:at=(X-T)/jt+2;break;case X:at=(T-W)/jt+4;break}at*=60,at=Math.round(at)}return new n0(at,Le,He,ue)}static _hue2rgb(v,T,W){return W<0&&(W+=1),W>1&&(W-=1),W<1/6?v+(T-v)*6*W:W<1/2?T:W<2/3?v+(T-v)*(2/3-W)*6:v}static toRGBA(v){const T=v.h/360,{s:W,l:X,a:ue}=v;let Te,Be,at;if(W===0)Te=Be=at=X;else{const Le=X<.5?X*(1+W):X+W-X*W,He=2*X-Le;Te=n0._hue2rgb(He,Le,T+1/3),Be=n0._hue2rgb(He,Le,T),at=n0._hue2rgb(He,Le,T-1/3)}return new Xm(Math.round(Te*255),Math.round(Be*255),Math.round(at*255),ue)}}class CM{constructor(v,T,W,X){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=Ox(Math.max(Math.min(1,T),0),3),this.v=Ox(Math.max(Math.min(1,W),0),3),this.a=Ox(Math.max(Math.min(1,X),0),3)}static equals(v,T){return v.h===T.h&&v.s===T.s&&v.v===T.v&&v.a===T.a}static fromRGBA(v){const T=v.r/255,W=v.g/255,X=v.b/255,ue=Math.max(T,W,X),Te=Math.min(T,W,X),Be=ue-Te,at=ue===0?0:Be/ue;let Le;return Be===0?Le=0:ue===T?Le=((W-X)/Be%6+6)%6:ue===W?Le=(X-T)/Be+2:Le=(T-W)/Be+4,new CM(Math.round(Le*60),at,ue,v.a)}static toRGBA(v){const{h:T,s:W,v:X,a:ue}=v,Te=X*W,Be=Te*(1-Math.abs(T/60%2-1)),at=X-Te;let[Le,He,jt]=[0,0,0];return T<60?(Le=Te,He=Be):T<120?(Le=Be,He=Te):T<180?(He=Te,jt=Be):T<240?(He=Be,jt=Te):T<300?(Le=Be,jt=Te):T<=360&&(Le=Te,jt=Be),Le=Math.round((Le+at)*255),He=Math.round((He+at)*255),jt=Math.round((jt+at)*255),new Xm(Le,He,jt,ue)}}const id=class id{static fromHex(v){return id.Format.CSS.parseHex(v)||id.red}static equals(v,T){return!v&&!T?!0:!v||!T?!1:v.equals(T)}get hsla(){return this._hsla?this._hsla:n0.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:CM.fromRGBA(this.rgba)}constructor(v){if(v)if(v instanceof Xm)this.rgba=v;else if(v instanceof n0)this._hsla=v,this.rgba=n0.toRGBA(v);else if(v instanceof CM)this._hsva=v,this.rgba=CM.toRGBA(v);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(v){return!!v&&Xm.equals(this.rgba,v.rgba)&&n0.equals(this.hsla,v.hsla)&&CM.equals(this.hsva,v.hsva)}getRelativeLuminance(){const v=id._relativeLuminanceForComponent(this.rgba.r),T=id._relativeLuminanceForComponent(this.rgba.g),W=id._relativeLuminanceForComponent(this.rgba.b),X=.2126*v+.7152*T+.0722*W;return Ox(X,4)}static _relativeLuminanceForComponent(v){const T=v/255;return T<=.03928?T/12.92:Math.pow((T+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(v){const T=this.getRelativeLuminance(),W=v.getRelativeLuminance();return T>W}isDarkerThan(v){const T=this.getRelativeLuminance(),W=v.getRelativeLuminance();return T<W}lighten(v){return new id(new n0(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*v,this.hsla.a))}darken(v){return new id(new n0(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*v,this.hsla.a))}transparent(v){const{r:T,g:W,b:X,a:ue}=this.rgba;return new id(new Xm(T,W,X,ue*v))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new id(new Xm(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(v){if(this.isOpaque()||v.rgba.a!==1)return this;const{r:T,g:W,b:X,a:ue}=this.rgba;return new id(new Xm(v.rgba.r-ue*(v.rgba.r-T),v.rgba.g-ue*(v.rgba.g-W),v.rgba.b-ue*(v.rgba.b-X),1))}toString(){return this._toString||(this._toString=id.Format.CSS.format(this)),this._toString}static getLighterColor(v,T,W){if(v.isLighterThan(T))return v;W=W||.5;const X=v.getRelativeLuminance(),ue=T.getRelativeLuminance();return W=W*(ue-X)/ue,v.lighten(W)}static getDarkerColor(v,T,W){if(v.isDarkerThan(T))return v;W=W||.5;const X=v.getRelativeLuminance(),ue=T.getRelativeLuminance();return W=W*(X-ue)/X,v.darken(W)}};id.white=new id(new Xm(255,255,255,1)),id.black=new id(new Xm(0,0,0,1)),id.red=new id(new Xm(255,0,0,1)),id.blue=new id(new Xm(0,0,255,1)),id.green=new id(new Xm(0,255,0,1)),id.cyan=new id(new Xm(0,255,255,1)),id.lightgrey=new id(new Xm(211,211,211,1)),id.transparent=new id(new Xm(0,0,0,0));let NM=id;(function(g){(function(v){(function(T){function W(fn){return fn.rgba.a===1?"rgb(".concat(fn.rgba.r,", ").concat(fn.rgba.g,", ").concat(fn.rgba.b,")"):g.Format.CSS.formatRGBA(fn)}T.formatRGB=W;function X(fn){return"rgba(".concat(fn.rgba.r,", ").concat(fn.rgba.g,", ").concat(fn.rgba.b,", ").concat(+fn.rgba.a.toFixed(2),")")}T.formatRGBA=X;function ue(fn){return fn.hsla.a===1?"hsl(".concat(fn.hsla.h,", ").concat((fn.hsla.s*100).toFixed(2),"%, ").concat((fn.hsla.l*100).toFixed(2),"%)"):g.Format.CSS.formatHSLA(fn)}T.formatHSL=ue;function Te(fn){return"hsla(".concat(fn.hsla.h,", ").concat((fn.hsla.s*100).toFixed(2),"%, ").concat((fn.hsla.l*100).toFixed(2),"%, ").concat(fn.hsla.a.toFixed(2),")")}T.formatHSLA=Te;function Be(fn){const Mr=fn.toString(16);return Mr.length!==2?"0"+Mr:Mr}function at(fn){return"#".concat(Be(fn.rgba.r)).concat(Be(fn.rgba.g)).concat(Be(fn.rgba.b))}T.formatHex=at;function Le(fn,Mr=!1){return Mr&&fn.rgba.a===1?g.Format.CSS.formatHex(fn):"#".concat(Be(fn.rgba.r)).concat(Be(fn.rgba.g)).concat(Be(fn.rgba.b)).concat(Be(Math.round(fn.rgba.a*255)))}T.formatHexA=Le;function He(fn){return fn.isOpaque()?g.Format.CSS.formatHex(fn):g.Format.CSS.formatRGBA(fn)}T.format=He;function jt(fn){const Mr=fn.length;if(Mr===0||fn.charCodeAt(0)!==35)return null;if(Mr===7){const hi=16*qt(fn.charCodeAt(1))+qt(fn.charCodeAt(2)),oo=16*qt(fn.charCodeAt(3))+qt(fn.charCodeAt(4)),Yn=16*qt(fn.charCodeAt(5))+qt(fn.charCodeAt(6));return new g(new Xm(hi,oo,Yn,1))}if(Mr===9){const hi=16*qt(fn.charCodeAt(1))+qt(fn.charCodeAt(2)),oo=16*qt(fn.charCodeAt(3))+qt(fn.charCodeAt(4)),Yn=16*qt(fn.charCodeAt(5))+qt(fn.charCodeAt(6)),Tn=16*qt(fn.charCodeAt(7))+qt(fn.charCodeAt(8));return new g(new Xm(hi,oo,Yn,Tn/255))}if(Mr===4){const hi=qt(fn.charCodeAt(1)),oo=qt(fn.charCodeAt(2)),Yn=qt(fn.charCodeAt(3));return new g(new Xm(16*hi+hi,16*oo+oo,16*Yn+Yn))}if(Mr===5){const hi=qt(fn.charCodeAt(1)),oo=qt(fn.charCodeAt(2)),Yn=qt(fn.charCodeAt(3)),Tn=qt(fn.charCodeAt(4));return new g(new Xm(16*hi+hi,16*oo+oo,16*Yn+Yn,(16*Tn+Tn)/255))}return null}T.parseHex=jt;function qt(fn){switch(fn){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:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(v.CSS||(v.CSS={}))})(g.Format||(g.Format={}))})(NM||(NM={}));function s1e(g){const v=[];for(const T of g){const W=Number(T);(W||W===0&&T.replace(/\s/g,"")!=="")&&v.push(W)}return v}function Ane(g,v,T,W){return{red:g/255,blue:T/255,green:v/255,alpha:W}}function I6(g,v){const T=v.index,W=v[0].length;if(!T)return;const X=g.positionAt(T);return{startLineNumber:X.lineNumber,startColumn:X.column,endLineNumber:X.lineNumber,endColumn:X.column+W}}function l9e(g,v){if(!g)return;const T=NM.Format.CSS.parseHex(v);if(T)return{range:g,color:Ane(T.rgba.r,T.rgba.g,T.rgba.b,T.rgba.a)}}function l1e(g,v,T){if(!g||v.length!==1)return;const X=v[0].values(),ue=s1e(X);return{range:g,color:Ane(ue[0],ue[1],ue[2],T?ue[3]:1)}}function c1e(g,v,T){if(!g||v.length!==1)return;const X=v[0].values(),ue=s1e(X),Te=new NM(new n0(ue[0],ue[1]/100,ue[2]/100,T?ue[3]:1));return{range:g,color:Ane(Te.rgba.r,Te.rgba.g,Te.rgba.b,Te.rgba.a)}}function x6(g,v){return typeof g=="string"?[...g.matchAll(v)]:g.findMatches(v)}function c9e(g){const v=[],W=x6(g,/\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/gm);if(W.length>0)for(const X of W){const ue=X.filter(Le=>Le!==void 0),Te=ue[1],Be=ue[2];if(!Be)continue;let at;if(Te==="rgb"){const Le=/^\(\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;at=l1e(I6(g,X),x6(Be,Le),!1)}else if(Te==="rgba"){const Le=/^\(\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;at=l1e(I6(g,X),x6(Be,Le),!0)}else if(Te==="hsl"){const Le=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;at=c1e(I6(g,X),x6(Be,Le),!1)}else if(Te==="hsla"){const Le=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;at=c1e(I6(g,X),x6(Be,Le),!0)}else Te==="#"&&(at=l9e(I6(g,X),Te+Be));at&&v.push(at)}return v}function u9e(g){return!g||typeof g.getValue!="function"||typeof g.positionAt!="function"?[]:c9e(g)}const u1e=new RegExp("\\bMARK:\\s*(.*)$","d"),d9e=/^-+|-+$/g;function p9e(g,v){var W;let T=[];if(v.findRegionSectionHeaders&&((W=v.foldingRules)!=null&&W.markers)){const X=f9e(g,v);T=T.concat(X)}if(v.findMarkSectionHeaders){const X=m9e(g);T=T.concat(X)}return T}function f9e(g,v){const T=[],W=g.getLineCount();for(let X=1;X<=W;X++){const ue=g.getLineContent(X),Te=ue.match(v.foldingRules.markers.start);if(Te){const Be={startLineNumber:X,startColumn:Te[0].length+1,endLineNumber:X,endColumn:ue.length+1};if(Be.endColumn>Be.startColumn){const at={range:Be,...d1e(ue.substring(Te[0].length)),shouldBeInComments:!1};(at.text||at.hasSeparatorLine)&&T.push(at)}}}return T}function m9e(g){const v=[],T=g.getLineCount();for(let W=1;W<=T;W++){const X=g.getLineContent(W);_9e(X,W,v)}return v}function _9e(g,v,T){u1e.lastIndex=0;const W=u1e.exec(g);if(W){const X=W.indices[1][0]+1,ue=W.indices[1][1]+1,Te={startLineNumber:v,startColumn:X,endLineNumber:v,endColumn:ue};if(Te.endColumn>Te.startColumn){const Be={range:Te,...d1e(W[1]),shouldBeInComments:!0};(Be.text||Be.hasSeparatorLine)&&T.push(Be)}}}function d1e(g){g=g.trim();const v=g.startsWith("-");return g=g.replace(d9e,""),{text:g,hasSeparatorLine:v}}var p1e;(function(g){async function v(W){let X;const ue=await Promise.all(W.map(Te=>Te.then(Be=>Be,Be=>{X||(X=Be)})));if(typeof X<"u")throw X;return ue}g.settled=v;function T(W){return new Promise(async(X,ue)=>{try{await W(X,ue)}catch(Te){ue(Te)}})}g.withAsyncBody=T})(p1e||(p1e={}));const Lg=class Lg{static fromArray(v){return new Lg(T=>{T.emitMany(v)})}static fromPromise(v){return new Lg(async T=>{T.emitMany(await v)})}static fromPromises(v){return new Lg(async T=>{await Promise.all(v.map(async W=>T.emitOne(await W)))})}static merge(v){return new Lg(async T=>{await Promise.all(v.map(async W=>{for await(const X of W)T.emitOne(X)}))})}constructor(v,T){this._state=0,this._results=[],this._error=null,this._onReturn=T,this._onStateChanged=new e0,queueMicrotask(async()=>{const W={emitOne:X=>this.emitOne(X),emitMany:X=>this.emitMany(X),reject:X=>this.reject(X)};try{await Promise.resolve(v(W)),this.resolve()}catch(X){this.reject(X)}finally{W.emitOne=void 0,W.emitMany=void 0,W.reject=void 0}})}[Symbol.asyncIterator](){let v=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(v<this._results.length)return{done:!1,value:this._results[v++]};if(this._state===1)return{done:!0,value:void 0};await FB.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>{var T;return(T=this._onReturn)==null||T.call(this),{done:!0,value:void 0}}}}static map(v,T){return new Lg(async W=>{for await(const X of v)W.emitOne(T(X))})}map(v){return Lg.map(this,v)}static filter(v,T){return new Lg(async W=>{for await(const X of v)T(X)&&W.emitOne(X)})}filter(v){return Lg.filter(this,v)}static coalesce(v){return Lg.filter(v,T=>!!T)}coalesce(){return Lg.coalesce(this)}static async toPromise(v){const T=[];for await(const W of v)T.push(W);return T}toPromise(){return Lg.toPromise(this)}emitOne(v){this._state===0&&(this._results.push(v),this._onStateChanged.fire())}emitMany(v){this._state===0&&(this._results=this._results.concat(v),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(v){this._state===0&&(this._state=2,this._error=v,this._onStateChanged.fire())}};Lg.EMPTY=Lg.fromArray([]);let f1e=Lg;class h9e{constructor(v){this.values=v,this.prefixSum=new Uint32Array(v.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(v,T){v=IM(v);const W=this.values,X=this.prefixSum,ue=T.length;return ue===0?!1:(this.values=new Uint32Array(W.length+ue),this.values.set(W.subarray(0,v),0),this.values.set(W.subarray(v),v+ue),this.values.set(T,v),v-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=v-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(v,T){return v=IM(v),T=IM(T),this.values[v]===T?!1:(this.values[v]=T,v-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=v-1),!0)}removeValues(v,T){v=IM(v),T=IM(T);const W=this.values,X=this.prefixSum;if(v>=W.length)return!1;const ue=W.length-v;return T>=ue&&(T=ue),T===0?!1:(this.values=new Uint32Array(W.length-T),this.values.set(W.subarray(0,v),0),this.values.set(W.subarray(v+T),v),this.prefixSum=new Uint32Array(this.values.length),v-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=v-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(v){return v<0?0:(v=IM(v),this._getPrefixSum(v))}_getPrefixSum(v){if(v<=this.prefixSumValidIndex[0])return this.prefixSum[v];let T=this.prefixSumValidIndex[0]+1;T===0&&(this.prefixSum[0]=this.values[0],T++),v>=this.values.length&&(v=this.values.length-1);for(let W=T;W<=v;W++)this.prefixSum[W]=this.prefixSum[W-1]+this.values[W];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],v),this.prefixSum[v]}getIndexOf(v){v=Math.floor(v),this.getTotalSum();let T=0,W=this.values.length-1,X=0,ue=0,Te=0;for(;T<=W;)if(X=T+(W-T)/2|0,ue=this.prefixSum[X],Te=ue-this.values[X],v<Te)W=X-1;else if(v>=ue)T=X+1;else break;return new g9e(X,v-Te)}}class g9e{constructor(v,T){this.index=v,this.remainder=T,this._prefixSumIndexOfResultBrand=void 0,this.index=v,this.remainder=T}}class v9e{constructor(v,T,W,X){this._uri=v,this._lines=T,this._eol=W,this._versionId=X,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(v){v.eol&&v.eol!==this._eol&&(this._eol=v.eol,this._lineStarts=null);const T=v.changes;for(const W of T)this._acceptDeleteRange(W.range),this._acceptInsertText(new rd(W.range.startLineNumber,W.range.startColumn),W.text);this._versionId=v.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const v=this._eol.length,T=this._lines.length,W=new Uint32Array(T);for(let X=0;X<T;X++)W[X]=this._lines[X].length+v;this._lineStarts=new h9e(W)}}_setLineText(v,T){this._lines[v]=T,this._lineStarts&&this._lineStarts.setValue(v,this._lines[v].length+this._eol.length)}_acceptDeleteRange(v){if(v.startLineNumber===v.endLineNumber){if(v.startColumn===v.endColumn)return;this._setLineText(v.startLineNumber-1,this._lines[v.startLineNumber-1].substring(0,v.startColumn-1)+this._lines[v.startLineNumber-1].substring(v.endColumn-1));return}this._setLineText(v.startLineNumber-1,this._lines[v.startLineNumber-1].substring(0,v.startColumn-1)+this._lines[v.endLineNumber-1].substring(v.endColumn-1)),this._lines.splice(v.startLineNumber,v.endLineNumber-v.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(v.startLineNumber,v.endLineNumber-v.startLineNumber)}_acceptInsertText(v,T){if(T.length===0)return;const W=d5e(T);if(W.length===1){this._setLineText(v.lineNumber-1,this._lines[v.lineNumber-1].substring(0,v.column-1)+W[0]+this._lines[v.lineNumber-1].substring(v.column-1));return}W[W.length-1]+=this._lines[v.lineNumber-1].substring(v.column-1),this._setLineText(v.lineNumber-1,this._lines[v.lineNumber-1].substring(0,v.column-1)+W[0]);const X=new Uint32Array(W.length-1);for(let ue=1;ue<W.length;ue++)this._lines.splice(v.lineNumber+ue-1,0,W[ue]),X[ue-1]=W[ue].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(v.lineNumber,X)}}class y9e{constructor(){this._models=Object.create(null)}getModel(v){return this._models[v]}getModels(){const v=[];return Object.keys(this._models).forEach(T=>v.push(this._models[T])),v}$acceptNewModel(v){this._models[v.url]=new b9e(Rv.parse(v.url),v.lines,v.EOL,v.versionId)}$acceptModelChanged(v,T){if(!this._models[v])return;this._models[v].onEvents(T)}$acceptRemovedModel(v){this._models[v]&&delete this._models[v]}}class b9e extends v9e{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(v){const T=[];for(let W=0;W<this._lines.length;W++){const X=this._lines[W],ue=this.offsetAt(new rd(W+1,1)),Te=X.matchAll(v);for(const Be of Te)(Be.index||Be.index===0)&&(Be.index=Be.index+ue),T.push(Be)}return T}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(v){return this._lines[v-1]}getWordAtPosition(v,T){const W=hne(v.column,zEe(T),this._lines[v.lineNumber-1],0);return W?new Ss(v.lineNumber,W.startColumn,v.lineNumber,W.endColumn):null}words(v){const T=this._lines,W=this._wordenize.bind(this);let X=0,ue="",Te=0,Be=[];return{*[Symbol.iterator](){for(;;)if(Te<Be.length){const at=ue.substring(Be[Te].start,Be[Te].end);Te+=1,yield at}else if(X<T.length)ue=T[X],Be=W(ue,v),Te=0,X+=1;else break}}}getLineWords(v,T){const W=this._lines[v-1],X=this._wordenize(W,T),ue=[];for(const Te of X)ue.push({word:W.substring(Te.start,Te.end),startColumn:Te.start+1,endColumn:Te.end+1});return ue}_wordenize(v,T){const W=[];let X;for(T.lastIndex=0;(X=T.exec(v))&&X[0].length!==0;)W.push({start:X.index,end:X.index+X[0].length});return W}getValueInRange(v){if(v=this._validateRange(v),v.startLineNumber===v.endLineNumber)return this._lines[v.startLineNumber-1].substring(v.startColumn-1,v.endColumn-1);const T=this._eol,W=v.startLineNumber-1,X=v.endLineNumber-1,ue=[];ue.push(this._lines[W].substring(v.startColumn-1));for(let Te=W+1;Te<X;Te++)ue.push(this._lines[Te]);return ue.push(this._lines[X].substring(0,v.endColumn-1)),ue.join(T)}offsetAt(v){return v=this._validatePosition(v),this._ensureLineStarts(),this._lineStarts.getPrefixSum(v.lineNumber-2)+(v.column-1)}positionAt(v){v=Math.floor(v),v=Math.max(0,v),this._ensureLineStarts();const T=this._lineStarts.getIndexOf(v),W=this._lines[T.index].length;return{lineNumber:1+T.index,column:1+Math.min(T.remainder,W)}}_validateRange(v){const T=this._validatePosition({lineNumber:v.startLineNumber,column:v.startColumn}),W=this._validatePosition({lineNumber:v.endLineNumber,column:v.endColumn});return T.lineNumber!==v.startLineNumber||T.column!==v.startColumn||W.lineNumber!==v.endLineNumber||W.column!==v.endColumn?{startLineNumber:T.lineNumber,startColumn:T.column,endLineNumber:W.lineNumber,endColumn:W.column}:v}_validatePosition(v){if(!rd.isIPosition(v))throw new Error("bad position");let{lineNumber:T,column:W}=v,X=!1;if(T<1)T=1,W=1,X=!0;else if(T>this._lines.length)T=this._lines.length,W=this._lines[T-1].length+1,X=!0;else{const ue=this._lines[T-1].length+1;W<1?(W=1,X=!0):W>ue&&(W=ue,X=!0)}return X?{lineNumber:T,column:W}:v}}const cG=class cG{constructor(){this._workerTextModelSyncServer=new y9e}dispose(){}_getModel(v){return this._workerTextModelSyncServer.getModel(v)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(v){this._workerTextModelSyncServer.$acceptNewModel(v)}$acceptModelChanged(v,T){this._workerTextModelSyncServer.$acceptModelChanged(v,T)}$acceptRemovedModel(v){this._workerTextModelSyncServer.$acceptRemovedModel(v)}async $computeUnicodeHighlights(v,T,W){const X=this._getModel(v);return X?xze.computeUnicodeHighlights(X,T,W):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(v,T){const W=this._getModel(v);return W?p9e(W,T):[]}async $computeDiff(v,T,W,X){const ue=this._getModel(v),Te=this._getModel(T);return!ue||!Te?null:tG.computeDiff(ue,Te,W,X)}static computeDiff(v,T,W,X){const ue=X==="advanced"?a1e.getDefault():a1e.getLegacy(),Te=v.getLinesContent(),Be=T.getLinesContent(),at=ue.computeDiff(Te,Be,W),Le=at.changes.length>0?!1:this._modelsAreIdentical(v,T);function He(jt){return jt.map(qt=>{var fn;return[qt.original.startLineNumber,qt.original.endLineNumberExclusive,qt.modified.startLineNumber,qt.modified.endLineNumberExclusive,(fn=qt.innerChanges)==null?void 0:fn.map(Mr=>[Mr.originalRange.startLineNumber,Mr.originalRange.startColumn,Mr.originalRange.endLineNumber,Mr.originalRange.endColumn,Mr.modifiedRange.startLineNumber,Mr.modifiedRange.startColumn,Mr.modifiedRange.endLineNumber,Mr.modifiedRange.endColumn])]})}return{identical:Le,quitEarly:at.hitTimeout,changes:He(at.changes),moves:at.moves.map(jt=>[jt.lineRangeMapping.original.startLineNumber,jt.lineRangeMapping.original.endLineNumberExclusive,jt.lineRangeMapping.modified.startLineNumber,jt.lineRangeMapping.modified.endLineNumberExclusive,He(jt.changes)])}}static _modelsAreIdentical(v,T){const W=v.getLineCount(),X=T.getLineCount();if(W!==X)return!1;for(let ue=1;ue<=W;ue++){const Te=v.getLineContent(ue),Be=T.getLineContent(ue);if(Te!==Be)return!1}return!0}async $computeMoreMinimalEdits(v,T,W){const X=this._getModel(v);if(!X)return T;const ue=[];let Te;T=T.slice(0).sort((at,Le)=>{if(at.range&&Le.range)return Ss.compareRangesUsingStarts(at.range,Le.range);const He=at.range?0:1,jt=Le.range?0:1;return He-jt});let Be=0;for(let at=1;at<T.length;at++)Ss.getEndPosition(T[Be].range).equals(Ss.getStartPosition(T[at].range))?(T[Be].range=Ss.fromPositions(Ss.getStartPosition(T[Be].range),Ss.getEndPosition(T[at].range)),T[Be].text+=T[at].text):(Be++,T[Be]=T[at]);T.length=Be+1;for(let{range:at,text:Le,eol:He}of T){if(typeof He=="number"&&(Te=He),Ss.isEmpty(at)&&!Le)continue;const jt=X.getValueInRange(at);if(Le=Le.replace(/\r\n|\n|\r/g,X.eol),jt===Le)continue;if(Math.max(Le.length,jt.length)>tG._diffLimit){ue.push({range:at,text:Le});continue}const qt=X5e(jt,Le,W),fn=X.offsetAt(Ss.lift(at).getStartPosition());for(const Mr of qt){const hi=X.positionAt(fn+Mr.originalStart),oo=X.positionAt(fn+Mr.originalStart+Mr.originalLength),Yn={text:Le.substr(Mr.modifiedStart,Mr.modifiedLength),range:{startLineNumber:hi.lineNumber,startColumn:hi.column,endLineNumber:oo.lineNumber,endColumn:oo.column}};X.getValueInRange(Yn.range)!==Yn.text&&ue.push(Yn)}}return typeof Te=="number"&&ue.push({eol:Te,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),ue}async $computeLinks(v){const T=this._getModel(v);return T?eze(T):null}async $computeDefaultDocumentColors(v){const T=this._getModel(v);return T?u9e(T):null}async $textualSuggest(v,T,W,X){const ue=new WB,Te=new RegExp(W,X),Be=new Set;e:for(const at of v){const Le=this._getModel(at);if(Le){for(const He of Le.words(Te))if(!(He===T||!isNaN(Number(He)))&&(Be.add(He),Be.size>tG._suggestionsLimit))break e}}return{words:Array.from(Be),duration:ue.elapsed()}}async $computeWordRanges(v,T,W,X){const ue=this._getModel(v);if(!ue)return Object.create(null);const Te=new RegExp(W,X),Be=Object.create(null);for(let at=T.startLineNumber;at<T.endLineNumber;at++){const Le=ue.getLineWords(at,Te);for(const He of Le){if(!isNaN(Number(He.word)))continue;let jt=Be[He.word];jt||(jt=[],Be[He.word]=jt),jt.push({startLineNumber:at,startColumn:He.startColumn,endLineNumber:at,endColumn:He.endColumn})}}return Be}async $navigateValueSet(v,T,W,X,ue){const Te=this._getModel(v);if(!Te)return null;const Be=new RegExp(X,ue);T.startColumn===T.endColumn&&(T={startLineNumber:T.startLineNumber,startColumn:T.startColumn,endLineNumber:T.endLineNumber,endColumn:T.endColumn+1});const at=Te.getValueInRange(T),Le=Te.getWordAtPosition({lineNumber:T.startLineNumber,column:T.startColumn},Be);if(!Le)return null;const He=Te.getValueInRange(Le);return ane.INSTANCE.navigateValueSet(T,at,Le,He,W)}};cG._diffLimit=1e5,cG._suggestionsLimit=1e4;let Ine=cG;class tG extends Ine{constructor(v,T){super(),this._host=v,this._foreignModuleFactory=T,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(v,T,W){const Te={host:gze(W,(Be,at)=>this._host.$fhr(Be,at)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Te,T),Promise.resolve(LEe(this._foreignModule))):new Promise((Be,at)=>{const Le=He=>{this._foreignModule=He.create(Te,T),Be(LEe(this._foreignModule))};{const He=h0e.asBrowserUri("".concat(v,".js")).toString(!0);import("".concat(He)).then(Le).catch(at)}})}$fmr(v,T){if(!this._foreignModule||typeof this._foreignModule[v]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+v));try{return Promise.resolve(this._foreignModule[v].apply(this._foreignModule,T))}catch(W){return Promise.reject(W)}}}typeof importScripts=="function"&&(globalThis.monaco=dze());let xne=!1;function m1e(g){if(xne)return;xne=!0;const v=new q5e(T=>{globalThis.postMessage(T)},T=>new tG(_ne.getChannel(T),g));globalThis.onmessage=T=>{v.onmessage(T.data)}}globalThis.onmessage=g=>{xne||m1e(null)};var HC={};/*!-----------------------------------------------------------------------------
|
||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
||
* Released under the MIT license
|
||
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||
*-----------------------------------------------------------------------------*/var E9e=Object.defineProperty,S9e=(g,v)=>{for(var T in v)E9e(g,T,{get:v[T],enumerable:!0})},_1e={};S9e(_1e,{EndOfLineState:()=>I9e,IndentStyle:()=>R9e,ScriptKind:()=>qC,ScriptTarget:()=>D9e,TokenClass:()=>C9e,createClassifier:()=>T9e,createLanguageService:()=>h1e,displayPartsToString:()=>A9e,flattenDiagnosticMessageText:()=>x9e,typescript:()=>g1e});var RE=void 0,nG={exports:{}},DE=(()=>{var g=Object.defineProperty,v=Object.getOwnPropertyNames,T=(e,t)=>function(){return e&&(t=(0,e[v(e)[0]])(e=0)),t},W=(e,t)=>function(){return t||(0,e[v(e)[0]])((t={exports:{}}).exports,t),t.exports},X=(e,t)=>{for(var r in t)g(e,r,{get:t[r],enumerable:!0})},ue,Te,Be,at=T({"src/compiler/corePublic.ts"(){ue="5.4",Te="5.4.5",Be=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Be||{})}});function Le(e){return e?e.length:0}function He(e,t){if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}}function jt(e,t){if(e)for(let r=e.length-1;r>=0;r--){const i=t(e[r],r);if(i)return i}}function qt(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i!==void 0)return i}}function fn(e,t){for(const r of e){const i=t(r);if(i!==void 0)return i}}function Mr(e,t,r){let i=r;if(e){let o=0;for(const s of e)i=t(i,s,o),o++}return i}function hi(e,t,r){const i=[];C.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)i.push(r(e[o],t[o],o));return i}function oo(e,t){if(e.length<=1)return e;const r=[];for(let i=0,o=e.length;i<o;i++)i&&r.push(t),r.push(e[i]);return r}function Yn(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function Tn(e,t,r){if(e!==void 0)for(let i=r!=null?r:0;i<e.length;i++){const o=e[i];if(t(o,i))return o}}function ko(e,t,r){if(e!==void 0)for(let i=r!=null?r:e.length-1;i>=0;i--){const o=e[i];if(t(o,i))return o}}function Br(e,t,r){if(e===void 0)return-1;for(let i=r!=null?r:0;i<e.length;i++)if(t(e[i],i))return i;return-1}function zi(e,t,r){if(e===void 0)return-1;for(let i=r!=null?r:e.length-1;i>=0;i--)if(t(e[i],i))return i;return-1}function Go(e,t){for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}return C.fail()}function Nr(e,t,r=Lv){if(e){for(const i of e)if(r(i,t))return!0}return!1}function Na(e,t,r=Lv){return e.length===t.length&&e.every((i,o)=>r(i,t[o]))}function Ac(e,t,r){for(let i=r||0;i<e.length;i++)if(Nr(t,e.charCodeAt(i)))return i;return-1}function lu(e,t){let r=0;if(e)for(let i=0;i<e.length;i++){const o=e[i];t(o,i)&&r++}return r}function rr(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;if(i<r){const o=e.slice(0,i);for(i++;i<r;){const s=e[i];t(s)&&o.push(s),i++}return o}}return e}function Ks(e,t){let r=0;for(let i=0;i<e.length;i++)t(e[i],i,e)&&(e[r]=e[i],r++);e.length=r}function zo(e){e.length=0}function Ot(e,t){let r;if(e){r=[];for(let i=0;i<e.length;i++)r.push(t(e[i],i))}return r}function*Ia(e,t){for(const r of e)yield t(r)}function no(e,t){if(e)for(let r=0;r<e.length;r++){const i=e[r],o=t(i,r);if(i!==o){const s=e.slice(0,r);for(s.push(o),r++;r<e.length;r++)s.push(t(e[r],r));return s}}return e}function ra(e){const t=[];for(const r of e)r&&(Ao(r)?Ur(t,r):t.push(r));return t}function Pi(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(Ao(o)?r=Ur(r,o):r=Rn(r,o))}return r||et}function sc(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(Ao(o)?Ur(r,o):r.push(o))}return r}function*Qp(e,t){for(const r of e){const i=t(r);i&&(yield*i)}}function Sm(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=e[i],s=t(o,i);(r||o!==s||Ao(s))&&(r||(r=e.slice(0,i)),Ao(s)?Ur(r,s):r.push(s))}return r||e}function CE(e,t){const r=[];for(let i=0;i<e.length;i++){const o=t(e[i],i);if(o===void 0)return;r.push(o)}return r}function Hi(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o!==void 0&&r.push(o)}return r}function*kg(e,t){for(const r of e){const i=t(r);i!==void 0&&(yield i)}}function N6(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const s=t(o,i);if(s!==void 0){const[l,u]=s;l!==void 0&&u!==void 0&&r.set(l,u)}}),r}function i0(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function Dv(e,t){return e.has(t)?!1:(e.add(t),!0)}function*P6(e){yield e}function uG(e,t,r){let i;if(e){i=[];const o=e.length;let s,l,u=0,p=0;for(;u<o;){for(;p<o;){const h=e[p];if(l=t(h,p),p===0)s=l;else if(l!==s)break;p++}if(u<p){const h=r(e.slice(u,p),s,u,p);h&&i.push(h),u=p}s=l,p++}}return i}function Dne(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const[s,l]=t(o,i);r.set(s,l)}),r}function St(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function dG(e,t,r){let i;for(let o=0;o<e.length;o++)t(e[o])?i=i===void 0?o:i:i!==void 0&&(r(i,o),i=void 0);i!==void 0&&r(i,e.length)}function To(e,t){return St(t)?St(e)?[...e,...t]:t:e}function P9e(e,t){return t}function OM(e){return e.map(P9e)}function M9e(e,t,r){const i=OM(e);T1e(e,i,r);let o=e[i[0]];const s=[i[0]];for(let l=1;l<i.length;l++){const u=i[l],p=e[u];t(o,p)||(s.push(u),o=p)}return s.sort(),s.map(l=>e[l])}function L9e(e,t){const r=[];for(const i of e)Tf(r,i,t);return r}function NE(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?M9e(e,t,r):L9e(e,t)}function k9e(e,t){if(e.length===0)return et;let r=e[0];const i=[r];for(let o=1;o<e.length;o++){const s=e[o];switch(t(s,r)){case!0:case 0:continue;case-1:return C.fail("Array is unsorted.")}i.push(r=s)}return i}function pG(){return[]}function xy(e,t,r,i){if(e.length===0)return e.push(t),!0;const o=Nv(e,t,tl,r);return o<0?(e.splice(~o,0,t),!0):i?(e.splice(o,0,t),!0):!1}function KC(e,t,r){return k9e(uS(e,t),r||t||Uu)}function M6(e,t){if(e.length<2)return!0;for(let r=1,i=e.length;r<i;r++)if(t(e[r-1],e[r])===1)return!1;return!0}function XC(e,t,r,i){let o=3;if(e.length<2)return o;let s=t(e[0]);for(let l=1,u=e.length;l<u&&o!==0;l++){const p=t(e[l]);o&1&&r(s,p)>0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function Ym(e,t,r=Lv){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!r(e[i],t[i],i))return!1;return!0}function WM(e){let t;if(e)for(let r=0;r<e.length;r++){const i=e[r];(t||!i)&&(t||(t=e.slice(0,r)),i&&t.push(i))}return t||e}function Cne(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;const i=[];e:for(let o=0,s=0;s<t.length;s++){s>0&&C.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(const l=o;o<e.length;o++)switch(o>l&&C.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function Rn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Fx(e,t){return e===void 0?t:t===void 0?e:Ao(e)?Ao(t)?To(e,t):Rn(e,t):Ao(t)?Rn(t,e):[e,t]}function Nne(e,t){return t<0?e.length+t:t}function Ur(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:Nne(t,r),i=i===void 0?t.length:Nne(t,i);for(let o=r;o<i&&o<t.length;o++)t[o]!==void 0&&e.push(t[o]);return e}function Tf(e,t,r){return Nr(e,t,r)?!1:(e.push(t),!0)}function wg(e,t,r){return e?(Tf(e,t,r),e):[t]}function T1e(e,t,r){t.sort((i,o)=>r(e[i],e[o])||nl(i,o))}function uS(e,t){return e.length===0?e:e.slice().sort(t)}function*fG(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Cv(e,t){const r=OM(e);return T1e(e,r,t),r.map(i=>e[i])}function mG(e,t,r,i){for(;r<i;){if(e[r]!==t[r])return!1;r++}return!0}function $c(e){return e===void 0||e.length===0?void 0:e[0]}function L6(e){if(e)for(const t of e)return t}function Xa(e){return C.assert(e.length!==0),e[0]}function _G(e){for(const t of e)return t;C.fail("iterator is empty")}function el(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function es(e){return C.assert(e.length!==0),e[e.length-1]}function ch(e){return e&&e.length===1?e[0]:void 0}function hG(e){return C.checkDefined(ch(e))}function uh(e){return e&&e.length===1?e[0]:e}function gG(e,t,r){const i=e.slice(0);return i[t]=r,i}function Nv(e,t,r,i,o){return bA(e,r(t),r,i,o)}function bA(e,t,r,i,o){if(!St(e))return-1;let s=o||0,l=e.length-1;for(;s<=l;){const u=s+(l-s>>1),p=r(e[u],u);switch(i(p,t)){case-1:s=u+1;break;case 0:return u;case 1:l=u-1;break}}return~s}function od(e,t,r,i,o){if(e&&e.length>0){const s=e.length;if(s>0){let l=i===void 0||i<0?0:i;const u=o===void 0||l+o>s-1?s-1:l+o;let p;for(arguments.length<=2?(p=e[l],l++):p=r;l<=u;)p=t(p,e[l],l),l++;return p}}return r}function Cs(e,t){return Cy.call(e,t)}function k6(e,t){return Cy.call(e,t)?e[t]:void 0}function Qh(e){const t=[];for(const r in e)Cy.call(e,r)&&t.push(r);return t}function A1e(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)Tf(t,i)}while(e=Object.getPrototypeOf(e));return t}function EA(e){const t=[];for(const r in e)Cy.call(e,r)&&t.push(e[r]);return t}function Pne(e,t){const r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i);return r}function Wo(e,t){const r=[];for(const i of e)r.push(t?t(i):i);return r}function zx(e,...t){for(const r of t)if(r!==void 0)for(const i in r)Cs(r,i)&&(e[i]=r[i]);return e}function Mne(e,t,r=Lv){if(e===t)return!0;if(!e||!t)return!1;for(const i in e)if(Cy.call(e,i)&&(!Cy.call(t,i)||!r(e[i],t[i])))return!1;for(const i in t)if(Cy.call(t,i)&&!Cy.call(e,i))return!1;return!0}function PE(e,t,r=tl){const i=new Map;for(const o of e){const s=t(o);s!==void 0&&i.set(s,r(o))}return i}function Lne(e,t,r=tl){const i=[];for(const o of e)i[t(o)]=r(o);return i}function FM(e,t,r=tl){const i=Zp();for(const o of e)i.add(t(o),r(o));return i}function YC(e,t,r=tl){return Wo(FM(e,t).values(),r)}function w6(e,t){var i;const r={};if(e)for(const o of e){const s="".concat(t(o));((i=r[s])!=null?i:r[s]=[]).push(o)}return r}function vG(e){const t={};for(const r in e)Cy.call(e,r)&&(t[r]=e[r]);return t}function O6(e,t){const r={};for(const i in t)Cy.call(t,i)&&(r[i]=t[i]);for(const i in e)Cy.call(e,i)&&(r[i]=e[i]);return r}function yG(e,t){for(const r in t)Cy.call(t,r)&&(e[r]=t[r])}function ia(e,t){return t?t.bind(e):void 0}function Zp(){const e=new Map;return e.add=w9e,e.remove=O9e,e}function w9e(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function O9e(e,t){const r=this.get(e);r&&(TA(r,t),r.length||this.delete(e))}function zM(e){const t=(e==null?void 0:e.slice())||[];let r=0;function i(){return r===t.length}function o(...l){t.push(...l)}function s(){if(i())throw new Error("Queue is empty");const l=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){const u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function bG(e,t){const r=new Map;let i=0;function*o(){for(const l of r.values())Ao(l)?yield*l:yield l}const s={has(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(!Ao(p))return t(p,l);for(const h of p)if(t(h,l))return!0;return!1},add(l){const u=e(l);if(r.has(u)){const p=r.get(u);if(Ao(p))Nr(p,l,t)||(p.push(l),i++);else{const h=p;t(h,l)||(r.set(u,[h,l]),i++)}}else r.set(u,l),i++;return this},delete(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(Ao(p)){for(let h=0;h<p.length;h++)if(t(p[h],l))return p.length===1?r.delete(u):p.length===2?r.set(u,p[1-h]):TG(p,h),i--,!0}else if(t(p,l))return r.delete(u),i--,!0;return!1},clear(){r.clear(),i=0},get size(){return i},forEach(l){for(const u of Wo(r.values()))if(Ao(u))for(const p of u)l(p,p,s);else{const p=u;l(p,p,s)}},keys(){return o()},values(){return o()},*entries(){for(const l of o())yield[l,l]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function Ao(e){return Array.isArray(e)}function SA(e){return Ao(e)?e:[e]}function No(e){return typeof e=="string"}function Pv(e){return typeof e=="number"}function ti(e,t){return e!==void 0&&t(e)?e:void 0}function oa(e,t){return e!==void 0&&t(e)?e:C.fail("Invalid cast. The supplied value ".concat(e," did not pass the test '").concat(C.getFunctionName(t),"'."))}function ts(e){}function $m(){return!1}function Mv(){return!0}function o0(){}function tl(e){return e}function kne(e){return e.toLowerCase()}function dh(e){return qne.test(e)?e.replace(qne,kne):e}function qo(){throw new Error("Not implemented")}function Sd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function ph(e){const t=new Map;return r=>{const i="".concat(typeof r,":").concat(r);let o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function I1e(e){const t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function wne(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function x1e(e,t,r,i,o){if(o){const s=[];for(let l=0;l<arguments.length;l++)s[l]=arguments[l];return l=>od(s,(u,p)=>p(u),l)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function Lv(e,t){return e===t}function a0(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function dS(e,t){return Lv(e,t)}function R1e(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function nl(e,t){return R1e(e,t)}function W6(e,t){return nl(e==null?void 0:e.start,t==null?void 0:t.start)||nl(e==null?void 0:e.length,t==null?void 0:t.length)}function EG(e,t){return od(e,(r,i)=>t(r,i)===-1?r:i)}function F6(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:e>t?1:0)}function One(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:e>t?1:0)}function Uu(e,t){return R1e(e,t)}function Bx(e){return e?F6:Uu}function Wne(){return CG}function Fne(e){CG!==e&&(CG=e,Jne=void 0)}function BM(e,t){return(Jne||(Jne=N1e(CG)))(e,t)}function zne(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Ry(e,t){return nl(e?1:0,t?1:0)}function $C(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let o=Math.floor(e.length*.4)+1,s;for(const l of t){const u=r(l);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const p=W9e(e,u,o-.1);if(p===void 0)continue;C.assert(p<o),o=p,s=l}}return s}function W9e(e,t,r){let i=new Array(t.length+1),o=new Array(t.length+1);const s=r+.01;for(let u=0;u<=t.length;u++)i[u]=u;for(let u=1;u<=e.length;u++){const p=e.charCodeAt(u-1),h=Math.ceil(u>r?u-r:1),f=Math.floor(t.length>r+u?r+u:t.length);o[0]=u;let b=u;for(let I=1;I<h;I++)o[I]=s;for(let I=h;I<=f;I++){const R=e[u-1].toLowerCase()===t[I-1].toLowerCase()?i[I-1]+.1:i[I-1]+2,M=p===t.charCodeAt(I-1)?i[I-1]:Math.min(i[I]+1,o[I-1]+1,R);o[I]=M,b=Math.min(b,M)}for(let I=f+1;I<=t.length;I++)o[I]=s;if(b>r)return;const A=i;i=o,o=A}const l=i[t.length];return l>r?void 0:l}function Al(e,t,r){const i=e.length-t.length;return i>=0&&(r?a0(e.slice(i),t):e.indexOf(t,i)===i)}function Gx(e,t){return Al(e,t)?e.slice(0,e.length-t.length):e}function Bne(e,t){return Al(e,t)?e.slice(0,e.length-t.length):void 0}function SG(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function Vx(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return Dy(e,r),!0;return!1}function Dy(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function TG(e,t){e[t]=e[e.length-1],e.pop()}function TA(e,t){return F9e(e,r=>r===t)}function F9e(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return TG(e,r),!0;return!1}function Mu(e){return e?tl:dh}function Gne({prefix:e,suffix:t}){return"".concat(e,"*").concat(t)}function Vne(e,t){return C.assert(z6(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function AG(e,t,r){let i,o=-1;for(const s of e){const l=t(s);z6(l,r)&&l.prefix.length>o&&(o=l.prefix.length,i=s)}return i}function po(e,t,r){return r?a0(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function QC(e,t){return po(e,t)?e.substr(t.length):e}function IG(e,t,r=tl){return po(r(e),r(t))?e.substring(t.length):void 0}function z6({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&po(r,e)&&Al(r,t)}function B6(e,t){return r=>e(r)&&t(r)}function Qm(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function G6(e){return(...t)=>!e(...t)}function D1e(e){}function AA(e){return e===void 0?void 0:[e]}function V6(e,t,r,i,o,s){s=s||ts;let l=0,u=0;const p=e.length,h=t.length;let f=!1;for(;l<p&&u<h;){const b=e[l],A=t[u],I=r(b,A);I===-1?(i(b),l++,f=!0):I===1?(o(A),u++,f=!0):(s(A,b),l++,u++)}for(;l<p;)i(e[l++]),f=!0;for(;u<h;)o(t[u++]),f=!0;return f}function jne(e){const t=[];return C1e(e,t,void 0,0),t}function C1e(e,t,r,i){for(const o of e[i]){let s;r?(s=r.slice(),s.push(o)):s=[o],i===e.length-1?t.push(s):C1e(e,t,s,i+1)}}function j6(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(0,i)}}function Une(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(i)}}function xG(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof nG=="object"}var et,U6,Hne,RG,kv,Cy,qne,DG,N1e,Jne,CG,z9e=T({"src/compiler/core.ts"(){ta(),et=[],U6=new Map,Hne=new Set,RG=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(RG||{}),kv=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=Nne(e,t),t<e.length))return e[t]},Cy=Object.prototype.hasOwnProperty,qne=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,DG=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(DG||{}),N1e=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;const s=o(r,i);return s<0?-1:s>0?1:0}function t(r){const i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),NG,C,B9e=T({"src/compiler/debug.ts"(){ta(),ta(),NG=(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))(NG||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Xt){return e.currentLogLevel<=Xt}e.shouldLog=r;function i(Xt,nt){e.loggingHost&&r(Xt)&&e.loggingHost.log(Xt,nt)}function o(Xt){i(3,Xt)}e.log=o,(Xt=>{function nt(yi){i(1,yi)}Xt.error=nt;function Bt(yi){i(2,yi)}Xt.warn=Bt;function Dn(yi){i(3,yi)}Xt.log=Dn;function oi(yi){i(4,yi)}Xt.trace=oi})(o=e.log||(e.log={}));const s={};function l(){return t}e.getAssertionLevel=l;function u(Xt){const nt=t;if(t=Xt,Xt>nt)for(const Bt of Qh(s)){const Dn=s[Bt];Dn!==void 0&&e[Bt]!==Dn.assertion&&Xt>=Dn.level&&(e[Bt]=Dn,s[Bt]=void 0)}}e.setAssertionLevel=u;function p(Xt){return t>=Xt}e.shouldAssert=p;function h(Xt,nt){return p(Xt)?!0:(s[nt]={level:Xt,assertion:e[nt]},e[nt]=ts,!1)}function f(Xt,nt){const Bt=new Error(Xt?"Debug Failure. ".concat(Xt):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Bt,nt||f),Bt}e.fail=f;function b(Xt,nt,Bt){return f("".concat(nt||"Unexpected node.","\r\nNode ").concat(ge(Xt.kind)," was unexpected."),Bt||b)}e.failBadSyntaxKind=b;function A(Xt,nt,Bt,Dn){Xt||(nt=nt?"False expression: ".concat(nt):"False expression.",Bt&&(nt+="\r\nVerbose Debug Information: "+(typeof Bt=="string"?Bt:Bt())),f(nt,Dn||A))}e.assert=A;function I(Xt,nt,Bt,Dn,oi){if(Xt!==nt){const yi=Bt?Dn?"".concat(Bt," ").concat(Dn):Bt:"";f("Expected ".concat(Xt," === ").concat(nt,". ").concat(yi),oi||I)}}e.assertEqual=I;function R(Xt,nt,Bt,Dn){Xt>=nt&&f("Expected ".concat(Xt," < ").concat(nt,". ").concat(Bt||""),Dn||R)}e.assertLessThan=R;function M(Xt,nt,Bt){Xt>nt&&f("Expected ".concat(Xt," <= ").concat(nt),Bt||M)}e.assertLessThanOrEqual=M;function N(Xt,nt,Bt){Xt<nt&&f("Expected ".concat(Xt," >= ").concat(nt),Bt||N)}e.assertGreaterThanOrEqual=N;function O(Xt,nt,Bt){Xt==null&&f(nt,Bt||O)}e.assertIsDefined=O;function U(Xt,nt,Bt){return O(Xt,nt,Bt||U),Xt}e.checkDefined=U;function K(Xt,nt,Bt){for(const Dn of Xt)O(Dn,nt,Bt||K)}e.assertEachIsDefined=K;function ee(Xt,nt,Bt){return K(Xt,nt,Bt||ee),Xt}e.checkEachDefined=ee;function V(Xt,nt="Illegal value:",Bt){const Dn=typeof Xt=="object"&&Cs(Xt,"kind")&&Cs(Xt,"pos")?"SyntaxKind: "+ge(Xt.kind):JSON.stringify(Xt);return f("".concat(nt," ").concat(Dn),Bt||V)}e.assertNever=V;function se(Xt,nt,Bt,Dn){h(1,"assertEachNode")&&A(nt===void 0||Yn(Xt,nt),Bt||"Unexpected node.",()=>"Node array did not pass test '".concat(oe(nt),"'."),Dn||se)}e.assertEachNode=se;function G(Xt,nt,Bt,Dn){h(1,"assertNode")&&A(Xt!==void 0&&(nt===void 0||nt(Xt)),Bt||"Unexpected node.",()=>"Node ".concat(ge(Xt==null?void 0:Xt.kind)," did not pass test '").concat(oe(nt),"'."),Dn||G)}e.assertNode=G;function re(Xt,nt,Bt,Dn){h(1,"assertNotNode")&&A(Xt===void 0||nt===void 0||!nt(Xt),Bt||"Unexpected node.",()=>"Node ".concat(ge(Xt.kind)," should not have passed test '").concat(oe(nt),"'."),Dn||re)}e.assertNotNode=re;function _e(Xt,nt,Bt,Dn){h(1,"assertOptionalNode")&&A(nt===void 0||Xt===void 0||nt(Xt),Bt||"Unexpected node.",()=>"Node ".concat(ge(Xt==null?void 0:Xt.kind)," did not pass test '").concat(oe(nt),"'."),Dn||_e)}e.assertOptionalNode=_e;function ye(Xt,nt,Bt,Dn){h(1,"assertOptionalToken")&&A(nt===void 0||Xt===void 0||Xt.kind===nt,Bt||"Unexpected node.",()=>"Node ".concat(ge(Xt==null?void 0:Xt.kind)," was not a '").concat(ge(nt),"' token."),Dn||ye)}e.assertOptionalToken=ye;function Q(Xt,nt,Bt){h(1,"assertMissingNode")&&A(Xt===void 0,nt||"Unexpected node.",()=>"Node ".concat(ge(Xt.kind)," was unexpected'."),Bt||Q)}e.assertMissingNode=Q;function Y(Xt){}e.type=Y;function oe(Xt){if(typeof Xt!="function")return"";if(Cs(Xt,"name"))return Xt.name;{const nt=Function.prototype.toString.call(Xt),Bt=/^function\s+([\w$]+)\s*\(/.exec(nt);return Bt?Bt[1]:""}}e.getFunctionName=oe;function he(Xt){return"{ name: ".concat(ji(Xt.escapedName),"; flags: ").concat(At(Xt.flags),"; declarations: ").concat(Ot(Xt.declarations,nt=>ge(nt.kind))," }")}e.formatSymbol=he;function Ae(Xt=0,nt,Bt){const Dn=ie(nt);if(Xt===0)return Dn.length>0&&Dn[0][0]===0?Dn[0][1]:"0";if(Bt){const oi=[];let yi=Xt;for(const[eo,Ro]of Dn){if(eo>Xt)break;eo!==0&&eo&Xt&&(oi.push(Ro),yi&=~eo)}if(yi===0)return oi.join("|")}else for(const[oi,yi]of Dn)if(oi===Xt)return yi;return Xt.toString()}e.formatEnum=Ae;const de=new Map;function ie(Xt){const nt=de.get(Xt);if(nt)return nt;const Bt=[];for(const oi in Xt){const yi=Xt[oi];typeof yi=="number"&&Bt.push([yi,oi])}const Dn=Cv(Bt,(oi,yi)=>nl(oi[0],yi[0]));return de.set(Xt,Dn),Dn}function ge(Xt){return Ae(Xt,q6,!1)}e.formatSyntaxKind=ge;function Ne(Xt){return Ae(Xt,o4,!1)}e.formatSnippetKind=Ne;function qe(Xt){return Ae(Xt,r4,!1)}e.formatScriptKind=qe;function Ee(Xt){return Ae(Xt,J6,!0)}e.formatNodeFlags=Ee;function Me(Xt){return Ae(Xt,K6,!0)}e.formatModifierFlags=Me;function Ce(Xt){return Ae(Xt,i4,!0)}e.formatTransformFlags=Ce;function Oe(Xt){return Ae(Xt,a4,!0)}e.formatEmitFlags=Oe;function At(Xt){return Ae(Xt,Z6,!0)}e.formatSymbolFlags=At;function be(Xt){return Ae(Xt,e4,!0)}e.formatTypeFlags=be;function Ue(Xt){return Ae(Xt,n4,!0)}e.formatSignatureFlags=Ue;function it(Xt){return Ae(Xt,t4,!0)}e.formatObjectFlags=it;function Ft(Xt){return Ae(Xt,UM,!0)}e.formatFlowFlags=Ft;function gt(Xt){return Ae(Xt,X6,!0)}e.formatRelationComparisonResult=gt;function Qe(Xt){return Ae(Xt,YF,!0)}e.formatCheckMode=Qe;function It(Xt){return Ae(Xt,$F,!0)}e.formatSignatureCheckMode=It;function on(Xt){return Ae(Xt,XF,!0)}e.formatTypeFacts=on;let $t=!1,Cn;function Hn(Xt){"__debugFlowFlags"in Xt||Object.defineProperties(Xt,{__tsDebuggerDisplay:{value(){const nt=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Bt=this.flags&-2048;return"".concat(nt).concat(Bt?" (".concat(Ft(Bt),")"):"")}},__debugFlowFlags:{get(){return Ae(this.flags,UM,!0)}},__debugToString:{value(){return Ir(this)}}})}function yn(Xt){$t&&(typeof Object.setPrototypeOf=="function"?(Cn||(Cn=Object.create(Object.prototype),Hn(Cn)),Object.setPrototypeOf(Xt,Cn)):Hn(Xt))}e.attachFlowNodeDebugInfo=yn;let tn;function en(Xt){"__tsDebuggerDisplay"in Xt||Object.defineProperties(Xt,{__tsDebuggerDisplay:{value(nt){return nt=String(nt).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(nt)}}})}function gi(Xt){$t&&(typeof Object.setPrototypeOf=="function"?(tn||(tn=Object.create(Array.prototype),en(tn)),Object.setPrototypeOf(Xt,tn)):en(Xt))}e.attachNodeArrayDebugInfo=gi;function ho(){if($t)return;const Xt=new WeakMap,nt=new WeakMap;Object.defineProperties(uu.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const Dn=this.flags&33554432?"TransientSymbol":"Symbol",oi=this.flags&-33554433;return"".concat(Dn," '").concat(El(this),"'").concat(oi?" (".concat(At(oi),")"):"")}},__debugFlags:{get(){return At(this.flags)}}}),Object.defineProperties(uu.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const Dn=this.flags&67359327?"IntrinsicType ".concat(this.intrinsicName).concat(this.debugIntrinsicName?" (".concat(this.debugIntrinsicName,")"):""):this.flags&98304?"NullableType":this.flags&384?"LiteralType ".concat(JSON.stringify(this.value)):this.flags&2048?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",oi=this.flags&524288?this.objectFlags&-1344:0;return"".concat(Dn).concat(this.symbol?" '".concat(El(this.symbol),"'"):"").concat(oi?" (".concat(it(oi),")"):"")}},__debugFlags:{get(){return be(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?it(this.objectFlags):""}},__debugTypeToString:{value(){let Dn=Xt.get(this);return Dn===void 0&&(Dn=this.checker.typeToString(this),Xt.set(this,Dn)),Dn}}}),Object.defineProperties(uu.getSignatureConstructor().prototype,{__debugFlags:{get(){return Ue(this.flags)}},__debugSignatureToString:{value(){var Dn;return(Dn=this.checker)==null?void 0:Dn.signatureToString(this)}}});const Bt=[uu.getNodeConstructor(),uu.getIdentifierConstructor(),uu.getTokenConstructor(),uu.getSourceFileConstructor()];for(const Dn of Bt)Cs(Dn.prototype,"__debugKind")||Object.defineProperties(Dn.prototype,{__tsDebuggerDisplay:{value(){const oi=al(this)?"GeneratedIdentifier":je(this)?"Identifier '".concat(Tr(this),"'"):Ji(this)?"PrivateIdentifier '".concat(Tr(this),"'"):Ma(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):bp(this)?"NumericLiteral ".concat(this.text):YW(this)?"BigIntLiteral ".concat(this.text,"n"):gl(this)?"TypeParameterDeclaration":Io(this)?"ParameterDeclaration":Ll(this)?"ConstructorDeclaration":rf(this)?"GetAccessorDeclaration":Sp(this)?"SetAccessorDeclaration":sI(this)?"CallSignatureDeclaration":Jk(this)?"ConstructSignatureDeclaration":r1(this)?"IndexSignatureDeclaration":Kk(this)?"TypePredicateNode":Nf(this)?"TypeReferenceNode":Th(this)?"FunctionTypeNode":qR(this)?"ConstructorTypeNode":lI(this)?"TypeQueryNode":Tp(this)?"TypeLiteralNode":Xk(this)?"ArrayTypeNode":cI(this)?"TupleTypeNode":tF(this)?"OptionalTypeNode":nF(this)?"RestTypeNode":Qy(this)?"UnionTypeNode":uI(this)?"IntersectionTypeNode":dI(this)?"ConditionalTypeNode":BS(this)?"InferTypeNode":GS(this)?"ParenthesizedTypeNode":Yk(this)?"ThisTypeNode":VS(this)?"TypeOperatorNode":jS(this)?"IndexedAccessTypeNode":KR(this)?"MappedTypeNode":Zy(this)?"LiteralTypeNode":JR(this)?"NamedTupleMember":fg(this)?"ImportTypeNode":ge(this.kind);return"".concat(oi).concat(this.flags?" (".concat(Ee(this.flags),")"):"")}},__debugKind:{get(){return ge(this.kind)}},__debugNodeFlags:{get(){return Ee(this.flags)}},__debugModifierFlags:{get(){return Me(boe(this))}},__debugTransformFlags:{get(){return Ce(this.transformFlags)}},__debugIsParseTreeNode:{get(){return cN(this)}},__debugEmitFlags:{get(){return Oe(qa(this))}},__debugGetText:{value(oi){if(Ys(this))return"";let yi=nt.get(this);if(yi===void 0){const eo=Do(this),Ro=eo&&jn(eo);yi=Ro?FE(Ro,eo,oi):"",nt.set(this,yi)}return yi}}});$t=!0}e.enableDebugInfo=ho;function Gi(Xt){const nt=Xt&7;let Bt=nt===0?"in out":nt===3?"[bivariant]":nt===2?"in":nt===1?"out":nt===4?"[independent]":"";return Xt&8?Bt+=" (unmeasurable)":Xt&16&&(Bt+=" (unreliable)"),Bt}e.formatVariance=Gi;class xo{__debugToString(){var nt;switch(this.kind){case 3:return((nt=this.debugInfo)==null?void 0:nt.call(this))||"(function mapper)";case 0:return"".concat(this.source.__debugTypeToString()," -> ").concat(this.target.__debugTypeToString());case 1:return hi(this.sources,this.targets||Ot(this.sources,()=>"any"),(Bt,Dn)=>"".concat(Bt.__debugTypeToString()," -> ").concat(typeof Dn=="string"?Dn:Dn.__debugTypeToString())).join(", ");case 2:return hi(this.sources,this.targets,(Bt,Dn)=>"".concat(Bt.__debugTypeToString()," -> ").concat(Dn().__debugTypeToString())).join(", ");case 5:case 4:return"m1: ".concat(this.mapper1.__debugToString().split("\n").join("\n "),"\nm2: ").concat(this.mapper2.__debugToString().split("\n").join("\n "));default:return V(this)}}}e.DebugTypeMapper=xo;function Qn(Xt){return e.isDebugging?Object.setPrototypeOf(Xt,xo.prototype):Xt}e.attachDebugPrototypeIfDebug=Qn;function Di(Xt){return console.log(Ir(Xt))}e.printControlFlowGraph=Di;function Ir(Xt){let nt=-1;function Bt(L){return L.id||(L.id=nt,nt--),L.id}let Dn;(L=>{L.lr="─",L.ud="│",L.dr="╭",L.dl="╮",L.ul="╯",L.ur="╰",L.udr="├",L.udl="┤",L.dlr="┬",L.ulr="┴",L.udlr="╫"})(Dn||(Dn={}));let oi;(L=>{L[L.None=0]="None",L[L.Up=1]="Up",L[L.Down=2]="Down",L[L.Left=4]="Left",L[L.Right=8]="Right",L[L.UpDown=3]="UpDown",L[L.LeftRight=12]="LeftRight",L[L.UpLeft=5]="UpLeft",L[L.UpRight=9]="UpRight",L[L.DownLeft=6]="DownLeft",L[L.DownRight=10]="DownRight",L[L.UpDownLeft=7]="UpDownLeft",L[L.UpDownRight=11]="UpDownRight",L[L.UpLeftRight=13]="UpLeftRight",L[L.DownLeftRight=14]="DownLeftRight",L[L.UpDownLeftRight=15]="UpDownLeftRight",L[L.NoChildren=16]="NoChildren"})(oi||(oi={}));const yi=2032,eo=882,Ro=Object.create(null),fa=[],Fa=dt(Xt,new Set);for(const L of fa)L.text=hn(L.flowNode,L.circular),ot(L);const An=Dt(Fa),wn=Ye(An);return _t(Fa,0),dn();function Je(L){return!!(L.flags&128)}function mt(L){return!!(L.flags&12)&&!!L.antecedents}function pt(L){return!!(L.flags&yi)}function Pt(L){return!!(L.flags&eo)}function le(L){const me=[];for(const q of L.edges)q.source===L&&me.push(q.target);return me}function Fe(L){const me=[];for(const q of L.edges)q.target===L&&me.push(q.source);return me}function dt(L,me){const q=Bt(L);let fe=Ro[q];if(fe&&me.has(L))return fe.circular=!0,fe={id:-1,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},fa.push(fe),fe;if(me.add(L),!fe)if(Ro[q]=fe={id:q,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},fa.push(fe),mt(L))for(const Ve of L.antecedents)j(fe,Ve,me);else pt(L)&&j(fe,L.antecedent,me);return me.delete(L),fe}function j(L,me,q){const fe=dt(me,q),Ve={source:L,target:fe};L.edges.push(Ve),fe.edges.push(Ve)}function ot(L){if(L.level!==-1)return L.level;let me=0;for(const q of Fe(L))me=Math.max(me,ot(q)+1);return L.level=me}function Dt(L){let me=0;for(const q of le(L))me=Math.max(me,Dt(q));return me+1}function Ye(L){const me=We(Array(L),0);for(const q of fa)me[q.level]=Math.max(me[q.level],q.text.length);return me}function _t(L,me){if(L.lane===-1){L.lane=me,L.endLane=me;const q=le(L);for(let fe=0;fe<q.length;fe++){fe>0&&me++;const Ve=q[fe];_t(Ve,me),Ve.endLane>L.endLane&&(me=Ve.endLane)}L.endLane=me}}function Gt(L){if(L&2)return"Start";if(L&4)return"Branch";if(L&8)return"Loop";if(L&16)return"Assignment";if(L&32)return"True";if(L&64)return"False";if(L&128)return"SwitchClause";if(L&256)return"ArrayMutation";if(L&512)return"Call";if(L&1024)return"ReduceLabel";if(L&1)return"Unreachable";throw new Error}function gn(L){const me=jn(L);return FE(me,L,!1)}function hn(L,me){let q=Gt(L.flags);if(me&&(q="".concat(q,"#").concat(Bt(L))),Pt(L))L.node&&(q+=" (".concat(gn(L.node),")"));else if(Je(L)){const fe=[];for(let Ve=L.clauseStart;Ve<L.clauseEnd;Ve++){const ke=L.switchStatement.caseBlock.clauses[Ve];AP(ke)?fe.push("default"):fe.push(gn(ke.expression))}q+=" (".concat(fe.join(", "),")")}return me==="circularity"?"Circular(".concat(q,")"):q}function dn(){const L=wn.length,me=fa.reduce((Tt,kt)=>Math.max(Tt,kt.lane),0)+1,q=We(Array(me),""),fe=wn.map(()=>Array(me)),Ve=wn.map(()=>We(Array(me),0));for(const Tt of fa){fe[Tt.level][Tt.lane]=Tt;const kt=le(Tt);for(let En=0;En<kt.length;En++){const nr=kt[En];let lr=8;nr.lane===Tt.lane&&(lr|=4),En>0&&(lr|=1),En<kt.length-1&&(lr|=2),Ve[Tt.level][nr.lane]|=lr}kt.length===0&&(Ve[Tt.level][Tt.lane]|=16);const nn=Fe(Tt);for(let En=0;En<nn.length;En++){const nr=nn[En];let lr=4;En>0&&(lr|=1),En<nn.length-1&&(lr|=2),Ve[Tt.level-1][nr.lane]|=lr}}for(let Tt=0;Tt<L;Tt++)for(let kt=0;kt<me;kt++){const nn=Tt>0?Ve[Tt-1][kt]:0,En=kt>0?Ve[Tt][kt-1]:0;let nr=Ve[Tt][kt];nr||(nn&8&&(nr|=12),En&2&&(nr|=3),Ve[Tt][kt]=nr)}for(let Tt=0;Tt<L;Tt++)for(let kt=0;kt<q.length;kt++){const nn=Ve[Tt][kt],En=nn&4?"─":" ",nr=fe[Tt][kt];nr?(ke(kt,nr.text),Tt<L-1&&(ke(kt," "),ke(kt,Lt(En,wn[Tt]-nr.text.length)))):Tt<L-1&&ke(kt,Lt(En,wn[Tt]+1)),ke(kt,H(nn)),ke(kt,nn&8&&Tt<L-1&&!fe[Tt+1][kt]?"─":" ")}return"\n".concat(q.join("\n"),"\n");function ke(Tt,kt){q[Tt]+=kt}}function H(L){switch(L){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 We(L,me){if(L.fill)L.fill(me);else for(let q=0;q<L.length;q++)L[q]=me;return L}function Lt(L,me){if(L.repeat)return me>0?L.repeat(me):"";let q="";for(;q.length<me;)q+=L;return q}}e.formatControlFlowGraph=Ir})(C||(C={}))}});function P1e(e){const t=L1e.exec(e);if(!t)return;const[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!k1e.test(s))&&!(l&&!O1e.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function G9e(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;const r=Math.min(e.length,t.length);for(let i=0;i<r;i++){const o=e[i],s=t[i];if(o===s)continue;const l=Xne.test(o),u=Xne.test(s);if(l||u){if(l!==u)return l?-1:1;const p=nl(+o,+s);if(p)return p}else{const p=Uu(o,s);if(p)return p}}return nl(e.length,t.length)}function M1e(e){const t=[];for(let r of e.trim().split(F1e)){if(!r)continue;const i=[];r=r.trim();const o=G1e.exec(r);if(o){if(!V9e(o[1],o[2],i))return}else for(const s of r.split(z1e)){const l=V1e.exec(s.trim());if(!l||!j9e(l[1],l[2],i))return}t.push(i)}return t}function Kne(e){const t=B1e.exec(e);if(!t)return;const[,r,i="*",o="*",s,l]=t;return{version:new Tm(Zf(r)?0:parseInt(r,10),Zf(r)||Zf(i)?0:parseInt(i,10),Zf(r)||Zf(i)||Zf(o)?0:parseInt(o,10),s,l),major:r,minor:i,patch:o}}function V9e(e,t,r){const i=Kne(e);if(!i)return!1;const o=Kne(t);return o?(Zf(i.major)||r.push(fh(">=",i.version)),Zf(o.major)||r.push(Zf(o.minor)?fh("<",o.version.increment("major")):Zf(o.patch)?fh("<",o.version.increment("minor")):fh("<=",o.version)),!0):!1}function j9e(e,t,r){const i=Kne(t);if(!i)return!1;const{version:o,major:s,minor:l,patch:u}=i;if(Zf(s))(e==="<"||e===">")&&r.push(fh("<",Tm.zero));else switch(e){case"~":r.push(fh(">=",o)),r.push(fh("<",o.increment(Zf(l)?"major":"minor")));break;case"^":r.push(fh(">=",o)),r.push(fh("<",o.increment(o.major>0||Zf(l)?"major":o.minor>0||Zf(u)?"minor":"patch")));break;case"<":case">=":r.push(Zf(l)||Zf(u)?fh(e,o.with({prerelease:"0"})):fh(e,o));break;case"<=":case">":r.push(Zf(l)?fh(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):Zf(u)?fh(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):fh(e,o));break;case"=":case void 0:Zf(l)||Zf(u)?(r.push(fh(">=",o.with({prerelease:"0"}))),r.push(fh("<",o.increment(Zf(l)?"major":"minor").with({prerelease:"0"})))):r.push(fh("=",o));break;default:return!1}return!0}function Zf(e){return e==="*"||e==="x"||e==="X"}function fh(e,t){return{operator:e,operand:t}}function U9e(e,t){if(t.length===0)return!0;for(const r of t)if(H9e(e,r))return!0;return!1}function H9e(e,t){for(const r of t)if(!q9e(e,r.operator,r.operand))return!1;return!0}function q9e(e,t,r){const i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return C.assertNever(t)}}function J9e(e){return Ot(e,K9e).join(" || ")||"*"}function K9e(e){return Ot(e,X9e).join(" ")}function X9e(e){return"".concat(e.operator).concat(e.operand)}var L1e,k1e,w1e,O1e,W1e,Xne,PG,Tm,GM,F1e,z1e,B1e,G1e,V1e,Y9e=T({"src/compiler/semver.ts"(){ta(),L1e=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,k1e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,w1e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,O1e=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,W1e=/^[a-z0-9-]+$/i,Xne=/^(0|[1-9]\d*)$/,PG=class f6{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=C.checkDefined(P1e(t),"Invalid version")),C.assert(t>=0,"Invalid argument: major"),C.assert(r>=0,"Invalid argument: minor"),C.assert(i>=0,"Invalid argument: patch");const l=o?Ao(o)?o:o.split("."):et,u=s?Ao(s)?s:s.split("."):et;C.assert(Yn(l,p=>w1e.test(p)),"Invalid argument: prerelease"),C.assert(Yn(u,p=>W1e.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){const r=P1e(t);if(!r)return;const{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new f6(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:nl(this.major,t.major)||nl(this.minor,t.minor)||nl(this.patch,t.patch)||G9e(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new f6(this.major+1,0,0);case"minor":return new f6(this.major,this.minor+1,0);case"patch":return new f6(this.major,this.minor,this.patch+1);default:return C.assertNever(t)}}with(t){const{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new f6(r,i,o,s,l)}toString(){let t="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return St(this.prerelease)&&(t+="-".concat(this.prerelease.join("."))),St(this.build)&&(t+="+".concat(this.build.join("."))),t}},PG.zero=new PG(0,0,0,["0"]),Tm=PG,GM=class L7e{constructor(t){this._alternatives=t?C.checkDefined(M1e(t),"Invalid range spec."):et}static tryParse(t){const r=M1e(t);if(r){const i=new L7e("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new Tm(t)),U9e(t,this._alternatives)}toString(){return J9e(this._alternatives)}},F1e=/\|\|/g,z1e=/\s+/g,B1e=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,G1e=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,V1e=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function j1e(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function $9e(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&j1e(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Q9e(){if(xG())try{const{performance:e,PerformanceObserver:t}=RE("perf_hooks");if(j1e(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch(e){}}function Yne(){return MG}var MG,$ne,Xs,Z9e=T({"src/compiler/performanceCore.ts"(){ta(),MG=$9e()||Q9e(),$ne=MG==null?void 0:MG.performance,Xs=$ne?()=>$ne.now():Date.now?Date.now:()=>+new Date}}),H6,ad,eBe=T({"src/compiler/perfLogger.ts"(){var e;try{const t=(e=HC.TS_ETW_MODULE_PATH)!=null?e:"./node_modules/@microsoft/typescript-etw";H6=RE(t)}catch(t){H6=void 0}ad=H6!=null&&H6.logEvent?H6:void 0}});function U1e(e,t,r,i){return e?LG(t,r,i):kG}function LG(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&rl(t)}function s(){--i===0?(rl(r),ef(e,t,r)):i<0&&C.fail("enter/exit count does not match.")}}function rl(e){var t;if(jx){const r=(t=ZC.get(e))!=null?t:0;ZC.set(e,r+1),Ux.set(e,Xs()),pS==null||pS.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function ef(e,t,r){var i,o;if(jx){const s=(i=r!==void 0?Ux.get(r):void 0)!=null?i:Xs(),l=(o=t!==void 0?Ux.get(t):void 0)!=null?o:Qne,u=Hx.get(e)||0;Hx.set(e,u+(s-l)),pS==null||pS.measure(e,t,r)}}function tBe(e){return ZC.get(e)||0}function nBe(e){return Hx.get(e)||0}function rBe(e){Hx.forEach((t,r)=>e(r,t))}function iBe(e){Ux.forEach((t,r)=>e(r))}function oBe(e){e!==void 0?Hx.delete(e):Hx.clear(),pS==null||pS.clearMeasures(e)}function aBe(e){e!==void 0?(ZC.delete(e),Ux.delete(e)):(ZC.clear(),Ux.clear()),pS==null||pS.clearMarks(e)}function sBe(){return jx}function lBe(e=vu){var t;return jx||(jx=!0,VM||(VM=Yne()),VM&&(Qne=VM.performance.timeOrigin,(VM.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(pS=VM.performance))),!0}function cBe(){jx&&(Ux.clear(),ZC.clear(),Hx.clear(),pS=void 0,jx=!1)}var VM,pS,kG,jx,Qne,Ux,ZC,Hx,uBe=T({"src/compiler/performance.ts"(){ta(),kG={enter:ts,exit:ts},jx=!1,Qne=Xs(),Ux=new Map,ZC=new Map,Hx=new Map}}),Zne={};X(Zne,{clearMarks:()=>aBe,clearMeasures:()=>oBe,createTimer:()=>LG,createTimerIf:()=>U1e,disable:()=>cBe,enable:()=>lBe,forEachMark:()=>iBe,forEachMeasure:()=>rBe,getCount:()=>tBe,getDuration:()=>nBe,isEnabled:()=>sBe,mark:()=>rl,measure:()=>ef,nullTimer:()=>kG});var fS=T({"src/compiler/_namespaces/ts.performance.ts"(){uBe()}}),ar,jM,ere,tre,dBe=T({"src/compiler/tracing.ts"(){ta(),fS(),(e=>{let t,r=0,i=0,o;const s=[];let l;const u=[];function p(se,G,re){if(C.assert(!ar,"Tracing already started"),t===void 0)try{t=RE("fs")}catch(oe){throw new Error("tracing requires having fs\n(original error: ".concat(oe.message||oe,")"))}o=se,s.length=0,l===void 0&&(l=Yr(G,"legend.json")),t.existsSync(G)||t.mkdirSync(G,{recursive:!0});const _e=o==="build"?".".concat(process.pid,"-").concat(++r):o==="server"?".".concat(process.pid):"",ye=Yr(G,"trace".concat(_e,".json")),Q=Yr(G,"types".concat(_e,".json"));u.push({configFilePath:re,tracePath:ye,typesPath:Q}),i=t.openSync(ye,"w"),ar=e;const Y={cat:"__metadata",ph:"M",ts:1e3*Xs(),pid:1,tid:1};t.writeSync(i,"[\n"+[{name:"process_name",args:{name:"tsc"},...Y},{name:"thread_name",args:{name:"Main"},...Y},{name:"TracingStartedInBrowser",...Y,cat:"disabled-by-default-devtools.timeline"}].map(oe=>JSON.stringify(oe)).join(",\n"))}e.startTracing=p;function h(){C.assert(ar,"Tracing is not in progress"),C.assert(!!s.length==(o!=="server")),t.writeSync(i,"\n]\n"),t.closeSync(i),ar=void 0,s.length?ee(s):u[u.length-1].typesPath=void 0}e.stopTracing=h;function f(se){o!=="server"&&s.push(se)}e.recordType=f,(se=>{se.Parse="parse",se.Program="program",se.Bind="bind",se.Check="check",se.CheckTypes="checkTypes",se.Emit="emit",se.Session="session"})(e.Phase||(e.Phase={}));function b(se,G,re){U("I",se,G,re,'"s":"g"')}e.instant=b;const A=[];function I(se,G,re,_e=!1){_e&&U("B",se,G,re),A.push({phase:se,name:G,args:re,time:1e3*Xs(),separateBeginAndEnd:_e})}e.push=I;function R(se){C.assert(A.length>0),O(A.length-1,1e3*Xs(),se),A.length--}e.pop=R;function M(){const se=1e3*Xs();for(let G=A.length-1;G>=0;G--)O(G,se);A.length=0}e.popAll=M;const N=1e3*10;function O(se,G,re){const{phase:_e,name:ye,args:Q,time:Y,separateBeginAndEnd:oe}=A[se];oe?(C.assert(!re,"`results` are not supported for events with `separateBeginAndEnd`"),U("E",_e,ye,Q,void 0,G)):N-Y%N<=G-Y&&U("X",_e,ye,{...Q,results:re},'"dur":'.concat(G-Y),Y)}function U(se,G,re,_e,ye,Q=1e3*Xs()){o==="server"&&G==="checkTypes"||(rl("beginTracing"),t.writeSync(i,',\n{"pid":1,"tid":1,"ph":"'.concat(se,'","cat":"').concat(G,'","ts":').concat(Q,',"name":"').concat(re,'"')),ye&&t.writeSync(i,",".concat(ye)),_e&&t.writeSync(i,',"args":'.concat(JSON.stringify(_e))),t.writeSync(i,"}"),rl("endTracing"),ef("Tracing","beginTracing","endTracing"))}function K(se){const G=jn(se);return G?{path:G.path,start:re(Ts(G,se.pos)),end:re(Ts(G,se.end))}:void 0;function re(_e){return{line:_e.line+1,character:_e.character+1}}}function ee(se){var gt,Qe,It;var G,re,_e,ye,Q,Y,oe,he,Ae,de,ie,ge,Ne,qe,Ee,Me,Ce,Oe,At;rl("beginDumpTypes");const be=u[u.length-1].typesPath,Ue=t.openSync(be,"w"),it=new Map;t.writeSync(Ue,"[");const Ft=se.length;for(let on=0;on<Ft;on++){const $t=se[on],Cn=$t.objectFlags,Hn=(gt=$t.aliasSymbol)!=null?gt:$t.symbol;let yn;if(Cn&16|$t.flags&2944)try{yn=(G=$t.checker)==null?void 0:G.typeToString($t)}catch(Xt){yn=void 0}let tn={};if($t.flags&8388608){const Xt=$t;tn={indexedAccessObjectType:(re=Xt.objectType)==null?void 0:re.id,indexedAccessIndexType:(_e=Xt.indexType)==null?void 0:_e.id}}let en={};if(Cn&4){const Xt=$t;en={instantiatedType:(ye=Xt.target)==null?void 0:ye.id,typeArguments:(Q=Xt.resolvedTypeArguments)==null?void 0:Q.map(nt=>nt.id),referenceLocation:K(Xt.node)}}let gi={};if($t.flags&16777216){const Xt=$t;gi={conditionalCheckType:(Y=Xt.checkType)==null?void 0:Y.id,conditionalExtendsType:(oe=Xt.extendsType)==null?void 0:oe.id,conditionalTrueType:(Qe=(he=Xt.resolvedTrueType)==null?void 0:he.id)!=null?Qe:-1,conditionalFalseType:(It=(Ae=Xt.resolvedFalseType)==null?void 0:Ae.id)!=null?It:-1}}let ho={};if($t.flags&33554432){const Xt=$t;ho={substitutionBaseType:(de=Xt.baseType)==null?void 0:de.id,constraintType:(ie=Xt.constraint)==null?void 0:ie.id}}let Gi={};if(Cn&1024){const Xt=$t;Gi={reverseMappedSourceType:(ge=Xt.source)==null?void 0:ge.id,reverseMappedMappedType:(Ne=Xt.mappedType)==null?void 0:Ne.id,reverseMappedConstraintType:(qe=Xt.constraintType)==null?void 0:qe.id}}let xo={};if(Cn&256){const Xt=$t;xo={evolvingArrayElementType:Xt.elementType.id,evolvingArrayFinalType:(Ee=Xt.finalArrayType)==null?void 0:Ee.id}}let Qn;const Di=$t.checker.getRecursionIdentity($t);Di&&(Qn=it.get(Di),Qn||(Qn=it.size,it.set(Di,Qn)));const Ir={id:$t.id,intrinsicName:$t.intrinsicName,symbolName:(Hn==null?void 0:Hn.escapedName)&&ji(Hn.escapedName),recursionId:Qn,isTuple:Cn&8?!0:void 0,unionTypes:$t.flags&1048576?(Me=$t.types)==null?void 0:Me.map(Xt=>Xt.id):void 0,intersectionTypes:$t.flags&2097152?$t.types.map(Xt=>Xt.id):void 0,aliasTypeArguments:(Ce=$t.aliasTypeArguments)==null?void 0:Ce.map(Xt=>Xt.id),keyofType:$t.flags&4194304?(Oe=$t.type)==null?void 0:Oe.id:void 0,...tn,...en,...gi,...ho,...Gi,...xo,destructuringPattern:K($t.pattern),firstDeclaration:K((At=Hn==null?void 0:Hn.declarations)==null?void 0:At[0]),flags:C.formatTypeFlags($t.flags).split("|"),display:yn};t.writeSync(Ue,JSON.stringify(Ir)),on<Ft-1&&t.writeSync(Ue,",\n")}t.writeSync(Ue,"]\n"),t.closeSync(Ue),rl("endDumpTypes"),ef("Dump types","beginDumpTypes","endDumpTypes")}function V(){l&&t.writeFileSync(l,JSON.stringify(u))}e.dumpLegend=V})(jM||(jM={})),ere=jM.startTracing,tre=jM.dumpLegend}});function mS(e,t=!0){const r=HM[e.category];return t?r.toLowerCase():r}var q6,J6,K6,wG,X6,Y6,OG,UM,WG,qx,$6,FG,zG,Q6,BG,GG,VG,jG,UG,HG,qG,JG,KG,XG,YG,Z6,$G,QG,ZG,eV,e4,t4,tV,nV,rV,iV,oV,aV,n4,sV,lV,cV,uV,dV,pV,HM,Jx,fV,mV,_V,hV,eN,gV,vV,yV,r4,bV,EV,SV,TV,AV,i4,o4,a4,IV,xV,RV,DV,CV,NV,PV,MV,qM,LV,H1e=T({"src/compiler/types.ts"(){q6=(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.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="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=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="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=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(q6||{}),J6=(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))(J6||{}),K6=(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))(K6||{}),wG=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(wG||{}),X6=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(X6||{}),Y6=(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))(Y6||{}),OG=(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.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))(OG||{}),UM=(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))(UM||{}),WG=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(WG||{}),qx=class{},$6=(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))($6||{}),FG=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(FG||{}),zG=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(zG||{}),Q6=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Q6||{}),BG=(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))(BG||{}),GG=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(GG||{}),VG=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(VG||{}),jG=(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))(jG||{}),UG=(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.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(UG||{}),HG=(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))(HG||{}),qG=(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))(qG||{}),JG=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(JG||{}),KG=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(KG||{}),XG=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(XG||{}),YG=(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))(YG||{}),Z6=(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))(Z6||{}),$G=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))($G||{}),QG=(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))(QG||{}),ZG=(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))(ZG||{}),eV=(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))(eV||{}),e4=(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.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.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(e4||{}),t4=(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.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))(t4||{}),tV=(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))(tV||{}),nV=(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))(nV||{}),rV=(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.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",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))(rV||{}),iV=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(iV||{}),oV=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(oV||{}),aV=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(aV||{}),n4=(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))(n4||{}),sV=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(sV||{}),lV=(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))(lV||{}),cV=(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))(cV||{}),uV=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(uV||{}),dV=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(dV||{}),pV=(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))(pV||{}),HM=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(HM||{}),Jx=(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))(Jx||{}),fV=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(fV||{}),mV=(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))(mV||{}),_V=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(_V||{}),hV=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(hV||{}),eN=(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.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(eN||{}),gV=(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))(gV||{}),vV=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(vV||{}),yV=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(yV||{}),r4=(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))(r4||{}),bV=(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.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(bV||{}),EV=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(EV||{}),SV=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(SV||{}),TV=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(TV||{}),AV=(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))(AV||{}),i4=(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))(i4||{}),o4=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(o4||{}),a4=(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))(a4||{}),IV=(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))(IV||{}),xV=(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.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="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))(xV||{}),RV=(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))(RV||{}),DV=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(DV||{}),CV=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(CV||{}),NV=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(NV||{}),PV=(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))(PV||{}),MV=(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))(MV||{}),qM={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}],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}},LV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(LV||{})}});function tN(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}function q1e(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function IA(e,t){return e.getModifiedTime(t)||Op}function nre(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function pBe(e){if(!e.getEnvironmentVariable)return;const t=o("TSC_WATCH_POLLINGINTERVAL",s4);c4=s("TSC_WATCH_POLLINGCHUNKSIZE",l4)||c4,KM=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",l4)||KM;function r(l,u){return e.getEnvironmentVariable("".concat(l,"_").concat(u.toUpperCase()))}function i(l){let u;return p("Low"),p("Medium"),p("High"),u;function p(h){const f=r(l,h);f&&((u||(u={}))[h]=Number(f))}}function o(l,u){const p=i(l);if(p)return h("Low"),h("Medium"),h("High"),!0;return!1;function h(f){u[f]=p[f]||u[f]}}function s(l,u){const p=i(l);return(t||p)&&nre(p?{...u,...p}:u)}}function J1e(e,t,r,i,o){let s=r;for(let u=t.length;i&&u;l(),u--){const p=t[r];if(p){if(p.isClosed){t[r]=void 0;continue}}else continue;i--;const h=hBe(p,IA(e,p.fileName));if(p.isClosed){t[r]=void 0;continue}o==null||o(p,r,h),t[r]&&(s<r&&(t[s]=p,t[r]=void 0),s++)}return r;function l(){r++,r===t.length&&(s<r&&(t.length=s),r=0,s=0)}}function fBe(e){const t=[],r=[],i=u(250),o=u(500),s=u(2e3);return l;function l(N,O,U){const K={fileName:N,callback:O,unchangedPolls:0,mtime:IA(e,N)};return t.push(K),A(K,U),{close:()=>{K.isClosed=!0,TA(t,K)}}}function u(N){const O=[];return O.pollingInterval=N,O.pollIndex=0,O.pollScheduled=!1,O}function p(N,O){O.pollIndex=f(O,O.pollingInterval,O.pollIndex,c4[O.pollingInterval]),O.length?M(O.pollingInterval):(C.assert(O.pollIndex===0),O.pollScheduled=!1)}function h(N,O){f(r,250,0,r.length),p(N,O),!O.pollScheduled&&r.length&&M(250)}function f(N,O,U,K){return J1e(e,N,U,K,ee);function ee(V,se,G){G?(V.unchangedPolls=0,N!==r&&(N[se]=void 0,I(V))):V.unchangedPolls!==KM[O]?V.unchangedPolls++:N===r?(V.unchangedPolls=1,N[se]=void 0,A(V,250)):O!==2e3&&(V.unchangedPolls++,N[se]=void 0,A(V,O===250?500:2e3))}}function b(N){switch(N){case 250:return i;case 500:return o;case 2e3:return s}}function A(N,O){b(O).push(N),R(O)}function I(N){r.push(N),R(250)}function R(N){b(N).pollScheduled||M(N)}function M(N){b(N).pollScheduled=e.setTimeout(N===250?h:p,N,N===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",b(N))}}function mBe(e,t,r,i){const o=Zp(),s=i?new Map:void 0,l=new Map,u=Mu(t);return p;function p(f,b,A,I){const R=u(f);o.add(R,b).length===1&&s&&s.set(R,r(f)||Op);const M=ri(R)||".",N=l.get(M)||h(ri(f)||".",M,I);return N.referenceCount++,{close:()=>{N.referenceCount===1?(N.close(),l.delete(M)):N.referenceCount--,o.remove(R,b)}}}function h(f,b,A){const I=e(f,1,(R,M)=>{if(!No(M))return;const N=yo(M,f),O=u(N),U=N&&o.get(O);if(U){let K,ee=1;if(s){const V=s.get(O);if(R==="change"&&(K=r(N)||Op,K.getTime()===V.getTime()))return;K||(K=r(N)||Op),s.set(O,K),V===Op?ee=0:K===Op&&(ee=2)}for(const V of U)V(N,ee,K)}},!1,500,A);return I.referenceCount=0,l.set(b,I),I}}function _Be(e){const t=[];let r=0,i;return o;function o(u,p){const h={fileName:u,callback:p,mtime:IA(e,u)};return t.push(h),l(),{close:()=>{h.isClosed=!0,TA(t,h)}}}function s(){i=void 0,r=J1e(e,t,r,c4[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function K1e(e,t,r,i,o){const l=Mu(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((p,h,f)=>{var b;return(b=e.get(l))==null?void 0:b.callbacks.slice().forEach(A=>A(p,h,f))}),callbacks:[i]}),{close:()=>{const p=e.get(l);p&&(!Vx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Mf(p)))}}}function hBe(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,kV(r,i),t),!0):!1}function kV(e,t){return e===0?0:t===0?2:1}function JM(e){return are(e)}function rre(e){are=e}function gBe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){const p=new Map,h=Zp(),f=new Map;let b;const A=Bx(!t),I=Mu(t);return(G,re,_e,ye)=>_e?R(G,ye,re):e(G,re,_e,ye);function R(G,re,_e){const ye=I(G);let Q=p.get(ye);Q?Q.refCount++:(Q={watcher:e(G,oe=>{V(oe,re)||(re!=null&&re.synchronousWatchDirectory?(M(ye,oe),ee(G,ye,re)):N(G,ye,oe,re))},!1,re),refCount:1,childWatches:et},p.set(ye,Q),ee(G,ye,re));const Y=_e&&{dirName:G,callback:_e};return Y&&h.add(ye,Y),{dirName:G,close:()=>{const oe=C.checkDefined(p.get(ye));Y&&h.remove(ye,Y),oe.refCount--,!oe.refCount&&(p.delete(ye),Mf(oe),oe.childWatches.forEach(e_))}}}function M(G,re,_e){let ye,Q;No(re)?ye=re:Q=re,h.forEach((Y,oe)=>{if(!(Q&&Q.get(oe)===!0)&&(oe===G||po(G,oe)&&G[oe.length]===ol))if(Q)if(_e){const he=Q.get(oe);he?he.push(..._e):Q.set(oe,_e.slice())}else Q.set(oe,!0);else Y.forEach(({callback:he})=>he(ye))})}function N(G,re,_e,ye){const Q=p.get(re);if(Q&&o(G,1)){O(G,re,_e,ye);return}M(re,_e),K(Q)}function O(G,re,_e,ye){const Q=f.get(re);Q?Q.fileNames.push(_e):f.set(re,{dirName:G,options:ye,fileNames:[_e]}),b&&(u(b),b=void 0),b=l(U,1e3,"timerToUpdateChildWatches")}function U(){b=void 0,JM("sysLog:: onTimerToUpdateChildWatches:: ".concat(f.size));const G=Xs(),re=new Map;for(;!b&&f.size;){const ye=f.entries().next();C.assert(!ye.done);const{value:[Q,{dirName:Y,options:oe,fileNames:he}]}=ye;f.delete(Q);const Ae=ee(Y,Q,oe);M(Q,re,Ae?void 0:he)}JM("sysLog:: invokingWatchers:: Elapsed:: ".concat(Xs()-G,"ms:: ").concat(f.size)),h.forEach((ye,Q)=>{const Y=re.get(Q);Y&&ye.forEach(({callback:oe,dirName:he})=>{Ao(Y)?Y.forEach(oe):oe(he)})});const _e=Xs()-G;JM("sysLog:: Elapsed:: ".concat(_e,"ms:: onTimerToUpdateChildWatches:: ").concat(f.size," ").concat(b))}function K(G){if(!G)return;const re=G.childWatches;G.childWatches=et;for(const _e of re)_e.close(),K(p.get(I(_e.dirName)))}function ee(G,re,_e){const ye=p.get(re);if(!ye)return!1;let Q;const Y=V6(o(G,1)?Hi(i(G),Ae=>{const de=yo(Ae,G);return!V(de,_e)&&A(de,ha(s(de)))===0?de:void 0}):et,ye.childWatches,(Ae,de)=>A(Ae,de.dirName),oe,e_,he);return ye.childWatches=Q||et,Y;function oe(Ae){const de=R(Ae,_e);he(de)}function he(Ae){(Q||(Q=[])).push(Ae)}}function V(G,re){return St(XM,_e=>se(G,_e))||X1e(G,re,t,r)}function se(G,re){return G.includes(re)?!0:t?!1:I(G).includes(re)}}function vBe(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function yBe(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Op),t(e,s!==Op?0:2,s)):t(e,1,s)}}function X1e(e,t,r,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(RF(e,t==null?void 0:t.excludeFiles,r,i())||RF(e,t==null?void 0:t.excludeDirectories,r,i()))}function Y1e(e,t,r,i,o){return(s,l)=>{if(s==="rename"){const u=l?ha(Yr(e,l)):e;(!l||!X1e(u,r,i,o))&&t(u)}}}function ire({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:h,realpath:f,tscWatchFile:b,useNonPollingWatchers:A,tscWatchDirectory:I,inodeWatching:R,fsWatchWithTimestamp:M,sysLog:N}){const O=new Map,U=new Map,K=new Map;let ee,V,se,G,re=!1;return{watchFile:_e,watchDirectory:he};function _e(Ee,Me,Ce,Oe){Oe=Y(Oe,A);const At=C.checkDefined(Oe.watchFile);switch(At){case 0:return ie(Ee,Me,250,void 0);case 1:return ie(Ee,Me,Ce,void 0);case 2:return ye()(Ee,Me,Ce,void 0);case 3:return Q()(Ee,Me,void 0,void 0);case 4:return ge(Ee,0,yBe(Ee,Me,t),!1,Ce,jw(Oe));case 5:return se||(se=mBe(ge,l,t,M)),se(Ee,Me,Ce,jw(Oe));default:C.assertNever(At)}}function ye(){return ee||(ee=fBe({getModifiedTime:t,setTimeout:r}))}function Q(){return V||(V=_Be({getModifiedTime:t,setTimeout:r}))}function Y(Ee,Me){if(Ee&&Ee.watchFile!==void 0)return Ee;switch(b){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return oe(4,1,Ee);case"UseFsEventsWithFallbackDynamicPolling":return oe(4,2,Ee);case"UseFsEventsOnParentDirectory":Me=!0;default:return Me?oe(5,1,Ee):{watchFile:4}}}function oe(Ee,Me,Ce){const Oe=Ce==null?void 0:Ce.fallbackPolling;return{watchFile:Ee,fallbackPolling:Oe===void 0?Me:Oe}}function he(Ee,Me,Ce,Oe){return p?ge(Ee,1,Y1e(Ee,Me,Oe,l,u),Ce,500,jw(Oe)):(G||(G=gBe({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:Ae,realpath:f,setTimeout:r,clearTimeout:i})),G(Ee,Me,Ce,Oe))}function Ae(Ee,Me,Ce,Oe){C.assert(!Ce);const At=de(Oe),be=C.checkDefined(At.watchDirectory);switch(be){case 1:return ie(Ee,()=>Me(Ee),500,void 0);case 2:return ye()(Ee,()=>Me(Ee),500,void 0);case 3:return Q()(Ee,()=>Me(Ee),void 0,void 0);case 0:return ge(Ee,1,Y1e(Ee,Me,Oe,l,u),Ce,500,jw(At));default:C.assertNever(be)}}function de(Ee){if(Ee&&Ee.watchDirectory!==void 0)return Ee;switch(I){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Me=Ee==null?void 0:Ee.fallbackPolling;return{watchDirectory:0,fallbackPolling:Me!==void 0?Me:void 0}}}function ie(Ee,Me,Ce,Oe){return K1e(O,l,Ee,Me,At=>e(Ee,At,Ce,Oe))}function ge(Ee,Me,Ce,Oe,At,be){return K1e(Oe?K:U,l,Ee,Ce,Ue=>Ne(Ee,Me,Ue,Oe,At,be))}function Ne(Ee,Me,Ce,Oe,At,be){let Ue,it;R&&(Ue=Ee.substring(Ee.lastIndexOf(ol)),it=Ue.slice(ol.length));let Ft=s(Ee,Me)?Qe():$t();return{close:()=>{Ft&&(Ft.close(),Ft=void 0)}};function gt(Cn){Ft&&(N("sysLog:: ".concat(Ee,":: Changing watcher to ").concat(Cn===Qe?"Present":"Missing","FileSystemEntryWatcher")),Ft.close(),Ft=Cn())}function Qe(){if(re)return N("sysLog:: ".concat(Ee,":: Defaulting to watchFile")),on();try{const Cn=(Me===1||!M?o:qe)(Ee,Oe,R?It:Ce);return Cn.on("error",()=>{Ce("rename",""),gt($t)}),Cn}catch(Cn){return re||(re=Cn.code==="ENOSPC"),N("sysLog:: ".concat(Ee,":: Changing to watchFile")),on()}}function It(Cn,Hn){let yn;if(Hn&&Al(Hn,"~")&&(yn=Hn,Hn=Hn.slice(0,Hn.length-1)),Cn==="rename"&&(!Hn||Hn===it||Al(Hn,Ue))){const tn=t(Ee)||Op;yn&&Ce(Cn,yn,tn),Ce(Cn,Hn,tn),R?gt(tn===Op?$t:Qe):tn===Op&>($t)}else yn&&Ce(Cn,yn),Ce(Cn,Hn)}function on(){return _e(Ee,vBe(Ce),At,be)}function $t(){return _e(Ee,(Cn,Hn,yn)=>{Hn===0&&(yn||(yn=t(Ee)||Op),yn!==Op&&(Ce("rename","",yn),gt(Qe)))},At,be)}}function qe(Ee,Me,Ce){let Oe=t(Ee)||Op;return o(Ee,Me,(At,be,Ue)=>{At==="change"&&(Ue||(Ue=t(Ee)||Op),Ue.getTime()===Oe.getTime())||(Oe=Ue||t(Ee)||Op,Ce(At,be,Oe))})}}function ore(e){const t=e.writeFile;e.writeFile=(r,i,o)=>gU(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}function $1e(e){vu=e}var wV,s4,Op,l4,c4,KM,XM,are,OV,vu,bBe=T({"src/compiler/sys.ts"(){ta(),wV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(wV||{}),s4=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(s4||{}),Op=new Date(0),l4={Low:32,Medium:64,High:256},c4=nre(l4),KM=nre(l4),XM=["/node_modules/.","/.git","/.#"],are=ts,OV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(OV||{}),vu=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=RE("fs"),s=RE("path"),l=RE("os");let u;try{u=RE("crypto")}catch(gt){u=void 0}let p,h="./profile.cpuprofile";const f=RE("buffer").Buffer,b=process.platform==="darwin",A=process.platform==="linux"||b,I=l.platform(),R=Q(),M=o.realpathSync.native?process.platform==="win32"?Oe:o.realpathSync.native:o.realpathSync,N=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,O=process.platform==="win32"||b,U=Sd(()=>process.cwd()),{watchFile:K,watchDirectory:ee}=ire({pollingWatchFileWorker:oe,getModifiedTime:be,setTimeout,clearTimeout,fsWatchWorker:he,useCaseSensitiveFileNames:R,getCurrentDirectory:U,fileSystemEntryExists:qe,fsSupportsRecursiveFsWatch:O,getAccessibleSortedChildDirectories:gt=>ge(gt).directories,realpath:At,tscWatchFile:HC.TSC_WATCHFILE,useNonPollingWatchers:!!HC.TSC_NONPOLLING_WATCHER,tscWatchDirectory:HC.TSC_WATCHDIRECTORY,inodeWatching:A,fsWatchWithTimestamp:b,sysLog:JM}),V={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:R,write(gt){process.stdout.write(gt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:de,writeFile:ie,watchFile:K,watchDirectory:ee,resolvePath:gt=>s.resolve(gt),fileExists:Ee,directoryExists:Me,getAccessibleFileSystemEntries:ge,createDirectory(gt){if(!V.directoryExists(gt))try{o.mkdirSync(gt)}catch(Qe){if(Qe.code!=="EEXIST")throw Qe}},getExecutingFilePath(){return N},getCurrentDirectory:U,getDirectories:Ce,getEnvironmentVariable(gt){return HC[gt]||""},readDirectory:Ne,getModifiedTime:be,setModifiedTime:Ue,deleteFile:it,createHash:u?Ft:tN,createSHA256Hash:u?Ft:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(gt){try{const Qe=se(gt);if(Qe!=null&&Qe.isFile())return Qe.size}catch(Qe){}return 0},exit(gt){_e(()=>process.exit(gt))},enableCPUProfiler:G,disableCPUProfiler:_e,cpuProfilingEnabled:()=>!!p||Nr(process.execArgv,"--cpu-prof")||Nr(process.execArgv,"--prof"),realpath:At,debugMode:!!HC.NODE_INSPECTOR_IPC||!!HC.VSCODE_INSPECTOR_OPTIONS||St(process.execArgv,gt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(gt))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{RE("source-map-support").install()}catch(gt){}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var gt;const Qe=(gt=process.stdout)==null?void 0:gt._handle;Qe&&Qe.setBlocking&&Qe.setBlocking(!0)},bufferFrom:ye,base64decode:gt=>ye(gt,"base64").toString("utf8"),base64encode:gt=>ye(gt).toString("base64"),require:(gt,Qe)=>{try{const It=ele(Qe,gt,V);return{module:RE(It),modulePath:It,error:void 0}}catch(It){return{module:void 0,modulePath:void 0,error:It}}}};return V;function se(gt){return o.statSync(gt,{throwIfNoEntry:!1})}function G(gt,Qe){if(p)return Qe(),!1;const It=RE("inspector");if(!It||!It.Session)return Qe(),!1;const on=new It.Session;return on.connect(),on.post("Profiler.enable",()=>{on.post("Profiler.start",()=>{p=on,h=gt,Qe()})}),!0}function re(gt){let Qe=0;const It=new Map,on=Lu(s.dirname(N)),$t="file://".concat(mh(on)===1?"":"/").concat(on);for(const Cn of gt.nodes)if(Cn.callFrame.url){const Hn=Lu(Cn.callFrame.url);Am($t,Hn,R)?Cn.callFrame.url=RA($t,Hn,$t,Mu(R),!0):i.test(Hn)||(Cn.callFrame.url=(It.has(Hn)?It:It.set(Hn,"external".concat(Qe,".js"))).get(Hn),Qe++)}return gt}function _e(gt){if(p&&p!=="stopping"){const Qe=p;return p.post("Profiler.stop",(It,{profile:on})=>{var $t;if(!It){try{($t=se(h))!=null&&$t.isDirectory()&&(h=s.join(h,"".concat(new Date().toISOString().replace(/:/g,"-"),"+P").concat(process.pid,".cpuprofile")))}catch(Cn){}try{o.mkdirSync(s.dirname(h),{recursive:!0})}catch(Cn){}o.writeFileSync(h,JSON.stringify(re(on)))}p=void 0,Qe.disconnect(),gt()}),p="stopping",!0}else return gt(),!1}function ye(gt,Qe){return f.from&&f.from!==Int8Array.from?f.from(gt,Qe):new f(gt,Qe)}function Q(){return I==="win32"||I==="win64"?!1:!Ee(Y(__filename))}function Y(gt){return gt.replace(/\w/g,Qe=>{const It=Qe.toUpperCase();return Qe===It?Qe.toLowerCase():It})}function oe(gt,Qe,It){o.watchFile(gt,{persistent:!0,interval:It},$t);let on;return{close:()=>o.unwatchFile(gt,$t)};function $t(Cn,Hn){const yn=+Hn.mtime==0||on===2;if(+Cn.mtime==0){if(yn)return;on=2}else if(yn)on=0;else{if(+Cn.mtime==+Hn.mtime)return;on=1}Qe(gt,on,Cn.mtime)}}function he(gt,Qe,It){return o.watch(gt,O?{persistent:!0,recursive:!!Qe}:{persistent:!0},It)}function Ae(gt,Qe){let It;try{It=o.readFileSync(gt)}catch($t){return}let on=It.length;if(on>=2&&It[0]===254&&It[1]===255){on&=-2;for(let $t=0;$t<on;$t+=2){const Cn=It[$t];It[$t]=It[$t+1],It[$t+1]=Cn}return It.toString("utf16le",2)}return on>=2&&It[0]===255&&It[1]===254?It.toString("utf16le",2):on>=3&&It[0]===239&&It[1]===187&&It[2]===191?It.toString("utf8",3):It.toString("utf8")}function de(gt,Qe){var It,on;(It=ad)==null||It.logStartReadFile(gt);const $t=Ae(gt);return(on=ad)==null||on.logStopReadFile(),$t}function ie(gt,Qe,It){var on;(on=ad)==null||on.logEvent("WriteFile: "+gt),It&&(Qe=e+Qe);let $t;try{$t=o.openSync(gt,"w"),o.writeSync($t,Qe,void 0,"utf8")}finally{$t!==void 0&&o.closeSync($t)}}function ge(gt){var Qe;(Qe=ad)==null||Qe.logEvent("ReadDir: "+(gt||"."));try{const It=o.readdirSync(gt||".",{withFileTypes:!0}),on=[],$t=[];for(const Cn of It){const Hn=typeof Cn=="string"?Cn:Cn.name;if(Hn==="."||Hn==="..")continue;let yn;if(typeof Cn=="string"||Cn.isSymbolicLink()){const tn=Yr(gt,Hn);try{if(yn=se(tn),!yn)continue}catch(en){continue}}else yn=Cn;yn.isFile()?on.push(Hn):yn.isDirectory()&&$t.push(Hn)}return on.sort(),$t.sort(),{files:on,directories:$t}}catch(It){return gW}}function Ne(gt,Qe,It,on,$t){return BU(gt,Qe,It,on,R,process.cwd(),$t,ge,At)}function qe(gt,Qe){const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const on=se(gt);if(!on)return!1;switch(Qe){case 0:return on.isFile();case 1:return on.isDirectory();default:return!1}}catch(on){return!1}finally{Error.stackTraceLimit=It}}function Ee(gt){return qe(gt,0)}function Me(gt){return qe(gt,1)}function Ce(gt){return ge(gt).directories.slice()}function Oe(gt){return gt.length<260?o.realpathSync.native(gt):o.realpathSync(gt)}function At(gt){try{return M(gt)}catch(Qe){return gt}}function be(gt){var Qe;const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Qe=se(gt))==null?void 0:Qe.mtime}catch(on){return}finally{Error.stackTraceLimit=It}}function Ue(gt,Qe){try{o.utimesSync(gt,Qe,Qe)}catch(It){return}}function it(gt){try{return o.unlinkSync(gt)}catch(Qe){return}}function Ft(gt){const Qe=u.createHash("sha256");return Qe.update(gt),Qe.digest("hex")}}let r;return xG()&&(r=t()),r&&ore(r),r})(),vu&&vu.getEnvironmentVariable&&(pBe(vu),C.setAssertionLevel(/^development$/i.test(vu.getEnvironmentVariable("NODE_ENV"))?1:0)),vu&&vu.debugMode&&(C.isDebugging=!0)}});function WV(e){return e===47||e===92}function sre(e){return u4(e)<0}function _p(e){return u4(e)>0}function FV(e){const t=u4(e);return t>0&&t===e.length}function nN(e){return u4(e)!==0}function Wp(e){return/^\.\.?($|[\\/])/.test(e)}function zV(e){return!nN(e)&&!Wp(e)}function xA(e){return lc(e).includes(".")}function Il(e,t){return e.length>t.length&&Al(e,t)}function Ic(e,t){for(const r of t)if(Il(e,r))return!0;return!1}function wv(e){return e.length>0&&WV(e.charCodeAt(e.length-1))}function Q1e(e){return e>=97&&e<=122||e>=65&&e<=90}function EBe(e,t){const r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function u4(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?ol:ZM,2);return i<0?e.length:i+1}if(Q1e(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const r=e.indexOf(ure);if(r!==-1){const i=r+ure.length,o=e.indexOf(ol,i);if(o!==-1){const s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&Q1e(e.charCodeAt(o+1))){const u=EBe(e,o+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(o+1)}return~e.length}return 0}function mh(e){const t=u4(e);return t<0?~t:t}function ri(e){e=Lu(e);const t=mh(e);return t===e.length?e:(e=s0(e),e.slice(0,Math.max(t,e.lastIndexOf(ol))))}function lc(e,t,r){if(e=Lu(e),mh(e)===e.length)return"";e=s0(e);const o=e.slice(Math.max(mh(e),e.lastIndexOf(ol)+1)),s=t!==void 0&&r!==void 0?Kx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function Z1e(e,t,r){if(po(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(r(i,t))return i}}function SBe(e,t,r){if(typeof t=="string")return Z1e(e,t,r)||"";for(const i of t){const o=Z1e(e,i,r);if(o)return o}return""}function Kx(e,t,r){if(t)return SBe(s0(e),t,r?a0:dS);const i=lc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function TBe(e,t){const r=e.substring(0,t),i=e.substring(t).split(ol);return i.length&&!el(i)&&i.pop(),[r,...i]}function Gc(e,t=""){return e=Yr(t,e),TBe(e,mh(e))}function Ny(e,t){return e.length===0?"":(e[0]&&Vc(e[0]))+e.slice(1,t).join(ol)}function Lu(e){return e.includes("\\")?e.replace(nSe,ol):e}function _S(e){if(!St(e))return[];const t=[e[0]];for(let r=1;r<e.length;r++){const i=e[r];if(i&&i!=="."){if(i===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Yr(e,...t){e&&(e=Lu(e));for(let r of t)r&&(r=Lu(r),!e||mh(r)!==0?e=r:e=Vc(e)+r);return e}function Py(e,...t){return ha(St(t)?Yr(e,...t):Lu(e))}function YM(e,t){return _S(Gc(e,t))}function yo(e,t){return Ny(YM(e,t))}function ha(e){if(e=Lu(e),!p4.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!p4.test(e)))return e;const r=Ny(_S(Gc(e)));return r&&wv(e)?Vc(r):r}function ABe(e){return e.length===0?"":e.slice(1).join(ol)}function BV(e,t){return ABe(YM(e,t))}function il(e,t,r){const i=_p(e)?ha(e):yo(e,t);return r(i)}function s0(e){return wv(e)?e.substr(0,e.length-1):e}function Vc(e){return wv(e)?e:e+ol}function ME(e){return!nN(e)&&!Wp(e)?"./"+e:e}function $M(e,t,r,i){const o=r!==void 0&&i!==void 0?Kx(e,r,i):Kx(e);return o?e.slice(0,e.length-o.length)+(po(t,".")?t:"."+t):e}function lre(e,t){const r=sq(e);return r?e.slice(0,e.length-r.length)+(po(t,".")?t:"."+t):$M(e,t)}function cre(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,mh(e)),o=t.substring(0,mh(t)),s=F6(i,o);if(s!==0)return s;const l=e.substring(i.length),u=t.substring(o.length);if(!p4.test(l)&&!p4.test(u))return r(l,u);const p=_S(Gc(e)),h=_S(Gc(t)),f=Math.min(p.length,h.length);for(let b=1;b<f;b++){const A=r(p[b],h[b]);if(A!==0)return A}return nl(p.length,h.length)}function eSe(e,t){return cre(e,t,Uu)}function tSe(e,t){return cre(e,t,F6)}function Og(e,t,r,i){return typeof r=="string"?(e=Yr(r,e),t=Yr(r,t)):typeof r=="boolean"&&(i=r),cre(e,t,Bx(i))}function Am(e,t,r,i){if(typeof r=="string"?(e=Yr(r,e),t=Yr(r,t)):typeof r=="boolean"&&(i=r),e===void 0||t===void 0)return!1;if(e===t)return!0;const o=_S(Gc(e)),s=_S(Gc(t));if(s.length<o.length)return!1;const l=i?a0:dS;for(let u=0;u<o.length;u++)if(!(u===0?a0:l)(o[u],s[u]))return!1;return!0}function GV(e,t,r){const i=r(e),o=r(t);return po(i,o+"/")||po(i,o+"\\")}function VV(e,t,r,i){const o=_S(Gc(e)),s=_S(Gc(t));let l;for(l=0;l<o.length&&l<s.length;l++){const h=i(o[l]),f=i(s[l]);if(!(l===0?a0:r)(h,f))break}if(l===0)return s;const u=s.slice(l),p=[];for(;l<o.length;l++)p.push("..");return["",...p,...u]}function Im(e,t,r){C.assert(mh(e)>0==mh(t)>0,"Paths must either both be absolute or both be relative");const s=VV(e,t,(typeof r=="boolean"?r:!1)?a0:dS,typeof r=="function"?r:tl);return Ny(s)}function rN(e,t,r){return _p(e)?RA(t,e,t,r,!1):e}function QM(e,t,r){return ME(Im(ri(e),t,r))}function RA(e,t,r,i,o){const s=VV(Py(r,e),Py(r,t),dS,i),l=s[0];if(o&&_p(l)){const u=l.charAt(0)===ol?"file://":"file:///";s[0]=u+l}return Ny(s)}function xm(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=ri(e);if(i===e)return;e=i}}function d4(e){return Al(e,"/node_modules")}var ol,ZM,ure,nSe,p4,IBe=T({"src/compiler/path.ts"(){ta(),ol="/",ZM="\\",ure="://",nSe=/\\/g,p4=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function S(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var m,xBe=T({"src/compiler/diagnosticInformationMap.generated.ts"(){H1e(),m={Unterminated_string_literal:S(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:S(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:S(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:S(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:S(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:S(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:S(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:S(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:S(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:S(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:S(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:S(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:S(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:S(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:S(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:S(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:S(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:S(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:S(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:S(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:S(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_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:S(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:S(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:S(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:S(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:S(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:S(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:S(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:S(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:S(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:S(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:S(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:S(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:S(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:S(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:S(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:S(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:S(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:S(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:S(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:S(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:S(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:S(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:S(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:S(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:S(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:S(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:S(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:S(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:S(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:S(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:S(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:S(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:S(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:S(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:S(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:S(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:S(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:S(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:S(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:S(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:S(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:S(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:S(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:S(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:S(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:S(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:S(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:S(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:S(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:S(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:S(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:S(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:S(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:S(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:S(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:S(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:S(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:S(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:S(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:S(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:S(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:S(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:S(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:S(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:S(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:S(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:S(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:S(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:S(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:S(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:S(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:S(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:S(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:S(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:S(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:S(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:S(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:S(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:S(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:S(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:S(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_ES3_or_ES5:S(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:S(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:S(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:S(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:S(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:S(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:S(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:S(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:S(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:S(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 }'."),with_statements_are_not_allowed_in_an_async_function_block:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_or_nodenext:S(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', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:S(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_or_nodenext:S(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', or 'nodenext'."),A_label_is_not_allowed_here:S(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:S(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:S(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:S(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:S(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:S(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:S(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:S(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:S(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:S(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:S(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:S(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:S(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:S(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:S(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),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:S(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:S(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:S(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_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(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', '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:S(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:S(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:S(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:S(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:S(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:S(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:S(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:S(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:S(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:S(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:S(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:S(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:S(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:S(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:S(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:S(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:S(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:S(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:S(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:S(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:S(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:S(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:S(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:S(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:S(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:S(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_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(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', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:S(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:S(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:S(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:S(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:S(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:S(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:S(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:S(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:S(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:S(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:S(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:S(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:S(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:S(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:S(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:S(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:S(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:S(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:S(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:S(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:S(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:S(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:S(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:S(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:S(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:S(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:S(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:S(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:S(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:S(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:S(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:S(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:S(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:S(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:S(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:S(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:S(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:S(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:S(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:S(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:S(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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}'."),Untyped_function_calls_may_not_accept_type_arguments:S(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:S(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:S(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:S(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:S(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:S(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:S(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:S(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:S(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:S(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:S(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:S(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:S(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:S(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:S(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:S(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:S(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:S(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:S(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:S(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:S(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:S(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:S(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:S(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:S(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:S(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:S(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:S(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:S(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_ES3_and_ES5_Consider_using_a_standard_function_expression:S(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:S(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:S(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:S(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:S(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:S(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:S(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:S(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_ES3_and_ES5_Consider_using_a_standard_function_or_method:S(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:S(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:S(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:S(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:S(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:S(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:S(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:S(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:S(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:S(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:S(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:S(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:S(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:S(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:S(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:S(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:S(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:S(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}'."),JSX_expressions_must_have_one_parent_element:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:S(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:S(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:S(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:S(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:S(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:S(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:S(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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:S(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_with_module_0:S(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:S(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:S(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:S(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:S(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:S(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:S(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:S(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:S(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:S(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:S(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:S(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:S(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:S(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:S(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:S(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:S(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:S(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:S(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:S(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_nodenext_or_preserve:S(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:S(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_nodenext_or_preserve:S(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(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', '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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),Import_declaration_0_is_using_private_name_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:S(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S(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:S(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_class_expression_may_not_be_private_or_protected:S(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),The_current_host_does_not_support_the_0_option:S(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:S(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:S(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:S(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:S(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:S(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:S(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:S(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:S(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:S(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:S(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_cannot_be_specified_when_option_target_is_ES3:S(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:S(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:S(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:S(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:S(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:S(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:S(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:S(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:S(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:S(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:S(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:S(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:S(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:S(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:S(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:S(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:S(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:S(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:S(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:S(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:S(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:S(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:S(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:S(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:S(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:S(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:S(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:S(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:S(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:S(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:S(6024,3,"options_6024","options"),file:S(6025,3,"file_6025","file"),Examples_Colon_0:S(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:S(6027,3,"Options_Colon_6027","Options:"),Version_0:S(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:S(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:S(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:S(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:S(6034,3,"KIND_6034","KIND"),FILE:S(6035,3,"FILE_6035","FILE"),VERSION:S(6036,3,"VERSION_6036","VERSION"),LOCATION:S(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:S(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:S(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:S(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:S(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:S(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:S(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:S(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:S(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:S(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:S(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:S(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:S(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:S(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:S(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:S(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:S(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:S(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:S(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:S(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:S(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:S(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:S(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:S(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:S(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:S(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:S(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:S(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:S(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:S(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:S(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:S(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:S(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:S(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:S(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:S(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:S(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:S(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:S(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:S(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:S(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:S(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:S(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:S(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:S(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:S(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:S(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:S(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:S(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:S(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:S(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:S(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:S(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:S(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:S(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:S(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:S(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:S(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:S(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:S(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:S(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:S(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:S(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:S(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:S(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:S(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:S(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:S(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:S(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:S(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:S(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:S(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:S(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:S(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:S(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:S(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:S(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:S(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:S(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:S(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:S(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:S(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:S(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:S(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:S(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:S(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:S(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:S(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:S(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:S(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:S(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:S(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:S(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:S(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:S(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:S(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:S(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:S(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:S(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:S(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:S(6244,3,"Modules_6244","Modules"),File_Management:S(6245,3,"File_Management_6245","File Management"),Emit:S(6246,3,"Emit_6246","Emit"),JavaScript_Support:S(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:S(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:S(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:S(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:S(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:S(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:S(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:S(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:S(6255,3,"Projects_6255","Projects"),Output_Formatting:S(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:S(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:S(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:S(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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'."),Enable_project_compilation:S(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:S(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:S(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:S(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:S(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."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:S(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:S(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:S(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:S(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:S(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:S(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:S(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:S(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}'"),A_non_dry_build_would_update_output_of_project_0:S(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:S(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:S(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:S(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:S(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:S(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:S(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:S(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:S(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:S(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:S(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:S(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:S(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:S(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:S(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:S(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:S(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:S(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:S(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:S(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:S(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:S(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:S(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."),Default_catch_clause_variables_as_unknown_instead_of_any:S(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:S(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."),one_of_Colon:S(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:S(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:S(6902,3,"type_Colon_6902","type:"),default_Colon:S(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:S(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:S(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:S(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:S(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:S(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:S(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:S(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:S(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:S(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:S(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:S(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:S(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:S(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:S(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:S(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:S(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:S(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:S(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:S(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:S(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:S(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:S(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:S(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:S(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:S(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:S(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:S(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:S(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:S(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:S(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:S(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:S(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:S(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:S(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:S(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:S(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:S(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:S(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:S(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:S(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:S(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:S(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:S(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:S(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:S(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:S(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:S(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:S(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:S(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:S(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:S(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:S(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:S(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:S(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:S(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:S(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:S(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:S(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:S(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:S(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:S(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:S(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:S(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:S(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:S(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:S(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:S(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:S(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:S(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:S(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:S(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:S(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:S(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:S(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:S(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:S(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:S(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:S(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:S(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:S(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:S(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:S(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:S(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:S(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:S(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:S(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:S(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:S(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:S(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:S(95005,3,"Extract_function_95005","Extract function"),Extract_constant:S(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:S(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:S(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:S(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:S(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:S(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:S(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:S(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:S(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:S(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:S(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:S(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:S(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:S(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:S(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:S(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:S(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:S(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:S(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:S(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:S(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:S(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:S(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:S(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:S(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:S(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:S(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:S(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:S(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:S(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:S(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:S(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:S(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:S(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:S(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:S(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:S(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:S(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:S(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:S(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:S(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:S(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:S(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:S(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:S(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:S(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:S(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:S(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:S(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:S(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:S(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:S(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:S(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:S(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:S(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:S(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:S(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:S(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:S(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:S(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:S(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:S(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:S(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:S(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:S(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:S(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:S(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:S(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:S(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:S(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:S(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:S(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:S(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:S(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:S(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:S(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:S(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:S(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:S(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:S(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:S(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:S(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:S(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:S(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:S(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:S(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:S(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:S(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:S(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:S(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:S(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:S(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:S(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:S(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:S(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:S(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:S(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:S(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:S(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:S(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:S(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:S(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:S(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:S(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:S(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:S(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:S(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:S(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:S(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:S(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:S(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:S(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:S(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:S(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:S(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:S(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:S(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:S(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:S(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:S(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:S(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:S(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:S(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:S(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:S(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:S(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:S(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:S(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:S(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:S(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:S(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:S(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:S(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:S(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:S(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:S(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:S(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:S(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:S(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:S(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:S(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:S(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:S(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:S(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:S(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:S(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:S(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:S(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:S(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:S(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:S(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:S(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:S(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:S(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:S(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:S(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:S(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:S(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:S(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:S(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:S(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:S(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:S(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:S(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:S(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:S(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:S(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:S(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:S(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:S(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:S(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:S(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:S(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:S(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:S(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:S(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:S(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:S(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:S(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:S(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:S(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:S(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:S(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:S(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:S(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:S(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:S(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:S(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:S(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:S(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:S(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:S(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.")}}});function sd(e){return e>=80}function dre(e){return e===32||sd(e)}function eL(e,t){if(e<t[0])return!1;let r=0,i=t.length,o;for(;r+1<i;){if(o=r+(i-r)/2,o-=o%2,t[o]<=e&&e<=t[o+1])return!0;e<t[o]?i=o:r=o+2}return!1}function f4(e,t){return t>=2?eL(e,uSe):t===1?eL(e,lSe):eL(e,aSe)}function RBe(e,t){return t>=2?eL(e,dSe):t===1?eL(e,cSe):eL(e,sSe)}function DBe(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function pa(e){return _Se[e]}function LE(e){return _re.get(e)}function DA(e){const t=[];let r=0,i=0;for(;r<e.length;){const o=e.charCodeAt(r);switch(r++,o){case 13:e.charCodeAt(r)===10&&r++;case 10:t.push(i),i=r;break;default:o>127&&Hu(o)&&(t.push(i),i=r);break}}return t.push(i),t}function tL(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):m4(Wg(e),t,r,e.text,i)}function m4(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:C.fail("Bad line number. Line: ".concat(t,", lineStarts.length: ").concat(e.length," , line map is correct? ").concat(i!==void 0?Na(e,DA(i)):"unknown")));const s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t<e.length-1?C.assert(s<e[t+1]):i!==void 0&&C.assert(s<=i.length),s)}function Wg(e){return e.lineMap||(e.lineMap=DA(e.text))}function Xx(e,t){const r=iN(e,t);return{line:r,character:t-e[r]}}function iN(e,t,r){let i=Nv(e,t,tl,nl,r);return i<0&&(i=~i-1,C.assert(i!==-1,"position cannot precede the beginning of the file")),i}function oN(e,t,r){if(t===r)return 0;const i=Wg(e),o=Math.min(t,r),s=o===r,l=s?t:r,u=iN(i,o),p=iN(i,l,u);return s?u-p:p-u}function Ts(e,t){return Xx(Wg(e),t)}function Fg(e){return A_(e)||Hu(e)}function A_(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Hu(e){return e===10||e===13||e===8232||e===8233}function aN(e){return e>=48&&e<=57}function rSe(e){return aN(e)||e>=65&&e<=70||e>=97&&e<=102}function CBe(e){return e<=1114111}function _4(e){return e>=48&&e<=55}function pre(e,t){const r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function wa(e,t,r,i,o){if(t_(t))return t;let s=!1;for(;;){const l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!Hu(e.charCodeAt(t));)t++;s=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}s=!1;continue}break;case 60:case 124:case 61:case 62:if(sN(e,t)){t=nL(e,t),s=!1;continue}break;case 35:if(t===0&&jV(e,t)){t=UV(e,t),s=!1;continue}break;case 42:if(s){t++,s=!1;continue}break;default:if(l>127&&Fg(l)){t++;continue}break}return t}}function sN(e,t){if(C.assert(t>=0),t===0||Hu(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+g4<e.length){for(let i=0;i<g4;i++)if(e.charCodeAt(t+i)!==r)return!1;return r===61||e.charCodeAt(t+g4)===32}}return!1}function nL(e,t,r){r&&r(m.Merge_conflict_marker_encountered,t,g4);const i=e.charCodeAt(t),o=e.length;if(i===60||i===62)for(;t<o&&!Hu(e.charCodeAt(t));)t++;else for(C.assert(i===124||i===61);t<o;){const s=e.charCodeAt(t);if((s===61||s===62)&&s!==i&&sN(e,t))break;t++}return t}function jV(e,t){return C.assert(t===0),qV.test(e)}function UV(e,t){const r=qV.exec(e)[0];return t=t+r.length,t}function HV(e,t,r,i,o,s,l){let u,p,h,f,b=!1,A=i,I=l;if(r===0){A=!0;const R=h4(t);R&&(r=R.length)}e:for(;r>=0&&r<t.length;){const R=t.charCodeAt(r);switch(R){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)break e;A=!0,b&&(f=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:const M=t.charCodeAt(r+1);let N=!1;if(M===47||M===42){const O=M===47?2:3,U=r;if(r+=2,M===47)for(;r<t.length;){if(Hu(t.charCodeAt(r))){N=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(A){if(b&&(I=o(u,p,h,f,s,I),!e&&I))return I;u=U,p=r,h=O,f=N,b=!0}continue}break e;default:if(R>127&&Fg(R)){b&&Hu(R)&&(f=!0),r++;continue}break e}}return b&&(I=o(u,p,h,f,s,I)),I}function rL(e,t,r,i){return HV(!1,e,t,!1,r,i)}function iL(e,t,r,i){return HV(!1,e,t,!0,r,i)}function fre(e,t,r,i,o){return HV(!0,e,t,!1,r,i,o)}function mre(e,t,r,i,o){return HV(!0,e,t,!0,r,i,o)}function iSe(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function Zh(e,t){return fre(e,t,iSe,void 0,void 0)}function l0(e,t){return mre(e,t,iSe,void 0,void 0)}function h4(e){const t=qV.exec(e);if(t)return t[0]}function eg(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&f4(e,t)}function c0(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&RBe(e,t)}function tf(e,t,r){let i=My(e,0);if(!eg(i,t))return!1;for(let o=u0(i);o<e.length;o+=u0(i))if(!c0(i=My(e,o),t,r))return!1;return!0}function Ov(e,t,r=0,i,o,s,l){var u=i,p,h,f,b,A,I,R,M,N=0,O=0,U=0;Bt(u,s,l);var K={getTokenFullStart:()=>f,getStartPos:()=>f,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>A,getTokenStart:()=>b,getTokenPos:()=>b,getTokenText:()=>u.substring(b,p),getTokenValue:()=>I,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,isIdentifier:()=>A===80||A>118,isReservedWord:()=>A>=83&&A<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>M,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:be,reScanAsteriskEqualsToken:Ue,reScanSlashToken:it,reScanTemplateToken:Qe,reScanTemplateHeadOrNoSubstitutionTemplate:It,scanJsxIdentifier:tn,scanJsxAttributeValue:en,reScanJsxAttributeValue:gi,reScanJsxToken:on,reScanLessThanToken:$t,reScanHashToken:Cn,reScanQuestionToken:Hn,reScanInvalidIdentifier:Oe,scanJsxToken:yn,scanJsDocToken:Gi,scanJSDocCommentTextToken:ho,scan:Me,getText:Xt,clearCommentDirectives:nt,setText:Bt,setScriptTarget:oi,setLanguageVariant:yi,setScriptKind:eo,setJSDocParsingMode:Ro,setOnError:Dn,resetTokenState:fa,setTextPos:fa,setInJSDocType:Fa,tryScan:Ir,lookAhead:Di,scanRange:Qn};return C.isDebugging&&Object.defineProperty(K,"__debugShowCurrentPositionInText",{get:()=>{const An=K.getText();return An.slice(0,K.getTokenFullStart())+"║"+An.slice(K.getTokenFullStart())}}),K;function ee(An,wn=p,Je,mt){if(o){const pt=p;p=wn,o(An,Je||0,mt),p=pt}}function V(){let An=p,wn=!1,Je=!1,mt="";for(;;){const pt=u.charCodeAt(p);if(pt===95){R|=512,wn?(wn=!1,Je=!0,mt+=u.substring(An,p)):(R|=16384,ee(Je?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,p,1)),p++,An=p;continue}if(aN(pt)){wn=!0,Je=!1,p++;continue}break}return u.charCodeAt(p-1)===95&&(R|=16384,ee(m.Numeric_separators_are_not_allowed_here,p-1,1)),mt+u.substring(An,p)}function se(){let An=p,wn;if(u.charCodeAt(p)===48)if(p++,u.charCodeAt(p)===95)R|=16896,ee(m.Numeric_separators_are_not_allowed_here,p,1),p--,wn=V();else if(!re())R|=8192,wn=""+ +I;else if(!I)wn="0";else{I=""+parseInt(I,8),R|=32;const le=A===41,Fe=(le?"-":"")+"0o"+(+I).toString(8);return le&&An--,ee(m.Octal_literals_are_not_allowed_Use_the_syntax_0,An,p-An,Fe),9}else wn=V();let Je,mt;u.charCodeAt(p)===46&&(p++,Je=V());let pt=p;if(u.charCodeAt(p)===69||u.charCodeAt(p)===101){p++,R|=16,(u.charCodeAt(p)===43||u.charCodeAt(p)===45)&&p++;const le=p,Fe=V();Fe?(mt=u.substring(pt,le)+Fe,pt=p):ee(m.Digit_expected)}let Pt;if(R&512?(Pt=wn,Je&&(Pt+="."+Je),mt&&(Pt+=mt)):Pt=u.substring(An,pt),R&8192)return ee(m.Decimals_with_leading_zeros_are_not_allowed,An,pt-An),I=""+ +Pt,9;if(Je!==void 0||R&16)return G(An,Je===void 0&&!!(R&16)),I=""+ +Pt,9;{I=Pt;const le=Ee();return G(An),le}}function G(An,wn){if(!eg(My(u,p),e))return;const Je=p,{length:mt}=ge();mt===1&&u[Je]==="n"?ee(wn?m.A_bigint_literal_cannot_use_exponential_notation:m.A_bigint_literal_must_be_an_integer,An,Je-An+1):(ee(m.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Je,mt),p=Je)}function re(){const An=p;let wn=!0;for(;aN(u.charCodeAt(p));)_4(u.charCodeAt(p))||(wn=!1),p++;return I=u.substring(An,p),wn}function _e(An,wn){const Je=Q(An,!1,wn);return Je?parseInt(Je,16):-1}function ye(An,wn){return Q(An,!0,wn)}function Q(An,wn,Je){let mt=[],pt=!1,Pt=!1;for(;mt.length<An||wn;){let le=u.charCodeAt(p);if(Je&&le===95){R|=512,pt?(pt=!1,Pt=!0):ee(Pt?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(pt=Je,le>=65&&le<=70)le+=32;else if(!(le>=48&&le<=57||le>=97&&le<=102))break;mt.push(le),p++,Pt=!1}return mt.length<An&&(mt=[]),u.charCodeAt(p-1)===95&&ee(m.Numeric_separators_are_not_allowed_here,p-1,1),String.fromCharCode(...mt)}function Y(An=!1){const wn=u.charCodeAt(p);p++;let Je="",mt=p;for(;;){if(p>=h){Je+=u.substring(mt,p),R|=4,ee(m.Unterminated_string_literal);break}const pt=u.charCodeAt(p);if(pt===wn){Je+=u.substring(mt,p),p++;break}if(pt===92&&!An){Je+=u.substring(mt,p),Je+=he(!0),mt=p;continue}if((pt===10||pt===13)&&!An){Je+=u.substring(mt,p),R|=4,ee(m.Unterminated_string_literal);break}p++}return Je}function oe(An){const wn=u.charCodeAt(p)===96;p++;let Je=p,mt="",pt;for(;;){if(p>=h){mt+=u.substring(Je,p),R|=4,ee(m.Unterminated_template_literal),pt=wn?15:18;break}const Pt=u.charCodeAt(p);if(Pt===96){mt+=u.substring(Je,p),p++,pt=wn?15:18;break}if(Pt===36&&p+1<h&&u.charCodeAt(p+1)===123){mt+=u.substring(Je,p),p+=2,pt=wn?16:17;break}if(Pt===92){mt+=u.substring(Je,p),mt+=he(An),Je=p;continue}if(Pt===13){mt+=u.substring(Je,p),p++,p<h&&u.charCodeAt(p)===10&&p++,mt+="\n",Je=p;continue}p++}return C.assert(pt!==void 0),I=mt,pt}function he(An){const wn=p;if(p++,p>=h)return ee(m.Unexpected_end_of_text),"";const Je=u.charCodeAt(p);switch(p++,Je){case 48:if(p>=h||!aN(u.charCodeAt(p)))return"\0";case 49:case 50:case 51:p<h&&_4(u.charCodeAt(p))&&p++;case 52:case 53:case 54:case 55:if(p<h&&_4(u.charCodeAt(p))&&p++,R|=2048,An){const mt=parseInt(u.substring(wn+1,p),8);return ee(m.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,wn,p-wn,"\\x"+mt.toString(16).padStart(2,"0")),String.fromCharCode(mt)}return u.substring(wn,p);case 56:case 57:return R|=2048,An?(ee(m.Escape_sequence_0_is_not_allowed,wn,p-wn,u.substring(wn,p)),String.fromCharCode(Je)):u.substring(wn,p);case 98:return"\b";case 116:return" ";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(p<h&&u.charCodeAt(p)===123){p++;const mt=ye(1,!1),pt=mt?parseInt(mt,16):-1;return pt<0?(R|=2048,An&&ee(m.Hexadecimal_digit_expected),u.substring(wn,p)):CBe(pt)?p>=h?(R|=2048,An&&ee(m.Unexpected_end_of_text),u.substring(wn,p)):u.charCodeAt(p)!==125?(R|=2048,An&&ee(m.Unterminated_Unicode_escape_sequence),u.substring(wn,p)):(p++,R|=8,Yx(pt)):(R|=2048,An&&ee(m.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(wn,p))}for(;p<wn+6;p++)if(!(p<h&&rSe(u.charCodeAt(p))))return R|=2048,An&&ee(m.Hexadecimal_digit_expected),u.substring(wn,p);return R|=1024,String.fromCharCode(parseInt(u.substring(wn+2,p),16));case 120:for(;p<wn+4;p++)if(!(p<h&&rSe(u.charCodeAt(p))))return R|=2048,An&&ee(m.Hexadecimal_digit_expected),u.substring(wn,p);return R|=4096,String.fromCharCode(parseInt(u.substring(wn+2,p),16));case 13:p<h&&u.charCodeAt(p)===10&&p++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(Je)}}function Ae(){const An=ye(1,!1),wn=An?parseInt(An,16):-1;let Je=!1;return wn<0?(ee(m.Hexadecimal_digit_expected),Je=!0):wn>1114111&&(ee(m.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Je=!0),p>=h?(ee(m.Unexpected_end_of_text),Je=!0):u.charCodeAt(p)===125?p++:(ee(m.Unterminated_Unicode_escape_sequence),Je=!0),Je?"":Yx(wn)}function de(){if(p+5<h&&u.charCodeAt(p+1)===117){const An=p;p+=2;const wn=_e(4,!1);return p=An,wn}return-1}function ie(){if(My(u,p+1)===117&&My(u,p+2)===123){const An=p;p+=3;const wn=ye(1,!1),Je=wn?parseInt(wn,16):-1;return p=An,Je}return-1}function ge(){let An="",wn=p;for(;p<h;){let Je=My(u,p);if(c0(Je,e))p+=u0(Je);else if(Je===92){if(Je=ie(),Je>=0&&c0(Je,e)){p+=3,R|=8,An+=Ae(),wn=p;continue}if(Je=de(),!(Je>=0&&c0(Je,e)))break;R|=1024,An+=u.substring(wn,p),An+=Yx(Je),p+=6,wn=p}else break}return An+=u.substring(wn,p),An}function Ne(){const An=I.length;if(An>=2&&An<=12){const wn=I.charCodeAt(0);if(wn>=97&&wn<=122){const Je=oSe.get(I);if(Je!==void 0)return A=Je}}return A=80}function qe(An){let wn="",Je=!1,mt=!1;for(;;){const pt=u.charCodeAt(p);if(pt===95){R|=512,Je?(Je=!1,mt=!0):ee(mt?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(Je=!0,!aN(pt)||pt-48>=An)break;wn+=u[p],p++,mt=!1}return u.charCodeAt(p-1)===95&&ee(m.Numeric_separators_are_not_allowed_here,p-1,1),wn}function Ee(){return u.charCodeAt(p)===110?(I+="n",R&384&&(I=eP(I)+"n"),p++,10):(I=""+(R&128?parseInt(I.slice(2),2):R&256?parseInt(I.slice(2),8):+I),9)}function Me(){f=p,R=0;let An=!1;for(;;){if(b=p,p>=h)return A=1;const wn=My(u,p);if(p===0){if(u.slice(0,256).includes("<22>"))return ee(m.File_appears_to_be_binary),p=h,A=8;if(wn===35&&jV(u,p)){if(p=UV(u,p),t)continue;return A=6}}switch(wn){case 10:case 13:if(R|=1,t){p++;continue}else return wn===13&&p+1<h&&u.charCodeAt(p+1)===10?p+=2:p++,A=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(t){p++;continue}else{for(;p<h&&A_(u.charCodeAt(p));)p++;return A=5}case 33:return u.charCodeAt(p+1)===61?u.charCodeAt(p+2)===61?(p+=3,A=38):(p+=2,A=36):(p++,A=54);case 34:case 39:return I=Y(),A=11;case 96:return A=oe(!1);case 37:return u.charCodeAt(p+1)===61?(p+=2,A=70):(p++,A=45);case 38:return u.charCodeAt(p+1)===38?u.charCodeAt(p+2)===61?(p+=3,A=77):(p+=2,A=56):u.charCodeAt(p+1)===61?(p+=2,A=74):(p++,A=51);case 40:return p++,A=21;case 41:return p++,A=22;case 42:if(u.charCodeAt(p+1)===61)return p+=2,A=67;if(u.charCodeAt(p+1)===42)return u.charCodeAt(p+2)===61?(p+=3,A=68):(p+=2,A=43);if(p++,N&&!An&&R&1){An=!0;continue}return A=42;case 43:return u.charCodeAt(p+1)===43?(p+=2,A=46):u.charCodeAt(p+1)===61?(p+=2,A=65):(p++,A=40);case 44:return p++,A=28;case 45:return u.charCodeAt(p+1)===45?(p+=2,A=47):u.charCodeAt(p+1)===61?(p+=2,A=66):(p++,A=41);case 46:return aN(u.charCodeAt(p+1))?(se(),A=9):u.charCodeAt(p+1)===46&&u.charCodeAt(p+2)===46?(p+=3,A=26):(p++,A=25);case 47:if(u.charCodeAt(p+1)===47){for(p+=2;p<h&&!Hu(u.charCodeAt(p));)p++;if(M=Ft(M,u.slice(b,p),pSe,b),t)continue;return A=2}if(u.charCodeAt(p+1)===42){p+=2;const Fe=u.charCodeAt(p)===42&&u.charCodeAt(p+1)!==47;let dt=!1,j=b;for(;p<h;){const ot=u.charCodeAt(p);if(ot===42&&u.charCodeAt(p+1)===47){p+=2,dt=!0;break}p++,Hu(ot)&&(j=p,R|=1)}if(Fe&&Ce()&&(R|=2),M=Ft(M,u.slice(j,p),fSe,j),dt||ee(m.Asterisk_Slash_expected),t)continue;return dt||(R|=4),A=3}return u.charCodeAt(p+1)===61?(p+=2,A=69):(p++,A=44);case 48:if(p+2<h&&(u.charCodeAt(p+1)===88||u.charCodeAt(p+1)===120))return p+=2,I=ye(1,!0),I||(ee(m.Hexadecimal_digit_expected),I="0"),I="0x"+I,R|=64,A=Ee();if(p+2<h&&(u.charCodeAt(p+1)===66||u.charCodeAt(p+1)===98))return p+=2,I=qe(2),I||(ee(m.Binary_digit_expected),I="0"),I="0b"+I,R|=128,A=Ee();if(p+2<h&&(u.charCodeAt(p+1)===79||u.charCodeAt(p+1)===111))return p+=2,I=qe(8),I||(ee(m.Octal_digit_expected),I="0"),I="0o"+I,R|=256,A=Ee();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return A=se();case 58:return p++,A=59;case 59:return p++,A=27;case 60:if(sN(u,p)){if(p=nL(u,p,ee),t)continue;return A=7}return u.charCodeAt(p+1)===60?u.charCodeAt(p+2)===61?(p+=3,A=71):(p+=2,A=48):u.charCodeAt(p+1)===61?(p+=2,A=33):r===1&&u.charCodeAt(p+1)===47&&u.charCodeAt(p+2)!==42?(p+=2,A=31):(p++,A=30);case 61:if(sN(u,p)){if(p=nL(u,p,ee),t)continue;return A=7}return u.charCodeAt(p+1)===61?u.charCodeAt(p+2)===61?(p+=3,A=37):(p+=2,A=35):u.charCodeAt(p+1)===62?(p+=2,A=39):(p++,A=64);case 62:if(sN(u,p)){if(p=nL(u,p,ee),t)continue;return A=7}return p++,A=32;case 63:return u.charCodeAt(p+1)===46&&!aN(u.charCodeAt(p+2))?(p+=2,A=29):u.charCodeAt(p+1)===63?u.charCodeAt(p+2)===61?(p+=3,A=78):(p+=2,A=61):(p++,A=58);case 91:return p++,A=23;case 93:return p++,A=24;case 94:return u.charCodeAt(p+1)===61?(p+=2,A=79):(p++,A=53);case 123:return p++,A=19;case 124:if(sN(u,p)){if(p=nL(u,p,ee),t)continue;return A=7}return u.charCodeAt(p+1)===124?u.charCodeAt(p+2)===61?(p+=3,A=76):(p+=2,A=57):u.charCodeAt(p+1)===61?(p+=2,A=75):(p++,A=52);case 125:return p++,A=20;case 126:return p++,A=55;case 64:return p++,A=60;case 92:const Je=ie();if(Je>=0&&eg(Je,e))return p+=3,R|=8,I=Ae()+ge(),A=Ne();const mt=de();return mt>=0&&eg(mt,e)?(p+=6,R|=1024,I=String.fromCharCode(mt)+ge(),A=Ne()):(ee(m.Invalid_character),p++,A=0);case 35:if(p!==0&&u[p+1]==="!")return ee(m.can_only_be_used_at_the_start_of_a_file),p++,A=0;const pt=My(u,p+1);if(pt===92){p++;const Fe=ie();if(Fe>=0&&eg(Fe,e))return p+=3,R|=8,I="#"+Ae()+ge(),A=81;const dt=de();if(dt>=0&&eg(dt,e))return p+=6,R|=1024,I="#"+String.fromCharCode(dt)+ge(),A=81;p--}return eg(pt,e)?(p++,At(pt,e)):(I="#",ee(m.Invalid_character,p++,u0(wn))),A=81;default:const Pt=At(wn,e);if(Pt)return A=Pt;if(A_(wn)){p+=u0(wn);continue}else if(Hu(wn)){R|=1,p+=u0(wn);continue}const le=u0(wn);return ee(m.Invalid_character,p,le),p+=le,A=0}}}function Ce(){switch(U){case 0:return!0;case 1:return!1}return O!==3&&O!==4?!0:U===3?!1:mSe.test(u.slice(f,p))}function Oe(){C.assert(A===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=b=f,R=0;const An=My(u,p),wn=At(An,99);return wn?A=wn:(p+=u0(An),A)}function At(An,wn){let Je=An;if(eg(Je,wn)){for(p+=u0(Je);p<h&&c0(Je=My(u,p),wn);)p+=u0(Je);return I=u.substring(b,p),Je===92&&(I+=ge()),Ne()}}function be(){if(A===32){if(u.charCodeAt(p)===62)return u.charCodeAt(p+1)===62?u.charCodeAt(p+2)===61?(p+=3,A=73):(p+=2,A=50):u.charCodeAt(p+1)===61?(p+=2,A=72):(p++,A=49);if(u.charCodeAt(p)===61)return p++,A=34}return A}function Ue(){return C.assert(A===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),p=b+1,A=64}function it(){if(A===44||A===69){let An=b+1,wn=!1,Je=!1;for(;;){if(An>=h){R|=4,ee(m.Unterminated_regular_expression_literal);break}const mt=u.charCodeAt(An);if(Hu(mt)){R|=4,ee(m.Unterminated_regular_expression_literal);break}if(wn)wn=!1;else if(mt===47&&!Je){An++;break}else mt===91?Je=!0:mt===92?wn=!0:mt===93&&(Je=!1);An++}for(;An<h&&c0(u.charCodeAt(An),e);)An++;p=An,I=u.substring(b,p),A=14}return A}function Ft(An,wn,Je,mt){const pt=gt(wn.trimStart(),Je);return pt===void 0?An:Rn(An,{range:{pos:mt,end:p},type:pt})}function gt(An,wn){const Je=wn.exec(An);if(Je)switch(Je[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Qe(An){return p=b,A=oe(!An)}function It(){return p=b,A=oe(!0)}function on(An=!0){return p=b=f,A=yn(An)}function $t(){return A===48?(p=b+1,A=30):A}function Cn(){return A===81?(p=b+1,A=63):A}function Hn(){return C.assert(A===61,"'reScanQuestionToken' should only be called on a '??'"),p=b+1,A=58}function yn(An=!0){if(f=b=p,p>=h)return A=1;let wn=u.charCodeAt(p);if(wn===60)return u.charCodeAt(p+1)===47?(p+=2,A=31):(p++,A=30);if(wn===123)return p++,A=19;let Je=0;for(;p<h&&(wn=u.charCodeAt(p),wn!==123);){if(wn===60){if(sN(u,p))return p=nL(u,p,ee),A=7;break}if(wn===62&&ee(m.Unexpected_token_Did_you_mean_or_gt,p,1),wn===125&&ee(m.Unexpected_token_Did_you_mean_or_rbrace,p,1),Hu(wn)&&Je===0)Je=-1;else{if(!An&&Hu(wn)&&Je>0)break;Fg(wn)||(Je=p)}p++}return I=u.substring(f,p),Je===-1?13:12}function tn(){if(sd(A)){for(;p<h;){if(u.charCodeAt(p)===45){I+="-",p++;continue}const wn=p;if(I+=ge(),p===wn)break}return Ne()}return A}function en(){switch(f=p,u.charCodeAt(p)){case 34:case 39:return I=Y(!0),A=11;default:return Me()}}function gi(){return p=b=f,en()}function ho(An){if(f=b=p,R=0,p>=h)return A=1;for(let wn=u.charCodeAt(p);p<h&&!Hu(wn)&&wn!==96;wn=My(u,++p))if(!An){if(wn===123)break;if(wn===64&&p-1>=0&&A_(u.charCodeAt(p-1))&&!(p+1<h&&Fg(u.charCodeAt(p+1))))break}return p===b?Gi():(I=u.substring(b,p),A=82)}function Gi(){if(f=b=p,R=0,p>=h)return A=1;const An=My(u,p);switch(p+=u0(An),An){case 9:case 11:case 12:case 32:for(;p<h&&A_(u.charCodeAt(p));)p++;return A=5;case 64:return A=60;case 13:u.charCodeAt(p)===10&&p++;case 10:return R|=1,A=4;case 42:return A=42;case 123:return A=19;case 125:return A=20;case 91:return A=23;case 93:return A=24;case 60:return A=30;case 62:return A=32;case 61:return A=64;case 44:return A=28;case 46:return A=25;case 96:return A=62;case 35:return A=63;case 92:p--;const wn=ie();if(wn>=0&&eg(wn,e))return p+=3,R|=8,I=Ae()+ge(),A=Ne();const Je=de();return Je>=0&&eg(Je,e)?(p+=6,R|=1024,I=String.fromCharCode(Je)+ge(),A=Ne()):(p++,A=0)}if(eg(An,e)){let wn=An;for(;p<h&&c0(wn=My(u,p),e)||u.charCodeAt(p)===45;)p+=u0(wn);return I=u.substring(b,p),wn===92&&(I+=ge()),A=Ne()}else return A=0}function xo(An,wn){const Je=p,mt=f,pt=b,Pt=A,le=I,Fe=R,dt=An();return(!dt||wn)&&(p=Je,f=mt,b=pt,A=Pt,I=le,R=Fe),dt}function Qn(An,wn,Je){const mt=h,pt=p,Pt=f,le=b,Fe=A,dt=I,j=R,ot=M;Bt(u,An,wn);const Dt=Je();return h=mt,p=pt,f=Pt,b=le,A=Fe,I=dt,R=j,M=ot,Dt}function Di(An){return xo(An,!0)}function Ir(An){return xo(An,!1)}function Xt(){return u}function nt(){M=void 0}function Bt(An,wn,Je){u=An||"",h=Je===void 0?u.length:wn+Je,fa(wn||0)}function Dn(An){o=An}function oi(An){e=An}function yi(An){r=An}function eo(An){O=An}function Ro(An){U=An}function fa(An){C.assert(An>=0),p=An,f=An,b=An,A=0,I=void 0,R=0}function Fa(An){N+=An?1:-1}}function My(e,t){return e.codePointAt(t)}function u0(e){return e>=65536?2:1}function NBe(e){if(C.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Yx(e){return hSe(e)}var oL,oSe,_re,aSe,sSe,lSe,cSe,uSe,dSe,pSe,fSe,mSe,_Se,g4,qV,hSe,PBe=T({"src/compiler/scanner.ts"(){ta(),oL={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,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},oSe=new Map(Object.entries(oL)),_re=new Map(Object.entries({...oL,"{":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})),aSe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],sSe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],lSe=[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],cSe=[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],uSe=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],dSe=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],pSe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,fSe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,mSe=/@(?:see|link)/i,_Se=DBe(_re),g4=7,qV=/^#!.*/,hSe=String.fromCodePoint?e=>String.fromCodePoint(e):NBe}});function Qc(e){return Wp(e)||_p(e)}function $x(e){return KC(e,KN)}function aL(e){switch(ls(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function $l(e){return e.start+e.length}function hre(e){return e.length===0}function JV(e,t){return t>=e.start&&t<$l(e)}function sL(e,t){return t>=e.pos&&t<=e.end}function gre(e,t){return t.start>=e.start&&$l(t)<=$l(e)}function gSe(e,t){return vre(e,t)!==void 0}function vre(e,t){const r=bre(e,t);return r&&r.length===0?void 0:r}function vSe(e,t){return lL(e.start,e.length,t.start,t.length)}function v4(e,t,r){return lL(e.start,e.length,t,r)}function lL(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function yre(e,t){return t<=$l(e)&&t>=e.start}function bre(e,t){const r=Math.max(e.start,t.start),i=Math.min($l(e),$l(t));return r<=i?hc(r,i):void 0}function yu(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function hc(e,t){return yu(e,t-e)}function lN(e){return yu(e.span.start,e.newLength)}function Ere(e){return hre(e.span)&&e.newLength===0}function cL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Sre(e){if(e.length===0)return IL;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=$l(t.span),o=r+t.newLength;for(let s=1;s<e.length;s++){const l=e[s],u=r,p=i,h=o,f=l.span.start,b=$l(l.span),A=f+l.newLength;r=Math.min(u,f),i=Math.max(p,p+(b-h)),o=Math.max(A,A+(h-b))}return cL(hc(r,i),o-r)}function ySe(e){if(e&&e.kind===168){for(let t=e;t;t=t.parent)if(Qo(t)||ui(t)||t.kind===264)return t}}function hp(e,t){return Io(e)&&$r(e,31)&&t.kind===176}function Tre(e){return Zo(e)?Yn(e.elements,Are):!1}function Are(e){return Hc(e)?!0:Tre(e.name)}function Qx(e){let t=e.parent;for(;ns(t.parent);)t=t.parent.parent;return t.parent}function Ire(e,t){ns(e)&&(e=Qx(e));let r=t(e);return e.kind===260&&(e=e.parent),e&&e.kind===261&&(r|=t(e),e=e.parent),e&&e.kind===243&&(r|=t(e)),r}function d0(e){return Ire(e,pd)}function KV(e){return Ire(e,yoe)}function Wv(e){return Ire(e,MBe)}function MBe(e){return e.flags}function bSe(e,t,r){const i=e.toLowerCase(),o=/^([a-z]+)([_-]([a-z]+))?$/.exec(i);if(!o){r&&r.push(Jl(m.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}const s=o[1],l=o[3];Nr(vj,i)&&!u(s,l,r)&&u(s,void 0,r),Fne(e);function u(p,h,f){const b=ha(t.getExecutingFilePath()),A=ri(b);let I=Yr(A,p);if(h&&(I=I+"-"+h),I=t.resolvePath(Yr(I,"diagnosticMessages.generated.json")),!t.fileExists(I))return!1;let R="";try{R=t.readFile(I)}catch(M){return f&&f.push(Jl(m.Unable_to_open_file_0,I)),!1}try{Boe(JSON.parse(R))}catch(M){return f&&f.push(Jl(m.Corrupted_locale_file_0,I)),!1}return!0}}function Ml(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function zn(e,t){for(;e;){const r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function cN(e){return(e.flags&16)===0}function Do(e,t){if(e===void 0||cN(e))return e;for(e=e.original;e;){if(cN(e))return!t||t(e)?e:void 0;e=e.original}}function hl(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function ji(e){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Tr(e){return ji(e.escapedText)}function p0(e){const t=LE(e.escapedText);return t?ti(t,Bd):void 0}function El(e){return e.valueDeclaration&&cd(e.valueDeclaration)?Tr(e.valueDeclaration.name):ji(e.escapedName)}function ESe(e){const t=e.parent.parent;if(t){if(Ju(t))return XV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return XV(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:const i=r.argumentExpression;if(je(i))return i}break;case 217:return XV(t.expression);case 256:{if(Ju(t.statement)||bt(t.statement))return XV(t.statement);break}}}}function XV(e){const t=Po(e);return t&&je(t)?t:void 0}function uL(e,t){return!!(ld(e)&&je(e.name)&&Tr(e.name)===Tr(t)||kl(e)&&St(e.declarationList.declarations,r=>uL(r,t)))}function xre(e){return e.name||ESe(e)}function ld(e){return!!e.name}function y4(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{const r=e;switch(Vl(r)){case 1:case 4:case 5:case 3:return _3(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return xre(e);case 347:return ESe(e);case 277:{const{expression:r}=e;return je(r)?r:void 0}case 212:const t=e;if(m3(t))return t.argumentExpression}return e.name}function Po(e){if(e!==void 0)return y4(e)||(Bs(e)||Us(e)||tu(e)?b4(e):void 0)}function b4(e){if(e.parent){if(bc(e.parent)||ns(e.parent))return e.parent.name;if(mr(e.parent)&&e===e.parent.right){if(je(e.parent.left))return e.parent.left;if(zs(e.parent.left))return _3(e.parent.left)}else if(ki(e.parent)&&je(e.parent.name))return e.parent.name}else return}function Ly(e){if(If(e))return rr(e.modifiers,Su)}function kE(e){if($r(e,98303))return rr(e.modifiers,xa)}function SSe(e,t){if(e.name)if(je(e.name)){const r=e.name.escapedText;return pL(e.parent,t).filter(i=>o_(i)&&je(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);C.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=pL(e.parent,t).filter(o_);if(r<i.length)return[i[r]]}return et}function Zx(e){return SSe(e,!1)}function Rre(e){return SSe(e,!0)}function TSe(e,t){const r=e.name.escapedText;return pL(e.parent,t).filter(i=>pm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Dre(e){return TSe(e,!1)}function Cre(e){return TSe(e,!0)}function Nre(e){return!!em(e,o_)}function Pre(e){return em(e,vI)}function Mre(e){return S4(e,dF)}function YV(e){return em(e,rse)}function ASe(e){return em(e,GH)}function Lre(e){return em(e,GH,!0)}function ISe(e){return em(e,VH)}function kre(e){return em(e,VH,!0)}function xSe(e){return em(e,jH)}function wre(e){return em(e,jH,!0)}function RSe(e){return em(e,UH)}function Ore(e){return em(e,UH,!0)}function Wre(e){return em(e,cF,!0)}function $V(e){return em(e,HH)}function Fre(e){return em(e,HH,!0)}function QV(e){return em(e,ew)}function E4(e){return em(e,qH)}function zre(e){return em(e,uF)}function DSe(e){return em(e,pm)}function ZV(e){return em(e,pF)}function f0(e){const t=em(e,xP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function m0(e){let t=em(e,xP);return!t&&Io(e)&&(t=Tn(Zx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function dL(e){const t=zre(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=f0(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(Tp(i)){const o=Tn(i.members,sI);return o&&o.type}if(Th(i)||ZR(i))return i.type}}function pL(e,t){var o;var r;if(!ek(e))return et;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const s=Xj(e,t);C.assert(s.length<2||s[0]!==s[1]),i=Pi(s,l=>i_(l)?l.tags:l),t||((o=e.jsDoc)!=null||(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function _0(e){return pL(e,!1)}function CSe(e){return pL(e,!0)}function em(e,t,r){return Tn(pL(e,r),t)}function S4(e,t){return _0(e).filter(t)}function NSe(e,t){return _0(e).filter(r=>r.kind===t)}function fL(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===328?t.text:LBe(t)).join("")}function LBe(e){const t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?gp(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return"{@".concat(t," ").concat(r).concat(i).concat(e.text,"}")}function ky(e){if(N0(e)){if(eD(e.parent)){const t=TR(e.parent);if(t&&Le(t.tags))return Pi(t.tags,r=>pm(r)?r.typeParameters:void 0)}return et}if(im(e))return C.assert(e.parent.kind===327),Pi(e.parent.tags,t=>pm(t)?t.typeParameters:void 0);if(e.typeParameters||mse(e)&&e.typeParameters)return e.typeParameters;if(sr(e)){const t=C3(e);if(t.length)return t;const r=m0(e);if(r&&Th(r)&&r.typeParameters)return r.typeParameters}return et}function eR(e){return e.constraint?e.constraint:pm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function tg(e){return e.kind===80||e.kind===81}function T4(e){return e.kind===178||e.kind===177}function A4(e){return Fr(e)&&!!(e.flags&64)}function ej(e){return $s(e)&&!!(e.flags&64)}function hS(e){return sa(e)&&!!(e.flags&64)}function qu(e){const t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function uN(e){return qu(e)&&!fI(e)&&!!e.questionDotToken}function I4(e){return uN(e.parent)&&e.parent.expression===e}function dN(e){return!qu(e.parent)||uN(e.parent)||e!==e.parent.expression}function tj(e){return e.kind===226&&e.operatorToken.kind===61}function zg(e){return Nf(e)&&je(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Rm(e){return ec(e,8)}function x4(e){return fI(e)&&!!(e.flags&64)}function pN(e){return e.kind===252||e.kind===251}function nj(e){return e.kind===280||e.kind===279}function Bre(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function rj(e){return Bre(e)||e.kind===307||e.kind===311}function fN(e){return e.kind===355||e.kind===348}function PSe(e){return mL(e.kind)}function mL(e){return e>=166}function ij(e){return e>=0&&e<=165}function CA(e){return ij(e.kind)}function wE(e){return Cs(e,"pos")&&Cs(e,"end")}function mN(e){return 9<=e&&e<=15}function OE(e){return mN(e.kind)}function oj(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function wy(e){return 15<=e&&e<=18}function Gre(e){return wy(e.kind)}function R4(e){const t=e.kind;return t===17||t===18}function NA(e){return np(e)||Ku(e)}function _L(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Vre(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function h0(e){return _L(e)||Vre(e)}function aj(e){return e.kind===11||wy(e.kind)}function jre(e){return Ma(e)||je(e)}function al(e){var t;return je(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function gS(e){var t;return Ji(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function hL(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function cd(e){return(Uo(e)||MA(e))&&Ji(e.name)}function tR(e){return Fr(e)&&Ji(e.name)}function Fv(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 _N(e){return!!(UA(e)&31)}function sj(e){return _N(e)||e===126||e===164||e===129}function xa(e){return Fv(e.kind)}function Zd(e){const t=e.kind;return t===166||t===80}function cc(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===167}function vS(e){const t=e.kind;return t===80||t===206||t===207}function Qo(e){return!!e&&PA(e.kind)}function nR(e){return!!e&&(PA(e.kind)||Rl(e))}function js(e){return e&&MSe(e.kind)}function hN(e){return e.kind===112||e.kind===97}function MSe(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function PA(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return MSe(e)}}function lj(e){return Zi(e)||O_(e)||Jo(e)&&Qo(e.parent)}function Zc(e){const t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function ui(e){return e&&(e.kind===263||e.kind===231)}function Oy(e){return e&&(e.kind===177||e.kind===178)}function Wd(e){return Uo(e)&&P_(e)}function Ure(e){return sr(e)&&lW(e)?(!UE(e)||!Hy(e.expression))&&!CS(e,!0):e.parent&&ui(e.parent)&&Uo(e)&&!P_(e)}function MA(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function LSe(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function sl(e){return xa(e)||Su(e)}function yS(e){const t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function D4(e){return yS(e)||Zc(e)}function Bg(e){const t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function Ui(e){return MU(e.kind)}function Hre(e){switch(e.kind){case 184:case 185:return!0}return!1}function Zo(e){if(e){const t=e.kind;return t===207||t===206}return!1}function gN(e){const t=e.kind;return t===209||t===210}function C4(e){const t=e.kind;return t===208||t===232}function gL(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function qre(e){return ki(e)||Io(e)||yL(e)||bL(e)}function vL(e){return cj(e)||uj(e)}function cj(e){switch(e.kind){case 206:case 210:return!0}return!1}function yL(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function uj(e){switch(e.kind){case 207:case 209:return!0}return!1}function bL(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return wc(e,!0)}function Jre(e){const t=e.kind;return t===211||t===166||t===205}function Kre(e){const t=e.kind;return t===211||t===166}function dj(e){return WE(e)||e1(e)}function WE(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function I_(e){return e.kind===213||e.kind===214}function LA(e){const t=e.kind;return t===228||t===15}function ep(e){return kSe(Rm(e).kind)}function kSe(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function pj(e){return wSe(Rm(e).kind)}function wSe(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return kSe(e)}}function Xre(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function Yre(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return OE(e)}}function bt(e){return kBe(Rm(e).kind)}function kBe(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return wSe(e)}}function bS(e){const t=e.kind;return t===216||t===234}function OSe(e){return WH(e)||oF(e)}function Wy(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Wy(e.statement,t)}return!1}function $re(e){return wl(e)||Zl(e)}function Qre(e){return St(e,$re)}function N4(e){return!NL(e)&&!wl(e)&&!$r(e,32)&&!ku(e)}function EL(e){return NL(e)||wl(e)||$r(e,32)}function rR(e){return e.kind===249||e.kind===250}function P4(e){return Jo(e)||bt(e)}function fj(e){return Jo(e)}function Af(e){return qc(e)||bt(e)}function Zre(e){const t=e.kind;return t===268||t===267||t===80}function WSe(e){const t=e.kind;return t===268||t===267}function FSe(e){const t=e.kind;return t===80||t===267}function mj(e){const t=e.kind;return t===275||t===274}function SL(e){return e.kind===267||e.kind===266}function x_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function _h(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function wBe(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function eie(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function tie(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function Ju(e){return e.kind===168?e.parent&&e.parent.kind!==352||sr(e):wBe(e.kind)}function nie(e){return eie(e.kind)}function TL(e){return tie(e.kind)}function qi(e){const t=e.kind;return tie(t)||eie(t)||OBe(e)}function OBe(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!VE(e)}function rie(e){const t=e.kind;return tie(t)||eie(t)||t===241}function iie(e){const t=e.kind;return t===283||t===166||t===80}function vN(e){const t=e.kind;return t===110||t===80||t===211||t===295}function AL(e){const t=e.kind;return t===284||t===294||t===285||t===12||t===288}function M4(e){const t=e.kind;return t===291||t===293}function oie(e){const t=e.kind;return t===11||t===294}function ud(e){const t=e.kind;return t===286||t===285}function L4(e){const t=e.kind;return t===296||t===297}function iR(e){return e.kind>=316&&e.kind<=357}function k4(e){return e.kind===327||e.kind===326||e.kind===328||kA(e)||oR(e)||XS(e)||N0(e)}function oR(e){return e.kind>=334&&e.kind<=357}function zv(e){return e.kind===178}function Fy(e){return e.kind===177}function Fp(e){if(!ek(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function w4(e){return!!e.type}function zy(e){return!!e.initializer}function ES(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function _j(e){return e.kind===291||e.kind===293||Bg(e)}function O4(e){return e.kind===183||e.kind===233}function aie(e){let t=sie;for(const r of e){if(!r.length)continue;let i=0;for(;i<r.length&&i<t&&Fg(r.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===sie?void 0:t}function ds(e){return e.kind===11||e.kind===15}function kA(e){return e.kind===331||e.kind===332||e.kind===333}function hj(e){const t=el(e.parameters);return!!t&&ng(t)}function ng(e){const t=o_(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===325}function zSe(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function gj(e,t){t!=null||(t=jn(e));const r=Do(e);if(r&&r.kind===169){const o=r.parent.parameters.indexOf(r),s=o>0?r.parent.parameters[o-1]:void 0,l=t.text,u=s?To(l0(l,wa(l,s.end+1,!1,!0)),Zh(l,e.pos)):l0(l,wa(l,e.pos,!1,!0));return St(u)&&zSe(es(u),t)}const i=r&&Oj(r,t);return!!He(i,o=>zSe(o,t))}var IL,vj,sie,WBe=T({"src/compiler/utilitiesPublic.ts"(){ta(),IL=cL(yu(0,0),0),vj=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],sie=1073741823}});function fl(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function lie(e,t){return rr(e.declarations||et,r=>r.kind===t)}function ua(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function hh(e){return(e.flags&33554432)!==0}function FBe(){var e="";const t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Fg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:ts,decreaseIndent:ts,clear:()=>e=""}}function W4(e,t){return e.configFilePath!==t.configFilePath||cie(e,t)}function cie(e,t){return aR(e,t,CF)}function uie(e,t){return aR(e,t,Rq)}function aR(e,t,r){return e!==t&&r.some(i=>!nW(H3(e,i),H3(t,i)))}function die(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Zi(e))return;e=e.parent}}function jc(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function gh(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function F4(e,t){e.forEach((r,i)=>{t.set(i,r)})}function yN(e){const t=Nk.getText();try{return e(Nk),Nk.getText()}finally{Nk.clear(),Nk.writeKeyword(t)}}function xL(e){return e.end-e.pos}function yj(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function pie(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&zBe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function z4(e,t,r,i,o){var s;const l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(md(t.getCompilerOptions())===2?[m.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[l]]:[m.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,[l,l.includes(Dh+"@types/")?"@types/".concat(fD(o)):o]]),p=u?Bo(void 0,u[0],...u[1]):t.typesPackageExists(o)?Bo(void 0,m.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,fD(o)):t.packageBundlesTypes(o)?Bo(void 0,m.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,r):Bo(void 0,m.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,fD(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function zBe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function B4({name:e,subModuleName:t}){return t?"".concat(e,"/").concat(t):e}function By(e){return"".concat(B4(e),"@").concat(e.version)}function fie(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function bj(e,t,r,i){C.assert(e.length===t.length);for(let o=0;o<e.length;o++){const s=t[o],l=e[o],u=r(l);if(u?!s||!i(u,s):s)return!0}return!1}function sR(e){return BBe(e),(e.flags&1048576)!==0}function BBe(e){e.flags&2097152||(((e.flags&262144)!==0||Vo(e,sR))&&(e.flags|=1048576),e.flags|=2097152)}function jn(e){for(;e&&e.kind!==312;)e=e.parent;return e}function G4(e){return jn(e.valueDeclaration||Dj(e))}function RL(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function mie(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function Gy(e,t){return C.assert(e>=0),Wg(t)[e]}function BSe(e){const t=jn(e),r=Ts(t,e.pos);return"".concat(t.fileName,"(").concat(r.line+1,",").concat(r.character+1,")")}function DL(e,t){C.assert(e>=0);const r=Wg(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{const s=r[i];let l=r[i+1]-1;for(C.assert(Hu(o.charCodeAt(l)));s<=l&&Hu(o.charCodeAt(l));)l--;return l}}function V4(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Gl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function tm(e){return!Gl(e)}function _ie(e,t){return gl(e)?t===e.expression:Rl(e)?t===e.modifiers:Ep(e)?t===e.initializer:Uo(e)?t===e.questionToken&&Wd(e):bc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||CL(e.modifiers,t,sl):rp(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||CL(e.modifiers,t,sl):Kl(e)?t===e.exclamationToken:Ll(e)?t===e.typeParameters||t===e.type||CL(e.typeParameters,t,gl):rf(e)?t===e.typeParameters||CL(e.typeParameters,t,gl):Sp(e)?t===e.typeParameters||t===e.type||CL(e.typeParameters,t,gl):Zk(e)?t===e.modifiers||CL(e.modifiers,t,sl):!1}function CL(e,t,r){return!e||Ao(t)||!r(t)?!1:Nr(e,t)}function GSe(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,...t),e}function VSe(e,t,r){if(t===void 0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,t),e}function jSe(e){return Cm(e)||!!(qa(e)&2097152)}function rg(e,t){return GSe(e,t,Cm)}function Ej(e,t){return GSe(e,t,jSe)}function USe(e,t){return VSe(e,t,Cm)}function SS(e,t){return VSe(e,t,jSe)}function Sj(e,t,r){if(e.charCodeAt(t+1)===47&&t+2<r&&e.charCodeAt(t+2)===47){const i=e.substring(t,r);return!!(QU.test(i)||ZU.test(i)||PTe.test(i)||CTe.test(i)||NTe.test(i)||MTe.test(i))}return!1}function j4(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function hie(e,t){const r=new Map(t.map(l=>["".concat(Ts(e,l.range.end).line),l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Wo(r.entries()).filter(([l,u])=>u.type===0&&!i.get(l)).map(([l,u])=>u)}function s(l){return r.has("".concat(l))?(i.set("".concat(l),!0),!0):!1}}function g0(e,t,r){return Gl(e)?e.pos:iR(e)||e.kind===12?wa((t||jn(e)).text,e.pos,!1,!0):r&&Fp(e)?g0(e.jsDoc[0],t):e.kind===358&&e._children.length>0?g0(e._children[0],t,r):wa((t||jn(e)).text,e.pos,!1,!1,GL(e))}function Tj(e,t){const r=!Gl(e)&&km(e)?ko(e.modifiers,Su):void 0;return r?wa((t||jn(e)).text,r.end):g0(e,t)}function FE(e,t,r=!1){return bN(e.text,t,r)}function GBe(e){return!!zn(e,f1)}function U4(e){return!!(Zl(e)&&e.exportClause&&Ih(e.exportClause)&&e.exportClause.name.escapedText==="default")}function bN(e,t,r=!1){if(Gl(t))return"";let i=e.substring(r?t.pos:wa(e,t.pos),t.end);return GBe(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join("\n")),i}function gc(e,t=!1){return FE(jn(e),e,t)}function VBe(e){return e.pos}function lR(e,t){return Nv(e,t,VBe,nl)}function qa(e){const t=e.emitNode;return t&&t.flags||0}function Dm(e){const t=e.emitNode;return t&&t.internalFlags||0}function gie(e,t,r){var i;if(t&&jBe(e,r))return FE(t,e);switch(e.kind){case 11:{const o=r&2?fU:r&1||qa(e)&16777216?lg:dk;return e.singleQuote?"'"+o(e.text,39)+"'":'"'+o(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const o=r&1||qa(e)&16777216?lg:dk,s=(i=e.rawText)!=null?i:dU(o(e.text,96));switch(e.kind){case 15:return"`"+s+"`";case 16:return"`"+s+"${";case 17:return"}"+s+"${";case 18:return"}"+s+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return C.fail("Literal kind '".concat(e.kind,"' not accounted for."))}function jBe(e,t){if(Ys(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(bp(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!YW(e)}function vie(e){return No(e)?'"'+dk(e)+'"':""+e}function yie(e){return lc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function Aj(e){return(Wv(e)&7)!==0||Ij(e)}function Ij(e){const t=N_(e);return t.kind===260&&t.parent.kind===299}function ku(e){return Ql(e)&&(e.name.kind===11||R_(e))}function H4(e){return Ql(e)&&e.name.kind===11}function xj(e){return Ql(e)&&Ma(e.name)}function bie(e){return Ql(e)||je(e)}function EN(e){return UBe(e.valueDeclaration)}function UBe(e){return!!e&&e.kind===267&&!e.body}function Eie(e){return e.kind===312||e.kind===267||nR(e)}function R_(e){return!!(e.flags&2048)}function zE(e){return ku(e)&&Rj(e)}function Rj(e){switch(e.parent.kind){case 312:return dc(e.parent);case 268:return ku(e.parent.parent)&&Zi(e.parent.parent.parent)&&!dc(e.parent.parent.parent)}return!1}function Dj(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!zE(r)&&!(Ql(r)&&R_(r)))}function HBe(e){return e===1||e===100||e===199}function wA(e,t){return dc(e)||HBe(wu(t))&&!!e.commonJsModuleIndicator}function Cj(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:fd(t,"alwaysStrict")||use(e.statements)?!0:dc(e)||um(t)?wu(t)>=5?!0:!t.noImplicitUseStrict:!1}function Nj(e){return!!(e.flags&33554432)||$r(e,128)}function Pj(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!nR(t)}return!1}function Mj(e){switch(C.type(e),e.kind){case 345:case 353:case 330:return!0;default:return Lj(e)}}function Lj(e){switch(C.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function TS(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Sie(e){return TS(e)||jE(e)}function q4(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Tie(e){return NL(e)||Ql(e)||fg(e)||Bp(e)}function NL(e){return TS(e)||Zl(e)}function kj(e){return zn(e.parent,t=>!!(qq(t)&1))}function vh(e){return zn(e.parent,t=>Pj(t,t.parent))}function Aie(e,t){let r=vh(e);for(;r;)t(r),r=vh(r)}function Ns(e){return!e||xL(e)===0?"(Missing)":gc(e)}function Iie(e){return e.declaration?Ns(e.declaration.parameters[0].name):void 0}function PL(e){return e.kind===167&&!nf(e.expression)}function SN(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return hl(e.text);case 167:return nf(e.expression)?hl(e.expression.text):void 0;case 295:return YA(e);default:return C.assertNever(e)}}function cR(e){return C.checkDefined(SN(e))}function gp(e){switch(e.kind){case 110:return"this";case 81:case 80:return xL(e)===0?Tr(e):gc(e);case 166:return gp(e.left)+"."+gp(e.right);case 211:return je(e.name)||Ji(e.name)?gp(e.expression)+"."+gp(e.name):C.assertNever(e.name);case 318:return gp(e.left)+gp(e.right);case 295:return gp(e.namespace)+":"+gp(e.name);default:return C.assertNever(e)}}function Or(e,t,...r){const i=jn(e);return nm(i,e,t,...r)}function uR(e,t,r,...i){const o=wa(e.text,t.pos);return eu(e,o,t.end-o,r,...i)}function nm(e,t,r,...i){const o=AS(e,t);return eu(e,o.start,o.length,r,...i)}function Gg(e,t,r,i){const o=AS(e,t);return J4(e,o.start,o.length,r,i)}function ML(e,t,r,i){const o=wa(e.text,t.pos);return J4(e,o,t.end-o,r,i)}function xie(e,t,r){C.assertGreaterThanOrEqual(t,0),C.assertGreaterThanOrEqual(r,0),C.assertLessThanOrEqual(t,e.length),C.assertLessThanOrEqual(t+r,e.length)}function J4(e,t,r,i,o){return xie(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function wj(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function Rie(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Die(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function yh(e,t){const r=Ov(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return hc(i,r.getTokenEnd())}function Cie(e,t){const r=Ov(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function qBe(e,t){const r=wa(e.text,t.pos);if(t.body&&t.body.kind===241){const{line:i}=Ts(e,t.body.pos),{line:o}=Ts(e,t.body.end);if(i<o)return yu(r,DL(i,e)-r+1)}return hc(r,t.end)}function AS(e,t){let r=t;switch(t.kind){case 312:{const s=wa(e.text,0,!1);return s===e.text.length?yu(0,0):yh(e,s)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:r=t.name;break;case 219:return qBe(e,t);case 296:case 297:{const s=wa(e.text,t.pos),l=t.statements.length>0?t.statements[0].pos:t.end;return hc(s,l)}case 253:case 229:{const s=wa(e.text,t.pos);return yh(e,s)}case 238:{const s=wa(e.text,t.expression.end);return yh(e,s)}case 357:{const s=wa(e.text,t.tagName.pos);return yh(e,s)}}if(r===void 0)return yh(e,t.pos);C.assert(!i_(r));const i=Gl(r),o=i||nI(t)?r.pos:wa(e.text,r.pos);return i?(C.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(C.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),hc(o,r.end)}function zp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function rm(e){return e.scriptKind===6}function BE(e){return!!(d0(e)&4096)}function K4(e){return!!(d0(e)&8&&!hp(e,e.parent))}function LL(e){return(Wv(e)&7)===6}function kL(e){return(Wv(e)&7)===4}function dR(e){return(Wv(e)&7)===2}function X4(e){return(Wv(e)&7)===1}function IS(e){return e.kind===213&&e.expression.kind===108}function Bp(e){return e.kind===213&&e.expression.kind===102}function pR(e){return vP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Vy(e){return fg(e)&&Zy(e.argument)&&Ma(e.argument.literal)}function Cm(e){return e.kind===244&&e.expression.kind===11}function wL(e){return!!(qa(e)&2097152)}function Y4(e){return wL(e)&&xc(e)}function JBe(e){return je(e.name)&&!e.initializer}function $4(e){return wL(e)&&kl(e)&&Yn(e.declarationList.declarations,JBe)}function Oj(e,t){return e.kind!==12?Zh(t.text,e.pos):void 0}function Wj(e,t){const r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?To(l0(t,e.pos),Zh(t,e.pos)):Zh(t,e.pos);return rr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function ig(e){if(182<=e.kind&&e.kind<=205)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 e.parent.kind!==222;case 233:return HSe(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),C.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return HSe(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return Nr(t.typeArguments,e)}}}return!1}function HSe(e){return dF(e.parent)||vI(e.parent)||of(e.parent)&&!M3(e)}function qSe(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function GE(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Vo(i,r)}}}function Nie(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);const o=i.expression;o&&r(o);return;case 266:case 264:case 267:case 265:return;default:if(Qo(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else ig(i)||Vo(i,r)}}}function Fj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?ch(e.typeArguments):void 0}function Pie(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function fR(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Mie(e){return fR(e)||Oy(e)}function TN(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Lie(e){return sr(e)?Wa(e.parent)&&mr(e.parent.parent)&&Vl(e.parent.parent)===2||Q4(e.parent):!1}function Q4(e){return sr(e)?mr(e)&&Vl(e)===1:!1}function kie(e){return(ki(e)?dR(e)&&je(e.name)&&TN(e):Uo(e)?zN(e)&&vc(e):Ep(e)&&zN(e))||Q4(e)}function wie(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function zj(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function VE(e){return e&&e.kind===241&&Qo(e.parent)}function Nm(e){return e&&e.kind===174&&e.parent.kind===210}function Z4(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Oie(e){return e&&e.kind===1}function JSe(e){return e&&e.kind===0}function mR(e,t,r,i){return He(e==null?void 0:e.properties,o=>{if(!bc(o))return;const s=SN(o.name);return t===s||i&&i===s?r(o):void 0})}function Wie(e,t,r){return mR(e,t,i=>_d(i.initializer)?Tn(i.initializer.elements,o=>Ma(o)&&o.text===r):void 0)}function AN(e){if(e&&e.statements.length){const t=e.statements[0].expression;return ti(t,Wa)}}function e3(e,t,r){return OL(e,t,i=>_d(i.initializer)?Tn(i.initializer.elements,o=>Ma(o)&&o.text===r):void 0)}function OL(e,t,r){return mR(AN(e),t,r)}function Gp(e){return zn(e.parent,Qo)}function Fie(e){return zn(e.parent,js)}function cu(e){return zn(e.parent,ui)}function zie(e){return zn(e.parent,t=>ui(t)||Qo(t)?"quit":Rl(t))}function t3(e){return zn(e.parent,nR)}function n3(e){const t=zn(e.parent,r=>ui(r)?"quit":Su(r));return t&&ui(t.parent)?cu(t.parent):cu(t!=null?t:e)}function Fd(e,t,r){for(C.assert(e.kind!==312);;){if(e=e.parent,!e)return C.fail();switch(e.kind){case 167:if(r&&ui(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Zc(e.parent.parent)?e=e.parent.parent:Zc(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function Bie(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function r3(e){je(e)&&(Rc(e.parent)||xc(e.parent))&&e.parent.name===e&&(e=e.parent);const t=Fd(e,!0,!1);return Zi(t)}function Gie(e){const t=Fd(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function WL(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&Zc(e.parent.parent)?e=e.parent.parent:Zc(e.parent)&&(e=e.parent);break}}}function xS(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function KSe(e){return e.kind===108||zd(e)}function zd(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function FL(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function i3(e){var t;return!!e&&ki(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Vie(e){return!!e&&(rp(e)||bc(e))&&mr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function zL(e){switch(e.kind){case 183:return e.typeName;case 233:return jl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function o3(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function a3(e,t,r,i){if(e&&ld(t)&&Ji(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Rc(r):ui(r)&&!$E(t)&&!yU(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Rc(r):ui(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&KE(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function _R(e,t,r,i){return If(t)&&a3(e,t,r,i)}function BL(e,t,r,i){return _R(e,t,r,i)||IN(e,t,r)}function IN(e,t,r){switch(t.kind){case 263:return St(t.members,i=>BL(e,i,t,r));case 231:return!e&&St(t.members,i=>BL(e,i,t,r));case 174:case 178:case 176:return St(t.parameters,i=>_R(e,i,t,r));default:return!1}}function Bv(e,t){if(_R(e,t))return!0;const r=cg(t);return!!r&&IN(e,r,t)}function Bj(e,t,r){let i;if(Oy(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:l}=wS(r.members,t),u=If(o)?o:s&&If(s)?s:void 0;if(!u||t!==u)return!1;i=l==null?void 0:l.parameters}else Kl(t)&&(i=t.parameters);if(_R(e,t,r))return!0;if(i){for(const o of i)if(!XE(o)&&_R(e,o,t,r))return!0}return!1}function Gj(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Gj(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function hR(e){const{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function og(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!of(e.parent)&&!vI(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||kA(e.parent)||IP(e.parent)||C0(e.parent)||hR(e);case 318:for(;C0(e.parent);)e=e.parent;return e.parent.kind===186||kA(e.parent)||IP(e.parent)||C0(e.parent)||hR(e);case 81:return mr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||kA(e.parent)||IP(e.parent)||C0(e.parent)||hR(e))return!0;case 9:case 10:case 11:case 15:case 110:return s3(e);default:return!1}}function s3(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:const i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!ig(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return og(t)}}function l3(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function jie(e){return Ih(e)&&!!e.parent.moduleSpecifier}function v0(e){return e.kind===271&&e.moduleReference.kind===283}function xN(e){return C.assert(v0(e)),e.moduleReference.expression}function Vj(e){return jE(e)&&wR(e.initializer).arguments[0]}function gR(e){return e.kind===271&&e.moduleReference.kind!==283}function dd(e){return sr(e)}function XSe(e){return!sr(e)}function sr(e){return!!e&&!!(e.flags&524288)}function c3(e){return!!e&&!!(e.flags&134217728)}function jj(e){return!rm(e)}function GL(e){return!!e&&!!(e.flags&16777216)}function u3(e){return Nf(e)&&je(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Td(e,t){if(e.kind!==213)return!1;const{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;const o=i[0];return!t||ds(o)}function d3(e){return YSe(e,!1)}function jE(e){return YSe(e,!0)}function Uie(e){return ns(e)&&jE(e.parent.parent)}function YSe(e,t){return ki(e)&&!!e.initializer&&Td(t?wR(e.initializer):e.initializer,!0)}function Uj(e){return kl(e)&&e.declarationList.declarations.length>0&&Yn(e.declarationList.declarations,t=>d3(t))}function VL(e){return e===39||e===34}function p3(e,t){return FE(t,e).charCodeAt(0)===34}function RN(e){return mr(e)||zs(e)||je(e)||sa(e)}function jL(e){return sr(e)&&e.initializer&&mr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&jl(e.name)&&vR(e.name,e.initializer.left)?e.initializer.right:e.initializer}function UL(e){const t=jL(e);return t&&y0(t,Hy(e.name))}function KBe(e,t){return He(e.properties,r=>bc(r)&&je(r.name)&&r.name.escapedText==="value"&&r.initializer&&y0(r.initializer,t))}function OA(e){if(e&&e.parent&&mr(e.parent)&&e.parent.operatorToken.kind===64){const t=Hy(e.parent.left);return y0(e.parent.right,t)||XBe(e.parent.left,e.parent.right,t)}if(e&&sa(e)&&DS(e)){const t=KBe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function y0(e,t){if(sa(e)){const r=vs(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||Wa(e)&&(e.properties.length===0||t))return e}function XBe(e,t,r){const i=mr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&y0(t.right,r);if(i&&vR(e,t.left))return i}function Hie(e){const t=ki(e.parent)?e.parent.name:mr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&y0(e.right,Hy(t))&&jl(t)&&vR(t,e.left)}function Hj(e){if(mr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&mr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&je(t.left))return t.left}else if(ki(e.parent))return e.parent.name}function vR(e,t){return C_(e)&&C_(t)?om(e)===om(t):tg(e)&&f3(t)&&(t.expression.kind===110||je(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?vR(e,JL(t)):f3(e)&&f3(t)?Vg(e)===Vg(t)&&vR(e.expression,t.expression):!1}function HL(e){for(;wc(e,!0);)e=e.right;return e}function RS(e){return je(e)&&e.escapedText==="exports"}function qj(e){return je(e)&&e.escapedText==="module"}function ag(e){return(Fr(e)||qL(e))&&qj(e.expression)&&Vg(e)==="exports"}function Vl(e){const t=YBe(e);return t===5||sr(e)?t:0}function DS(e){return Le(e.arguments)===3&&Fr(e.expression)&&je(e.expression.expression)&&Tr(e.expression.expression)==="Object"&&Tr(e.expression.name)==="defineProperty"&&nf(e.arguments[1])&&CS(e.arguments[0],!0)}function f3(e){return Fr(e)||qL(e)}function qL(e){return $s(e)&&nf(e.argumentExpression)}function UE(e,t){return Fr(e)&&(!t&&e.expression.kind===110||je(e.name)&&CS(e.expression,!0))||m3(e,t)}function m3(e,t){return qL(e)&&(!t&&e.expression.kind===110||jl(e.expression)||UE(e.expression,!0))}function CS(e,t){return jl(e)||UE(e,t)}function JL(e){return Fr(e)?e.name:e.argumentExpression}function YBe(e){if(sa(e)){if(!DS(e))return 0;const t=e.arguments[0];return RS(t)||ag(t)?8:UE(t)&&Vg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!zs(e.left)||$Be(HL(e))?0:CS(e.left.expression,!0)&&Vg(e.left)==="prototype"&&Wa(Jj(e))?6:KL(e.left)}function $Be(e){return pI(e)&&bp(e.expression)&&e.expression.text==="0"}function _3(e){if(Fr(e))return e.name;const t=vs(e.argumentExpression);return bp(t)||ds(t)?t:e}function Vg(e){const t=_3(e);if(t){if(je(t))return t.escapedText;if(ds(t)||bp(t))return hl(t.text)}}function KL(e){if(e.expression.kind===110)return 4;if(ag(e))return 2;if(CS(e.expression,!0)){if(Hy(e.expression))return 3;let t=e;for(;!je(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&Vg(t)==="exports")&&UE(e))return 1;if(CS(e,!0)||$s(e)&&E3(e))return 5}return 0}function Jj(e){for(;mr(e.right);)e=e.right;return e.right}function XL(e){return mr(e)&&Vl(e)===3}function qie(e){return sr(e)&&e.parent&&e.parent.kind===244&&(!$s(e)||qL(e))&&!!f0(e.parent)}function YL(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!sr(t)&&!(r.flags&33554432))&&RN(r)&&!RN(t)||r.kind!==t.kind&&bie(r))&&(e.valueDeclaration=t)}function Jie(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===262||ki(t)&&t.initializer&&Qo(t.initializer)}function yR(e){var t,r;switch(e.kind){case 260:case 208:return(t=zn(e.initializer,i=>Td(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ti(e.moduleSpecifier,ds);case 271:return ti((r=ti(e.moduleReference,xh))==null?void 0:r.expression,ds);case 273:case 280:return ti(e.parent.moduleSpecifier,ds);case 274:case 281:return ti(e.parent.parent.moduleSpecifier,ds);case 276:return ti(e.parent.parent.parent.moduleSpecifier,ds);case 205:return Vy(e)?e.argument.literal:void 0;default:C.assertNever(e)}}function DN(e){return $L(e)||C.failBadSyntaxKind(e.parent)}function $L(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Bp(e.parent)||Td(e.parent,!1)?e.parent:void 0;case 201:return C.assert(Ma(e)),ti(e.parent.parent,fg);default:return}}function bR(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return Vy(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return C.assertNever(e)}}function ER(e){switch(e.kind){case 272:return e.importClause&&ti(e.importClause.namedBindings,nb);case 271:return e;case 278:return e.exportClause&&ti(e.exportClause,Ih);default:return C.assertNever(e)}}function WA(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function h3(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=nb(e.namedBindings)?t(e.namedBindings):He(e.namedBindings.elements,t);if(r)return r}}function FA(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function SR(e){const t=ZR(e)?$c(e.parameters):void 0,r=ti(t&&t.name,je);return!!r&&r.escapedText==="new"}function im(e){return e.kind===353||e.kind===345||e.kind===347}function QL(e){return im(e)||Lm(e)}function QBe(e){return nu(e)&&mr(e.expression)&&e.expression.operatorToken.kind===64?HL(e.expression):void 0}function $Se(e){return nu(e)&&mr(e.expression)&&Vl(e.expression)!==0&&mr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function Kj(e){switch(e.kind){case 243:const t=zA(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function zA(e){return kl(e)?$c(e.declarationList.declarations):void 0}function QSe(e){return Ql(e)&&e.body&&e.body.kind===267?e.body:void 0}function ZL(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function ek(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function Xj(e,t){let r;fR(e)&&zy(e)&&Fp(e.initializer)&&(r=Ur(r,ZSe(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(Fp(i)&&(r=Ur(r,ZSe(e,i.jsDoc))),i.kind===169){r=Ur(r,(t?Rre:Zx)(i));break}if(i.kind===168){r=Ur(r,(t?Cre:Dre)(i));break}i=Yj(i)}return r||et}function ZSe(e,t){const r=es(t);return Pi(t,i=>{if(i===r){const o=rr(i.tags,s=>ZBe(e,s));return i.tags===o?[i]:o}else return rr(i.tags,eD)})}function ZBe(e,t){return!(xP(t)||pF(t))||!t.parent||!i_(t.parent)||!Gd(t.parent.parent)||t.parent.parent===e}function Yj(e){const t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||QSe(t)||wc(e))return t;if(t.parent&&(zA(t.parent)===e||wc(t)))return t.parent;if(t.parent&&t.parent.parent&&(zA(t.parent.parent)||Kj(t.parent.parent)===e||$Se(t.parent.parent)))return t.parent.parent}function tk(e){if(e.symbol)return e.symbol;if(!je(e.name))return;const t=e.name.escapedText,r=b0(e);if(!r)return;const i=Tn(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function g3(e){if(i_(e.parent)&&e.parent.tags){const t=Tn(e.parent.tags,im);if(t)return t}return b0(e)}function $j(e){return S4(e,eD)}function b0(e){const t=E0(e);if(t)return Ep(t)&&t.type&&Qo(t.type)?t.type:Qo(t)?t:void 0}function E0(e){const t=NS(e);if(t)return $Se(t)||QBe(t)||Kj(t)||zA(t)||QSe(t)||t}function NS(e){const t=TR(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===el(r.jsDoc))return r}function TR(e){return zn(e.parent,i_)}function Kie(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Tn(r,i=>i.name.escapedText===t)}function eTe(e){return!!e.typeArguments}function Xie(e){let t=e.parent;for(;;){switch(t.kind){case 226:const r=t,i=r.operatorToken.kind;return jv(i)&&r.left===e?r:void 0;case 224:case 225:const o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:const l=t;return l.initializer===e?l:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function BA(e){const t=Xie(e);if(!t)return 0;switch(t.kind){case 226:const r=t.operatorToken.kind;return r===64||BN(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function sg(e){return!!Xie(e)}function eGe(e){const t=vs(e.right);return t.kind===226&&nq(t.operatorToken.kind)}function Qj(e){const t=Xie(e);return!!t&&wc(t,!0)&&eGe(t)}function Yie(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function $ie(e){return Bs(e)||Us(e)||MA(e)||xc(e)||Ll(e)}function tTe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function nk(e){return tTe(e,196)}function Gv(e){return tTe(e,217)}function Qie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function rk(e){for(;GS(e);)e=e.type;return e}function vs(e,t){return ec(e,t?17:1)}function Zj(e){return e.kind!==211&&e.kind!==212?!1:(e=Gv(e.parent),e&&e.kind===220)}function HE(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function jg(e){return!Zi(e)&&!Zo(e)&&Ju(e.parent)&&e.parent.name===e}function CN(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(rs(t))return t.parent;case 80:if(Ju(t))return t.name===e?t:void 0;if(Id(t)){const r=t.parent;return o_(r)&&r.name===t?r:void 0}else{const r=t.parent;return mr(r)&&Vl(r)!==0&&(r.left.symbol||r.symbol)&&Po(r)===e?r:void 0}case 81:return Ju(t)&&t.name===e?t:void 0;default:return}}function ik(e){return nf(e)&&e.parent.kind===167&&Ju(e.parent.parent)}function Zie(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function nTe(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&AR(e)?!0:sr(e)&&(mr(e)&&Vl(e)===2&&AR(e)||Fr(e)&&mr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&ok(e.parent.right))}function eU(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return eU(e)}}function ok(e){return jl(e)||tu(e)}function AR(e){const t=tU(e);return ok(t)}function tU(e){return wl(e)?e.expression:e.right}function eoe(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function D_(e){const t=qE(e);if(t&&sr(e)){const r=Pre(e);if(r)return r.class}return t}function qE(e){const t=ak(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function IR(e){if(sr(e))return Mre(e).map(t=>t.class);{const t=ak(e.heritageClauses,119);return t==null?void 0:t.types}}function NN(e){return hd(e)?PN(e)||et:ui(e)&&To(AA(D_(e)),IR(e))||et}function PN(e){const t=ak(e.heritageClauses,96);return t?t.types:void 0}function ak(e,t){if(e){for(const r of e)if(r.token===t)return r}}function S0(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Bd(e){return 83<=e&&e<=165}function nU(e){return 19<=e&&e<=79}function v3(e){return Bd(e)||nU(e)}function y3(e){return 128<=e&&e<=165}function rU(e){return Bd(e)&&!y3(e)}function rTe(e){return 119<=e&&e<=127}function GA(e){const t=LE(e);return t!==void 0&&rU(t)}function iTe(e){const t=LE(e);return t!==void 0&&Bd(t)}function iU(e){const t=p0(e);return!!t&&!y3(t)}function xR(e){return 2<=e&&e<=7}function Uc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:$r(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function MN(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&$r(e,1024)}return!1}function nf(e){return ds(e)||bp(e)}function b3(e){return tb(e)&&(e.operator===40||e.operator===41)&&bp(e.operand)}function jy(e){const t=Po(e);return!!t&&E3(t)}function E3(e){if(!(e.kind===167||e.kind===212))return!1;const t=$s(e)?vs(e.argumentExpression):e.expression;return!nf(t)&&!b3(t)}function PS(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return hl(e.text);case 167:const t=e.expression;return nf(t)?hl(t.text):b3(t)?t.operator===41?pa(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return YA(e);default:return C.assertNever(e)}}function C_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function om(e){return tg(e)?Tr(e):r_(e)?lP(e):e.text}function LN(e){return tg(e)?e.escapedText:r_(e)?YA(e):hl(e.text)}function oTe(e){return"__@".concat(Ta(e),"@").concat(e.escapedName)}function sk(e,t){return"__#".concat(Ta(e),"@").concat(t)}function lk(e){return po(e.escapedName,"__@")}function toe(e){return po(e.escapedName,"__#")}function aTe(e){return e.kind===80&&e.escapedText==="Symbol"}function noe(e){return je(e)?Tr(e)==="__proto__":Ma(e)&&e.text==="__proto__"}function kN(e,t){switch(e=ec(e),e.kind){case 231:if(mJ(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function oU(e){switch(e.kind){case 303:return!noe(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return je(e.name)&&!!e.initializer;case 169:return je(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return je(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return je(e.left)}break;case 277:return!0}return!1}function vp(e,t){if(!oU(e))return!1;switch(e.kind){case 303:return kN(e.initializer,t);case 304:return kN(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return kN(e.initializer,t);case 226:return kN(e.right,t);case 277:return kN(e.expression,t)}}function aU(e){return e.escapedText==="push"||e.escapedText==="unshift"}function JE(e){return N_(e).kind===169}function N_(e){for(;e.kind===208;)e=e.parent.parent;return e}function sU(e){const t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Ys(e){return t_(e.pos)||t_(e.end)}function sTe(e){return Do(e,Zi)||e}function lU(e){const t=uU(e),r=e.kind===214&&e.arguments!==void 0;return cU(e.kind,t,r)}function cU(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){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 wN(e){const t=uU(e),r=e.kind===214&&e.arguments!==void 0;return ck(e.kind,t,r)}function uU(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function ck(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){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 uk(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function uk(e){switch(e){case 61:return 4;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 RR(e){return rr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function DR(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(p){let h;if(p.file?h=r.get(p.file.fileName):h=e,!h)return;const f=Nv(h,p,tl,V3);if(f>=0)return h[f]}function s(p){let h;p.file?(h=r.get(p.file.fileName),h||(h=[],r.set(p.file.fileName,h),xy(t,p.file.fileName,Uu))):(i&&(i=!1,e=e.slice()),h=e),xy(h,p,V3)}function l(){return i=!0,e}function u(p){if(p)return r.get(p)||[];const h=sc(t,f=>r.get(f));return e.length&&h.unshift(...e),h}}function dU(e){return e.replace(LTe,"\\${")}function roe(e){return!!((e.templateFlags||0)&2048)}function pU(e){return e&&!!(rI(e)?roe(e):roe(e.head)||St(e.templateSpans,t=>roe(t.literal)))}function lTe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function tGe(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return WTe.get(e)||lTe(e.charCodeAt(0))}function lg(e,t){const r=t===96?OTe:t===39?wTe:kTe;return e.replace(r,tGe)}function dk(e,t){return e=lg(e,t),fae.test(e)?e.replace(fae,r=>lTe(r.charCodeAt(0))):e}function nGe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function rGe(e){return e.charCodeAt(0)===0?"�":BTe.get(e)||nGe(e.charCodeAt(0))}function fU(e,t){const r=t===39?zTe:FTe;return e.replace(r,rGe)}function am(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&iGe(e.charCodeAt(0))?e.substring(1,t-1):e}function iGe(e){return e===39||e===34||e===96}function CR(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function S3(e){const t=cP[1];for(let r=cP.length;r<=e;r++)cP.push(cP[r-1]+t);return cP[e]}function NR(){return cP[1].length}function pk(e){var t,r,i,o,s,l=!1;function u(N){const O=DA(N);O.length>1?(o=o+O.length-1,s=t.length-N.length+es(O),i=s-t.length===0):i=!1}function p(N){N&&N.length&&(i&&(N=S3(r)+N,i=!1),t+=N,u(N))}function h(N){N&&(l=!1),p(N)}function f(N){N&&(l=!0),p(N)}function b(){t="",r=0,i=!0,o=0,s=0,l=!1}function A(N){N!==void 0&&(t+=N,u(N),l=!1)}function I(N){N&&N.length&&h(N)}function R(N){(!i||N)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function M(){return i?t.length:t.length+e.length}return b(),{write:h,rawWrite:A,writeLiteral:I,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*NR():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Fg(t.charCodeAt(t.length-1)),clear:b,writeKeyword:h,writeOperator:h,writeParameter:h,writeProperty:h,writePunctuation:h,writeSpace:h,writeStringLiteral:h,writeSymbol:(N,O)=>h(N),writeTrailingSemicolon:h,writeComment:f,getTextPosWithWriteLine:M}}function mU(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,o){r(),e.writeSymbol(i,o)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function PR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Vv(e){return Mu(PR(e))}function T3(e,t,r){return t.moduleName||_U(e,t.fileName,r&&r.fileName)}function cTe(e,t){return e.getCanonicalFileName(yo(t,e.getCurrentDirectory()))}function ioe(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=bR(r);if(!(o&&ds(o)&&!Wp(o.text)&&!cTe(e,i.path).includes(cTe(e,Vc(e.getCommonSourceDirectory())))))return T3(e,i)}function _U(e,t,r){const i=p=>e.getCanonicalFileName(p),o=il(r?ri(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=yo(t,e.getCurrentDirectory()),l=RA(o,s,o,i,!1),u=Ad(l);return r?ME(u):u}function ooe(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=Ad(R3(e,t,i.outDir)):o=Ad(e),o+r}function aoe(e,t){return A3(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function A3(e,t,r,i,o){const s=t.declarationDir||t.outDir,l=s?D3(e,s,r,i,o):e,u=I3(l);return Ad(l)+u}function I3(e){return Ic(e,[".mjs",".mts"])?".d.mts":Ic(e,[".cjs",".cts"])?".d.cts":Ic(e,[".json"])?".d.json.ts":".d.ts"}function soe(e){return Ic(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Ic(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Ic(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Os(e){return e.outFile||e.out}function x3(e,t){var i;var r;if(e.paths)return(i=e.baseUrl)!=null?i:C.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function hU(e,t,r){const i=e.getCompilerOptions();if(Os(i)){const o=wu(i),s=i.emitDeclarationOnly||o===2||o===4;return rr(e.getSourceFiles(),l=>(s||!dc(l))&&MS(l,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return rr(o,s=>MS(s,e,r))}}function MS(e,t,r){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&dd(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!rm(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(Os(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){const o=yo($P(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=D3(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Og(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function R3(e,t,r){return D3(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function D3(e,t,r,i,o){let s=yo(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Yr(t,s)}function ON(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add(Jl(m.Could_not_write_file_0_Colon_1,r,u))},s,l)}function uTe(e,t,r){if(e.length>mh(e)&&!r(e)){const i=ri(e);uTe(i,t,r),t(e)}}function gU(e,t,r,i,o,s){try{i(e,t,r)}catch(l){uTe(ri(ha(e)),o,s),i(e,t,r)}}function WN(e,t){const r=Wg(e);return iN(r,t)}function LS(e,t){return iN(e,t)}function cg(e){return Tn(e.members,t=>Ll(t)&&tm(t.body))}function FN(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&XE(e.parameters[0]);return e.parameters[t?1:0]}}function loe(e){const t=FN(e);return t&&t.type}function KE(e){if(e.parameters.length&&!N0(e)){const t=e.parameters[0];if(XE(t))return t}}function XE(e){return YE(e.name)}function YE(e){return!!e&&e.kind===80&&vU(e)}function kS(e){return!!zn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function VA(e){if(!YE(e))return!1;for(;Id(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function vU(e){return e.escapedText==="this"}function wS(e,t){let r,i,o,s;return jy(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:C.fail("Accessor has wrong kind")):He(e,l=>{if(Oy(l)&&aa(l)===aa(t)){const u=PS(l.name),p=PS(t.name);u===p&&(r?i||(i=l):r=l,l.kind===177&&!o&&(o=l),l.kind===178&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function bu(e){if(!sr(e)&&xc(e))return;const t=e.type;return t||!sr(e)?t:fN(e)?e.typeExpression&&e.typeExpression.type:m0(e)}function coe(e){return e.type}function sm(e){return N0(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(sr(e)?dL(e):void 0)}function C3(e){return Pi(_0(e),t=>oGe(t)?t.typeParameters:void 0)}function oGe(e){return pm(e)&&!(e.parent.kind===327&&(e.parent.tags.some(im)||e.parent.tags.some(eD)))}function uoe(e){const t=FN(e);return t&&bu(t)}function doe(e,t,r,i){poe(e,t,r.pos,i)}function poe(e,t,r,i){i&&i.length&&r!==i[0].pos&&LS(e,r)!==LS(e,i[0].pos)&&t.writeLine()}function foe(e,t,r,i){r!==i&&LS(e,r)!==LS(e,i)&&t.writeLine()}function moe(e,t,r,i,o,s,l,u){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(const h of i)p&&(r.writeSpace(" "),p=!1),u(e,t,r,h.pos,h.end,l),h.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function _oe(e,t,r,i,o,s,l){let u,p;if(l?o.pos===0&&(u=rr(Zh(e,o.pos),h)):u=Zh(e,o.pos),u){const f=[];let b;for(const A of u){if(b){const I=LS(t,b.end);if(LS(t,A.pos)>=I+2)break}f.push(A),b=A}if(f.length){const A=LS(t,es(f).end);LS(t,wa(e,o.pos))>=A+2&&(doe(t,r,o,u),moe(e,t,r,f,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:es(f).end})}}return p;function h(f){return j4(e,f.pos)}}function MR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const l=Xx(t,i),u=t.length;let p;for(let h=i,f=l.line;h<o;f++){const b=f+1===u?e.length+1:t[f+1];if(h!==i){p===void 0&&(p=dTe(e,t[l.line],i));const I=r.getIndent()*NR()-p+dTe(e,h,b);if(I>0){let R=I%NR();const M=S3((I-R)/NR());for(r.rawWrite(M);R;)r.rawWrite(" "),R--}else r.rawWrite("")}aGe(e,o,r,s,h,b),h=b}}else r.writeComment(e.substring(i,o))}function aGe(e,t,r,i,o,s){const l=Math.min(t,s-1),u=e.substring(o,l).trim();u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function dTe(e,t,r){let i=0;for(;t<r&&A_(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=NR()-i%NR():i++;return i}function N3(e){return pd(e)!==0}function hoe(e){return Uy(e)!==0}function yp(e,t){return!!jA(e,t)}function $r(e,t){return!!goe(e,t)}function aa(e){return Zc(e)&&vc(e)||Rl(e)}function vc(e){return $r(e,256)}function P3(e){return yp(e,16)}function $E(e){return $r(e,64)}function yU(e){return $r(e,128)}function P_(e){return $r(e,512)}function zN(e){return yp(e,8)}function If(e){return $r(e,32768)}function jA(e,t){return pd(e)&t}function goe(e,t){return Uy(e)&t}function voe(e,t,r){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=bU(e)|536870912),r||t&&sr(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=pTe(e)|268435456),fTe(e.modifierFlagsCache)):sGe(e.modifierFlagsCache))}function pd(e){return voe(e,!0)}function yoe(e){return voe(e,!0,!0)}function Uy(e){return voe(e,!1)}function pTe(e){let t=0;return e.parent&&!Io(e)&&(sr(e)&&(Lre(e)&&(t|=8388608),kre(e)&&(t|=16777216),wre(e)&&(t|=33554432),Ore(e)&&(t|=67108864),Wre(e)&&(t|=134217728)),Fre(e)&&(t|=65536)),t}function sGe(e){return e&65535}function fTe(e){return e&131071|(e&260046848)>>>23}function lGe(e){return fTe(pTe(e))}function boe(e){return bU(e)|lGe(e)}function bU(e){let t=km(e)?M_(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function M_(e){let t=0;if(e)for(const r of e)t|=UA(r.kind);return t}function UA(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 170:return 32768}return 0}function mTe(e){return e===57||e===56}function Eoe(e){return mTe(e)||e===54}function BN(e){return e===76||e===77||e===78}function EU(e){return mr(e)&&BN(e.operatorToken.kind)}function fk(e){return mTe(e)||e===61}function mk(e){return mr(e)&&fk(e.operatorToken.kind)}function jv(e){return e>=64&&e<=79}function SU(e){const t=TU(e);return t&&!t.isImplements?t.class:void 0}function TU(e){if(Xv(e)){if(of(e.parent)&&ui(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(vI(e.parent)){const t=E0(e.parent);if(t&&ui(t))return{class:t,isImplements:!1}}}}function wc(e,t){return mr(e)&&(t?e.operatorToken.kind===64:jv(e.operatorToken.kind))&&ep(e.left)}function _Te(e){return wc(e.parent)&&e.parent.left===e}function Uv(e){if(wc(e,!0)){const t=e.left.kind;return t===210||t===209}return!1}function M3(e){return SU(e)!==void 0}function jl(e){return e.kind===80||_k(e)}function Vp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function GN(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&GN(e.expression)||e.kind===217&&GN(e.expression)}function _k(e){return Fr(e)&&je(e.name)&&jl(e.expression)}function hk(e){if(Fr(e)){const t=hk(e.expression);if(t!==void 0)return t+"."+gp(e.name)}else if($s(e)){const t=hk(e.expression);if(t!==void 0&&cc(e.argumentExpression))return t+"."+PS(e.argumentExpression)}else{if(je(e))return ji(e.escapedText);if(r_(e))return lP(e)}}function Hy(e){return UE(e)&&Vg(e)==="prototype"}function VN(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function AU(e){return!!e.parent&&(Fr(e.parent)&&e.parent.name===e||$s(e.parent)&&e.parent.argumentExpression===e)}function Soe(e){return Id(e.parent)&&e.parent.right===e||Fr(e.parent)&&e.parent.name===e||C0(e.parent)&&e.parent.right===e}function L3(e){return mr(e)&&e.operatorToken.kind===104}function Toe(e){return L3(e.parent)&&e===e.parent.right}function IU(e){return e.kind===210&&e.properties.length===0}function Aoe(e){return e.kind===209&&e.elements.length===0}function LR(e){if(!(!cGe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function cGe(e){return e&&Le(e.declarations)>0&&$r(e.declarations[0],2048)}function k3(e){return Tn(HTe,t=>Il(e,t))}function uGe(e){const t=[],r=e.length;for(let i=0;i<r;i++){const o=e.charCodeAt(i);o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):C.assert(!1,"Unexpected code point")}return t}function Ioe(e){let t="";const r=uGe(e);let i=0;const o=r.length;let s,l,u,p;for(;i<o;)s=r[i]>>2,l=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,p=r[i+2]&63,i+1>=o?u=p=64:i+2>=o&&(p=64),t+=WS.charAt(s)+WS.charAt(l)+WS.charAt(u)+WS.charAt(p),i+=3;return t}function dGe(e){let t="",r=0;const i=e.length;for(;r<i;){const o=e[r];if(o<128)t+=String.fromCharCode(o),r++;else if((o&192)===192){let s=o&63;r++;let l=e[r];for(;(l&192)===128;)s=s<<6|l&63,r++,l=e[r];t+=String.fromCharCode(s)}else t+=String.fromCharCode(o),r++}return t}function xoe(e,t){return e&&e.base64encode?e.base64encode(t):Ioe(t)}function Roe(e,t){if(e&&e.base64decode)return e.base64decode(t);const r=t.length,i=[];let o=0;for(;o<r&&t.charCodeAt(o)!==WS.charCodeAt(64);){const s=WS.indexOf(t[o]),l=WS.indexOf(t[o+1]),u=WS.indexOf(t[o+2]),p=WS.indexOf(t[o+3]),h=(s&63)<<2|l>>4&3,f=(l&15)<<4|u>>2&15,b=(u&3)<<6|p&63;f===0&&u!==0?i.push(h):b===0&&p!==0?i.push(h,f):i.push(h,f,b),o+=4}return dGe(i)}function xU(e,t){const r=No(t)?t:t.readFile(e);if(!r)return;const i=_q(e,r);return i.error?void 0:i.config}function jN(e,t){return xU(e,t)||{}}function w3(e){try{return JSON.parse(e)}catch(t){return}}function Zm(e,t){return!t.directoryExists||t.directoryExists(e)}function Hv(e){switch(e.newLine){case 0:return GTe;case 1:case void 0:return VTe}}function xf(e,t=e){return C.assert(t>=e||t===-1),{pos:e,end:t}}function O3(e,t){return xf(e.pos,t)}function T0(e,t){return xf(t,e.end)}function Ug(e){const t=km(e)?ko(e.modifiers,Su):void 0;return t&&!t_(t.end)?T0(e,t.end):e}function L_(e){if(Uo(e)||Kl(e))return T0(e,e.name.pos);const t=km(e)?el(e.modifiers):void 0;return t&&!t_(t.end)?T0(e,t.end):Ug(e)}function hTe(e){return e.pos===e.end}function RU(e,t){return xf(e,e+pa(t).length)}function OS(e,t){return Coe(e,e,t)}function W3(e,t,r){return Rf(UN(e,r,!1),UN(t,r,!1),r)}function Doe(e,t,r){return Rf(e.end,t.end,r)}function Coe(e,t,r){return Rf(UN(e,r,!1),t.end,r)}function gk(e,t,r){return Rf(e.end,UN(t,r,!1),r)}function DU(e,t,r,i){const o=UN(t,r,i);return oN(r,e.end,o)}function gTe(e,t,r){return oN(r,e.end,t.end)}function Noe(e,t){return!Rf(e.pos,e.end,t)}function Rf(e,t,r){return oN(r,e,t)===0}function UN(e,t,r){return t_(e.pos)?-1:wa(t.text,e.pos,!1,r)}function Poe(e,t,r,i){const o=wa(r.text,e,!1,i),s=pGe(o,t,r);return oN(r,s!=null?s:t,o)}function Moe(e,t,r,i){const o=wa(r.text,e,!1,i);return oN(r,e,Math.min(t,o))}function pGe(e,t=0,r){for(;e-- >t;)if(!Fg(r.text.charCodeAt(e)))return e}function CU(e){const t=Do(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function HN(e){return rr(e.declarations,vk)}function vk(e){return ki(e)&&e.initializer!==void 0}function vTe(e){return e.watch&&Cs(e,"watch")}function e_(e){e.close()}function xl(e){return e.flags&33554432?e.links.checkFlags:0}function Df(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&Tn(e.declarations,Sp)||e.flags&32768&&Tn(e.declarations,rf)||e.valueDeclaration,i=d0(r);return e.parent&&e.parent.flags&32?i:i&-8}if(xl(e)&6){const r=e.links.checkFlags,i=r&1024?2:r&256?1:4,o=r&2048?256:0;return i|o}return e.flags&4194304?257:0}function Eu(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function kR(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function F3(e){return qN(e)===1}function HA(e){return qN(e)!==0}function qN(e){const{parent:t}=e;switch(t==null?void 0:t.kind){case 217:return qN(t);case 225:case 224:const{operator:r}=t;return r===46||r===47?2:0;case 226:const{left:i,operatorToken:o}=t;return i===e&&jv(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:qN(t);case 303:{const s=qN(t.parent);return e===t.name?fGe(s):s}case 304:return e===t.objectAssignmentInitializer?0:qN(t.parent);case 209:return qN(t);default:return 0}}function fGe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return C.assertNever(e)}}function NU(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(typeof e[r]=="object"){if(!NU(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function tp(e,t){e.forEach(t),e.clear()}function ug(e,t,r){const{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var u;t!=null&&t.has(l)?o&&o(s,(u=t.get)==null?void 0:u.call(t,l),l):(e.delete(l),i(s,l))})}function JN(e,t,r){ug(e,t,r);const{createNewValue:i}=r;t==null||t.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Loe(e){if(e.flags&32){const t=Hg(e);return!!t&&$r(t,64)}return!1}function Hg(e){var t;return(t=e.declarations)==null?void 0:t.find(ui)}function Wr(e){return e.flags&3899393?e.objectFlags:0}function yTe(e,t){return!!xm(e,r=>t(r)?!0:void 0)}function z3(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Zk(e.declarations[0])}function koe({moduleSpecifier:e}){return Ma(e)?e.text:gc(e)}function PU(e){let t;return Vo(e,r=>{tm(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(tm(r[i])){t=r[i];break}}),t}function Pm(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function qA(e){return ui(e)||hd(e)||Tp(e)}function MU(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function zs(e){return e.kind===211||e.kind===212}function LU(e){return e.kind===211?e.name:(C.assert(e.kind===212),e.argumentExpression)}function woe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function B3(e){return e.kind===275||e.kind===279}function wR(e){for(;zs(e);)e=e.expression;return e}function Ooe(e,t){if(zs(e.parent)&&AU(e))return r(e.parent);function r(i){if(i.kind===211){const o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(je(i.argumentExpression)||ds(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(zs(i.expression))return r(i.expression);if(je(i.expression))return t(i.expression)}}function OR(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function mGe(e,t){this.flags=e,this.escapedName=t,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 _Ge(e,t){this.flags=t,(C.isDebugging||ar)&&(this.checker=e)}function hGe(e,t){this.flags=t,C.isDebugging&&(this.checker=e)}function Woe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function gGe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function vGe(e,t,r){this.pos=t,this.end=r,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 yGe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function Foe(e){mae.push(e),e(uu)}function zoe(e){Object.assign(uu,e),He(mae,t=>t(uu))}function dg(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+C.checkDefined(t[+i]))}function Boe(e){fW=e}function Goe(e){!fW&&e&&(fW=e())}function wo(e){return fW&&fW[e.key]||e.message}function WR(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),xie(t,r,i);let l=wo(o);return St(s)&&(l=dg(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function bGe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function bTe(e,t){const r=t.fileName||"",i=t.text.length;C.assertEqual(e.fileName,r),C.assertLessThanOrEqual(e.start,i),C.assertLessThanOrEqual(e.start+e.length,i);const o={file:t,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 s of e.relatedInformation)bGe(s)&&s.fileName===r?(C.assertLessThanOrEqual(s.start,i),C.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(bTe(s,t))):o.relatedInformation.push(s)}return o}function JA(e,t){const r=[];for(const i of e)r.push(bTe(i,t));return r}function eu(e,t,r,i,...o){xie(e.text,t,r);let s=wo(i);return St(o)&&(s=dg(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function kU(e,...t){let r=wo(e);return St(t)&&(r=dg(r,t)),r}function Jl(e,...t){let r=wo(e);return St(t)&&(r=dg(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function G3(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Bo(e,t,...r){let i=wo(t);return St(r)&&(i=dg(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Voe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function ETe(e){return e.file?e.file.path:void 0}function KN(e,t){return V3(e,t)||EGe(e,t)||0}function V3(e,t){return Uu(ETe(e),ETe(t))||nl(e.start,t.start)||nl(e.length,t.length)||nl(e.code,t.code)||STe(e.messageText,t.messageText)||0}function EGe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?nl(e.relatedInformation.length,t.relatedInformation.length)||He(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return KN(r,o)})||0:e.relatedInformation?-1:1}function STe(e,t){if(typeof e=="string"&&typeof t=="string")return Uu(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Uu(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let o=0;o<i;o++)if(r=STe(e.next[o],t.next[o]),r)return r;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function yk(e){return e===4||e===2||e===1||e===6?1:0}function TTe(e){if(e.transformFlags&2)return ud(e)||c1(e)?e:Vo(e,TTe)}function SGe(e){return e.isDeclarationFile?void 0:TTe(e)}function TGe(e){return(e.impliedNodeFormat===99||Ic(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function bk(e){switch(iH(e)){case 3:return o=>{o.externalModuleIndicator=uw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=uw(o)};case 2:const t=[uw];(e.jsx===4||e.jsx===5)&&t.push(SGe),t.push(TGe);const r=Qm(...t);return o=>void(o.externalModuleIndicator=r(o))}}function e0t(e){return e}function j3(e){return e>=5&&e<=99}function U3(e){switch(wu(e)){case 0:case 4:case 3:return!1}return!0}function wU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function joe(e){return e.allowUnreachableCode===!1}function Uoe(e){return e.allowUnusedLabels===!1}function KA(e){return e>=3&&e<=99||e===100}function fd(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function Hoe(e){return e.useDefineForClassFields!==!1&&ls(e)>=9}function qoe(e,t){return aR(t,e,Aq)}function Joe(e,t){return aR(t,e,Iq)}function Koe(e,t){return aR(t,e,xq)}function H3(e,t){return t.strictFlag?fd(e,t.name):t.allowJsFlag?Xy(e):e[t.name]}function q3(e){const t=e.jsx;return t===2||t===4||t===5}function J3(e,t){const r=t==null?void 0:t.pragmas.get("jsximportsource"),i=Ao(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function K3(e,t){return e?"".concat(e,"/").concat(t.jsx===5?"jsx-dev-runtime":"jsx-runtime"):void 0}function OU(e){let t=!1;for(let r=0;r<e.length;r++)if(e.charCodeAt(r)===42)if(!t)t=!0;else return!1;return!0}function WU(e,t){let r,i,o,s=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,p)=>(o||(o=new Map)).set(u,p),setSymlinkedDirectory:(u,p)=>{let h=il(u,e,t);rP(h)||(h=Vc(h),p!==!1&&!(r!=null&&r.has(h))&&(i||(i=Zp())).add(p.realPath,u),(r||(r=new Map)).set(h,p))},setSymlinksFromResolutions(u,p,h){C.assert(!s),s=!0,u(f=>l(this,f.resolvedModule)),p(f=>l(this,f.resolvedTypeReferenceDirective)),h.forEach(f=>l(this,f.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(u,p){if(!p||!p.originalPath||!p.resolvedFileName)return;const{resolvedFileName:h,originalPath:f}=p;u.setSymlinkedFile(il(f,e,t),h);const[b,A]=AGe(h,f,e,t)||et;b&&A&&u.setSymlinkedDirectory(A,{real:Vc(b),realPath:Vc(il(b,e,t))})}}function AGe(e,t,r,i){const o=Gc(yo(e,r)),s=Gc(yo(t,r));let l=!1;for(;o.length>=2&&s.length>=2&&!ATe(o[o.length-2],i)&&!ATe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Ny(o),Ny(s)]:void 0}function ATe(e,t){return e!==void 0&&(t(e)==="node_modules"||po(e,"@"))}function IGe(e){return WV(e.charCodeAt(0))?e.slice(1):void 0}function FU(e,t,r){const i=IG(e,t,r);return i===void 0?void 0:IGe(i)}function ITe(e){return e.replace(oH,xGe)}function xGe(e){return"\\"+e}function XN(e,t,r){const i=X3(e,t,r);if(!i||!i.length)return;const o=i.map(l=>"(".concat(l,")")).join("|"),s=r==="exclude"?"($|/)":"$";return"^(".concat(o,")").concat(s)}function X3(e,t,r){if(!(e===void 0||e.length===0))return Pi(e,i=>i&&Y3(i,t,r,lH[r]))}function zU(e){return!/[.*?]/.test(e)}function Xoe(e,t,r){const i=e&&Y3(e,t,r,lH[r]);return i&&"^(".concat(i,")").concat(r==="exclude"?"($|/)":"$")}function Y3(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=lH[r]){let l="",u=!1;const p=YM(e,t),h=es(p);if(r!=="exclude"&&h==="**")return;p[0]=s0(p[0]),zU(h)&&p.push("**","*");let f=0;for(let b of p){if(b==="**")l+=o;else if(r==="directories"&&(l+="(",f++),u&&(l+=ol),r!=="exclude"){let A="";b.charCodeAt(0)===42?(A+="([^./]"+i+")?",b=b.substr(1)):b.charCodeAt(0)===63&&(A+="[^./]",b=b.substr(1)),A+=b.replace(oH,s),A!==b&&(l+=sH),l+=A}else l+=b.replace(oH,s);u=!0}for(;f>0;)l+=")?",f--;return l}function Yoe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function $3(e,t,r,i,o){e=ha(e),o=ha(o);const s=Yr(o,e);return{includeFilePatterns:Ot(X3(r,s,"files"),l=>"^".concat(l,"$")),includeFilePattern:XN(r,s,"files"),includeDirectoryPattern:XN(r,s,"directories"),excludePattern:XN(t,s,"exclude"),basePaths:RGe(e,r,i)}}function qy(e,t){return new RegExp(e,t?"":"i")}function BU(e,t,r,i,o,s,l,u,p){e=ha(e),s=ha(s);const h=$3(e,r,i,o,s),f=h.includeFilePatterns&&h.includeFilePatterns.map(O=>qy(O,o)),b=h.includeDirectoryPattern&&qy(h.includeDirectoryPattern,o),A=h.excludePattern&&qy(h.excludePattern,o),I=f?f.map(()=>[]):[[]],R=new Map,M=Mu(o);for(const O of h.basePaths)N(O,Yr(s,O),l);return ra(I);function N(O,U,K){const ee=M(p(U));if(R.has(ee))return;R.set(ee,!0);const{files:V,directories:se}=u(O);for(const G of uS(V,Uu)){const re=Yr(O,G),_e=Yr(U,G);if(!(t&&!Ic(re,t))&&!(A&&A.test(_e)))if(!f)I[0].push(re);else{const ye=Br(f,Q=>Q.test(_e));ye!==-1&&I[ye].push(re)}}if(!(K!==void 0&&(K--,K===0)))for(const G of uS(se,Uu)){const re=Yr(O,G),_e=Yr(U,G);(!b||b.test(_e))&&(!A||!A.test(_e))&&N(re,_e,K)}}}function RGe(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const l=_p(s)?s:ha(Yr(e,s));o.push(DGe(l))}o.sort(Bx(!r));for(const s of o)Yn(i,l=>!Am(l,s,e,!r))&&i.push(s)}return i}function DGe(e){const t=Ac(e,jTe);return t<0?xA(e)?s0(ri(e)):e:e.substring(0,e.lastIndexOf(ol,t))}function Q3(e,t){return t||Z3(e)||3}function Z3(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}}function YN(e,t){const r=e&&Xy(e);if(!t||t.length===0)return r?hW:VR;const i=r?hW:VR,o=ra(i);return[...i,...Hi(t,l=>l.scriptKind===7||r&&CGe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function Ek(e,t){return!e||!x0(e)?t:t===hW?qTe:t===VR?UTe:[...t,[".json"]]}function CGe(e){return e===1||e===2}function QE(e){return St(jR,t=>Il(e,t))}function XA(e){return St(cH,t=>Il(e,t))}function $oe({imports:e},t=Qm(QE,XA)){return qt(e,({text:r})=>Wp(r)&&!Ic(r,kk)?t(r):void 0)||!1}function Qoe(e,t,r,i){const o=md(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return mD(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!mD(r))return $oe(i)?2:0;return l();function l(){let u=!1;const p=i.imports.length?i.imports:dd(i)?NGe(i).map(h=>h.arguments[0]):et;for(const h of p)if(Wp(h.text)){if(s&&t===1&&BJ(i,h,r)===99||Ic(h.text,kk))continue;if(XA(h.text))return 3;QE(h.text)&&(u=!0)}return u?2:0}}function NGe(e){let t=0,r;for(const i of e.statements){if(t>3)break;Uj(i)?r=To(r,i.declarationList.declarations.map(o=>o.initializer)):nu(i)&&Td(i.expression,!0)?r=Rn(r,i.expression):t++}return r||et}function Zoe(e,t,r){if(!e)return!1;const i=YN(t,r);for(const o of ra(Ek(t,i)))if(Il(e,o))return!0;return!1}function xTe(e){const t=e.match(/\//g);return t?t.length:0}function Sk(e,t){return nl(xTe(e),xTe(t))}function Ad(e){for(const t of pH){const r=eae(e,t);if(r!==void 0)return r}return e}function eae(e,t){return Il(e,t)?Tk(e,t):void 0}function Tk(e,t){return e.substring(0,e.length-t.length)}function A0(e,t){return $M(e,t,pH,!1)}function FR(e){const t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function eW(e){return Hi(Qh(e),t=>FR(t))}function t_(e){return!(e>=0)}function tW(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||po(e,".d.")&&Al(e,".ts")}function $N(e){return tW(e)||e===".json"}function QN(e){const t=qg(e);return t!==void 0?t:C.fail("File ".concat(e," has unknown extension."))}function RTe(e){return qg(e)!==void 0}function qg(e){return Tn(pH,t=>Il(e,t))}function Ak(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function GU(e,t){const r=[];for(const i of e){if(i===t)return t;No(i)||r.push(i)}return AG(r,i=>i,t)}function VU(e,t){const r=e.indexOf(t);return C.assert(r!==-1),e.slice(r)}function Oa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),C.assert(e.relatedInformation!==et,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function tae(e,t){C.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;o<e.length;o++){const s=t(e[o]);s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function jU(e){return{pos:g0(e),end:e.end}}function UU(e,t){const r=t.pos-1,i=Math.min(e.text.length,wa(e.text,t.end)+1);return{pos:r,end:i}}function ZN(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function nW(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&Mne(e,t,nW)}function eP(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const h=e.length-1;let f=0;for(;e.charCodeAt(f)===48;)f++;return e.slice(f,h)||"0"}const r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let h=i-1,f=0;h>=r;h--,f+=t){const b=f>>>4,A=e.charCodeAt(h),R=(A<=57?A-48:10+A-(A<=70?65:97))<<(f&15);s[b]|=R;const M=R>>>16;M&&(s[b+1]|=M)}let l="",u=s.length-1,p=!0;for(;p;){let h=0;p=!1;for(let f=u;f>=0;f--){const b=h<<16|s[f],A=b/10|0;s[f]=A,h=b-A*10,A&&!p&&(u=f,p=!0)}l=h+l}return l}function ZE({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function nae(e){if(rW(e,!1))return HU(e)}function HU(e){const t=e.startsWith("-"),r=eP("".concat(t?e.slice(1):e,"n"));return{negative:t,base10Value:r}}function rW(e,t){if(e==="")return!1;const r=Ov(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan();const s=o===41;s&&(o=r.scan());const l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===ZE({negative:s,base10Value:eP(r.getTokenValue())}))}function I0(e){return!!(e.flags&33554432)||l3(e)||LGe(e)||MGe(e)||!(og(e)||PGe(e))}function PGe(e){return je(e)&&rp(e.parent)&&e.parent.name===e}function MGe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if($r(e.parent,64))return!0;const t=e.parent.parent.kind;return t===264||t===187}function LGe(e){if(e.kind!==80)return!1;const t=zn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===264}function rae(e){return Nf(e)&&je(e.typeName)}function iae(e,t=Lv){if(e.length<2)return!0;const r=e[0];for(let i=1,o=e.length;i<o;i++){const s=e[i];if(!t(r,s))return!1}return!0}function tP(e,t){return e.pos=t,e}function zR(e,t){return e.end=t,e}function bh(e,t,r){return zR(tP(e,t),r)}function nP(e,t,r){return bh(e,t,t+r)}function oae(e,t){return e&&(e.flags=t),e}function Ya(e,t){return e&&t&&(e.parent=t),e}function BR(e,t){if(e)for(const r of e)Ya(r,t);return e}function Jy(e,t){if(!e)return e;return NP(e,iR(e)?r:o),e;function r(s,l){if(t&&s.parent===l)return"skip";Ya(s,l)}function i(s){if(Fp(s))for(const l of s.jsDoc)r(l,s),NP(l,r)}function o(s,l){return r(s,l)||i(s)}}function kGe(e){return!Hc(e)}function qU(e){return _d(e)&&Yn(e.elements,kGe)}function aae(e){for(C.assertIsDefined(e.parent);;){const t=e.parent;if(Gd(t)){e=t;continue}if(nu(t)||pI(t)||HS(t)&&(t.initializer===e||t.incrementor===e))return!0;if(yP(t)){if(e!==es(t.elements))return!0;e=t;continue}if(mr(t)&&t.operatorToken.kind===28){if(e===t.left)return!0;e=t;continue}return!1}}function rP(e){return St(XM,t=>e.includes(t))}function sae(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:i}=e;return QS(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(oR(e))return XS(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return yS(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Ui(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return AL(e)?t.children:void 0;case 286:case 285:return Ui(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return Zc(e)?t.members:void 0;case 266:return p1(e)?t.members:void 0;case 312:return t.statements}}function iW(e){if(!e.typeParameters){if(St(e.parameters,t=>!bu(t)))return!0;if(e.kind!==219){const t=$c(e.parameters);if(!(t&&XE(t)))return!0}}return!1}function iP(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function lae(e){return e.kind===260&&e.parent.kind===299}function e1(e){return e.kind===218||e.kind===219}function t1(e){return e.replace(/\$/gm,()=>"\\$")}function pg(e){return(+e).toString()===e}function oW(e,t,r,i,o){const s=o&&e==="new";return!s&&tf(e,t)?w.createIdentifier(e):!i&&!s&&pg(e)&&+e>=0?w.createNumericLiteral(+e):w.createStringLiteral(e,!!r)}function oP(e){return!!(e.flags&262144&&e.isThisType)}function aW(e){let t=0,r=0,i=0,o=0,s;(h=>{h[h.BeforeNodeModules=0]="BeforeNodeModules",h[h.NodeModules=1]="NodeModules",h[h.Scope=2]="Scope",h[h.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,u=0,p=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),p){case 0:e.indexOf(Dh,l)===l&&(t=l,r=u,p=1);break;case 1:case 2:p===1&&e.charAt(l+1)==="@"?p=2:(i=u,p=3);break;case 3:e.indexOf(Dh,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function DTe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function GR(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function Ik(e){return D0(e)||kl(e)||xc(e)||Rc(e)||hd(e)||GR(e)||Ql(e)&&!zE(e)&&!R_(e)}function xk(e){if(!fN(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function JU(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&eg(e.charCodeAt(1),t):eg(r,t)}function cae(e){var t;return((t=EH(e))==null?void 0:t.kind)===0}function Rk(e){return sr(e)&&(e.type&&e.type.kind===323||Zx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function aP(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||Rk(e);case 355:case 348:return xk(e);default:return!1}}function uae(e){const t=e.kind;return(t===211||t===212)&&fI(e.expression)}function KU(e){return sr(e)&&Gd(e)&&Fp(e)&&!!ZV(e)}function XU(e){return C.checkDefined(sW(e))}function sW(e){const t=ZV(e);return t&&t.typeExpression&&t.typeExpression.type}function sP(e){return je(e)?e.escapedText:YA(e)}function Dk(e){return je(e)?Tr(e):lP(e)}function dae(e){const t=e.kind;return t===80||t===295}function YA(e){return"".concat(e.namespace.escapedText,":").concat(Tr(e.name))}function lP(e){return"".concat(Tr(e.namespace),":").concat(Tr(e.name))}function YU(e){return je(e)?Tr(e):lP(e)}function lm(e){return!!(e.flags&8576)}function cm(e){return e.flags&8192?e.escapedName:e.flags&384?hl(""+e.value):C.fail()}function lW(e){return!!e&&(Fr(e)||$s(e)||mr(e))}function pae(e){return e===void 0?!1:!!gD(e.attributes)}function $A(e,t){return JTe.call(e,"*",t)}function cW(e){return je(e.name)?e.name.escapedText:hl(e.name.text)}var uW,Ky,Ck,dW,Nk,pW,$U,QU,CTe,NTe,ZU,PTe,MTe,eH,tH,nH,rH,LTe,kTe,wTe,OTe,WTe,fae,FTe,zTe,BTe,cP,WS,GTe,VTe,uu,mae,fW,yc,ls,wu,md,iH,um,Eh,FS,mW,_W,x0,Cf,n1,uP,Pk,Xy,dP,oH,jTe,aH,sH,_ae,hae,gae,lH,VR,cH,UTe,HTe,uH,jR,hW,qTe,Mk,Lk,kk,dH,pH,gW,JTe,wGe=T({"src/compiler/utilities.ts"(){ta(),uW=[],Ky="tslib",Ck=160,dW=1e6,Nk=FBe(),pW=Sd(()=>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"]})),Iterator:new Map(Object.entries({es2015:et})),AsyncIterator:new Map(Object.entries({es2015:et})),Atomics:new Map(Object.entries({es2017:et})),SharedArrayBuffer:new Map(Object.entries({es2017:et})),AsyncIterable:new Map(Object.entries({es2018:et})),AsyncIterableIterator:new Map(Object.entries({es2018:et})),AsyncGenerator:new Map(Object.entries({es2018:et})),AsyncGeneratorFunction:new Map(Object.entries({es2018:et})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),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"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),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"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),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"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:et,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"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:et})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),$U=(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))($U||{}),QU=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,CTe=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,NTe=/^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,ZU=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,PTe=/^\/\/\/\s*<amd-module\s+.*?\/>/,MTe=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,eH=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(eH||{}),tH=(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))(tH||{}),nH=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(nH||{}),rH=(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.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",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))(rH||{}),LTe=/\$\{/g,kTe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,wTe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,OTe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,WTe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","
":"\\u0085","\r\n":"\\r\\n"})),fae=/[^\u0000-\u007F]/g,FTe=/["\u0000-\u001f\u2028\u2029\u0085]/g,zTe=/['\u0000-\u001f\u2028\u2029\u0085]/g,BTe=new Map(Object.entries({'"':""","'":"'"})),cP=[""," "],WS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",GTe="\r\n",VTe="\n",uu={getNodeConstructor:()=>Woe,getTokenConstructor:()=>gGe,getIdentifierConstructor:()=>vGe,getPrivateIdentifierConstructor:()=>Woe,getSourceFileConstructor:()=>Woe,getSymbolConstructor:()=>mGe,getTypeConstructor:()=>_Ge,getSignatureConstructor:()=>hGe,getSourceMapSourceConstructor:()=>yGe},mae=[],yc={target:{dependencies:["module"],computeValue:e=>{var t;return(t=e.target)!=null?t:e.module===100&&9||e.module===199&&99||1}},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:yc.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(yc.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(yc.module.computeValue(e)===100||yc.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(yc.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:yc.esModuleInterop.computeValue(e)||yc.module.computeValue(e)===4||yc.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=yc.moduleResolution.computeValue(e);if(!KA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=yc.moduleResolution.computeValue(e);if(!KA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:yc.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||yc.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&yc.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?yc.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>fd(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>fd(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>fd(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>fd(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>fd(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>fd(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>fd(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>fd(e,"useUnknownInCatchVariables")}},ls=yc.target.computeValue,wu=yc.module.computeValue,md=yc.moduleResolution.computeValue,iH=yc.moduleDetection.computeValue,um=yc.isolatedModules.computeValue,Eh=yc.esModuleInterop.computeValue,FS=yc.allowSyntheticDefaultImports.computeValue,mW=yc.resolvePackageJsonExports.computeValue,_W=yc.resolvePackageJsonImports.computeValue,x0=yc.resolveJsonModule.computeValue,Cf=yc.declaration.computeValue,n1=yc.preserveConstEnums.computeValue,uP=yc.incremental.computeValue,Pk=yc.declarationMap.computeValue,Xy=yc.allowJs.computeValue,dP=yc.useDefineForClassFields.computeValue,oH=/[^\w\s/]/g,jTe=[42,63],aH=["node_modules","bower_components","jspm_packages"],sH="(?!(".concat(aH.join("|"),")(/|$))"),_ae={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(sH,"[^/.][^/]*)*?"),replaceWildcardCharacter:e=>Yoe(e,_ae.singleAsteriskRegexFragment)},hae={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(sH,"[^/.][^/]*)*?"),replaceWildcardCharacter:e=>Yoe(e,hae.singleAsteriskRegexFragment)},gae={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Yoe(e,gae.singleAsteriskRegexFragment)},lH={files:_ae,directories:hae,exclude:gae},VR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],cH=ra(VR),UTe=[...VR,[".json"]],HTe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],uH=[[".js",".jsx"],[".mjs"],[".cjs"]],jR=ra(uH),hW=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],qTe=[...hW,[".json"]],Mk=[".d.ts",".d.cts",".d.mts"],Lk=[".ts",".cts",".mts",".tsx"],kk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],dH=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(dH||{}),pH=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],gW={files:et,directories:et},JTe=String.prototype.replace}});function vae(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:p,createBaseNode:h};function s(f){return new(o||(o=uu.getSourceFileConstructor()))(f,-1,-1)}function l(f){return new(r||(r=uu.getIdentifierConstructor()))(f,-1,-1)}function u(f){return new(i||(i=uu.getPrivateIdentifierConstructor()))(f,-1,-1)}function p(f){return new(t||(t=uu.getTokenConstructor()))(f,-1,-1)}function h(f){return new(e||(e=uu.getNodeConstructor()))(f,-1,-1)}}var OGe=T({"src/compiler/factory/baseNodeFactory.ts"(){ta()}});function yae(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:f,parenthesizeExpressionOfComputedPropertyName:b,parenthesizeConditionOfConditionalExpression:A,parenthesizeBranchOfConditionalExpression:I,parenthesizeExpressionOfExportDefault:R,parenthesizeExpressionOfNew:M,parenthesizeLeftSideOfAccess:N,parenthesizeOperandOfPostfixUnary:O,parenthesizeOperandOfPrefixUnary:U,parenthesizeExpressionsOfCommaDelimitedList:K,parenthesizeExpressionForDisallowedComma:ee,parenthesizeExpressionOfExpressionStatement:V,parenthesizeConciseBodyOfArrowFunction:se,parenthesizeCheckTypeOfConditionalType:G,parenthesizeExtendsTypeOfConditionalType:re,parenthesizeConstituentTypesOfUnionType:ye,parenthesizeConstituentTypeOfUnionType:_e,parenthesizeConstituentTypesOfIntersectionType:Y,parenthesizeConstituentTypeOfIntersectionType:Q,parenthesizeOperandOfTypeOperator:oe,parenthesizeOperandOfReadonlyTypeOperator:he,parenthesizeNonArrayTypeOfPostfixType:Ae,parenthesizeElementTypesOfTupleType:de,parenthesizeElementTypeOfTupleType:ie,parenthesizeTypeOfOptionalType:Ne,parenthesizeTypeArguments:Me,parenthesizeLeadingTypeArgument:qe};function i(Ce){t||(t=new Map);let Oe=t.get(Ce);return Oe||(Oe=At=>h(Ce,At),t.set(Ce,Oe)),Oe}function o(Ce){r||(r=new Map);let Oe=r.get(Ce);return Oe||(Oe=At=>f(Ce,void 0,At),r.set(Ce,Oe)),Oe}function s(Ce,Oe,At,be){const Ue=ck(226,Ce),it=cU(226,Ce),Ft=Rm(Oe);if(!At&&Oe.kind===219&&Ue>3)return!0;const gt=wN(Ft);switch(nl(gt,Ue)){case-1:return!(!At&&it===1&&Oe.kind===229);case 1:return!1;case 0:if(At)return it===1;if(mr(Ft)&&Ft.operatorToken.kind===Ce){if(l(Ce))return!1;if(Ce===40){const It=be?u(be):0;if(mN(It)&&It===u(Ft))return!1}}return lU(Ft)===0}}function l(Ce){return Ce===42||Ce===52||Ce===51||Ce===53||Ce===28}function u(Ce){if(Ce=Rm(Ce),mN(Ce.kind))return Ce.kind;if(Ce.kind===226&&Ce.operatorToken.kind===40){if(Ce.cachedLiteralKind!==void 0)return Ce.cachedLiteralKind;const Oe=u(Ce.left),At=mN(Oe)&&Oe===u(Ce.right)?Oe:0;return Ce.cachedLiteralKind=At,At}return 0}function p(Ce,Oe,At,be){return Rm(Oe).kind===217?Oe:s(Ce,Oe,At,be)?e.createParenthesizedExpression(Oe):Oe}function h(Ce,Oe){return p(Ce,Oe,!0)}function f(Ce,Oe,At){return p(Ce,At,!1,Oe)}function b(Ce){return RP(Ce)?e.createParenthesizedExpression(Ce):Ce}function A(Ce){const Oe=ck(227,58),At=Rm(Ce),be=wN(At);return nl(be,Oe)!==1?e.createParenthesizedExpression(Ce):Ce}function I(Ce){const Oe=Rm(Ce);return RP(Oe)?e.createParenthesizedExpression(Ce):Ce}function R(Ce){const Oe=Rm(Ce);let At=RP(Oe);if(!At)switch(OR(Oe,!1).kind){case 231:case 218:At=!0}return At?e.createParenthesizedExpression(Ce):Ce}function M(Ce){const Oe=OR(Ce,!0);switch(Oe.kind){case 213:return e.createParenthesizedExpression(Ce);case 214:return Oe.arguments?Ce:e.createParenthesizedExpression(Ce)}return N(Ce)}function N(Ce,Oe){const At=Rm(Ce);return ep(At)&&(At.kind!==214||At.arguments)&&(Oe||!qu(At))?Ce:ut(e.createParenthesizedExpression(Ce),Ce)}function O(Ce){return ep(Ce)?Ce:ut(e.createParenthesizedExpression(Ce),Ce)}function U(Ce){return pj(Ce)?Ce:ut(e.createParenthesizedExpression(Ce),Ce)}function K(Ce){const Oe=no(Ce,ee);return ut(e.createNodeArray(Oe,Ce.hasTrailingComma),Ce)}function ee(Ce){const Oe=Rm(Ce),At=wN(Oe),be=ck(226,28);return At>be?Ce:ut(e.createParenthesizedExpression(Ce),Ce)}function V(Ce){const Oe=Rm(Ce);if(sa(Oe)){const be=Oe.expression,Ue=Rm(be).kind;if(Ue===218||Ue===219){const it=e.updateCallExpression(Oe,ut(e.createParenthesizedExpression(be),be),Oe.typeArguments,Oe.arguments);return e.restoreOuterExpressions(Ce,it,8)}}const At=OR(Oe,!1).kind;return At===210||At===218?ut(e.createParenthesizedExpression(Ce),Ce):Ce}function se(Ce){return!Jo(Ce)&&(RP(Ce)||OR(Ce,!1).kind===210)?ut(e.createParenthesizedExpression(Ce),Ce):Ce}function G(Ce){switch(Ce.kind){case 184:case 185:case 194:return e.createParenthesizedType(Ce)}return Ce}function re(Ce){switch(Ce.kind){case 194:return e.createParenthesizedType(Ce)}return Ce}function _e(Ce){switch(Ce.kind){case 192:case 193:return e.createParenthesizedType(Ce)}return G(Ce)}function ye(Ce){return e.createNodeArray(no(Ce,_e))}function Q(Ce){switch(Ce.kind){case 192:case 193:return e.createParenthesizedType(Ce)}return _e(Ce)}function Y(Ce){return e.createNodeArray(no(Ce,Q))}function oe(Ce){switch(Ce.kind){case 193:return e.createParenthesizedType(Ce)}return Q(Ce)}function he(Ce){switch(Ce.kind){case 198:return e.createParenthesizedType(Ce)}return oe(Ce)}function Ae(Ce){switch(Ce.kind){case 195:case 198:case 186:return e.createParenthesizedType(Ce)}return oe(Ce)}function de(Ce){return e.createNodeArray(no(Ce,ie))}function ie(Ce){return ge(Ce)?e.createParenthesizedType(Ce):Ce}function ge(Ce){return QR(Ce)?Ce.postfix:JR(Ce)||Th(Ce)||qR(Ce)||VS(Ce)?ge(Ce.type):dI(Ce)?ge(Ce.falseType):Qy(Ce)||uI(Ce)?ge(es(Ce.types)):BS(Ce)?!!Ce.typeParameter.constraint&&ge(Ce.typeParameter.constraint):!1}function Ne(Ce){return ge(Ce)?e.createParenthesizedType(Ce):Ae(Ce)}function qe(Ce){return Hre(Ce)&&Ce.typeParameters?e.createParenthesizedType(Ce):Ce}function Ee(Ce,Oe){return Oe===0?qe(Ce):Ce}function Me(Ce){if(St(Ce))return e.createNodeArray(no(Ce,Ee))}}var fH,WGe=T({"src/compiler/factory/parenthesizerRules.ts"(){ta(),fH={getParenthesizeLeftSideOfBinaryForOperator:e=>tl,getParenthesizeRightSideOfBinaryForOperator:e=>tl,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:tl,parenthesizeConditionOfConditionalExpression:tl,parenthesizeBranchOfConditionalExpression:tl,parenthesizeExpressionOfExportDefault:tl,parenthesizeExpressionOfNew:e=>oa(e,ep),parenthesizeLeftSideOfAccess:e=>oa(e,ep),parenthesizeOperandOfPostfixUnary:e=>oa(e,ep),parenthesizeOperandOfPrefixUnary:e=>oa(e,pj),parenthesizeExpressionsOfCommaDelimitedList:e=>oa(e,wE),parenthesizeExpressionForDisallowedComma:tl,parenthesizeExpressionOfExpressionStatement:tl,parenthesizeConciseBodyOfArrowFunction:tl,parenthesizeCheckTypeOfConditionalType:tl,parenthesizeExtendsTypeOfConditionalType:tl,parenthesizeConstituentTypesOfUnionType:e=>oa(e,wE),parenthesizeConstituentTypeOfUnionType:tl,parenthesizeConstituentTypesOfIntersectionType:e=>oa(e,wE),parenthesizeConstituentTypeOfIntersectionType:tl,parenthesizeOperandOfTypeOperator:tl,parenthesizeOperandOfReadonlyTypeOperator:tl,parenthesizeNonArrayTypeOfPostfixType:tl,parenthesizeElementTypesOfTupleType:e=>oa(e,wE),parenthesizeElementTypeOfTupleType:tl,parenthesizeTypeOfOptionalType:tl,parenthesizeTypeArguments:e=>e&&oa(e,wE),parenthesizeLeadingTypeArgument:tl}}});function bae(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:h};function t(f,b){if(Jo(f))return f;const A=e.createReturnStatement(f);ut(A,f);const I=e.createBlock([A],b);return ut(I,f),I}function r(f){var b;if(!f.body)return C.fail("Cannot convert a FunctionDeclaration without a body");const A=e.createFunctionExpression((b=kE(f))==null?void 0:b.filter(I=>!oI(I)&&!eF(I)),f.asteriskToken,f.name,f.typeParameters,f.parameters,f.type,f.body);return Pr(A,f),ut(A,f),pP(f)&&bW(A,!0),A}function i(f){var b;const A=e.createClassExpression((b=f.modifiers)==null?void 0:b.filter(I=>!oI(I)&&!eF(I)),f.name,f.typeParameters,f.heritageClauses,f.members);return Pr(A,f),ut(A,f),pP(f)&&bW(A,!0),A}function o(f){if(ns(f)){if(f.dotDotDotToken)return C.assertNode(f.name,je),Pr(ut(e.createSpreadElement(f.name),f),f);const b=h(f.name);return f.initializer?Pr(ut(e.createAssignment(b,f.initializer),f),f):b}return oa(f,bt)}function s(f){if(ns(f)){if(f.dotDotDotToken)return C.assertNode(f.name,je),Pr(ut(e.createSpreadAssignment(f.name),f),f);if(f.propertyName){const b=h(f.name);return Pr(ut(e.createPropertyAssignment(f.propertyName,f.initializer?e.createAssignment(b,f.initializer):b),f),f)}return C.assertNode(f.name,je),Pr(ut(e.createShorthandPropertyAssignment(f.name,f.initializer),f),f)}return oa(f,Bg)}function l(f){switch(f.kind){case 207:case 209:return p(f);case 206:case 210:return u(f)}}function u(f){return dm(f)?Pr(ut(e.createObjectLiteralExpression(Ot(f.elements,s)),f),f):oa(f,Wa)}function p(f){return i1(f)?Pr(ut(e.createArrayLiteralExpression(Ot(f.elements,o)),f),f):oa(f,_d)}function h(f){return Zo(f)?l(f):oa(f,bt)}}var mH,FGe=T({"src/compiler/factory/nodeConverters.ts"(){ta(),mH={convertToFunctionBlock:qo,convertToFunctionExpression:qo,convertToClassExpression:qo,convertToArrayAssignmentElement:qo,convertToObjectAssignmentElement:qo,convertToAssignmentPattern:qo,convertToObjectAssignmentPattern:qo,convertToArrayAssignmentPattern:qo,convertToAssignmentElementTarget:qo}}});function KTe(e){Sae.push(e)}function wk(e,t){const r=e&8?tl:Pr,i=Sd(()=>e&1?fH:yae(O)),o=Sd(()=>e&2?mH:bae(O)),s=ph(E=>(P,B)=>De(P,E,B)),l=ph(E=>P=>lt(E,P)),u=ph(E=>P=>Jt(P,E)),p=ph(E=>()=>sC(E)),h=ph(E=>P=>IT(E,P)),f=ph(E=>(P,B)=>L1(E,P,B)),b=ph(E=>(P,B)=>lC(E,P,B)),A=ph(E=>(P,B)=>Qs(E,P,B)),I=ph(E=>(P,B)=>tE(E,P,B)),R=ph(E=>(P,B,ce)=>Gf(E,P,B,ce)),M=ph(E=>(P,B,ce)=>Ab(E,P,B,ce)),N=ph(E=>(P,B,ce,$e)=>Ib(E,P,B,ce,$e)),O={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:U,createNumericLiteral:se,createBigIntLiteral:G,createStringLiteral:_e,createStringLiteralFromNode:ye,createRegularExpressionLiteral:Q,createLiteralLikeNode:Y,createIdentifier:Ae,createTempVariable:de,createLoopVariable:ie,createUniqueName:ge,getGeneratedNameForNode:Ne,createPrivateIdentifier:Ee,createUniquePrivateName:Ce,getGeneratedPrivateNameForNode:Oe,createToken:be,createSuper:Ue,createThis:it,createNull:Ft,createTrue:gt,createFalse:Qe,createModifier:It,createModifiersFromModifierFlags:on,createQualifiedName:$t,updateQualifiedName:Cn,createComputedPropertyName:Hn,updateComputedPropertyName:yn,createTypeParameterDeclaration:tn,updateTypeParameterDeclaration:en,createParameterDeclaration:gi,updateParameterDeclaration:ho,createDecorator:Gi,updateDecorator:xo,createPropertySignature:Qn,updatePropertySignature:Di,createPropertyDeclaration:Xt,updatePropertyDeclaration:nt,createMethodSignature:Bt,updateMethodSignature:Dn,createMethodDeclaration:oi,updateMethodDeclaration:yi,createConstructorDeclaration:An,updateConstructorDeclaration:wn,createGetAccessorDeclaration:mt,updateGetAccessorDeclaration:pt,createSetAccessorDeclaration:le,updateSetAccessorDeclaration:Fe,createCallSignature:j,updateCallSignature:ot,createConstructSignature:Dt,updateConstructSignature:Ye,createIndexSignature:_t,updateIndexSignature:Gt,createClassStaticBlockDeclaration:Ro,updateClassStaticBlockDeclaration:fa,createTemplateLiteralTypeSpan:gn,updateTemplateLiteralTypeSpan:hn,createKeywordTypeNode:dn,createTypePredicateNode:H,updateTypePredicateNode:We,createTypeReferenceNode:Lt,updateTypeReferenceNode:L,createFunctionTypeNode:me,updateFunctionTypeNode:q,createConstructorTypeNode:Ve,updateConstructorTypeNode:kt,createTypeQueryNode:nr,updateTypeQueryNode:lr,createTypeLiteralNode:ai,updateTypeLiteralNode:si,createArrayTypeNode:Kn,updateArrayTypeNode:Hr,createTupleTypeNode:bo,updateTupleTypeNode:wi,createNamedTupleMember:vi,updateNamedTupleMember:ga,createOptionalTypeNode:Ja,updateOptionalTypeNode:Qt,createRestTypeNode:va,updateRestTypeNode:Wl,createUnionTypeNode:La,updateUnionTypeNode:ys,createIntersectionTypeNode:tc,updateIntersectionTypeNode:ao,createConditionalTypeNode:ca,updateConditionalTypeNode:pu,createInferTypeNode:Rs,updateInferTypeNode:ka,createImportTypeNode:pc,updateImportTypeNode:Cl,createParenthesizedType:cl,updateParenthesizedType:Mo,createThisTypeNode:an,createTypeOperatorNode:Hs,updateTypeOperatorNode:iu,createIndexedAccessTypeNode:fu,updateIndexedAccessTypeNode:Rp,createMappedTypeNode:Ws,updateMappedTypeNode:Cc,createLiteralTypeNode:pe,updateLiteralTypeNode:Z,createTemplateLiteralType:_l,updateTemplateLiteralType:wf,createObjectBindingPattern:we,updateObjectBindingPattern:yt,createArrayBindingPattern:pn,updateArrayBindingPattern:gr,createBindingElement:br,updateBindingElement:qr,createArrayLiteralExpression:Ri,updateArrayLiteralExpression:hr,createObjectLiteralExpression:Ho,updateObjectLiteralExpression:Nl,createPropertyAccessExpression:e&4?(E,P)=>pr(Sl(E,P),262144):Sl,updatePropertyAccessExpression:Xl,createPropertyAccessChain:e&4?(E,P,B)=>pr(Is(E,P,B),262144):Is,updatePropertyAccessChain:nc,createElementAccessExpression:ap,updateElementAccessExpression:Jc,createElementAccessChain:Cd,updateElementAccessChain:Pe,createCallExpression:qn,updateCallExpression:Eo,createCallChain:Xo,updateCallChain:ea,createNewExpression:rc,updateNewExpression:Sc,createTaggedTemplateExpression:ul,updateTaggedTemplateExpression:vl,createTypeAssertion:Ul,updateTypeAssertion:ic,createParenthesizedExpression:Kc,updateParenthesizedExpression:ff,createFunctionExpression:jd,updateFunctionExpression:Nd,createArrowFunction:Of,updateArrowFunction:U_,createDeleteExpression:Mh,updateDeleteExpression:ev,createTypeOfExpression:Bu,updateTypeOfExpression:tv,createVoidExpression:Dp,updateVoidExpression:vg,createAwaitExpression:Ud,updateAwaitExpression:te,createPrefixUnaryExpression:lt,updatePrefixUnaryExpression:zt,createPostfixUnaryExpression:Jt,updatePostfixUnaryExpression:F,createBinaryExpression:De,updateBinaryExpression:Vt,createConditionalExpression:ir,updateConditionalExpression:ni,createTemplateExpression:Xr,updateTemplateExpression:so,createTemplateHead:Cp,createTemplateMiddle:Hd,createTemplateTail:pb,createNoSubstitutionTemplateLiteral:ps,createTemplateLiteralLikeNode:Nc,createYieldExpression:Wf,updateYieldExpression:Ff,createSpreadElement:Vi,updateSpreadElement:Lh,createClassExpression:yg,updateClassExpression:zf,createOmittedExpression:fb,createExpressionWithTypeArguments:mb,updateExpressionWithTypeArguments:mf,createAsExpression:H_,updateAsExpression:_f,createNonNullExpression:nv,updateNonNullExpression:ze,createSatisfiesExpression:Ze,updateSatisfiesExpression:Nt,createNonNullChain:Ut,updateNonNullChain:vn,createMetaProperty:Jn,updateMetaProperty:bn,createTemplateSpan:$n,updateTemplateSpan:fi,createSemicolonClassElement:cr,createBlock:ei,updateBlock:fr,createVariableStatement:Yo,updateVariableStatement:Qa,createEmptyStatement:Zu,createExpressionStatement:_u,updateExpressionStatement:rv,createIfStatement:H0,updateIfStatement:JI,createDoStatement:q0,updateDoStatement:ZD,createWhileStatement:eC,updateWhileStatement:tC,createForStatement:hT,updateForStatement:D1,createForInStatement:KI,updateForInStatement:nC,createForOfStatement:XI,updateForOfStatement:YI,createContinueStatement:$I,updateContinueStatement:QI,createBreakStatement:gT,updateBreakStatement:ZI,createReturnStatement:C1,updateReturnStatement:N1,createWithStatement:_b,updateWithStatement:hb,createSwitchStatement:bg,updateSwitchStatement:J0,createLabeledStatement:os,updateLabeledStatement:vT,createThrowStatement:rC,updateThrowStatement:K0,createTryStatement:iv,updateTryStatement:kh,createDebuggerStatement:Bf,createVariableDeclaration:qd,updateVariableDeclaration:Np,createVariableDeclarationList:sp,updateVariableDeclarationList:sy,createFunctionDeclaration:yT,updateFunctionDeclaration:iC,createClassDeclaration:gb,updateClassDeclaration:X0,createInterfaceDeclaration:tx,updateInterfaceDeclaration:Tc,createTypeAliasDeclaration:ly,updateTypeAliasDeclaration:nx,createEnumDeclaration:l_,updateEnumDeclaration:bT,createModuleDeclaration:Xe,updateModuleDeclaration:c_,createModuleBlock:hu,updateModuleBlock:Y0,createCaseBlock:rx,updateCaseBlock:vb,createNamespaceExportDeclaration:cy,updateNamespaceExportDeclaration:uy,createImportEqualsDeclaration:Za,updateImportEqualsDeclaration:u_,createImportDeclaration:ET,updateImportDeclaration:ST,createImportClause:$0,updateImportClause:TT,createAssertClause:mm,updateAssertClause:_m,createAssertEntry:ov,updateAssertEntry:ix,createImportTypeAssertionContainer:d_,updateImportTypeAssertionContainer:oC,createImportAttributes:P1,updateImportAttributes:Xi,createImportAttribute:Qr,updateImportAttribute:wh,createNamespaceImport:Jd,updateNamespaceImport:M2,createNamespaceExport:av,updateNamespaceExport:L2,createNamedImports:yb,updateNamedImports:yl,createImportSpecifier:Up,updateImportSpecifier:Eg,createExportAssignment:hm,updateExportAssignment:bb,createExportDeclaration:Fm,updateExportDeclaration:sv,createNamedExports:AT,updateNamedExports:Sg,createExportSpecifier:ox,updateExportSpecifier:Tg,createMissingDeclaration:q_,createExternalModuleReference:dy,updateExternalModuleReference:aC,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return b(322)},get updateJSDocNonNullableType(){return A(322)},get createJSDocNullableType(){return b(321)},get updateJSDocNullableType(){return A(321)},get createJSDocOptionalType(){return h(323)},get updateJSDocOptionalType(){return f(323)},get createJSDocVariadicType(){return h(325)},get updateJSDocVariadicType(){return f(325)},get createJSDocNamepathType(){return h(326)},get updateJSDocNamepathType(){return f(326)},createJSDocFunctionType:xT,updateJSDocFunctionType:zm,createJSDocTypeLiteral:Eb,updateJSDocTypeLiteral:cC,createJSDocTypeExpression:RT,updateJSDocTypeExpression:k2,createJSDocSignature:vr,updateJSDocSignature:ou,createJSDocTemplateTag:J_,updateJSDocTemplateTag:ur,createJSDocTypedefTag:DT,updateJSDocTypedefTag:Q0,createJSDocParameterTag:Xc,updateJSDocParameterTag:Oh,createJSDocPropertyTag:Bm,updateJSDocPropertyTag:k1,createJSDocCallbackTag:w1,updateJSDocCallbackTag:Sb,createJSDocOverloadTag:lv,updateJSDocOverloadTag:CT,createJSDocAugmentsTag:Gm,updateJSDocAugmentsTag:Z0,createJSDocImplementsTag:Ag,updateJSDocImplementsTag:lp,createJSDocSeeTag:Tb,updateJSDocSeeTag:ax,createJSDocNameReference:eE,updateJSDocNameReference:uC,createJSDocMemberName:O1,updateJSDocMemberName:NT,createJSDocLink:Hp,updateJSDocLink:PT,createJSDocLinkCode:Hl,updateJSDocLinkCode:Bc,createJSDocLinkPlain:MT,updateJSDocLinkPlain:Iu,get createJSDocTypeTag(){return M(351)},get updateJSDocTypeTag(){return N(351)},get createJSDocReturnTag(){return M(349)},get updateJSDocReturnTag(){return N(349)},get createJSDocThisTag(){return M(350)},get updateJSDocThisTag(){return N(350)},get createJSDocAuthorTag(){return I(337)},get updateJSDocAuthorTag(){return R(337)},get createJSDocClassTag(){return I(339)},get updateJSDocClassTag(){return R(339)},get createJSDocPublicTag(){return I(340)},get updateJSDocPublicTag(){return R(340)},get createJSDocPrivateTag(){return I(341)},get updateJSDocPrivateTag(){return R(341)},get createJSDocProtectedTag(){return I(342)},get updateJSDocProtectedTag(){return R(342)},get createJSDocReadonlyTag(){return I(343)},get updateJSDocReadonlyTag(){return R(343)},get createJSDocOverrideTag(){return I(344)},get updateJSDocOverrideTag(){return R(344)},get createJSDocDeprecatedTag(){return I(338)},get updateJSDocDeprecatedTag(){return R(338)},get createJSDocThrowsTag(){return M(356)},get updateJSDocThrowsTag(){return N(356)},get createJSDocSatisfiesTag(){return M(357)},get updateJSDocSatisfiesTag(){return N(357)},createJSDocEnumTag:qp,updateJSDocEnumTag:LT,createJSDocUnknownTag:au,updateJSDocUnknownTag:sx,createJSDocText:kT,updateJSDocText:qs,createJSDocComment:dC,updateJSDocComment:nE,createJsxElement:W1,updateJsxElement:w2,createJsxSelfClosingElement:gd,updateJsxSelfClosingElement:cv,createJsxOpeningElement:K_,updateJsxOpeningElement:lx,createJsxClosingElement:Pp,updateJsxClosingElement:cx,createJsxFragment:cp,createJsxText:fy,updateJsxText:wT,createJsxOpeningFragment:pC,createJsxJsxClosingFragment:fC,updateJsxFragment:ux,createJsxAttribute:OT,updateJsxAttribute:mC,createJsxAttributes:xb,updateJsxAttributes:Mp,createJsxSpreadAttribute:Wh,updateJsxSpreadAttribute:_C,createJsxExpression:WT,updateJsxExpression:ss,createJsxNamespacedName:xr,updateJsxNamespacedName:gf,createCaseClause:Pd,updateCaseClause:F1,createDefaultClause:hC,updateDefaultClause:rE,createHeritageClause:z1,updateHeritageClause:FT,createCatchClause:Ig,updateCatchClause:p_,createPropertyAssignment:vf,updatePropertyAssignment:Vm,createShorthandPropertyAssignment:xg,updateShorthandPropertyAssignment:Rg,createSpreadAssignment:fc,updateSpreadAssignment:gC,createEnumMember:Vf,updateEnumMember:Fh,createSourceFile:yf,updateSourceFile:Fs,createRedirectedSourceFile:B1,createBundle:G1,updateBundle:V1,createUnparsedSource:dv,createUnparsedPrologue:oE,createUnparsedPrepend:D,createUnparsedTextLike:ae,createUnparsedSyntheticReference:ht,createInputFiles:ln,createSyntheticExpression:kr,createSyntaxList:Ni,createNotEmittedStatement:bi,createPartiallyEmittedExpression:io,updatePartiallyEmittedExpression:ya,createCommaListExpression:Md,updateCommaListExpression:jf,createSyntheticReferenceExpression:Db,updateSyntheticReferenceExpression:Si,cloneNode:Nb,get createComma(){return s(28)},get createAssignment(){return s(64)},get createLogicalOr(){return s(57)},get createLogicalAnd(){return s(56)},get createBitwiseOr(){return s(52)},get createBitwiseXor(){return s(53)},get createBitwiseAnd(){return s(51)},get createStrictEquality(){return s(37)},get createStrictInequality(){return s(38)},get createEquality(){return s(35)},get createInequality(){return s(36)},get createLessThan(){return s(30)},get createLessThanEquals(){return s(33)},get createGreaterThan(){return s(32)},get createGreaterThanEquals(){return s(34)},get createLeftShift(){return s(48)},get createRightShift(){return s(49)},get createUnsignedRightShift(){return s(50)},get createAdd(){return s(40)},get createSubtract(){return s(41)},get createMultiply(){return s(42)},get createDivide(){return s(44)},get createModulo(){return s(45)},get createExponent(){return s(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:BT,createImmediatelyInvokedArrowFunction:j1,createVoidZero:X_,createExportDefault:Bh,createExternalModuleExport:vC,createTypeCheck:GT,createIsNotTypeCheck:d9,createMethodCall:Pb,createGlobalMethodCall:f_,createFunctionBindCall:S8,createFunctionCallCall:T8,createFunctionApplyCall:aE,createArraySliceCall:O2,createArrayConcatCall:Gh,createObjectDefinePropertyCall:mx,createObjectGetOwnPropertyDescriptorCall:A8,createReflectGetCall:Y_,createReflectSetCall:$,createPropertyDescriptor:Ke,createCallBinding:Ci,createAssignmentTargetWrapper:mi,inlineExpressions:Yi,getInternalName:Ps,getLocalName:is,getExportName:Uf,getDeclarationName:$_,getNamespaceMemberName:jm,getExternalModuleOrNamespaceExportName:pv,restoreOuterExpressions:Kt,restoreEnclosingLabel:zr,createUseStrictPrologue:up,copyPrologue:fv,copyStandardPrologue:VT,copyCustomPrologue:yC,ensureUseStrict:W2,liftToBlock:F2,mergeLexicalEnvironment:mv,replaceModifiers:Lb,replaceDecoratorsAndModifiers:bC,replacePropertyName:Jp};return He(Sae,E=>E(O)),O;function U(E,P){if(E===void 0||E===et)E=[];else if(wE(E)){if(P===void 0||E.hasTrailingComma===P)return E.transformFlags===void 0&&XTe(E),C.attachNodeArrayDebugInfo(E),E;const $e=E.slice();return $e.pos=E.pos,$e.end=E.end,$e.hasTrailingComma=P,$e.transformFlags=E.transformFlags,C.attachNodeArrayDebugInfo($e),$e}const B=E.length,ce=B>=1&&B<=4?E.slice():E;return ce.pos=-1,ce.end=-1,ce.hasTrailingComma=!!P,ce.transformFlags=0,XTe(ce),C.attachNodeArrayDebugInfo(ce),ce}function K(E){return t.createBaseNode(E)}function ee(E){const P=K(E);return P.symbol=void 0,P.localSymbol=void 0,P}function V(E,P){return E!==P&&(E.typeArguments=P.typeArguments),or(E,P)}function se(E,P=0){const B=typeof E=="number"?E+"":E;C.assert(B.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const ce=ee(9);return ce.text=B,ce.numericLiteralFlags=P,P&384&&(ce.transformFlags|=1024),ce}function G(E){const P=At(10);return P.text=typeof E=="string"?E:ZE(E)+"n",P.transformFlags|=32,P}function re(E,P){const B=ee(11);return B.text=E,B.singleQuote=P,B}function _e(E,P,B){const ce=re(E,P);return ce.hasExtendedUnicodeEscape=B,B&&(ce.transformFlags|=1024),ce}function ye(E){const P=re(om(E),void 0);return P.textSourceNode=E,P}function Q(E){const P=At(14);return P.text=E,P}function Y(E,P){switch(E){case 9:return se(P,0);case 10:return G(P);case 11:return _e(P,void 0);case 12:return fy(P,!1);case 13:return fy(P,!0);case 14:return Q(P);case 15:return Nc(E,P,void 0,0)}}function oe(E){const P=t.createBaseIdentifierNode(80);return P.escapedText=E,P.jsDoc=void 0,P.flowNode=void 0,P.symbol=void 0,P}function he(E,P,B,ce){const $e=oe(hl(E));return Gk($e,{flags:P,id:yW,prefix:B,suffix:ce}),yW++,$e}function Ae(E,P,B){P===void 0&&E&&(P=LE(E)),P===80&&(P=void 0);const ce=oe(hl(E));return B&&(ce.flags|=256),ce.escapedText==="await"&&(ce.transformFlags|=67108864),ce.flags&256&&(ce.transformFlags|=1024),ce}function de(E,P,B,ce){let $e=1;P&&($e|=8);const Yt=he("",$e,B,ce);return E&&E(Yt),Yt}function ie(E){let P=2;return E&&(P|=8),he("",P,void 0,void 0)}function ge(E,P=0,B,ce){return C.assert(!(P&7),"Argument out of range: flags"),C.assert((P&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),he(E,3|P,B,ce)}function Ne(E,P=0,B,ce){C.assert(!(P&7),"Argument out of range: flags");const $e=E?tg(E)?P0(!1,B,E,ce,Tr):"generated@".concat(cs(E)):"";(B||ce)&&(P|=16);const Yt=he($e,4|P,B,ce);return Yt.original=E,Yt}function qe(E){const P=t.createBasePrivateIdentifierNode(81);return P.escapedText=E,P.transformFlags|=16777216,P}function Ee(E){return po(E,"#")||C.fail("First character of private identifier must be #: "+E),qe(hl(E))}function Me(E,P,B,ce){const $e=qe(hl(E));return Gk($e,{flags:P,id:yW,prefix:B,suffix:ce}),yW++,$e}function Ce(E,P,B){E&&!po(E,"#")&&C.fail("First character of private identifier must be #: "+E);const ce=8|(E?3:1);return Me(E!=null?E:"",ce,P,B)}function Oe(E,P,B){const ce=tg(E)?P0(!0,P,E,B,Tr):"#generated@".concat(cs(E)),Yt=Me(ce,4|(P||B?16:0),P,B);return Yt.original=E,Yt}function At(E){return t.createBaseTokenNode(E)}function be(E){C.assert(E>=0&&E<=165,"Invalid token"),C.assert(E<=15||E>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),C.assert(E<=9||E>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),C.assert(E!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const P=At(E);let B=0;switch(E){case 134:B=384;break;case 160:B=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:B=1;break;case 108:B=134218752,P.flowNode=void 0;break;case 126:B=1024;break;case 129:B=16777216;break;case 110:B=16384,P.flowNode=void 0;break}return B&&(P.transformFlags|=B),P}function Ue(){return be(108)}function it(){return be(110)}function Ft(){return be(106)}function gt(){return be(112)}function Qe(){return be(97)}function It(E){return be(E)}function on(E){const P=[];return E&32&&P.push(It(95)),E&128&&P.push(It(138)),E&2048&&P.push(It(90)),E&4096&&P.push(It(87)),E&1&&P.push(It(125)),E&2&&P.push(It(123)),E&4&&P.push(It(124)),E&64&&P.push(It(128)),E&256&&P.push(It(126)),E&16&&P.push(It(164)),E&8&&P.push(It(148)),E&512&&P.push(It(129)),E&1024&&P.push(It(134)),E&8192&&P.push(It(103)),E&16384&&P.push(It(147)),P.length?P:void 0}function $t(E,P){const B=K(166);return B.left=E,B.right=mc(P),B.transformFlags|=Ar(B.left)|Ok(B.right),B.flowNode=void 0,B}function Cn(E,P,B){return E.left!==P||E.right!==B?or($t(P,B),E):E}function Hn(E){const P=K(167);return P.expression=i().parenthesizeExpressionOfComputedPropertyName(E),P.transformFlags|=Ar(P.expression)|1024|131072,P}function yn(E,P){return E.expression!==P?or(Hn(P),E):E}function tn(E,P,B,ce){const $e=ee(168);return $e.modifiers=Ka(E),$e.name=mc(P),$e.constraint=B,$e.default=ce,$e.transformFlags=1,$e.expression=void 0,$e.jsDoc=void 0,$e}function en(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.constraint!==ce||E.default!==$e?or(tn(P,B,ce,$e),E):E}function gi(E,P,B,ce,$e,Yt){var $i,Ms;const Er=ee(169);return Er.modifiers=Ka(E),Er.dotDotDotToken=P,Er.name=mc(B),Er.questionToken=ce,Er.type=$e,Er.initializer=_x(Yt),YE(Er.name)?Er.transformFlags=1:Er.transformFlags=$a(Er.modifiers)|Ar(Er.dotDotDotToken)|Yy(Er.name)|Ar(Er.questionToken)|Ar(Er.initializer)|((($i=Er.questionToken)!=null?$i:Er.type)?1:0)|(((Ms=Er.dotDotDotToken)!=null?Ms:Er.initializer)?1024:0)|(M_(Er.modifiers)&31?8192:0),Er.jsDoc=void 0,Er}function ho(E,P,B,ce,$e,Yt,Er){return E.modifiers!==P||E.dotDotDotToken!==B||E.name!==ce||E.questionToken!==$e||E.type!==Yt||E.initializer!==Er?or(gi(P,B,ce,$e,Yt,Er),E):E}function Gi(E){const P=K(170);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Ar(P.expression)|1|8192|33554432,P}function xo(E,P){return E.expression!==P?or(Gi(P),E):E}function Qn(E,P,B,ce){const $e=ee(171);return $e.modifiers=Ka(E),$e.name=mc(P),$e.type=ce,$e.questionToken=B,$e.transformFlags=1,$e.initializer=void 0,$e.jsDoc=void 0,$e}function Di(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.type!==$e?Ir(Qn(P,B,ce,$e),E):E}function Ir(E,P){return E!==P&&(E.initializer=P.initializer),or(E,P)}function Xt(E,P,B,ce,$e){const Yt=ee(172);Yt.modifiers=Ka(E),Yt.name=mc(P),Yt.questionToken=B&&$y(B)?B:void 0,Yt.exclamationToken=B&&qk(B)?B:void 0,Yt.type=ce,Yt.initializer=_x($e);const Er=Yt.flags&33554432||M_(Yt.modifiers)&128;return Yt.transformFlags=$a(Yt.modifiers)|Yy(Yt.name)|Ar(Yt.initializer)|(Er||Yt.questionToken||Yt.exclamationToken||Yt.type?1:0)|(rs(Yt.name)||M_(Yt.modifiers)&256&&Yt.initializer?8192:0)|16777216,Yt.jsDoc=void 0,Yt}function nt(E,P,B,ce,$e,Yt){return E.modifiers!==P||E.name!==B||E.questionToken!==(ce!==void 0&&$y(ce)?ce:void 0)||E.exclamationToken!==(ce!==void 0&&qk(ce)?ce:void 0)||E.type!==$e||E.initializer!==Yt?or(Xt(P,B,ce,$e,Yt),E):E}function Bt(E,P,B,ce,$e,Yt){const Er=ee(173);return Er.modifiers=Ka(E),Er.name=mc(P),Er.questionToken=B,Er.typeParameters=Ka(ce),Er.parameters=Ka($e),Er.type=Yt,Er.transformFlags=1,Er.jsDoc=void 0,Er.locals=void 0,Er.nextContainer=void 0,Er.typeArguments=void 0,Er}function Dn(E,P,B,ce,$e,Yt,Er){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.typeParameters!==$e||E.parameters!==Yt||E.type!==Er?V(Bt(P,B,ce,$e,Yt,Er),E):E}function oi(E,P,B,ce,$e,Yt,Er,$i){const Ms=ee(174);if(Ms.modifiers=Ka(E),Ms.asteriskToken=P,Ms.name=mc(B),Ms.questionToken=ce,Ms.exclamationToken=void 0,Ms.typeParameters=Ka($e),Ms.parameters=U(Yt),Ms.type=Er,Ms.body=$i,!Ms.body)Ms.transformFlags=1;else{const m_=M_(Ms.modifiers)&1024,wb=!!Ms.asteriskToken,Um=m_&&wb;Ms.transformFlags=$a(Ms.modifiers)|Ar(Ms.asteriskToken)|Yy(Ms.name)|Ar(Ms.questionToken)|$a(Ms.typeParameters)|$a(Ms.parameters)|Ar(Ms.type)|Ar(Ms.body)&-67108865|(Um?128:m_?256:wb?2048:0)|(Ms.questionToken||Ms.typeParameters||Ms.type?1:0)|1024}return Ms.typeArguments=void 0,Ms.jsDoc=void 0,Ms.locals=void 0,Ms.nextContainer=void 0,Ms.flowNode=void 0,Ms.endFlowNode=void 0,Ms.returnFlowNode=void 0,Ms}function yi(E,P,B,ce,$e,Yt,Er,$i,Ms){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.questionToken!==$e||E.typeParameters!==Yt||E.parameters!==Er||E.type!==$i||E.body!==Ms?eo(oi(P,B,ce,$e,Yt,Er,$i,Ms),E):E}function eo(E,P){return E!==P&&(E.exclamationToken=P.exclamationToken),or(E,P)}function Ro(E){const P=ee(175);return P.body=E,P.transformFlags=Ar(E)|16777216,P.modifiers=void 0,P.jsDoc=void 0,P.locals=void 0,P.nextContainer=void 0,P.endFlowNode=void 0,P.returnFlowNode=void 0,P}function fa(E,P){return E.body!==P?Fa(Ro(P),E):E}function Fa(E,P){return E!==P&&(E.modifiers=P.modifiers),or(E,P)}function An(E,P,B){const ce=ee(176);return ce.modifiers=Ka(E),ce.parameters=U(P),ce.body=B,ce.transformFlags=$a(ce.modifiers)|$a(ce.parameters)|Ar(ce.body)&-67108865|1024,ce.typeParameters=void 0,ce.type=void 0,ce.typeArguments=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.returnFlowNode=void 0,ce}function wn(E,P,B,ce){return E.modifiers!==P||E.parameters!==B||E.body!==ce?Je(An(P,B,ce),E):E}function Je(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function mt(E,P,B,ce,$e){const Yt=ee(177);return Yt.modifiers=Ka(E),Yt.name=mc(P),Yt.parameters=U(B),Yt.type=ce,Yt.body=$e,Yt.body?Yt.transformFlags=$a(Yt.modifiers)|Yy(Yt.name)|$a(Yt.parameters)|Ar(Yt.type)|Ar(Yt.body)&-67108865|(Yt.type?1:0):Yt.transformFlags=1,Yt.typeArguments=void 0,Yt.typeParameters=void 0,Yt.jsDoc=void 0,Yt.locals=void 0,Yt.nextContainer=void 0,Yt.flowNode=void 0,Yt.endFlowNode=void 0,Yt.returnFlowNode=void 0,Yt}function pt(E,P,B,ce,$e,Yt){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.type!==$e||E.body!==Yt?Pt(mt(P,B,ce,$e,Yt),E):E}function Pt(E,P){return E!==P&&(E.typeParameters=P.typeParameters),V(E,P)}function le(E,P,B,ce){const $e=ee(178);return $e.modifiers=Ka(E),$e.name=mc(P),$e.parameters=U(B),$e.body=ce,$e.body?$e.transformFlags=$a($e.modifiers)|Yy($e.name)|$a($e.parameters)|Ar($e.body)&-67108865|($e.type?1:0):$e.transformFlags=1,$e.typeArguments=void 0,$e.typeParameters=void 0,$e.type=void 0,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e.endFlowNode=void 0,$e.returnFlowNode=void 0,$e}function Fe(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.body!==$e?dt(le(P,B,ce,$e),E):E}function dt(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function j(E,P,B){const ce=ee(179);return ce.typeParameters=Ka(E),ce.parameters=Ka(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function ot(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(j(P,B,ce),E):E}function Dt(E,P,B){const ce=ee(180);return ce.typeParameters=Ka(E),ce.parameters=Ka(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Ye(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(Dt(P,B,ce),E):E}function _t(E,P,B){const ce=ee(181);return ce.modifiers=Ka(E),ce.parameters=Ka(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Gt(E,P,B,ce){return E.parameters!==B||E.type!==ce||E.modifiers!==P?V(_t(P,B,ce),E):E}function gn(E,P){const B=K(204);return B.type=E,B.literal=P,B.transformFlags=1,B}function hn(E,P,B){return E.type!==P||E.literal!==B?or(gn(P,B),E):E}function dn(E){return be(E)}function H(E,P,B){const ce=K(182);return ce.assertsModifier=E,ce.parameterName=mc(P),ce.type=B,ce.transformFlags=1,ce}function We(E,P,B,ce){return E.assertsModifier!==P||E.parameterName!==B||E.type!==ce?or(H(P,B,ce),E):E}function Lt(E,P){const B=K(183);return B.typeName=mc(E),B.typeArguments=P&&i().parenthesizeTypeArguments(U(P)),B.transformFlags=1,B}function L(E,P,B){return E.typeName!==P||E.typeArguments!==B?or(Lt(P,B),E):E}function me(E,P,B){const ce=ee(184);return ce.typeParameters=Ka(E),ce.parameters=Ka(P),ce.type=B,ce.transformFlags=1,ce.modifiers=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function q(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?fe(me(P,B,ce),E):E}function fe(E,P){return E!==P&&(E.modifiers=P.modifiers),V(E,P)}function Ve(...E){return E.length===4?ke(...E):E.length===3?Tt(...E):C.fail("Incorrect number of arguments specified.")}function ke(E,P,B,ce){const $e=ee(185);return $e.modifiers=Ka(E),$e.typeParameters=Ka(P),$e.parameters=Ka(B),$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.typeArguments=void 0,$e}function Tt(E,P,B){return ke(void 0,E,P,B)}function kt(...E){return E.length===5?nn(...E):E.length===4?En(...E):C.fail("Incorrect number of arguments specified.")}function nn(E,P,B,ce,$e){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==$e?V(Ve(P,B,ce,$e),E):E}function En(E,P,B,ce){return nn(E,E.modifiers,P,B,ce)}function nr(E,P){const B=K(186);return B.exprName=E,B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags=1,B}function lr(E,P,B){return E.exprName!==P||E.typeArguments!==B?or(nr(P,B),E):E}function ai(E){const P=ee(187);return P.members=U(E),P.transformFlags=1,P}function si(E,P){return E.members!==P?or(ai(P),E):E}function Kn(E){const P=K(188);return P.elementType=i().parenthesizeNonArrayTypeOfPostfixType(E),P.transformFlags=1,P}function Hr(E,P){return E.elementType!==P?or(Kn(P),E):E}function bo(E){const P=K(189);return P.elements=U(i().parenthesizeElementTypesOfTupleType(E)),P.transformFlags=1,P}function wi(E,P){return E.elements!==P?or(bo(P),E):E}function vi(E,P,B,ce){const $e=ee(202);return $e.dotDotDotToken=E,$e.name=P,$e.questionToken=B,$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e}function ga(E,P,B,ce,$e){return E.dotDotDotToken!==P||E.name!==B||E.questionToken!==ce||E.type!==$e?or(vi(P,B,ce,$e),E):E}function Ja(E){const P=K(190);return P.type=i().parenthesizeTypeOfOptionalType(E),P.transformFlags=1,P}function Qt(E,P){return E.type!==P?or(Ja(P),E):E}function va(E){const P=K(191);return P.type=E,P.transformFlags=1,P}function Wl(E,P){return E.type!==P?or(va(P),E):E}function to(E,P,B){const ce=K(E);return ce.types=O.createNodeArray(B(P)),ce.transformFlags=1,ce}function za(E,P,B){return E.types!==P?or(to(E.kind,P,B),E):E}function La(E){return to(192,E,i().parenthesizeConstituentTypesOfUnionType)}function ys(E,P){return za(E,P,i().parenthesizeConstituentTypesOfUnionType)}function tc(E){return to(193,E,i().parenthesizeConstituentTypesOfIntersectionType)}function ao(E,P){return za(E,P,i().parenthesizeConstituentTypesOfIntersectionType)}function ca(E,P,B,ce){const $e=K(194);return $e.checkType=i().parenthesizeCheckTypeOfConditionalType(E),$e.extendsType=i().parenthesizeExtendsTypeOfConditionalType(P),$e.trueType=B,$e.falseType=ce,$e.transformFlags=1,$e.locals=void 0,$e.nextContainer=void 0,$e}function pu(E,P,B,ce,$e){return E.checkType!==P||E.extendsType!==B||E.trueType!==ce||E.falseType!==$e?or(ca(P,B,ce,$e),E):E}function Rs(E){const P=K(195);return P.typeParameter=E,P.transformFlags=1,P}function ka(E,P){return E.typeParameter!==P?or(Rs(P),E):E}function _l(E,P){const B=K(203);return B.head=E,B.templateSpans=U(P),B.transformFlags=1,B}function wf(E,P,B){return E.head!==P||E.templateSpans!==B?or(_l(P,B),E):E}function pc(E,P,B,ce,$e=!1){const Yt=K(205);return Yt.argument=E,Yt.attributes=P,Yt.assertions&&Yt.assertions.assertClause&&Yt.attributes&&(Yt.assertions.assertClause=Yt.attributes),Yt.qualifier=B,Yt.typeArguments=ce&&i().parenthesizeTypeArguments(ce),Yt.isTypeOf=$e,Yt.transformFlags=1,Yt}function Cl(E,P,B,ce,$e,Yt=E.isTypeOf){return E.argument!==P||E.attributes!==B||E.qualifier!==ce||E.typeArguments!==$e||E.isTypeOf!==Yt?or(pc(P,B,ce,$e,Yt),E):E}function cl(E){const P=K(196);return P.type=E,P.transformFlags=1,P}function Mo(E,P){return E.type!==P?or(cl(P),E):E}function an(){const E=K(197);return E.transformFlags=1,E}function Hs(E,P){const B=K(198);return B.operator=E,B.type=E===148?i().parenthesizeOperandOfReadonlyTypeOperator(P):i().parenthesizeOperandOfTypeOperator(P),B.transformFlags=1,B}function iu(E,P){return E.type!==P?or(Hs(E.operator,P),E):E}function fu(E,P){const B=K(199);return B.objectType=i().parenthesizeNonArrayTypeOfPostfixType(E),B.indexType=P,B.transformFlags=1,B}function Rp(E,P,B){return E.objectType!==P||E.indexType!==B?or(fu(P,B),E):E}function Ws(E,P,B,ce,$e,Yt){const Er=ee(200);return Er.readonlyToken=E,Er.typeParameter=P,Er.nameType=B,Er.questionToken=ce,Er.type=$e,Er.members=Yt&&U(Yt),Er.transformFlags=1,Er.locals=void 0,Er.nextContainer=void 0,Er}function Cc(E,P,B,ce,$e,Yt,Er){return E.readonlyToken!==P||E.typeParameter!==B||E.nameType!==ce||E.questionToken!==$e||E.type!==Yt||E.members!==Er?or(Ws(P,B,ce,$e,Yt,Er),E):E}function pe(E){const P=K(201);return P.literal=E,P.transformFlags=1,P}function Z(E,P){return E.literal!==P?or(pe(P),E):E}function we(E){const P=K(206);return P.elements=U(E),P.transformFlags|=$a(P.elements)|1024|524288,P.transformFlags&32768&&(P.transformFlags|=65664),P}function yt(E,P){return E.elements!==P?or(we(P),E):E}function pn(E){const P=K(207);return P.elements=U(E),P.transformFlags|=$a(P.elements)|1024|524288,P}function gr(E,P){return E.elements!==P?or(pn(P),E):E}function br(E,P,B,ce){const $e=ee(208);return $e.dotDotDotToken=E,$e.propertyName=mc(P),$e.name=mc(B),$e.initializer=_x(ce),$e.transformFlags|=Ar($e.dotDotDotToken)|Yy($e.propertyName)|Yy($e.name)|Ar($e.initializer)|($e.dotDotDotToken?32768:0)|1024,$e.flowNode=void 0,$e}function qr(E,P,B,ce,$e){return E.propertyName!==B||E.dotDotDotToken!==P||E.name!==ce||E.initializer!==$e?or(br(P,B,ce,$e),E):E}function Ri(E,P){const B=K(209),ce=E&&el(E),$e=U(E,ce&&Hc(ce)?!0:void 0);return B.elements=i().parenthesizeExpressionsOfCommaDelimitedList($e),B.multiLine=P,B.transformFlags|=$a(B.elements),B}function hr(E,P){return E.elements!==P?or(Ri(P,E.multiLine),E):E}function Ho(E,P){const B=ee(210);return B.properties=U(E),B.multiLine=P,B.transformFlags|=$a(B.properties),B.jsDoc=void 0,B}function Nl(E,P){return E.properties!==P?or(Ho(P,E.multiLine),E):E}function zc(E,P,B){const ce=ee(211);return ce.expression=E,ce.questionDotToken=P,ce.name=B,ce.transformFlags=Ar(ce.expression)|Ar(ce.questionDotToken)|(je(ce.name)?Ok(ce.name):Ar(ce.name)|536870912),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Sl(E,P){const B=zc(i().parenthesizeLeftSideOfAccess(E,!1),void 0,mc(P));return hP(E)&&(B.transformFlags|=384),B}function Xl(E,P,B){return A4(E)?nc(E,P,E.questionDotToken,oa(B,je)):E.expression!==P||E.name!==B?or(Sl(P,B),E):E}function Is(E,P,B){const ce=zc(i().parenthesizeLeftSideOfAccess(E,!0),P,mc(B));return ce.flags|=64,ce.transformFlags|=32,ce}function nc(E,P,B,ce){return C.assert(!!(E.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),E.expression!==P||E.questionDotToken!==B||E.name!==ce?or(Is(P,B,ce),E):E}function op(E,P,B){const ce=ee(212);return ce.expression=E,ce.questionDotToken=P,ce.argumentExpression=B,ce.transformFlags|=Ar(ce.expression)|Ar(ce.questionDotToken)|Ar(ce.argumentExpression),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function ap(E,P){const B=op(i().parenthesizeLeftSideOfAccess(E,!1),void 0,lE(P));return hP(E)&&(B.transformFlags|=384),B}function Jc(E,P,B){return ej(E)?Pe(E,P,E.questionDotToken,B):E.expression!==P||E.argumentExpression!==B?or(ap(P,B),E):E}function Cd(E,P,B){const ce=op(i().parenthesizeLeftSideOfAccess(E,!0),P,lE(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Pe(E,P,B,ce){return C.assert(!!(E.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),E.expression!==P||E.questionDotToken!==B||E.argumentExpression!==ce?or(Cd(P,B,ce),E):E}function Wt(E,P,B,ce){const $e=ee(213);return $e.expression=E,$e.questionDotToken=P,$e.typeArguments=B,$e.arguments=ce,$e.transformFlags|=Ar($e.expression)|Ar($e.questionDotToken)|$a($e.typeArguments)|$a($e.arguments),$e.typeArguments&&($e.transformFlags|=1),zd($e.expression)&&($e.transformFlags|=16384),$e}function qn(E,P,B){const ce=Wt(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Ka(P),i().parenthesizeExpressionsOfCommaDelimitedList(U(B)));return gP(ce.expression)&&(ce.transformFlags|=8388608),ce}function Eo(E,P,B,ce){return hS(E)?ea(E,P,E.questionDotToken,B,ce):E.expression!==P||E.typeArguments!==B||E.arguments!==ce?or(qn(P,B,ce),E):E}function Xo(E,P,B,ce){const $e=Wt(i().parenthesizeLeftSideOfAccess(E,!0),P,Ka(B),i().parenthesizeExpressionsOfCommaDelimitedList(U(ce)));return $e.flags|=64,$e.transformFlags|=32,$e}function ea(E,P,B,ce,$e){return C.assert(!!(E.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),E.expression!==P||E.questionDotToken!==B||E.typeArguments!==ce||E.arguments!==$e?or(Xo(P,B,ce,$e),E):E}function rc(E,P,B){const ce=ee(214);return ce.expression=i().parenthesizeExpressionOfNew(E),ce.typeArguments=Ka(P),ce.arguments=B?i().parenthesizeExpressionsOfCommaDelimitedList(B):void 0,ce.transformFlags|=Ar(ce.expression)|$a(ce.typeArguments)|$a(ce.arguments)|32,ce.typeArguments&&(ce.transformFlags|=1),ce}function Sc(E,P,B,ce){return E.expression!==P||E.typeArguments!==B||E.arguments!==ce?or(rc(P,B,ce),E):E}function ul(E,P,B){const ce=K(215);return ce.tag=i().parenthesizeLeftSideOfAccess(E,!1),ce.typeArguments=Ka(P),ce.template=B,ce.transformFlags|=Ar(ce.tag)|$a(ce.typeArguments)|Ar(ce.template)|1024,ce.typeArguments&&(ce.transformFlags|=1),pU(ce.template)&&(ce.transformFlags|=128),ce}function vl(E,P,B,ce){return E.tag!==P||E.typeArguments!==B||E.template!==ce?or(ul(P,B,ce),E):E}function Ul(E,P){const B=K(216);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.type=E,B.transformFlags|=Ar(B.expression)|Ar(B.type)|1,B}function ic(E,P,B){return E.type!==P||E.expression!==B?or(Ul(P,B),E):E}function Kc(E){const P=K(217);return P.expression=E,P.transformFlags=Ar(P.expression),P.jsDoc=void 0,P}function ff(E,P){return E.expression!==P?or(Kc(P),E):E}function jd(E,P,B,ce,$e,Yt,Er){const $i=ee(218);$i.modifiers=Ka(E),$i.asteriskToken=P,$i.name=mc(B),$i.typeParameters=Ka(ce),$i.parameters=U($e),$i.type=Yt,$i.body=Er;const Ms=M_($i.modifiers)&1024,m_=!!$i.asteriskToken,wb=Ms&&m_;return $i.transformFlags=$a($i.modifiers)|Ar($i.asteriskToken)|Yy($i.name)|$a($i.typeParameters)|$a($i.parameters)|Ar($i.type)|Ar($i.body)&-67108865|(wb?128:Ms?256:m_?2048:0)|($i.typeParameters||$i.type?1:0)|4194304,$i.typeArguments=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 Nd(E,P,B,ce,$e,Yt,Er,$i){return E.name!==ce||E.modifiers!==P||E.asteriskToken!==B||E.typeParameters!==$e||E.parameters!==Yt||E.type!==Er||E.body!==$i?V(jd(P,B,ce,$e,Yt,Er,$i),E):E}function Of(E,P,B,ce,$e,Yt){const Er=ee(219);Er.modifiers=Ka(E),Er.typeParameters=Ka(P),Er.parameters=U(B),Er.type=ce,Er.equalsGreaterThanToken=$e!=null?$e:be(39),Er.body=i().parenthesizeConciseBodyOfArrowFunction(Yt);const $i=M_(Er.modifiers)&1024;return Er.transformFlags=$a(Er.modifiers)|$a(Er.typeParameters)|$a(Er.parameters)|Ar(Er.type)|Ar(Er.equalsGreaterThanToken)|Ar(Er.body)&-67108865|(Er.typeParameters||Er.type?1:0)|($i?16640:0)|1024,Er.typeArguments=void 0,Er.jsDoc=void 0,Er.locals=void 0,Er.nextContainer=void 0,Er.flowNode=void 0,Er.endFlowNode=void 0,Er.returnFlowNode=void 0,Er}function U_(E,P,B,ce,$e,Yt,Er){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==$e||E.equalsGreaterThanToken!==Yt||E.body!==Er?V(Of(P,B,ce,$e,Yt,Er),E):E}function Mh(E){const P=K(220);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ar(P.expression),P}function ev(E,P){return E.expression!==P?or(Mh(P),E):E}function Bu(E){const P=K(221);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ar(P.expression),P}function tv(E,P){return E.expression!==P?or(Bu(P),E):E}function Dp(E){const P=K(222);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ar(P.expression),P}function vg(E,P){return E.expression!==P?or(Dp(P),E):E}function Ud(E){const P=K(223);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ar(P.expression)|256|128|2097152,P}function te(E,P){return E.expression!==P?or(Ud(P),E):E}function lt(E,P){const B=K(224);return B.operator=E,B.operand=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Ar(B.operand),(E===46||E===47)&&je(B.operand)&&!al(B.operand)&&!Xg(B.operand)&&(B.transformFlags|=268435456),B}function zt(E,P){return E.operand!==P?or(lt(E.operator,P),E):E}function Jt(E,P){const B=K(225);return B.operator=P,B.operand=i().parenthesizeOperandOfPostfixUnary(E),B.transformFlags|=Ar(B.operand),je(B.operand)&&!al(B.operand)&&!Xg(B.operand)&&(B.transformFlags|=268435456),B}function F(E,P){return E.operand!==P?or(Jt(P,E.operator),E):E}function De(E,P,B){const ce=ee(226),$e=z2(P),Yt=$e.kind;return ce.left=i().parenthesizeLeftSideOfBinary(Yt,E),ce.operatorToken=$e,ce.right=i().parenthesizeRightSideOfBinary(Yt,ce.left,B),ce.transformFlags|=Ar(ce.left)|Ar(ce.operatorToken)|Ar(ce.right),Yt===61?ce.transformFlags|=32:Yt===64?Wa(ce.left)?ce.transformFlags|=5248|st(ce.left):_d(ce.left)&&(ce.transformFlags|=5120|st(ce.left)):Yt===43||Yt===68?ce.transformFlags|=512:BN(Yt)&&(ce.transformFlags|=16),Yt===103&&Ji(ce.left)&&(ce.transformFlags|=536870912),ce.jsDoc=void 0,ce}function st(E){return cw(E)?65536:0}function Vt(E,P,B,ce){return E.left!==P||E.operatorToken!==B||E.right!==ce?or(De(P,B,ce),E):E}function ir(E,P,B,ce,$e){const Yt=K(227);return Yt.condition=i().parenthesizeConditionOfConditionalExpression(E),Yt.questionToken=P!=null?P:be(58),Yt.whenTrue=i().parenthesizeBranchOfConditionalExpression(B),Yt.colonToken=ce!=null?ce:be(59),Yt.whenFalse=i().parenthesizeBranchOfConditionalExpression($e),Yt.transformFlags|=Ar(Yt.condition)|Ar(Yt.questionToken)|Ar(Yt.whenTrue)|Ar(Yt.colonToken)|Ar(Yt.whenFalse),Yt}function ni(E,P,B,ce,$e,Yt){return E.condition!==P||E.questionToken!==B||E.whenTrue!==ce||E.colonToken!==$e||E.whenFalse!==Yt?or(ir(P,B,ce,$e,Yt),E):E}function Xr(E,P){const B=K(228);return B.head=E,B.templateSpans=U(P),B.transformFlags|=Ar(B.head)|$a(B.templateSpans)|1024,B}function so(E,P,B){return E.head!==P||E.templateSpans!==B?or(Xr(P,B),E):E}function Ba(E,P,B,ce=0){C.assert(!(ce&-7177),"Unsupported template flags.");let $e;if(B!==void 0&&B!==P&&($e=zGe(E,B),typeof $e=="object"))return C.fail("Invalid raw text");if(P===void 0){if($e===void 0)return C.fail("Arguments 'text' and 'rawText' may not both be undefined.");P=$e}else $e!==void 0&&C.assert(P===$e,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return P}function Ga(E){let P=1024;return E&&(P|=128),P}function Fl(E,P,B,ce){const $e=At(E);return $e.text=P,$e.rawText=B,$e.templateFlags=ce&7176,$e.transformFlags=Ga($e.templateFlags),$e}function mu(E,P,B,ce){const $e=ee(E);return $e.text=P,$e.rawText=B,$e.templateFlags=ce&7176,$e.transformFlags=Ga($e.templateFlags),$e}function Nc(E,P,B,ce){return E===15?mu(E,P,B,ce):Fl(E,P,B,ce)}function Cp(E,P,B){return E=Ba(16,E,P,B),Nc(16,E,P,B)}function Hd(E,P,B){return E=Ba(16,E,P,B),Nc(17,E,P,B)}function pb(E,P,B){return E=Ba(16,E,P,B),Nc(18,E,P,B)}function ps(E,P,B){return E=Ba(16,E,P,B),mu(15,E,P,B)}function Wf(E,P){C.assert(!E||!!P,"A `YieldExpression` with an asteriskToken must have an expression.");const B=K(229);return B.expression=P&&i().parenthesizeExpressionForDisallowedComma(P),B.asteriskToken=E,B.transformFlags|=Ar(B.expression)|Ar(B.asteriskToken)|1024|128|1048576,B}function Ff(E,P,B){return E.expression!==B||E.asteriskToken!==P?or(Wf(P,B),E):E}function Vi(E){const P=K(230);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Ar(P.expression)|1024|32768,P}function Lh(E,P){return E.expression!==P?or(Vi(P),E):E}function yg(E,P,B,ce,$e){const Yt=ee(231);return Yt.modifiers=Ka(E),Yt.name=mc(P),Yt.typeParameters=Ka(B),Yt.heritageClauses=Ka(ce),Yt.members=U($e),Yt.transformFlags|=$a(Yt.modifiers)|Yy(Yt.name)|$a(Yt.typeParameters)|$a(Yt.heritageClauses)|$a(Yt.members)|(Yt.typeParameters?1:0)|1024,Yt.jsDoc=void 0,Yt}function zf(E,P,B,ce,$e,Yt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Yt?or(yg(P,B,ce,$e,Yt),E):E}function fb(){return K(232)}function mb(E,P){const B=K(233);return B.expression=i().parenthesizeLeftSideOfAccess(E,!1),B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags|=Ar(B.expression)|$a(B.typeArguments)|1024,B}function mf(E,P,B){return E.expression!==P||E.typeArguments!==B?or(mb(P,B),E):E}function H_(E,P){const B=K(234);return B.expression=E,B.type=P,B.transformFlags|=Ar(B.expression)|Ar(B.type)|1,B}function _f(E,P,B){return E.expression!==P||E.type!==B?or(H_(P,B),E):E}function nv(E){const P=K(235);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Ar(P.expression)|1,P}function ze(E,P){return x4(E)?vn(E,P):E.expression!==P?or(nv(P),E):E}function Ze(E,P){const B=K(238);return B.expression=E,B.type=P,B.transformFlags|=Ar(B.expression)|Ar(B.type)|1,B}function Nt(E,P,B){return E.expression!==P||E.type!==B?or(Ze(P,B),E):E}function Ut(E){const P=K(235);return P.flags|=64,P.expression=i().parenthesizeLeftSideOfAccess(E,!0),P.transformFlags|=Ar(P.expression)|1,P}function vn(E,P){return C.assert(!!(E.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),E.expression!==P?or(Ut(P),E):E}function Jn(E,P){const B=K(236);switch(B.keywordToken=E,B.name=P,B.transformFlags|=Ar(B.name),E){case 105:B.transformFlags|=1024;break;case 102:B.transformFlags|=32;break;default:return C.assertNever(E)}return B.flowNode=void 0,B}function bn(E,P){return E.name!==P?or(Jn(E.keywordToken,P),E):E}function $n(E,P){const B=K(239);return B.expression=E,B.literal=P,B.transformFlags|=Ar(B.expression)|Ar(B.literal)|1024,B}function fi(E,P,B){return E.expression!==P||E.literal!==B?or($n(P,B),E):E}function cr(){const E=K(240);return E.transformFlags|=1024,E}function ei(E,P){const B=K(241);return B.statements=U(E),B.multiLine=P,B.transformFlags|=$a(B.statements),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B}function fr(E,P){return E.statements!==P?or(ei(P,E.multiLine),E):E}function Yo(E,P){const B=K(243);return B.modifiers=Ka(E),B.declarationList=Ao(P)?sp(P):P,B.transformFlags|=$a(B.modifiers)|Ar(B.declarationList),M_(B.modifiers)&128&&(B.transformFlags=1),B.jsDoc=void 0,B.flowNode=void 0,B}function Qa(E,P,B){return E.modifiers!==P||E.declarationList!==B?or(Yo(P,B),E):E}function Zu(){const E=K(242);return E.jsDoc=void 0,E}function _u(E){const P=K(244);return P.expression=i().parenthesizeExpressionOfExpressionStatement(E),P.transformFlags|=Ar(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function rv(E,P){return E.expression!==P?or(_u(P),E):E}function H0(E,P,B){const ce=K(245);return ce.expression=E,ce.thenStatement=kb(P),ce.elseStatement=kb(B),ce.transformFlags|=Ar(ce.expression)|Ar(ce.thenStatement)|Ar(ce.elseStatement),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function JI(E,P,B,ce){return E.expression!==P||E.thenStatement!==B||E.elseStatement!==ce?or(H0(P,B,ce),E):E}function q0(E,P){const B=K(246);return B.statement=kb(E),B.expression=P,B.transformFlags|=Ar(B.statement)|Ar(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function ZD(E,P,B){return E.statement!==P||E.expression!==B?or(q0(P,B),E):E}function eC(E,P){const B=K(247);return B.expression=E,B.statement=kb(P),B.transformFlags|=Ar(B.expression)|Ar(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function tC(E,P,B){return E.expression!==P||E.statement!==B?or(eC(P,B),E):E}function hT(E,P,B,ce){const $e=K(248);return $e.initializer=E,$e.condition=P,$e.incrementor=B,$e.statement=kb(ce),$e.transformFlags|=Ar($e.initializer)|Ar($e.condition)|Ar($e.incrementor)|Ar($e.statement),$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e}function D1(E,P,B,ce,$e){return E.initializer!==P||E.condition!==B||E.incrementor!==ce||E.statement!==$e?or(hT(P,B,ce,$e),E):E}function KI(E,P,B){const ce=K(249);return ce.initializer=E,ce.expression=P,ce.statement=kb(B),ce.transformFlags|=Ar(ce.initializer)|Ar(ce.expression)|Ar(ce.statement),ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.flowNode=void 0,ce}function nC(E,P,B,ce){return E.initializer!==P||E.expression!==B||E.statement!==ce?or(KI(P,B,ce),E):E}function XI(E,P,B,ce){const $e=K(250);return $e.awaitModifier=E,$e.initializer=P,$e.expression=i().parenthesizeExpressionForDisallowedComma(B),$e.statement=kb(ce),$e.transformFlags|=Ar($e.awaitModifier)|Ar($e.initializer)|Ar($e.expression)|Ar($e.statement)|1024,E&&($e.transformFlags|=128),$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e}function YI(E,P,B,ce,$e){return E.awaitModifier!==P||E.initializer!==B||E.expression!==ce||E.statement!==$e?or(XI(P,B,ce,$e),E):E}function $I(E){const P=K(251);return P.label=mc(E),P.transformFlags|=Ar(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function QI(E,P){return E.label!==P?or($I(P),E):E}function gT(E){const P=K(252);return P.label=mc(E),P.transformFlags|=Ar(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function ZI(E,P){return E.label!==P?or(gT(P),E):E}function C1(E){const P=K(253);return P.expression=E,P.transformFlags|=Ar(P.expression)|128|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function N1(E,P){return E.expression!==P?or(C1(P),E):E}function _b(E,P){const B=K(254);return B.expression=E,B.statement=kb(P),B.transformFlags|=Ar(B.expression)|Ar(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function hb(E,P,B){return E.expression!==P||E.statement!==B?or(_b(P,B),E):E}function bg(E,P){const B=K(255);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.caseBlock=P,B.transformFlags|=Ar(B.expression)|Ar(B.caseBlock),B.jsDoc=void 0,B.flowNode=void 0,B.possiblyExhaustive=!1,B}function J0(E,P,B){return E.expression!==P||E.caseBlock!==B?or(bg(P,B),E):E}function os(E,P){const B=K(256);return B.label=mc(E),B.statement=kb(P),B.transformFlags|=Ar(B.label)|Ar(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function vT(E,P,B){return E.label!==P||E.statement!==B?or(os(P,B),E):E}function rC(E){const P=K(257);return P.expression=E,P.transformFlags|=Ar(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function K0(E,P){return E.expression!==P?or(rC(P),E):E}function iv(E,P,B){const ce=K(258);return ce.tryBlock=E,ce.catchClause=P,ce.finallyBlock=B,ce.transformFlags|=Ar(ce.tryBlock)|Ar(ce.catchClause)|Ar(ce.finallyBlock),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function kh(E,P,B,ce){return E.tryBlock!==P||E.catchClause!==B||E.finallyBlock!==ce?or(iv(P,B,ce),E):E}function Bf(){const E=K(259);return E.jsDoc=void 0,E.flowNode=void 0,E}function qd(E,P,B,ce){var Yt;const $e=ee(260);return $e.name=mc(E),$e.exclamationToken=P,$e.type=B,$e.initializer=_x(ce),$e.transformFlags|=Yy($e.name)|Ar($e.initializer)|(((Yt=$e.exclamationToken)!=null?Yt:$e.type)?1:0),$e.jsDoc=void 0,$e}function Np(E,P,B,ce,$e){return E.name!==P||E.type!==ce||E.exclamationToken!==B||E.initializer!==$e?or(qd(P,B,ce,$e),E):E}function sp(E,P=0){const B=K(261);return B.flags|=P&7,B.declarations=U(E),B.transformFlags|=$a(B.declarations)|4194304,P&7&&(B.transformFlags|=263168),P&4&&(B.transformFlags|=4),B}function sy(E,P){return E.declarations!==P?or(sp(P,E.flags),E):E}function yT(E,P,B,ce,$e,Yt,Er){const $i=ee(262);if($i.modifiers=Ka(E),$i.asteriskToken=P,$i.name=mc(B),$i.typeParameters=Ka(ce),$i.parameters=U($e),$i.type=Yt,$i.body=Er,!$i.body||M_($i.modifiers)&128)$i.transformFlags=1;else{const Ms=M_($i.modifiers)&1024,m_=!!$i.asteriskToken,wb=Ms&&m_;$i.transformFlags=$a($i.modifiers)|Ar($i.asteriskToken)|Yy($i.name)|$a($i.typeParameters)|$a($i.parameters)|Ar($i.type)|Ar($i.body)&-67108865|(wb?128:Ms?256:m_?2048:0)|($i.typeParameters||$i.type?1:0)|4194304}return $i.typeArguments=void 0,$i.jsDoc=void 0,$i.locals=void 0,$i.nextContainer=void 0,$i.endFlowNode=void 0,$i.returnFlowNode=void 0,$i}function iC(E,P,B,ce,$e,Yt,Er,$i){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.typeParameters!==$e||E.parameters!==Yt||E.type!==Er||E.body!==$i?ex(yT(P,B,ce,$e,Yt,Er,$i),E):E}function ex(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),V(E,P)}function gb(E,P,B,ce,$e){const Yt=ee(263);return Yt.modifiers=Ka(E),Yt.name=mc(P),Yt.typeParameters=Ka(B),Yt.heritageClauses=Ka(ce),Yt.members=U($e),M_(Yt.modifiers)&128?Yt.transformFlags=1:(Yt.transformFlags|=$a(Yt.modifiers)|Yy(Yt.name)|$a(Yt.typeParameters)|$a(Yt.heritageClauses)|$a(Yt.members)|(Yt.typeParameters?1:0)|1024,Yt.transformFlags&8192&&(Yt.transformFlags|=1)),Yt.jsDoc=void 0,Yt}function X0(E,P,B,ce,$e,Yt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Yt?or(gb(P,B,ce,$e,Yt),E):E}function tx(E,P,B,ce,$e){const Yt=ee(264);return Yt.modifiers=Ka(E),Yt.name=mc(P),Yt.typeParameters=Ka(B),Yt.heritageClauses=Ka(ce),Yt.members=U($e),Yt.transformFlags=1,Yt.jsDoc=void 0,Yt}function Tc(E,P,B,ce,$e,Yt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Yt?or(tx(P,B,ce,$e,Yt),E):E}function ly(E,P,B,ce){const $e=ee(265);return $e.modifiers=Ka(E),$e.name=mc(P),$e.typeParameters=Ka(B),$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e}function nx(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.type!==$e?or(ly(P,B,ce,$e),E):E}function l_(E,P,B){const ce=ee(266);return ce.modifiers=Ka(E),ce.name=mc(P),ce.members=U(B),ce.transformFlags|=$a(ce.modifiers)|Ar(ce.name)|$a(ce.members)|1,ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function bT(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.members!==ce?or(l_(P,B,ce),E):E}function Xe(E,P,B,ce=0){const $e=ee(267);return $e.modifiers=Ka(E),$e.flags|=ce&2088,$e.name=P,$e.body=B,M_($e.modifiers)&128?$e.transformFlags=1:$e.transformFlags|=$a($e.modifiers)|Ar($e.name)|Ar($e.body)|1,$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e}function c_(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.body!==ce?or(Xe(P,B,ce,E.flags),E):E}function hu(E){const P=K(268);return P.statements=U(E),P.transformFlags|=$a(P.statements),P.jsDoc=void 0,P}function Y0(E,P){return E.statements!==P?or(hu(P),E):E}function rx(E){const P=K(269);return P.clauses=U(E),P.transformFlags|=$a(P.clauses),P.locals=void 0,P.nextContainer=void 0,P}function vb(E,P){return E.clauses!==P?or(rx(P),E):E}function cy(E){const P=ee(270);return P.name=mc(E),P.transformFlags|=Ok(P.name)|1,P.modifiers=void 0,P.jsDoc=void 0,P}function uy(E,P){return E.name!==P?P2(cy(P),E):E}function P2(E,P){return E!==P&&(E.modifiers=P.modifiers),or(E,P)}function Za(E,P,B,ce){const $e=ee(271);return $e.modifiers=Ka(E),$e.name=mc(B),$e.isTypeOnly=P,$e.moduleReference=ce,$e.transformFlags|=$a($e.modifiers)|Ok($e.name)|Ar($e.moduleReference),xh($e.moduleReference)||($e.transformFlags|=1),$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e}function u_(E,P,B,ce,$e){return E.modifiers!==P||E.isTypeOnly!==B||E.name!==ce||E.moduleReference!==$e?or(Za(P,B,ce,$e),E):E}function ET(E,P,B,ce){const $e=K(272);return $e.modifiers=Ka(E),$e.importClause=P,$e.moduleSpecifier=B,$e.attributes=$e.assertClause=ce,$e.transformFlags|=Ar($e.importClause)|Ar($e.moduleSpecifier),$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e}function ST(E,P,B,ce,$e){return E.modifiers!==P||E.importClause!==B||E.moduleSpecifier!==ce||E.attributes!==$e?or(ET(P,B,ce,$e),E):E}function $0(E,P,B){const ce=ee(273);return ce.isTypeOnly=E,ce.name=P,ce.namedBindings=B,ce.transformFlags|=Ar(ce.name)|Ar(ce.namedBindings),E&&(ce.transformFlags|=1),ce.transformFlags&=-67108865,ce}function TT(E,P,B,ce){return E.isTypeOnly!==P||E.name!==B||E.namedBindings!==ce?or($0(P,B,ce),E):E}function mm(E,P){const B=K(300);return B.elements=U(E),B.multiLine=P,B.token=132,B.transformFlags|=4,B}function _m(E,P,B){return E.elements!==P||E.multiLine!==B?or(mm(P,B),E):E}function ov(E,P){const B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function ix(E,P,B){return E.name!==P||E.value!==B?or(ov(P,B),E):E}function d_(E,P){const B=K(302);return B.assertClause=E,B.multiLine=P,B}function oC(E,P,B){return E.assertClause!==P||E.multiLine!==B?or(d_(P,B),E):E}function P1(E,P,B){const ce=K(300);return ce.token=B!=null?B:118,ce.elements=U(E),ce.multiLine=P,ce.transformFlags|=4,ce}function Xi(E,P,B){return E.elements!==P||E.multiLine!==B?or(P1(P,B,E.token),E):E}function Qr(E,P){const B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function wh(E,P,B){return E.name!==P||E.value!==B?or(Qr(P,B),E):E}function Jd(E){const P=ee(274);return P.name=E,P.transformFlags|=Ar(P.name),P.transformFlags&=-67108865,P}function M2(E,P){return E.name!==P?or(Jd(P),E):E}function av(E){const P=ee(280);return P.name=E,P.transformFlags|=Ar(P.name)|32,P.transformFlags&=-67108865,P}function L2(E,P){return E.name!==P?or(av(P),E):E}function yb(E){const P=K(275);return P.elements=U(E),P.transformFlags|=$a(P.elements),P.transformFlags&=-67108865,P}function yl(E,P){return E.elements!==P?or(yb(P),E):E}function Up(E,P,B){const ce=ee(276);return ce.isTypeOnly=E,ce.propertyName=P,ce.name=B,ce.transformFlags|=Ar(ce.propertyName)|Ar(ce.name),ce.transformFlags&=-67108865,ce}function Eg(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?or(Up(P,B,ce),E):E}function hm(E,P,B){const ce=ee(277);return ce.modifiers=Ka(E),ce.isExportEquals=P,ce.expression=P?i().parenthesizeRightSideOfBinary(64,void 0,B):i().parenthesizeExpressionOfExportDefault(B),ce.transformFlags|=$a(ce.modifiers)|Ar(ce.expression),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function bb(E,P,B){return E.modifiers!==P||E.expression!==B?or(hm(P,E.isExportEquals,B),E):E}function Fm(E,P,B,ce,$e){const Yt=ee(278);return Yt.modifiers=Ka(E),Yt.isTypeOnly=P,Yt.exportClause=B,Yt.moduleSpecifier=ce,Yt.attributes=Yt.assertClause=$e,Yt.transformFlags|=$a(Yt.modifiers)|Ar(Yt.exportClause)|Ar(Yt.moduleSpecifier),Yt.transformFlags&=-67108865,Yt.jsDoc=void 0,Yt}function sv(E,P,B,ce,$e,Yt){return E.modifiers!==P||E.isTypeOnly!==B||E.exportClause!==ce||E.moduleSpecifier!==$e||E.attributes!==Yt?M1(Fm(P,B,ce,$e,Yt),E):E}function M1(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),or(E,P)}function AT(E){const P=K(279);return P.elements=U(E),P.transformFlags|=$a(P.elements),P.transformFlags&=-67108865,P}function Sg(E,P){return E.elements!==P?or(AT(P),E):E}function ox(E,P,B){const ce=K(281);return ce.isTypeOnly=E,ce.propertyName=mc(P),ce.name=mc(B),ce.transformFlags|=Ar(ce.propertyName)|Ar(ce.name),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function Tg(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?or(ox(P,B,ce),E):E}function q_(){const E=ee(282);return E.jsDoc=void 0,E}function dy(E){const P=K(283);return P.expression=E,P.transformFlags|=Ar(P.expression),P.transformFlags&=-67108865,P}function aC(E,P){return E.expression!==P?or(dy(P),E):E}function sC(E){return K(E)}function lC(E,P,B=!1){const ce=IT(E,B?P&&i().parenthesizeNonArrayTypeOfPostfixType(P):P);return ce.postfix=B,ce}function IT(E,P){const B=K(E);return B.type=P,B}function Qs(E,P,B){return P.type!==B?or(lC(E,B,P.postfix),P):P}function L1(E,P,B){return P.type!==B?or(IT(E,B),P):P}function xT(E,P){const B=ee(324);return B.parameters=Ka(E),B.type=P,B.transformFlags=$a(B.parameters)|(B.type?1:0),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.typeArguments=void 0,B}function zm(E,P,B){return E.parameters!==P||E.type!==B?or(xT(P,B),E):E}function Eb(E,P=!1){const B=ee(329);return B.jsDocPropertyTags=Ka(E),B.isArrayType=P,B}function cC(E,P,B){return E.jsDocPropertyTags!==P||E.isArrayType!==B?or(Eb(P,B),E):E}function RT(E){const P=K(316);return P.type=E,P}function k2(E,P){return E.type!==P?or(RT(P),E):E}function vr(E,P,B){const ce=ee(330);return ce.typeParameters=Ka(E),ce.parameters=U(P),ce.type=B,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce}function ou(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?or(vr(P,B,ce),E):E}function ro(E){const P=_H(E.kind);return E.tagName.escapedText===hl(P)?E.tagName:Ae(P)}function hf(E,P,B){const ce=K(E);return ce.tagName=P,ce.comment=B,ce}function py(E,P,B){const ce=ee(E);return ce.tagName=P,ce.comment=B,ce}function J_(E,P,B,ce){const $e=hf(352,E!=null?E:Ae("template"),ce);return $e.constraint=P,$e.typeParameters=U(B),$e}function ur(E,P=ro(E),B,ce,$e){return E.tagName!==P||E.constraint!==B||E.typeParameters!==ce||E.comment!==$e?or(J_(P,B,ce,$e),E):E}function DT(E,P,B,ce){const $e=py(353,E!=null?E:Ae("typedef"),ce);return $e.typeExpression=P,$e.fullName=B,$e.name=eq(B),$e.locals=void 0,$e.nextContainer=void 0,$e}function Q0(E,P=ro(E),B,ce,$e){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==$e?or(DT(P,B,ce,$e),E):E}function Xc(E,P,B,ce,$e,Yt){const Er=py(348,E!=null?E:Ae("param"),Yt);return Er.typeExpression=ce,Er.name=P,Er.isNameFirst=!!$e,Er.isBracketed=B,Er}function Oh(E,P=ro(E),B,ce,$e,Yt,Er){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==$e||E.isNameFirst!==Yt||E.comment!==Er?or(Xc(P,B,ce,$e,Yt,Er),E):E}function Bm(E,P,B,ce,$e,Yt){const Er=py(355,E!=null?E:Ae("prop"),Yt);return Er.typeExpression=ce,Er.name=P,Er.isNameFirst=!!$e,Er.isBracketed=B,Er}function k1(E,P=ro(E),B,ce,$e,Yt,Er){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==$e||E.isNameFirst!==Yt||E.comment!==Er?or(Bm(P,B,ce,$e,Yt,Er),E):E}function w1(E,P,B,ce){const $e=py(345,E!=null?E:Ae("callback"),ce);return $e.typeExpression=P,$e.fullName=B,$e.name=eq(B),$e.locals=void 0,$e.nextContainer=void 0,$e}function Sb(E,P=ro(E),B,ce,$e){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==$e?or(w1(P,B,ce,$e),E):E}function lv(E,P,B){const ce=hf(346,E!=null?E:Ae("overload"),B);return ce.typeExpression=P,ce}function CT(E,P=ro(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?or(lv(P,B,ce),E):E}function Gm(E,P,B){const ce=hf(335,E!=null?E:Ae("augments"),B);return ce.class=P,ce}function Z0(E,P=ro(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?or(Gm(P,B,ce),E):E}function Ag(E,P,B){const ce=hf(336,E!=null?E:Ae("implements"),B);return ce.class=P,ce}function Tb(E,P,B){const ce=hf(354,E!=null?E:Ae("see"),B);return ce.name=P,ce}function ax(E,P,B,ce){return E.tagName!==P||E.name!==B||E.comment!==ce?or(Tb(P,B,ce),E):E}function eE(E){const P=K(317);return P.name=E,P}function uC(E,P){return E.name!==P?or(eE(P),E):E}function O1(E,P){const B=K(318);return B.left=E,B.right=P,B.transformFlags|=Ar(B.left)|Ar(B.right),B}function NT(E,P,B){return E.left!==P||E.right!==B?or(O1(P,B),E):E}function Hp(E,P){const B=K(331);return B.name=E,B.text=P,B}function PT(E,P,B){return E.name!==P?or(Hp(P,B),E):E}function Hl(E,P){const B=K(332);return B.name=E,B.text=P,B}function Bc(E,P,B){return E.name!==P?or(Hl(P,B),E):E}function MT(E,P){const B=K(333);return B.name=E,B.text=P,B}function Iu(E,P,B){return E.name!==P?or(MT(P,B),E):E}function lp(E,P=ro(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?or(Ag(P,B,ce),E):E}function tE(E,P,B){return hf(E,P!=null?P:Ae(_H(E)),B)}function Gf(E,P,B=ro(P),ce){return P.tagName!==B||P.comment!==ce?or(tE(E,B,ce),P):P}function Ab(E,P,B,ce){const $e=hf(E,P!=null?P:Ae(_H(E)),ce);return $e.typeExpression=B,$e}function Ib(E,P,B=ro(P),ce,$e){return P.tagName!==B||P.typeExpression!==ce||P.comment!==$e?or(Ab(E,B,ce,$e),P):P}function au(E,P){return hf(334,E,P)}function sx(E,P,B){return E.tagName!==P||E.comment!==B?or(au(P,B),E):E}function qp(E,P,B){const ce=py(347,E!=null?E:Ae(_H(347)),B);return ce.typeExpression=P,ce.locals=void 0,ce.nextContainer=void 0,ce}function LT(E,P=ro(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?or(qp(P,B,ce),E):E}function kT(E){const P=K(328);return P.text=E,P}function qs(E,P){return E.text!==P?or(kT(P),E):E}function dC(E,P){const B=K(327);return B.comment=E,B.tags=Ka(P),B}function nE(E,P,B){return E.comment!==P||E.tags!==B?or(dC(P,B),E):E}function W1(E,P,B){const ce=K(284);return ce.openingElement=E,ce.children=U(P),ce.closingElement=B,ce.transformFlags|=Ar(ce.openingElement)|$a(ce.children)|Ar(ce.closingElement)|2,ce}function w2(E,P,B,ce){return E.openingElement!==P||E.children!==B||E.closingElement!==ce?or(W1(P,B,ce),E):E}function gd(E,P,B){const ce=K(285);return ce.tagName=E,ce.typeArguments=Ka(P),ce.attributes=B,ce.transformFlags|=Ar(ce.tagName)|$a(ce.typeArguments)|Ar(ce.attributes)|2,ce.typeArguments&&(ce.transformFlags|=1),ce}function cv(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?or(gd(P,B,ce),E):E}function K_(E,P,B){const ce=K(286);return ce.tagName=E,ce.typeArguments=Ka(P),ce.attributes=B,ce.transformFlags|=Ar(ce.tagName)|$a(ce.typeArguments)|Ar(ce.attributes)|2,P&&(ce.transformFlags|=1),ce}function lx(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?or(K_(P,B,ce),E):E}function Pp(E){const P=K(287);return P.tagName=E,P.transformFlags|=Ar(P.tagName)|2,P}function cx(E,P){return E.tagName!==P?or(Pp(P),E):E}function cp(E,P,B){const ce=K(288);return ce.openingFragment=E,ce.children=U(P),ce.closingFragment=B,ce.transformFlags|=Ar(ce.openingFragment)|$a(ce.children)|Ar(ce.closingFragment)|2,ce}function ux(E,P,B,ce){return E.openingFragment!==P||E.children!==B||E.closingFragment!==ce?or(cp(P,B,ce),E):E}function fy(E,P){const B=K(12);return B.text=E,B.containsOnlyTriviaWhiteSpaces=!!P,B.transformFlags|=2,B}function wT(E,P,B){return E.text!==P||E.containsOnlyTriviaWhiteSpaces!==B?or(fy(P,B),E):E}function pC(){const E=K(289);return E.transformFlags|=2,E}function fC(){const E=K(290);return E.transformFlags|=2,E}function OT(E,P){const B=ee(291);return B.name=E,B.initializer=P,B.transformFlags|=Ar(B.name)|Ar(B.initializer)|2,B}function mC(E,P,B){return E.name!==P||E.initializer!==B?or(OT(P,B),E):E}function xb(E){const P=ee(292);return P.properties=U(E),P.transformFlags|=$a(P.properties)|2,P}function Mp(E,P){return E.properties!==P?or(xb(P),E):E}function Wh(E){const P=K(293);return P.expression=E,P.transformFlags|=Ar(P.expression)|2,P}function _C(E,P){return E.expression!==P?or(Wh(P),E):E}function WT(E,P){const B=K(294);return B.dotDotDotToken=E,B.expression=P,B.transformFlags|=Ar(B.dotDotDotToken)|Ar(B.expression)|2,B}function ss(E,P){return E.expression!==P?or(WT(E.dotDotDotToken,P),E):E}function xr(E,P){const B=K(295);return B.namespace=E,B.name=P,B.transformFlags|=Ar(B.namespace)|Ar(B.name)|2,B}function gf(E,P,B){return E.namespace!==P||E.name!==B?or(xr(P,B),E):E}function Pd(E,P){const B=K(296);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.statements=U(P),B.transformFlags|=Ar(B.expression)|$a(B.statements),B.jsDoc=void 0,B}function F1(E,P,B){return E.expression!==P||E.statements!==B?or(Pd(P,B),E):E}function hC(E){const P=K(297);return P.statements=U(E),P.transformFlags=$a(P.statements),P}function rE(E,P){return E.statements!==P?or(hC(P),E):E}function z1(E,P){const B=K(298);switch(B.token=E,B.types=U(P),B.transformFlags|=$a(B.types),E){case 96:B.transformFlags|=1024;break;case 119:B.transformFlags|=1;break;default:return C.assertNever(E)}return B}function FT(E,P){return E.types!==P?or(z1(E.token,P),E):E}function Ig(E,P){const B=K(299);return B.variableDeclaration=B2(E),B.block=P,B.transformFlags|=Ar(B.variableDeclaration)|Ar(B.block)|(E?0:64),B.locals=void 0,B.nextContainer=void 0,B}function p_(E,P,B){return E.variableDeclaration!==P||E.block!==B?or(Ig(P,B),E):E}function vf(E,P){const B=ee(303);return B.name=mc(E),B.initializer=i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Yy(B.name)|Ar(B.initializer),B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Vm(E,P,B){return E.name!==P||E.initializer!==B?uv(vf(P,B),E):E}function uv(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken),or(E,P)}function xg(E,P){const B=ee(304);return B.name=mc(E),B.objectAssignmentInitializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Ok(B.name)|Ar(B.objectAssignmentInitializer)|1024,B.equalsToken=void 0,B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Rg(E,P,B){return E.name!==P||E.objectAssignmentInitializer!==B?dx(xg(P,B),E):E}function dx(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken,E.equalsToken=P.equalsToken),or(E,P)}function fc(E){const P=ee(305);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Ar(P.expression)|128|65536,P.jsDoc=void 0,P}function gC(E,P){return E.expression!==P?or(fc(P),E):E}function Vf(E,P){const B=ee(306);return B.name=mc(E),B.initializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Ar(B.name)|Ar(B.initializer)|1,B.jsDoc=void 0,B}function Fh(E,P,B){return E.name!==P||E.initializer!==B?or(Vf(P,B),E):E}function yf(E,P,B){const ce=t.createBaseSourceFileNode(312);return ce.statements=U(E),ce.endOfFileToken=P,ce.flags|=B,ce.text="",ce.fileName="",ce.path="",ce.resolvedPath="",ce.originalFileName="",ce.languageVersion=0,ce.languageVariant=0,ce.scriptKind=0,ce.isDeclarationFile=!1,ce.hasNoDefaultLib=!1,ce.transformFlags|=$a(ce.statements)|Ar(ce.endOfFileToken),ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.nodeCount=0,ce.identifierCount=0,ce.symbolCount=0,ce.parseDiagnostics=void 0,ce.bindDiagnostics=void 0,ce.bindSuggestionDiagnostics=void 0,ce.lineMap=void 0,ce.externalModuleIndicator=void 0,ce.setExternalModuleIndicator=void 0,ce.pragmas=void 0,ce.checkJsDirective=void 0,ce.referencedFiles=void 0,ce.typeReferenceDirectives=void 0,ce.libReferenceDirectives=void 0,ce.amdDependencies=void 0,ce.commentDirectives=void 0,ce.identifiers=void 0,ce.packageJsonLocations=void 0,ce.packageJsonScope=void 0,ce.imports=void 0,ce.moduleAugmentations=void 0,ce.ambientModuleNames=void 0,ce.classifiableNames=void 0,ce.impliedNodeFormat=void 0,ce}function B1(E){const P=Object.create(E.redirectTarget);return Object.defineProperties(P,{id:{get(){return this.redirectInfo.redirectTarget.id},set(B){this.redirectInfo.redirectTarget.id=B}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(B){this.redirectInfo.redirectTarget.symbol=B}}}),P.redirectInfo=E,P}function iE(E){const P=B1(E.redirectInfo);return P.flags|=E.flags&-17,P.fileName=E.fileName,P.path=E.path,P.resolvedPath=E.resolvedPath,P.originalFileName=E.originalFileName,P.packageJsonLocations=E.packageJsonLocations,P.packageJsonScope=E.packageJsonScope,P.emitNode=void 0,P}function px(E){const P=t.createBaseSourceFileNode(312);P.flags|=E.flags&-17;for(const B in E)if(!(Cs(P,B)||!Cs(E,B))){if(B==="emitNode"){P.emitNode=void 0;continue}P[B]=E[B]}return P}function zT(E){const P=E.redirectInfo?iE(E):px(E);return r(P,E),P}function bf(E,P,B,ce,$e,Yt,Er){const $i=zT(E);return $i.statements=U(P),$i.isDeclarationFile=B,$i.referencedFiles=ce,$i.typeReferenceDirectives=$e,$i.hasNoDefaultLib=Yt,$i.libReferenceDirectives=Er,$i.transformFlags=$a($i.statements)|Ar($i.endOfFileToken),$i}function Fs(E,P,B=E.isDeclarationFile,ce=E.referencedFiles,$e=E.typeReferenceDirectives,Yt=E.hasNoDefaultLib,Er=E.libReferenceDirectives){return E.statements!==P||E.isDeclarationFile!==B||E.referencedFiles!==ce||E.typeReferenceDirectives!==$e||E.hasNoDefaultLib!==Yt||E.libReferenceDirectives!==Er?or(bf(E,P,B,ce,$e,Yt,Er),E):E}function G1(E,P=et){const B=K(313);return B.prepends=P,B.sourceFiles=E,B.syntheticFileReferences=void 0,B.syntheticTypeReferences=void 0,B.syntheticLibReferences=void 0,B.hasNoDefaultLib=void 0,B}function V1(E,P,B=et){return E.sourceFiles!==P||E.prepends!==B?or(G1(P,B),E):E}function dv(E,P,B){const ce=K(314);return ce.prologues=E,ce.syntheticReferences=P,ce.texts=B,ce.fileName="",ce.text="",ce.referencedFiles=et,ce.libReferenceDirectives=et,ce.getLineAndCharacterOfPosition=$e=>Ts(ce,$e),ce}function Rb(E,P){const B=K(E);return B.data=P,B}function oE(E){return Rb(307,E)}function D(E,P){const B=Rb(308,E);return B.texts=P,B}function ae(E,P){return Rb(P?310:309,E)}function ht(E){const P=K(311);return P.data=E.data,P.section=E,P}function ln(){const E=K(315);return E.javascriptText="",E.declarationText="",E}function kr(E,P=!1,B){const ce=K(237);return ce.type=E,ce.isSpread=P,ce.tupleNameSource=B,ce}function Ni(E){const P=K(358);return P._children=E,P}function bi(E){const P=K(359);return P.original=E,ut(P,E),P}function io(E,P){const B=K(360);return B.expression=E,B.original=P,B.transformFlags|=Ar(B.expression)|1,ut(B,P),B}function ya(E,P){return E.expression!==P?or(io(P,E.original),E):E}function ed(E){if(Ys(E)&&!cN(E)&&!E.original&&!E.emitNode&&!E.id){if(yP(E))return E.elements;if(mr(E)&&wae(E.operatorToken))return[E.left,E.right]}return E}function Md(E){const P=K(361);return P.elements=U(Sm(E,ed)),P.transformFlags|=$a(P.elements),P}function jf(E,P){return E.elements!==P?or(Md(P),E):E}function Db(E,P){const B=K(362);return B.expression=E,B.thisArg=P,B.transformFlags|=Ar(B.expression)|Ar(B.thisArg),B}function Si(E,P,B){return E.expression!==P||E.thisArg!==B?or(Db(P,B),E):E}function zh(E){const P=oe(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),Gk(P,{...E.emitNode.autoGenerate}),P}function Un(E){const P=oe(E.escapedText);P.flags|=E.flags&-17,P.jsDoc=E.jsDoc,P.flowNode=E.flowNode,P.symbol=E.symbol,P.transformFlags=E.transformFlags,r(P,E);const B=zS(E);return B&&Kv(P,B),P}function fx(E){const P=qe(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),Gk(P,{...E.emitNode.autoGenerate}),P}function Cb(E){const P=qe(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),P}function Nb(E){if(E===void 0)return E;if(Zi(E))return zT(E);if(al(E))return zh(E);if(je(E))return Un(E);if(gS(E))return fx(E);if(Ji(E))return Cb(E);const P=mL(E.kind)?t.createBaseNode(E.kind):t.createBaseTokenNode(E.kind);P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E);for(const B in E)Cs(P,B)||!Cs(E,B)||(P[B]=E[B]);return P}function BT(E,P,B){return qn(jd(void 0,void 0,void 0,void 0,P?[P]:[],void 0,ei(E,!0)),void 0,B?[B]:[])}function j1(E,P,B){return qn(Of(void 0,void 0,P?[P]:[],void 0,void 0,ei(E,!0)),void 0,B?[B]:[])}function X_(){return Dp(se("0"))}function Bh(E){return hm(void 0,!1,E)}function vC(E){return Fm(void 0,!1,AT([ox(!1,void 0,E)]))}function GT(E,P){return P==="null"?O.createStrictEquality(E,Ft()):P==="undefined"?O.createStrictEquality(E,X_()):O.createStrictEquality(Bu(E),_e(P))}function d9(E,P){return P==="null"?O.createStrictInequality(E,Ft()):P==="undefined"?O.createStrictInequality(E,X_()):O.createStrictInequality(Bu(E),_e(P))}function Pb(E,P,B){return hS(E)?Xo(Is(E,void 0,P),void 0,void 0,B):qn(Sl(E,P),void 0,B)}function S8(E,P,B){return Pb(E,"bind",[P,...B])}function T8(E,P,B){return Pb(E,"call",[P,...B])}function aE(E,P,B){return Pb(E,"apply",[P,B])}function f_(E,P,B){return Pb(Ae(E),P,B)}function O2(E,P){return Pb(E,"slice",P===void 0?[]:[lE(P)])}function Gh(E,P){return Pb(E,"concat",P)}function mx(E,P,B){return f_("Object","defineProperty",[E,lE(P),B])}function A8(E,P){return f_("Object","getOwnPropertyDescriptor",[E,lE(P)])}function Y_(E,P,B){return f_("Reflect","get",B?[E,P,B]:[E,P])}function $(E,P,B,ce){return f_("Reflect","set",ce?[E,P,B,ce]:[E,P,B])}function xe(E,P,B){return B?(E.push(vf(P,B)),!0):!1}function Ke(E,P){const B=[];xe(B,"enumerable",lE(E.enumerable)),xe(B,"configurable",lE(E.configurable));let ce=xe(B,"writable",lE(E.writable));ce=xe(B,"value",E.value)||ce;let $e=xe(B,"get",E.get);return $e=xe(B,"set",E.set)||$e,C.assert(!(ce&&$e),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ho(B,!P)}function Rt(E,P){switch(E.kind){case 217:return ff(E,P);case 216:return ic(E,E.type,P);case 234:return _f(E,P,E.type);case 238:return Nt(E,P,E.type);case 235:return ze(E,P);case 360:return ya(E,P)}}function Ct(E){return Gd(E)&&Ys(E)&&Ys(Jv(E))&&Ys(w_(E))&&!St(UR(E))&&!St(Bk(E))}function Kt(E,P,B=15){return E&&hF(E,B)&&!Ct(E)?Rt(E,Kt(E.expression,P)):P}function zr(E,P,B){if(!P)return E;const ce=vT(P,P.label,s1(P.statement)?zr(E,P.statement):E);return B&&B(P),ce}function Oi(E,P){const B=vs(E);switch(B.kind){case 80:return P;case 110:case 9:case 10:case 11:return!1;case 209:return B.elements.length!==0;case 210:return B.properties.length>0;default:return!0}}function Ci(E,P,B,ce=!1){const $e=ec(E,15);let Yt,Er;return zd($e)?(Yt=it(),Er=$e):hP($e)?(Yt=it(),Er=B!==void 0&&B<2?ut(Ae("_super"),$e):$e):qa($e)&8192?(Yt=X_(),Er=i().parenthesizeLeftSideOfAccess($e,!1)):Fr($e)?Oi($e.expression,ce)?(Yt=de(P),Er=Sl(ut(O.createAssignment(Yt,$e.expression),$e.expression),$e.name),ut(Er,$e)):(Yt=$e.expression,Er=$e):$s($e)?Oi($e.expression,ce)?(Yt=de(P),Er=ap(ut(O.createAssignment(Yt,$e.expression),$e.expression),$e.argumentExpression),ut(Er,$e)):(Yt=$e.expression,Er=$e):(Yt=X_(),Er=i().parenthesizeLeftSideOfAccess(E,!1)),{target:Er,thisArg:Yt}}function mi(E,P){return Sl(Kc(Ho([le(void 0,"value",[gi(void 0,void 0,E,void 0,void 0,void 0)],ei([_u(P)]))])),"value")}function Yi(E){return E.length>10?Md(E):od(E,O.createComma)}function fs(E,P,B,ce=0,$e){const Yt=$e?E&&y4(E):Po(E);if(Yt&&je(Yt)&&!al(Yt)){const Er=Ya(ut(Nb(Yt),Yt),Yt.parent);return ce|=qa(Yt),B||(ce|=96),P||(ce|=3072),ce&&pr(Er,ce),Er}return Ne(E)}function Ps(E,P,B){return fs(E,P,B,98304)}function is(E,P,B,ce){return fs(E,P,B,32768,ce)}function Uf(E,P,B){return fs(E,P,B,16384)}function $_(E,P,B){return fs(E,P,B)}function jm(E,P,B,ce){const $e=Sl(E,Ys(P)?P:Nb(P));ut($e,P);let Yt=0;return ce||(Yt|=96),B||(Yt|=3072),Yt&&pr($e,Yt),$e}function pv(E,P,B,ce){return E&&$r(P,32)?jm(E,fs(P),B,ce):Uf(P,B,ce)}function fv(E,P,B,ce){const $e=VT(E,P,0,B);return yC(E,P,$e,ce)}function Mb(E){return Ma(E.expression)&&E.expression.text==="use strict"}function up(){return Xu(_u(_e("use strict")))}function VT(E,P,B=0,ce){C.assert(P.length===0,"Prologue directives should be at the first statement in the target statements array");let $e=!1;const Yt=E.length;for(;B<Yt;){const Er=E[B];if(Cm(Er))Mb(Er)&&($e=!0),P.push(Er);else break;B++}return ce&&!$e&&P.push(up()),B}function yC(E,P,B,ce,$e=Mv){const Yt=E.length;for(;B!==void 0&&B<Yt;){const Er=E[B];if(qa(Er)&2097152&&$e(Er))Rn(P,ce?rt(Er,ce,qi):Er);else break;B++}return B}function W2(E){return $H(E)?E:ut(U([up(),...E]),E)}function F2(E){return C.assert(Yn(E,rie),"Cannot lift nodes to a Block."),ch(E)||ei(E)}function sE(E,P,B){let ce=B;for(;ce<E.length&&P(E[ce]);)ce++;return ce}function mv(E,P){if(!St(P))return E;const B=sE(E,Cm,0),ce=sE(E,Y4,B),$e=sE(E,$4,ce),Yt=sE(P,Cm,0),Er=sE(P,Y4,Yt),$i=sE(P,$4,Er),Ms=sE(P,wL,$i);C.assert(Ms===P.length,"Expected declarations to be valid standard or custom prologues");const m_=wE(E)?E.slice():E;if(Ms>$i&&m_.splice($e,0,...P.slice($i,Ms)),$i>Er&&m_.splice(ce,0,...P.slice(Er,$i)),Er>Yt&&m_.splice(B,0,...P.slice(Yt,Er)),Yt>0)if(B===0)m_.splice(0,0,...P.slice(0,Yt));else{const wb=new Map;for(let Um=0;Um<B;Um++){const cE=E[Um];wb.set(cE.expression.text,!0)}for(let Um=Yt-1;Um>=0;Um--){const cE=P[Um];wb.has(cE.expression.text)||m_.unshift(cE)}}return wE(E)?ut(U(m_,E.hasTrailingComma),E):E}function Lb(E,P){var ce;let B;return typeof P=="number"?B=on(P):B=P,gl(E)?en(E,B,E.name,E.constraint,E.default):Io(E)?ho(E,B,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):qR(E)?nn(E,B,E.typeParameters,E.parameters,E.type):Ep(E)?Di(E,B,E.name,E.questionToken,E.type):Uo(E)?nt(E,B,E.name,(ce=E.questionToken)!=null?ce:E.exclamationToken,E.type,E.initializer):Sh(E)?Dn(E,B,E.name,E.questionToken,E.typeParameters,E.parameters,E.type):Kl(E)?yi(E,B,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):Ll(E)?wn(E,B,E.parameters,E.body):rf(E)?pt(E,B,E.name,E.parameters,E.type,E.body):Sp(E)?Fe(E,B,E.name,E.parameters,E.body):r1(E)?Gt(E,B,E.parameters,E.type):Bs(E)?Nd(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Us(E)?U_(E,B,E.typeParameters,E.parameters,E.type,E.equalsGreaterThanToken,E.body):tu(E)?zf(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):kl(E)?Qa(E,B,E.declarationList):xc(E)?iC(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Rc(E)?X0(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):hd(E)?Tc(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):Lm(E)?nx(E,B,E.name,E.typeParameters,E.type):D0(E)?bT(E,B,E.name,E.members):Ql(E)?c_(E,B,E.name,E.body):ru(E)?u_(E,B,E.isTypeOnly,E.name,E.moduleReference):Oc(E)?ST(E,B,E.importClause,E.moduleSpecifier,E.attributes):wl(E)?bb(E,B,E.expression):Zl(E)?sv(E,B,E.isTypeOnly,E.exportClause,E.moduleSpecifier,E.attributes):C.assertNever(E)}function bC(E,P){var B;return Io(E)?ho(E,P,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):Uo(E)?nt(E,P,E.name,(B=E.questionToken)!=null?B:E.exclamationToken,E.type,E.initializer):Kl(E)?yi(E,P,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):rf(E)?pt(E,P,E.name,E.parameters,E.type,E.body):Sp(E)?Fe(E,P,E.name,E.parameters,E.body):tu(E)?zf(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):Rc(E)?X0(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):C.assertNever(E)}function Jp(E,P){var B;switch(E.kind){case 177:return pt(E,E.modifiers,P,E.parameters,E.type,E.body);case 178:return Fe(E,E.modifiers,P,E.parameters,E.body);case 174:return yi(E,E.modifiers,E.asteriskToken,P,E.questionToken,E.typeParameters,E.parameters,E.type,E.body);case 173:return Dn(E,E.modifiers,P,E.questionToken,E.typeParameters,E.parameters,E.type);case 172:return nt(E,E.modifiers,P,(B=E.questionToken)!=null?B:E.exclamationToken,E.type,E.initializer);case 171:return Di(E,E.modifiers,P,E.questionToken,E.type);case 303:return Vm(E,P,E.initializer)}}function Ka(E){return E?U(E):void 0}function mc(E){return typeof E=="string"?Ae(E):E}function lE(E){return typeof E=="string"?_e(E):typeof E=="number"?se(E):typeof E=="boolean"?E?gt():Qe():E}function _x(E){return E&&i().parenthesizeExpressionForDisallowedComma(E)}function z2(E){return typeof E=="number"?be(E):E}function kb(E){return E&&WH(E)?ut(r(Zu(),E),E):E}function B2(E){return typeof E=="string"||E&&!ki(E)?qd(E,void 0,void 0,void 0):E}function or(E,P){return E!==P&&(r(E,P),ut(E,P)),E}}function _H(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return C.fail("Unsupported kind: ".concat(C.formatSyntaxKind(e)))}}function zGe(e,t){switch(qv||(qv=Ov(99,!1,0)),e){case 15:qv.setText("`"+t+"`");break;case 16:qv.setText("`"+t+"${");break;case 17:qv.setText("}"+t+"${");break;case 18:qv.setText("}"+t+"`");break}let r=qv.scan();if(r===20&&(r=qv.reScanTemplateToken(!1)),qv.isUnterminated())return qv.setText(void 0),Tae;let i;switch(r){case 15:case 16:case 17:case 18:i=qv.getTokenValue();break}return i===void 0||qv.scan()!==1?(qv.setText(void 0),Tae):(qv.setText(void 0),i)}function Yy(e){return e&&je(e)?Ok(e):Ar(e)}function Ok(e){return Ar(e)&-67108865}function BGe(e,t){return t|e.transformFlags&134234112}function Ar(e){if(!e)return 0;const t=e.transformFlags&~Eae(e.kind);return ld(e)&&cc(e.name)?BGe(e.name,t):t}function $a(e){return e?e.transformFlags:0}function XTe(e){let t=0;for(const r of e)t|=Ar(r);e.transformFlags=t}function Eae(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function vW(e){return e.flags|=16,e}function hH(e,t,r){let i,o,s,l,u,p,h,f,b,A;No(e)?(s="",l=e,u=e.length,p=t,h=r):(C.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,f=()=>t==="js"?e.javascriptText:e.declarationText,b=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>f().length,e.buildInfo&&e.buildInfo.bundle&&(C.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,A=e.oldFileOfCurrentEmit));const I=A?VGe(C.checkDefined(o)):GGe(o,i,u);return I.fileName=s,I.sourceMapPath=p,I.oldFileOfCurrentEmit=A,f&&b?(Object.defineProperty(I,"text",{get:f}),Object.defineProperty(I,"sourceMapText",{get:b})):(C.assert(!A),I.text=l!=null?l:"",I.sourceMapText=h),I}function GGe(e,t,r){let i,o,s,l,u,p,h,f;for(const A of e?e.sections:et)switch(A.kind){case"prologue":i=Rn(i,ut(w.createUnparsedPrologue(A.data),A));break;case"emitHelpers":o=Rn(o,IH().get(A.data));break;case"no-default-lib":f=!0;break;case"reference":s=Rn(s,{pos:-1,end:-1,fileName:A.data});break;case"type":l=Rn(l,{pos:-1,end:-1,fileName:A.data});break;case"type-import":l=Rn(l,{pos:-1,end:-1,fileName:A.data,resolutionMode:99});break;case"type-require":l=Rn(l,{pos:-1,end:-1,fileName:A.data,resolutionMode:1});break;case"lib":u=Rn(u,{pos:-1,end:-1,fileName:A.data});break;case"prepend":let I;for(const R of A.texts)(!t||R.kind!=="internal")&&(I=Rn(I,ut(w.createUnparsedTextLike(R.data,R.kind==="internal"),R)));p=Ur(p,I),h=Rn(h,w.createUnparsedPrepend(A.data,I!=null?I:et));break;case"internal":if(t){h||(h=[]);break}case"text":h=Rn(h,ut(w.createUnparsedTextLike(A.data,A.kind==="internal"),A));break;default:C.assertNever(A)}if(!h){const A=w.createUnparsedTextLike(void 0,!1);nP(A,0,typeof r=="function"?r():r),h=[A]}const b=Rh.createUnparsedSource(i!=null?i:et,void 0,h);return BR(i,b),BR(h,b),BR(p,b),b.hasNoDefaultLib=f,b.helpers=o,b.referencedFiles=s||et,b.typeReferenceDirectives=l,b.libReferenceDirectives=u||et,b}function VGe(e){let t,r;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=Rn(t,ut(w.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=Rn(r,ut(w.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:C.assertNever(o)}const i=w.createUnparsedSource(et,r,t!=null?t:et);return BR(r,i),BR(t,i),i.helpers=Ot(e.sources&&e.sources.helpers,o=>IH().get(o)),i}function YTe(e,t,r,i,o,s){return No(e)?vH(void 0,e,r,i,void 0,t,o,s):gH(e,t,r,i,o,s)}function gH(e,t,r,i,o,s,l,u){const p=Rh.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;const h=new Map,f=R=>{if(R===void 0)return;let M=h.get(R);return M===void 0&&(M=e(R),h.set(R,M!==void 0?M:!1)),M!==!1?M:void 0},b=R=>{const M=f(R);return M!==void 0?M:"/* Input file ".concat(R," was missing */\r\n")};let A;return Object.defineProperties(p,{javascriptText:{get:()=>b(t)},javascriptMapText:{get:()=>f(r)},declarationText:{get:()=>b(C.checkDefined(i))},declarationMapText:{get:()=>f(o)},buildInfo:{get:()=>{var R,M;if(A===void 0&&s)if(l!=null&&l.getBuildInfo)A=(R=l.getBuildInfo(s,u.configFilePath))!=null?R:!1;else{const N=f(s);A=N!==void 0&&(M=_7(s,N))!=null?M:!1}return A||void 0}}}),p}function vH(e,t,r,i,o,s,l,u,p,h,f){const b=Rh.createInputFiles();return b.javascriptPath=e,b.javascriptText=t,b.javascriptMapPath=r,b.javascriptMapText=i,b.declarationPath=o,b.declarationText=s,b.declarationMapPath=l,b.declarationMapText=u,b.buildInfoPath=p,b.buildInfo=h,b.oldFileOfCurrentEmit=f,b}function $Te(e,t,r){return new(ZTe||(ZTe=uu.getSourceMapSourceConstructor()))(e,t,r)}function Pr(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=jGe(r,e.emitNode))}return e}function jGe(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:p,constantValue:h,helpers:f,startsOnNewLine:b,snippetElement:A,classThis:I,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Ur(o.slice(),t.leadingComments)),s&&(t.trailingComments=Ur(s.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),p&&(t.tokenSourceMapRanges=UGe(p,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),f)for(const M of f)t.helpers=wg(t.helpers,M);return b!==void 0&&(t.startsOnNewLine=b),A!==void 0&&(t.snippetElement=A),I&&(t.classThis=I),R&&(t.assignedName=R),t}function UGe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var yW,yH,Sae,qv,Tae,Wk,QTe,w,ZTe,HGe=T({"src/compiler/factory/nodeFactory.ts"(){ta(),yW=0,yH=(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))(yH||{}),Sae=[],Tae={},Wk=vae(),QTe={createBaseSourceFileNode:e=>vW(Wk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>vW(Wk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>vW(Wk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>vW(Wk.createBaseTokenNode(e)),createBaseNode:e=>vW(Wk.createBaseNode(e))},w=wk(4,QTe)}});function Ou(e){var t;if(e.emitNode)C.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(cN(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const r=(t=jn(Do(jn(e))))!=null?t:C.fail("Could not determine parsed source file.");Ou(r).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function bH(e){var t,r;const i=(r=(t=jn(Do(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function Fk(e){const t=Ou(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function pr(e,t){return Ou(e).flags=t,e}function k_(e,t){const r=Ou(e);return r.flags=r.flags|t,e}function zk(e,t){return Ou(e).internalFlags=t,e}function QA(e,t){const r=Ou(e);return r.internalFlags=r.internalFlags|t,e}function Jv(e){var r;var t;return(r=(t=e.emitNode)==null?void 0:t.sourceMapRange)!=null?r:e}function Pa(e,t){return Ou(e).sourceMapRange=t,e}function eAe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Aae(e,t,r){var s;const i=Ou(e),o=(s=i.tokenSourceMapRanges)!=null?s:i.tokenSourceMapRanges=[];return o[t]=r,e}function pP(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function bW(e,t){return Ou(e).startsOnNewLine=t,e}function w_(e){var r;var t;return(r=(t=e.emitNode)==null?void 0:t.commentRange)!=null?r:e}function uc(e,t){return Ou(e).commentRange=t,e}function UR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function R0(e,t){return Ou(e).leadingComments=t,e}function fP(e,t,r,i){return R0(e,Rn(UR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Bk(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function ZA(e,t){return Ou(e).trailingComments=t,e}function EW(e,t,r,i){return ZA(e,Rn(Bk(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Iae(e,t){R0(e,UR(t)),ZA(e,Bk(t));const r=Ou(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function xae(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Rae(e,t){const r=Ou(e);return r.constantValue=t,e}function eI(e,t){const r=Ou(e);return r.helpers=Rn(r.helpers,t),e}function Jg(e,t){if(St(t)){const r=Ou(e);for(const i of t)r.helpers=wg(r.helpers,i)}return e}function tAe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?Vx(i,t):!1}function SW(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Dae(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!St(o))return;const s=Ou(t);let l=0;for(let u=0;u<o.length;u++){const p=o[u];r(p)?(l++,s.helpers=wg(s.helpers,p)):l>0&&(o[u-l]=p)}l>0&&(o.length-=l)}function EH(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function SH(e,t){const r=Ou(e);return r.snippetElement=t,e}function TH(e){return Ou(e).internalFlags|=4,e}function Cae(e,t){const r=Ou(e);return r.typeNode=t,e}function Nae(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Kv(e,t){return Ou(e).identifierTypeArguments=t,e}function zS(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function Gk(e,t){return Ou(e).autoGenerate=t,e}function nAe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Pae(e,t){return Ou(e).generatedImportReference=t,e}function Mae(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var qGe=T({"src/compiler/factory/emitNode.ts"(){ta()}});function Lae(e){const t=e.factory,r=Sd(()=>zk(t.createTrue(),8)),i=Sd(()=>zk(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:M,createRunInitializersHelper:N,createAssignHelper:O,createAwaitHelper:U,createAsyncGeneratorHelper:K,createAsyncDelegatorHelper:ee,createAsyncValuesHelper:V,createRestHelper:se,createAwaiterHelper:G,createExtendsHelper:re,createTemplateObjectHelper:_e,createSpreadArrayHelper:ye,createPropKeyHelper:Q,createSetFunctionNameHelper:Y,createValuesHelper:oe,createReadHelper:he,createGeneratorHelper:Ae,createCreateBindingHelper:de,createImportStarHelper:ie,createImportStarCallbackHelper:ge,createImportDefaultHelper:Ne,createExportStarHelper:qe,createClassPrivateFieldGetHelper:Ee,createClassPrivateFieldSetHelper:Me,createClassPrivateFieldInHelper:Ce,createAddDisposableResourceHelper:Oe,createDisposeResourcesHelper:At};function o(be){return pr(t.createIdentifier(be),8196)}function s(be,Ue,it,Ft){e.requestEmitHelper(TW);const gt=[];return gt.push(t.createArrayLiteralExpression(be,!0)),gt.push(Ue),it&&(gt.push(it),Ft&>.push(Ft)),t.createCallExpression(o("__decorate"),void 0,gt)}function l(be,Ue){return e.requestEmitHelper(AW),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(be),Ue])}function u(be,Ue,it){return e.requestEmitHelper(IW),ut(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(Ue+""),be]),it)}function p(be){const Ue=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),be.name),t.createPropertyAssignment(t.createIdentifier("metadata"),be.metadata)];return t.createObjectLiteralExpression(Ue)}function h(be){const Ue=be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),be.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Ue))}function f(be){const Ue=be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),be.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(Ue,t.createIdentifier("value")))])))}function b(be){const Ue=be.computed?be.name:je(be.name)?t.createStringLiteralFromNode(be.name):be.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(Ue,103,t.createIdentifier("obj"))))}function A(be,Ue){const it=[];return it.push(b(be)),Ue.get&&it.push(h(be)),Ue.set&&it.push(f(be)),t.createObjectLiteralExpression(it)}function I(be){const Ue=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(be.kind)),t.createPropertyAssignment(t.createIdentifier("name"),be.name.computed?be.name.name:t.createStringLiteralFromNode(be.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),be.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),be.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),A(be.name,be.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),be.metadata)];return t.createObjectLiteralExpression(Ue)}function R(be){return be.kind==="class"?p(be):I(be)}function M(be,Ue,it,Ft,gt,Qe){return e.requestEmitHelper(xW),t.createCallExpression(o("__esDecorate"),void 0,[be!=null?be:t.createNull(),Ue!=null?Ue:t.createNull(),it,R(Ft),gt,Qe])}function N(be,Ue,it){return e.requestEmitHelper(RW),t.createCallExpression(o("__runInitializers"),void 0,it?[be,Ue,it]:[be,Ue])}function O(be){return ls(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,be):(e.requestEmitHelper(DW),t.createCallExpression(o("__assign"),void 0,be))}function U(be){return e.requestEmitHelper(tI),t.createCallExpression(o("__await"),void 0,[be])}function K(be,Ue){return e.requestEmitHelper(tI),e.requestEmitHelper(CW),(be.emitNode||(be.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[Ue?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),be])}function ee(be){return e.requestEmitHelper(tI),e.requestEmitHelper(NW),t.createCallExpression(o("__asyncDelegator"),void 0,[be])}function V(be){return e.requestEmitHelper(PW),t.createCallExpression(o("__asyncValues"),void 0,[be])}function se(be,Ue,it,Ft){e.requestEmitHelper(MW);const gt=[];let Qe=0;for(let It=0;It<Ue.length-1;It++){const on=ZH(Ue[It]);if(on)if(rs(on)){C.assertIsDefined(it,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const $t=it[Qe];Qe++,gt.push(t.createConditionalExpression(t.createTypeCheck($t,"symbol"),void 0,$t,void 0,t.createAdd($t,t.createStringLiteral(""))))}else gt.push(t.createStringLiteralFromNode(on))}return t.createCallExpression(o("__rest"),void 0,[be,ut(t.createArrayLiteralExpression(gt),Ft)])}function G(be,Ue,it,Ft,gt){e.requestEmitHelper(LW);const Qe=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,Ft!=null?Ft:[],void 0,gt);return(Qe.emitNode||(Qe.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[be?t.createThis():t.createVoidZero(),Ue!=null?Ue:t.createVoidZero(),it?nw(t,it):t.createVoidZero(),Qe])}function re(be){return e.requestEmitHelper(kW),t.createCallExpression(o("__extends"),void 0,[be,t.createUniqueName("_super",48)])}function _e(be,Ue){return e.requestEmitHelper(wW),t.createCallExpression(o("__makeTemplateObject"),void 0,[be,Ue])}function ye(be,Ue,it){return e.requestEmitHelper(WW),t.createCallExpression(o("__spreadArray"),void 0,[be,Ue,it?r():i()])}function Q(be){return e.requestEmitHelper(FW),t.createCallExpression(o("__propKey"),void 0,[be])}function Y(be,Ue,it){return e.requestEmitHelper(zW),e.factory.createCallExpression(o("__setFunctionName"),void 0,it?[be,Ue,e.factory.createStringLiteral(it)]:[be,Ue])}function oe(be){return e.requestEmitHelper(BW),t.createCallExpression(o("__values"),void 0,[be])}function he(be,Ue){return e.requestEmitHelper(OW),t.createCallExpression(o("__read"),void 0,Ue!==void 0?[be,t.createNumericLiteral(Ue+"")]:[be])}function Ae(be){return e.requestEmitHelper(GW),t.createCallExpression(o("__generator"),void 0,[t.createThis(),be])}function de(be,Ue,it){return e.requestEmitHelper(HR),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),be,Ue,...it?[it]:[]])}function ie(be){return e.requestEmitHelper(Vk),t.createCallExpression(o("__importStar"),void 0,[be])}function ge(){return e.requestEmitHelper(Vk),o("__importStar")}function Ne(be){return e.requestEmitHelper(jW),t.createCallExpression(o("__importDefault"),void 0,[be])}function qe(be,Ue=t.createIdentifier("exports")){return e.requestEmitHelper(UW),e.requestEmitHelper(HR),t.createCallExpression(o("__exportStar"),void 0,[be,Ue])}function Ee(be,Ue,it,Ft){e.requestEmitHelper(HW);let gt;return Ft?gt=[be,Ue,t.createStringLiteral(it),Ft]:gt=[be,Ue,t.createStringLiteral(it)],t.createCallExpression(o("__classPrivateFieldGet"),void 0,gt)}function Me(be,Ue,it,Ft,gt){e.requestEmitHelper(qW);let Qe;return gt?Qe=[be,Ue,it,t.createStringLiteral(Ft),gt]:Qe=[be,Ue,it,t.createStringLiteral(Ft)],t.createCallExpression(o("__classPrivateFieldSet"),void 0,Qe)}function Ce(be,Ue){return e.requestEmitHelper(JW),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[be,Ue])}function Oe(be,Ue,it){return e.requestEmitHelper(KW),t.createCallExpression(o("__addDisposableResource"),void 0,[be,Ue,it?t.createTrue():t.createFalse()])}function At(be){return e.requestEmitHelper(XW),t.createCallExpression(o("__disposeResources"),void 0,[be])}}function kae(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:nl(e.priority,t.priority)}function AH(e,...t){return r=>{let i="";for(let o=0;o<t.length;o++)i+=e[o],i+=r(t[o]);return i+=e[e.length-1],i}}function IH(){return rAe||(rAe=PE([TW,AW,IW,xW,RW,DW,tI,CW,NW,PW,MW,LW,kW,wW,WW,BW,OW,FW,zW,GW,Vk,jW,UW,HW,qW,JW,HR,VW,KW,XW],e=>e.name))}function mP(e,t){return sa(e)&&je(e.expression)&&(qa(e.expression)&8192)!==0&&e.expression.escapedText===t}var xH,TW,AW,IW,xW,RW,DW,tI,CW,NW,PW,MW,LW,kW,wW,OW,WW,FW,zW,BW,GW,HR,VW,Vk,jW,UW,HW,qW,JW,KW,XW,rAe,jk,Uk,JGe=T({"src/compiler/factory/emitHelpers.ts"(){ta(),xH=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(xH||{}),TW={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 };'},AW={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 };'},IW={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 };"},xW={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 };'},RW={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 };"},DW={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 };"},tI={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); }"},CW={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[tI],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return", 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 };'},NW={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[tI],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 };'},PW={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 };'},MW={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 };'},LW={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 };'},kW={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 })();'},wW={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 };'},OW={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 };'},WW={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 };"},FW={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 };'},zW={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 };'},BW={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 };'},GW={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (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 };'},HR={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 }));'},VW={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 });'},Vk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[HR,VW],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},jW={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 };'},UW={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[HR],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 };'},HW={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 };'},qW={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 };'},JW={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 };'},KW={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;\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 }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\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 };'},XW={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 function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\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 });'},jk={name:"typescript:async-super",scoped:!0,text:AH(P7e||(P7e=Jbe(["\n const "," = name => super[name];"])),"_superIndex")},Uk={name:"typescript:advanced-async-super",scoped:!0,text:AH(M7e||(M7e=Jbe(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"])),"_superIndex")}}});function bp(e){return e.kind===9}function YW(e){return e.kind===10}function Ma(e){return e.kind===11}function nI(e){return e.kind===12}function RH(e){return e.kind===14}function rI(e){return e.kind===15}function iI(e){return e.kind===16}function DH(e){return e.kind===17}function $W(e){return e.kind===18}function QW(e){return e.kind===26}function wae(e){return e.kind===28}function CH(e){return e.kind===40}function NH(e){return e.kind===41}function Hk(e){return e.kind===42}function qk(e){return e.kind===54}function $y(e){return e.kind===58}function Oae(e){return e.kind===59}function ZW(e){return e.kind===29}function Wae(e){return e.kind===39}function je(e){return e.kind===80}function Ji(e){return e.kind===81}function oI(e){return e.kind===95}function eF(e){return e.kind===90}function _P(e){return e.kind===134}function Fae(e){return e.kind===131}function PH(e){return e.kind===135}function zae(e){return e.kind===148}function aI(e){return e.kind===126}function Bae(e){return e.kind===128}function Gae(e){return e.kind===164}function Vae(e){return e.kind===129}function hP(e){return e.kind===108}function gP(e){return e.kind===102}function jae(e){return e.kind===84}function Id(e){return e.kind===166}function rs(e){return e.kind===167}function gl(e){return e.kind===168}function Io(e){return e.kind===169}function Su(e){return e.kind===170}function Ep(e){return e.kind===171}function Uo(e){return e.kind===172}function Sh(e){return e.kind===173}function Kl(e){return e.kind===174}function Rl(e){return e.kind===175}function Ll(e){return e.kind===176}function rf(e){return e.kind===177}function Sp(e){return e.kind===178}function sI(e){return e.kind===179}function Jk(e){return e.kind===180}function r1(e){return e.kind===181}function Kk(e){return e.kind===182}function Nf(e){return e.kind===183}function Th(e){return e.kind===184}function qR(e){return e.kind===185}function lI(e){return e.kind===186}function Tp(e){return e.kind===187}function Xk(e){return e.kind===188}function cI(e){return e.kind===189}function JR(e){return e.kind===202}function tF(e){return e.kind===190}function nF(e){return e.kind===191}function Qy(e){return e.kind===192}function uI(e){return e.kind===193}function dI(e){return e.kind===194}function BS(e){return e.kind===195}function GS(e){return e.kind===196}function Yk(e){return e.kind===197}function VS(e){return e.kind===198}function jS(e){return e.kind===199}function KR(e){return e.kind===200}function Zy(e){return e.kind===201}function fg(e){return e.kind===205}function MH(e){return e.kind===204}function Uae(e){return e.kind===203}function dm(e){return e.kind===206}function i1(e){return e.kind===207}function ns(e){return e.kind===208}function _d(e){return e.kind===209}function Wa(e){return e.kind===210}function Fr(e){return e.kind===211}function $s(e){return e.kind===212}function sa(e){return e.kind===213}function o1(e){return e.kind===214}function a1(e){return e.kind===215}function Hae(e){return e.kind===216}function Gd(e){return e.kind===217}function Bs(e){return e.kind===218}function Us(e){return e.kind===219}function qae(e){return e.kind===220}function XR(e){return e.kind===221}function pI(e){return e.kind===222}function eb(e){return e.kind===223}function tb(e){return e.kind===224}function LH(e){return e.kind===225}function mr(e){return e.kind===226}function YR(e){return e.kind===227}function rF(e){return e.kind===228}function iF(e){return e.kind===229}function n_(e){return e.kind===230}function tu(e){return e.kind===231}function Hc(e){return e.kind===232}function Xv(e){return e.kind===233}function $k(e){return e.kind===234}function kH(e){return e.kind===238}function fI(e){return e.kind===235}function vP(e){return e.kind===236}function iAe(e){return e.kind===237}function oF(e){return e.kind===360}function yP(e){return e.kind===361}function bP(e){return e.kind===239}function Jae(e){return e.kind===240}function Jo(e){return e.kind===241}function kl(e){return e.kind===243}function wH(e){return e.kind===242}function nu(e){return e.kind===244}function US(e){return e.kind===245}function oAe(e){return e.kind===246}function aAe(e){return e.kind===247}function HS(e){return e.kind===248}function aF(e){return e.kind===249}function Qk(e){return e.kind===250}function sAe(e){return e.kind===251}function lAe(e){return e.kind===252}function Mm(e){return e.kind===253}function Kae(e){return e.kind===254}function EP(e){return e.kind===255}function s1(e){return e.kind===256}function OH(e){return e.kind===257}function qS(e){return e.kind===258}function cAe(e){return e.kind===259}function ki(e){return e.kind===260}function qc(e){return e.kind===261}function xc(e){return e.kind===262}function Rc(e){return e.kind===263}function hd(e){return e.kind===264}function Lm(e){return e.kind===265}function D0(e){return e.kind===266}function Ql(e){return e.kind===267}function O_(e){return e.kind===268}function SP(e){return e.kind===269}function Zk(e){return e.kind===270}function ru(e){return e.kind===271}function Oc(e){return e.kind===272}function Ah(e){return e.kind===273}function uAe(e){return e.kind===302}function Xae(e){return e.kind===300}function dAe(e){return e.kind===301}function mI(e){return e.kind===300}function Yae(e){return e.kind===301}function nb(e){return e.kind===274}function Ih(e){return e.kind===280}function Kg(e){return e.kind===275}function np(e){return e.kind===276}function wl(e){return e.kind===277}function Zl(e){return e.kind===278}function Pf(e){return e.kind===279}function Ku(e){return e.kind===281}function pAe(e){return e.kind===282}function WH(e){return e.kind===359}function _I(e){return e.kind===362}function xh(e){return e.kind===283}function mg(e){return e.kind===284}function JS(e){return e.kind===285}function W_(e){return e.kind===286}function l1(e){return e.kind===287}function c1(e){return e.kind===288}function hI(e){return e.kind===289}function $ae(e){return e.kind===290}function F_(e){return e.kind===291}function u1(e){return e.kind===292}function gI(e){return e.kind===293}function TP(e){return e.kind===294}function r_(e){return e.kind===295}function $R(e){return e.kind===296}function AP(e){return e.kind===297}function of(e){return e.kind===298}function d1(e){return e.kind===299}function bc(e){return e.kind===303}function rp(e){return e.kind===304}function Yv(e){return e.kind===305}function p1(e){return e.kind===306}function Qae(e){return e.kind===308}function Zi(e){return e.kind===312}function FH(e){return e.kind===313}function KS(e){return e.kind===314}function f1(e){return e.kind===316}function IP(e){return e.kind===317}function C0(e){return e.kind===318}function Zae(e){return e.kind===331}function ese(e){return e.kind===332}function fAe(e){return e.kind===333}function tse(e){return e.kind===319}function nse(e){return e.kind===320}function QR(e){return e.kind===321}function sF(e){return e.kind===322}function zH(e){return e.kind===323}function ZR(e){return e.kind===324}function lF(e){return e.kind===325}function mAe(e){return e.kind===326}function i_(e){return e.kind===327}function XS(e){return e.kind===329}function N0(e){return e.kind===330}function vI(e){return e.kind===335}function _Ae(e){return e.kind===337}function rse(e){return e.kind===339}function BH(e){return e.kind===345}function GH(e){return e.kind===340}function VH(e){return e.kind===341}function jH(e){return e.kind===342}function UH(e){return e.kind===343}function cF(e){return e.kind===344}function eD(e){return e.kind===346}function HH(e){return e.kind===338}function hAe(e){return e.kind===354}function ew(e){return e.kind===347}function o_(e){return e.kind===348}function uF(e){return e.kind===349}function qH(e){return e.kind===350}function xP(e){return e.kind===351}function pm(e){return e.kind===352}function YS(e){return e.kind===353}function gAe(e){return e.kind===334}function ise(e){return e.kind===355}function dF(e){return e.kind===336}function pF(e){return e.kind===357}function vAe(e){return e.kind===356}function tD(e){return e.kind===358}var KGe=T({"src/compiler/factory/nodeTests.ts"(){ta()}});function tw(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function $S(e,t,r,i){if(rs(r))return ut(e.createElementAccessExpression(t,r.expression),i);{const o=ut(tg(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return k_(o,128),o}}function ose(e,t){const r=Rh.createIdentifier(e||"React");return Ya(r,Do(t)),r}function ase(e,t,r){if(Id(t)){const i=ase(e,t.left,r),o=e.createIdentifier(Tr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return ose(Tr(t),r)}function JH(e,t,r,i){return t?ase(e,t,i):e.createPropertyAccessExpression(ose(r,i),"createElement")}function XGe(e,t,r,i){return t?ase(e,t,i):e.createPropertyAccessExpression(ose(r,i),"Fragment")}function sse(e,t,r,i,o,s){const l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(const u of o)Xu(u),l.push(u);else l.push(o[0]);return ut(e.createCallExpression(t,void 0,l),s)}function lse(e,t,r,i,o,s,l){const p=[XGe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const h of o)Xu(h),p.push(h);else p.push(o[0]);return ut(e.createCallExpression(JH(e,t,i,s),void 0,p),l)}function KH(e,t,r){if(qc(t)){const i=Xa(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return ut(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{const i=ut(e.createAssignment(t,r),t);return ut(e.createExpressionStatement(i),t)}}function yAe(e,t,r){return Jo(t)?e.updateBlock(t,ut(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function nw(e,t){if(Id(t)){const r=nw(e,t.left),i=Ya(ut(e.cloneNode(t.right),t.right),t.right.parent);return ut(e.createPropertyAccessExpression(r,i),t)}else return Ya(ut(e.cloneNode(t),t),t.parent)}function XH(e,t){return je(t)?e.createStringLiteralFromNode(t):rs(t)?Ya(ut(e.cloneNode(t.expression),t.expression),t.expression.parent):Ya(ut(e.cloneNode(t),t),t.parent)}function YGe(e,t,r,i,o){const{firstAccessor:s,getAccessor:l,setAccessor:u}=wS(t,r);if(r===s)return ut(e.createObjectDefinePropertyCall(i,XH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&ut(Pr(e.createFunctionExpression(kE(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&ut(Pr(e.createFunctionExpression(kE(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function $Ge(e,t,r){return Pr(ut(e.createAssignment($S(e,r,t.name,t.name),t.initializer),t),t)}function QGe(e,t,r){return Pr(ut(e.createAssignment($S(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function ZGe(e,t,r){return Pr(ut(e.createAssignment($S(e,r,t.name,t.name),Pr(ut(e.createFunctionExpression(kE(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function cse(e,t,r,i){switch(r.name&&Ji(r.name)&&C.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return YGe(e,t.properties,r,i,!!t.multiLine);case 303:return $Ge(e,r,i);case 304:return QGe(e,r,i);case 174:return ZGe(e,r,i)}}function fF(e,t,r,i,o){const s=t.operator;C.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const l=e.createTempVariable(i);r=e.createAssignment(l,r),ut(r,t.operand);let u=tb(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return ut(u,t),o&&(u=e.createAssignment(o,u),ut(u,t)),r=e.createComma(r,u),ut(r,t),LH(t)&&(r=e.createComma(r,l),ut(r,t)),r}function YH(e){return(qa(e)&65536)!==0}function Xg(e){return(qa(e)&32768)!==0}function mF(e){return(qa(e)&16384)!==0}function bAe(e){return Ma(e.expression)&&e.expression.text==="use strict"}function $H(e){for(const t of e)if(Cm(t)){if(bAe(t))return t}else break}function use(e){const t=$c(e);return t!==void 0&&Cm(t)&&bAe(t)}function rw(e){return e.kind===226&&e.operatorToken.kind===28}function RP(e){return rw(e)||yP(e)}function nD(e){return Gd(e)&&sr(e)&&!!f0(e)}function _F(e){const t=m0(e);return C.assertIsDefined(t),t}function hF(e,t=15){switch(e.kind){case 217:return t&16&&nD(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function ec(e,t=15){for(;hF(e,t);)e=e.expression;return e}function dse(e,t=15){let r=e.parent;for(;hF(r,t);)r=r.parent,C.assert(r);return r}function EAe(e){return ec(e,6)}function Xu(e){return bW(e,!0)}function iw(e){const t=Ml(e,Zi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function pse(e){const t=Ml(e,Zi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function QH(e,t,r,i,o,s,l){if(i.importHelpers&&wA(r,i)){let u;const p=wu(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){const h=SW(r);if(h){const f=[];for(const b of h)if(!b.scoped){const A=b.importName;A&&Tf(f,A)}if(St(f)){f.sort(Uu),u=e.createNamedImports(Ot(f,I=>V4(r,I)?e.createImportSpecifier(!1,void 0,e.createIdentifier(I)):e.createImportSpecifier(!1,e.createIdentifier(I),t.getUnscopedHelperName(I))));const b=Ml(r,Zi),A=Ou(b);A.externalHelpers=!0}}}else{const h=fse(e,r,i,o,s||l);h&&(u=e.createNamespaceImport(h))}if(u){const h=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(Ky),void 0);return QA(h,2),h}}}function fse(e,t,r,i,o){if(r.importHelpers&&wA(t,r)){const s=iw(t);if(s)return s;const l=wu(r);let u=(i||Eh(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!u){const p=SW(t);if(p){for(const h of p)if(!h.scoped){u=!0;break}}}if(u){const p=Ml(t,Zi),h=Ou(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(Ky))}}}function rD(e,t,r){const i=ER(t);if(i&&!WA(t)&&!U4(t)){const o=i.name;return al(o)?o:e.createIdentifier(FE(r,o)||Tr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function yI(e,t,r,i,o,s){const l=bR(t);if(l&&Ma(l))return tVe(t,i,e,o,s)||eVe(e,l,r)||e.cloneNode(l)}function eVe(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function ow(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Os(i))return e.createStringLiteral(_U(r,t.fileName))}}function tVe(e,t,r,i,o){return ow(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function aw(e){if(gL(e))return e.initializer;if(bc(e)){const t=e.initializer;return wc(t,!0)?t.right:void 0}if(rp(e))return e.objectAssignmentInitializer;if(wc(e,!0))return e.right;if(n_(e))return aw(e.expression)}function rb(e){if(gL(e))return e.name;if(Bg(e)){switch(e.kind){case 303:return rb(e.initializer);case 304:return e.name;case 305:return rb(e.expression)}return}return wc(e,!0)?rb(e.left):n_(e)?rb(e.expression):e}function gF(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function ZH(e){const t=vF(e);return C.assert(!!t||Yv(e),"Invalid property name for binding element."),t}function vF(e){switch(e.kind){case 208:if(e.propertyName){const r=e.propertyName;return Ji(r)?C.failBadSyntaxKind(r):rs(r)&&SAe(r.expression)?r.expression:r}break;case 303:if(e.name){const r=e.name;return Ji(r)?C.failBadSyntaxKind(r):rs(r)&&SAe(r.expression)?r.expression:r}break;case 305:return e.name&&Ji(e.name)?C.failBadSyntaxKind(e.name):e.name}const t=rb(e);if(t&&cc(t))return t}function SAe(e){const t=e.kind;return t===11||t===9}function iD(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function eq(e){if(e){let t=e;for(;;){if(je(t)||!t.body)return je(t)?t:t.name;t=t.body}}}function TAe(e){const t=e.kind;return t===176||t===178}function mse(e){const t=e.kind;return t===176||t===177||t===178}function tq(e){const t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function _se(e){const t=e.kind;return t===175||t===303||t===304||t===282||t===270}function hse(e){return $y(e)||qk(e)}function gse(e){return je(e)||Yk(e)}function vse(e){return zae(e)||CH(e)||NH(e)}function yse(e){return $y(e)||CH(e)||NH(e)}function bse(e){return je(e)||Ma(e)}function AAe(e){const t=e.kind;return t===106||t===112||t===97||OE(e)||tb(e)}function nVe(e){return e===43}function rVe(e){return e===42||e===44||e===45}function iVe(e){return nVe(e)||rVe(e)}function oVe(e){return e===40||e===41}function aVe(e){return oVe(e)||iVe(e)}function sVe(e){return e===48||e===49||e===50}function nq(e){return sVe(e)||aVe(e)}function lVe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function cVe(e){return lVe(e)||nq(e)}function uVe(e){return e===35||e===37||e===36||e===38}function dVe(e){return uVe(e)||cVe(e)}function pVe(e){return e===51||e===52||e===53}function fVe(e){return pVe(e)||dVe(e)}function mVe(e){return e===56||e===57}function _Ve(e){return mVe(e)||fVe(e)}function hVe(e){return e===61||_Ve(e)||jv(e)}function gVe(e){return hVe(e)||e===28}function Ese(e){return gVe(e.kind)}function yF(e,t,r,i,o,s){const l=new RAe(e,t,r,i,o,s);return u;function u(p,h){const f={value:void 0},b=[iq.enter],A=[p],I=[void 0];let R=0;for(;b[R]!==iq.done;)R=b[R](l,R,b,A,I,f,h);return C.assertEqual(R,0),f.value}}function IAe(e){return e===95||e===90}function sw(e){const t=e.kind;return IAe(t)}function xAe(e){const t=e.kind;return Fv(t)&&!IAe(t)}function Sse(e,t){if(t!==void 0)return t.length===0?t:ut(e.createNodeArray([],t.hasTrailingComma),t)}function lw(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let o=e,s=o.original;for(;s;){o=s;const l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(tg(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function oD(e,t){return typeof e=="object"?P0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function vVe(e,t){return typeof e=="string"?e:yVe(e,C.checkDefined(t))}function yVe(e,t){return gS(e)?t(e).slice(1):al(e)?t(e):Ji(e)?e.escapedText.slice(1):Tr(e)}function P0(e,t,r,i,o){return t=oD(t,o),i=oD(i,o),r=vVe(r,o),"".concat(e?"#":"").concat(t).concat(r).concat(i)}function rq(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Tse(e,t,r,i,o=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Ase(e,t,r,i,o=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function bF(e){let t=e.expression;for(;;){if(t=ec(t),yP(t)){t=es(t.elements);continue}if(rw(t)){t=t.right;continue}if(wc(t,!0)&&al(t.left))return t;break}}function bVe(e){return Gd(e)&&Ys(e)&&!e.emitNode}function EF(e,t){if(bVe(e))EF(e.expression,t);else if(rw(e))EF(e.left,t),EF(e.right,t);else if(yP(e))for(const r of e.elements)EF(r,t);else t.push(e)}function Ise(e){const t=[];return EF(e,t),t}function cw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of iD(e)){const r=rb(t);if(r&&gN(r)&&(r.transformFlags&65536||r.transformFlags&128&&cw(r)))return!0}return!1}var iq,RAe,EVe=T({"src/compiler/factory/utilities.ts"(){ta(),(e=>{function t(f,b,A,I,R,M,N){const O=b>0?R[b-1]:void 0;return C.assertEqual(A[b],t),R[b]=f.onEnter(I[b],O,N),A[b]=u(f,t),b}e.enter=t;function r(f,b,A,I,R,M,N){C.assertEqual(A[b],r),C.assertIsDefined(f.onLeft),A[b]=u(f,r);const O=f.onLeft(I[b].left,R[b],I[b]);return O?(h(b,I,O),p(b,A,I,R,O)):b}e.left=r;function i(f,b,A,I,R,M,N){return C.assertEqual(A[b],i),C.assertIsDefined(f.onOperator),A[b]=u(f,i),f.onOperator(I[b].operatorToken,R[b],I[b]),b}e.operator=i;function o(f,b,A,I,R,M,N){C.assertEqual(A[b],o),C.assertIsDefined(f.onRight),A[b]=u(f,o);const O=f.onRight(I[b].right,R[b],I[b]);return O?(h(b,I,O),p(b,A,I,R,O)):b}e.right=o;function s(f,b,A,I,R,M,N){C.assertEqual(A[b],s),A[b]=u(f,s);const O=f.onExit(I[b],R[b]);if(b>0){if(b--,f.foldState){const U=A[b]===s?"right":"left";R[b]=f.foldState(R[b],O,U)}}else M.value=O;return b}e.exit=s;function l(f,b,A,I,R,M,N){return C.assertEqual(A[b],l),b}e.done=l;function u(f,b){switch(b){case t:if(f.onLeft)return r;case r:if(f.onOperator)return i;case i:if(f.onRight)return o;case o:return s;case s:return l;case l:return l;default:C.fail("Invalid state")}}e.nextState=u;function p(f,b,A,I,R){return f++,b[f]=t,A[f]=R,I[f]=void 0,f}function h(f,b,A){if(C.shouldAssert(2))for(;f>=0;)C.assert(b[f]!==A,"Circular traversal detected."),f--}})(iq||(iq={})),RAe=class{constructor(e,t,r,i,o,s){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=o,this.foldState=s}}}});function ut(e,t){return t?bh(e,t.pos,t.end):e}function km(e){const t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function QS(e){const t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var SVe=T({"src/compiler/factory/utilitiesPublic.ts"(){ta()}});function Zt(e,t){return t&&e(t)}function Bi(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function oq(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function uw(e){return He(e.statements,TVe)||AVe(e)}function TVe(e){return km(e)&&IVe(e,95)||ru(e)&&xh(e.moduleReference)||Oc(e)||wl(e)||Zl(e)?e:void 0}function AVe(e){return e.flags&8388608?DAe(e):void 0}function DAe(e){return xVe(e)?e:Vo(e,DAe)}function IVe(e,t){return St(e.modifiers,r=>r.kind===t)}function xVe(e){return vP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function CAe(e,t,r){return Bi(t,r,e.typeParameters)||Bi(t,r,e.parameters)||Zt(t,e.type)}function NAe(e,t,r){return Bi(t,r,e.types)}function PAe(e,t,r){return Zt(t,e.type)}function MAe(e,t,r){return Bi(t,r,e.elements)}function LAe(e,t,r){return Zt(t,e.expression)||Zt(t,e.questionDotToken)||Bi(t,r,e.typeArguments)||Bi(t,r,e.arguments)}function kAe(e,t,r){return Bi(t,r,e.statements)}function wAe(e,t,r){return Zt(t,e.label)}function OAe(e,t,r){return Bi(t,r,e.modifiers)||Zt(t,e.name)||Bi(t,r,e.typeParameters)||Bi(t,r,e.heritageClauses)||Bi(t,r,e.members)}function WAe(e,t,r){return Bi(t,r,e.elements)}function FAe(e,t,r){return Zt(t,e.propertyName)||Zt(t,e.name)}function zAe(e,t,r){return Zt(t,e.tagName)||Bi(t,r,e.typeArguments)||Zt(t,e.attributes)}function DP(e,t,r){return Zt(t,e.type)}function BAe(e,t,r){return Zt(t,e.tagName)||(e.isNameFirst?Zt(t,e.name)||Zt(t,e.typeExpression):Zt(t,e.typeExpression)||Zt(t,e.name))||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function CP(e,t,r){return Zt(t,e.tagName)||Zt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function xse(e,t,r){return Zt(t,e.name)}function aD(e,t,r){return Zt(t,e.tagName)||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function RVe(e,t,r){return Zt(t,e.expression)}function Vo(e,t,r){if(e===void 0||e.kind<=165)return;const i=YAe[e.kind];return i===void 0?void 0:i(e,t,r)}function NP(e,t,r){const i=GAe(e),o=[];for(;o.length<i.length;)o.push(e);for(;i.length!==0;){const s=i.pop(),l=o.pop();if(Ao(s)){if(r){const u=r(s,l);if(u){if(u==="skip")continue;return u}}for(let u=s.length-1;u>=0;--u)i.push(s[u]),o.push(l)}else{const u=t(s,l);if(u){if(u==="skip")continue;return u}if(s.kind>=166)for(const p of GAe(s))i.push(p),o.push(s)}}}function GAe(e){const t=[];return Vo(e,r,r),t;function r(i){t.unshift(i)}}function VAe(e){e.externalModuleIndicator=uw(e)}function dw(e,t,r,i=!1,o){var s,l,u,p;(s=ar)==null||s.push(ar.Phase.Parse,"createSourceFile",{path:e},!0),rl("beforeParse");let h;(l=ad)==null||l.logStartParseSourceFile(e);const{languageVersion:f,setExternalModuleIndicator:b,impliedNodeFormat:A,jsDocParsingMode:I}=typeof r=="object"?r:{languageVersion:r};if(f===100)h=L0.parseSourceFile(e,t,f,void 0,i,6,ts,I);else{const R=A===void 0?b:M=>(M.impliedNodeFormat=A,(b||VAe)(M));h=L0.parseSourceFile(e,t,f,void 0,i,o,R,I)}return(u=ad)==null||u.logStopParseSourceFile(),rl("afterParse"),ef("Parse","beforeParse","afterParse"),(p=ar)==null||p.pop(),h}function bI(e,t){return L0.parseIsolatedEntityName(e,t)}function pw(e,t){return L0.parseJsonText(e,t)}function dc(e){return e.externalModuleIndicator!==void 0}function aq(e,t,r,i=!1){const o=dq.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Rse(e,t,r){const i=L0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&L0.fixupParentReferences(i.jsDoc),i}function jAe(e,t,r){return L0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Tu(e){return sq(e)!==void 0}function sq(e){const t=Kx(e,Mk,!1);if(t)return t;if(Il(e,".ts")){const r=lc(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function DVe(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,m.resolution_mode_should_be_either_require_or_import)}}function lq(e,t){const r=[];for(const i of Zh(t,0)||et){const o=t.substring(i.pos,i.end);NVe(r,i,o)}e.pragmas=new Map;for(const i of r){if(e.pragmas.has(i.name)){const o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function cq(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{const o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;He(SA(r),u=>{const{types:p,lib:h,path:f,["resolution-mode"]:b}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){const A=DVe(b,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...A?{resolutionMode:A}:{}})}else h?l.push({pos:h.pos,end:h.end,fileName:h.value}):f?o.push({pos:f.pos,end:f.end,fileName:f.value}):t(u.range.pos,u.range.end-u.range.pos,m.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Ot(SA(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(const o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,m.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{He(SA(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:C.fail("Unhandled pragma kind")}})}function CVe(e){if(pq.has(e))return pq.get(e);const t=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return pq.set(e,t),t}function NVe(e,t,r){const i=t.kind===2&&$Ae.exec(r);if(i){const s=i[1].toLowerCase(),l=qM[s];if(!l||!(l.kind&1))return;if(l.args){const u={};for(const p of l.args){const f=CVe(p.name).exec(r);if(!f&&!p.optional)return;if(f){const b=f[2]||f[3];if(p.captureSpan){const A=t.pos+f.index+f[1].length+1;u[p.name]={value:b,pos:A,end:A+b.length}}else u[p.name]=b}}e.push({name:s,args:{arguments:u,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}const o=t.kind===2&&QAe.exec(r);if(o)return UAe(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+.*)?$/gim;let l;for(;l=s.exec(r);)UAe(e,t,4,l)}}function UAe(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=qM[o];if(!s||!(s.kind&r))return;const l=i[2],u=PVe(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function PVe(e,t){if(!t)return{};if(!e.args)return{};const r=t.trim().split(/\s+/),i={};for(let o=0;o<e.args.length;o++){const s=e.args[o];if(!r[o]&&!s.optional)return"fail";if(s.captureSpan)return C.fail("Capture spans not yet implemented for non-xml pragmas");i[s.name]=r[o]}return i}function M0(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===295?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&M0(e.expression,t.expression)}var HAe,qAe,JAe,KAe,XAe,uq,Rh,YAe,L0,dq,pq,$Ae,QAe,MVe=T({"src/compiler/parser.ts"(){ta(),fS(),uq={createBaseSourceFileNode:e=>new(XAe||(XAe=uu.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(JAe||(JAe=uu.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(KAe||(KAe=uu.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(qAe||(qAe=uu.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(HAe||(HAe=uu.getNodeConstructor()))(e,-1,-1)},Rh=wk(1,uq),YAe={166:function(t,r,i){return Zt(r,t.left)||Zt(r,t.right)},168:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.constraint)||Zt(r,t.default)||Zt(r,t.expression)},304:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.exclamationToken)||Zt(r,t.equalsToken)||Zt(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Zt(r,t.expression)},169:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.dotDotDotToken)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.type)||Zt(r,t.initializer)},172:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.exclamationToken)||Zt(r,t.type)||Zt(r,t.initializer)},171:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.type)||Zt(r,t.initializer)},303:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.exclamationToken)||Zt(r,t.initializer)},260:function(t,r,i){return Zt(r,t.name)||Zt(r,t.exclamationToken)||Zt(r,t.type)||Zt(r,t.initializer)},208:function(t,r,i){return Zt(r,t.dotDotDotToken)||Zt(r,t.propertyName)||Zt(r,t.name)||Zt(r,t.initializer)},181:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Zt(r,t.type)},185:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Zt(r,t.type)},184:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Zt(r,t.type)},179:CAe,180:CAe,174:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.asteriskToken)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.exclamationToken)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},173:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.questionToken)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Zt(r,t.type)},176:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},177:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},178:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},262:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.asteriskToken)||Zt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},218:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.asteriskToken)||Zt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},219:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.equalsGreaterThanToken)||Zt(r,t.body)},175:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.body)},183:function(t,r,i){return Zt(r,t.typeName)||Bi(r,i,t.typeArguments)},182:function(t,r,i){return Zt(r,t.assertsModifier)||Zt(r,t.parameterName)||Zt(r,t.type)},186:function(t,r,i){return Zt(r,t.exprName)||Bi(r,i,t.typeArguments)},187:function(t,r,i){return Bi(r,i,t.members)},188:function(t,r,i){return Zt(r,t.elementType)},189:function(t,r,i){return Bi(r,i,t.elements)},192:NAe,193:NAe,194:function(t,r,i){return Zt(r,t.checkType)||Zt(r,t.extendsType)||Zt(r,t.trueType)||Zt(r,t.falseType)},195:function(t,r,i){return Zt(r,t.typeParameter)},205:function(t,r,i){return Zt(r,t.argument)||Zt(r,t.attributes)||Zt(r,t.qualifier)||Bi(r,i,t.typeArguments)},302:function(t,r,i){return Zt(r,t.assertClause)},196:PAe,198:PAe,199:function(t,r,i){return Zt(r,t.objectType)||Zt(r,t.indexType)},200:function(t,r,i){return Zt(r,t.readonlyToken)||Zt(r,t.typeParameter)||Zt(r,t.nameType)||Zt(r,t.questionToken)||Zt(r,t.type)||Bi(r,i,t.members)},201:function(t,r,i){return Zt(r,t.literal)},202:function(t,r,i){return Zt(r,t.dotDotDotToken)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.type)},206:MAe,207:MAe,209:function(t,r,i){return Bi(r,i,t.elements)},210:function(t,r,i){return Bi(r,i,t.properties)},211:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.questionDotToken)||Zt(r,t.name)},212:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.questionDotToken)||Zt(r,t.argumentExpression)},213:LAe,214:LAe,215:function(t,r,i){return Zt(r,t.tag)||Zt(r,t.questionDotToken)||Bi(r,i,t.typeArguments)||Zt(r,t.template)},216:function(t,r,i){return Zt(r,t.type)||Zt(r,t.expression)},217:function(t,r,i){return Zt(r,t.expression)},220:function(t,r,i){return Zt(r,t.expression)},221:function(t,r,i){return Zt(r,t.expression)},222:function(t,r,i){return Zt(r,t.expression)},224:function(t,r,i){return Zt(r,t.operand)},229:function(t,r,i){return Zt(r,t.asteriskToken)||Zt(r,t.expression)},223:function(t,r,i){return Zt(r,t.expression)},225:function(t,r,i){return Zt(r,t.operand)},226:function(t,r,i){return Zt(r,t.left)||Zt(r,t.operatorToken)||Zt(r,t.right)},234:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.type)},235:function(t,r,i){return Zt(r,t.expression)},238:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.type)},236:function(t,r,i){return Zt(r,t.name)},227:function(t,r,i){return Zt(r,t.condition)||Zt(r,t.questionToken)||Zt(r,t.whenTrue)||Zt(r,t.colonToken)||Zt(r,t.whenFalse)},230:function(t,r,i){return Zt(r,t.expression)},241:kAe,268:kAe,312:function(t,r,i){return Bi(r,i,t.statements)||Zt(r,t.endOfFileToken)},243:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.declarationList)},261:function(t,r,i){return Bi(r,i,t.declarations)},244:function(t,r,i){return Zt(r,t.expression)},245:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.thenStatement)||Zt(r,t.elseStatement)},246:function(t,r,i){return Zt(r,t.statement)||Zt(r,t.expression)},247:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.statement)},248:function(t,r,i){return Zt(r,t.initializer)||Zt(r,t.condition)||Zt(r,t.incrementor)||Zt(r,t.statement)},249:function(t,r,i){return Zt(r,t.initializer)||Zt(r,t.expression)||Zt(r,t.statement)},250:function(t,r,i){return Zt(r,t.awaitModifier)||Zt(r,t.initializer)||Zt(r,t.expression)||Zt(r,t.statement)},251:wAe,252:wAe,253:function(t,r,i){return Zt(r,t.expression)},254:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.statement)},255:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.caseBlock)},269:function(t,r,i){return Bi(r,i,t.clauses)},296:function(t,r,i){return Zt(r,t.expression)||Bi(r,i,t.statements)},297:function(t,r,i){return Bi(r,i,t.statements)},256:function(t,r,i){return Zt(r,t.label)||Zt(r,t.statement)},257:function(t,r,i){return Zt(r,t.expression)},258:function(t,r,i){return Zt(r,t.tryBlock)||Zt(r,t.catchClause)||Zt(r,t.finallyBlock)},299:function(t,r,i){return Zt(r,t.variableDeclaration)||Zt(r,t.block)},170:function(t,r,i){return Zt(r,t.expression)},263:OAe,231:OAe,264:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.heritageClauses)||Bi(r,i,t.members)},265:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Bi(r,i,t.typeParameters)||Zt(r,t.type)},266:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Bi(r,i,t.members)},306:function(t,r,i){return Zt(r,t.name)||Zt(r,t.initializer)},267:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.body)},271:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.moduleReference)},272:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.importClause)||Zt(r,t.moduleSpecifier)||Zt(r,t.attributes)},273:function(t,r,i){return Zt(r,t.name)||Zt(r,t.namedBindings)},300:function(t,r,i){return Bi(r,i,t.elements)},301:function(t,r,i){return Zt(r,t.name)||Zt(r,t.value)},270:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.name)},274:function(t,r,i){return Zt(r,t.name)},280:function(t,r,i){return Zt(r,t.name)},275:WAe,279:WAe,278:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.exportClause)||Zt(r,t.moduleSpecifier)||Zt(r,t.attributes)},276:FAe,281:FAe,277:function(t,r,i){return Bi(r,i,t.modifiers)||Zt(r,t.expression)},228:function(t,r,i){return Zt(r,t.head)||Bi(r,i,t.templateSpans)},239:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.literal)},203:function(t,r,i){return Zt(r,t.head)||Bi(r,i,t.templateSpans)},204:function(t,r,i){return Zt(r,t.type)||Zt(r,t.literal)},167:function(t,r,i){return Zt(r,t.expression)},298:function(t,r,i){return Bi(r,i,t.types)},233:function(t,r,i){return Zt(r,t.expression)||Bi(r,i,t.typeArguments)},283:function(t,r,i){return Zt(r,t.expression)},282:function(t,r,i){return Bi(r,i,t.modifiers)},361:function(t,r,i){return Bi(r,i,t.elements)},284:function(t,r,i){return Zt(r,t.openingElement)||Bi(r,i,t.children)||Zt(r,t.closingElement)},288:function(t,r,i){return Zt(r,t.openingFragment)||Bi(r,i,t.children)||Zt(r,t.closingFragment)},285:zAe,286:zAe,292:function(t,r,i){return Bi(r,i,t.properties)},291:function(t,r,i){return Zt(r,t.name)||Zt(r,t.initializer)},293:function(t,r,i){return Zt(r,t.expression)},294:function(t,r,i){return Zt(r,t.dotDotDotToken)||Zt(r,t.expression)},287:function(t,r,i){return Zt(r,t.tagName)},295:function(t,r,i){return Zt(r,t.namespace)||Zt(r,t.name)},190:DP,191:DP,316:DP,322:DP,321:DP,323:DP,325:DP,324:function(t,r,i){return Bi(r,i,t.parameters)||Zt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))||Bi(r,i,t.tags)},354:function(t,r,i){return Zt(r,t.tagName)||Zt(r,t.name)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},317:function(t,r,i){return Zt(r,t.name)},318:function(t,r,i){return Zt(r,t.left)||Zt(r,t.right)},348:BAe,355:BAe,337:function(t,r,i){return Zt(r,t.tagName)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},336:function(t,r,i){return Zt(r,t.tagName)||Zt(r,t.class)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},335:function(t,r,i){return Zt(r,t.tagName)||Zt(r,t.class)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},352:function(t,r,i){return Zt(r,t.tagName)||Zt(r,t.constraint)||Bi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},353:function(t,r,i){return Zt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Zt(r,t.typeExpression)||Zt(r,t.fullName)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment)):Zt(r,t.fullName)||Zt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment)))},345:function(t,r,i){return Zt(r,t.tagName)||Zt(r,t.fullName)||Zt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},349:CP,351:CP,350:CP,347:CP,357:CP,356:CP,346:CP,330:function(t,r,i){return He(t.typeParameters,r)||He(t.parameters,r)||Zt(r,t.type)},331:xse,332:xse,333:xse,329:function(t,r,i){return He(t.jsDocPropertyTags,r)},334:aD,339:aD,340:aD,341:aD,342:aD,343:aD,338:aD,344:aD,360:RVe},(e=>{var t=Ov(99,!0),r=40960,i,o,s,l,u;function p($){return Qe++,$}var h={createBaseSourceFileNode:$=>p(new u($,0,0)),createBaseIdentifierNode:$=>p(new s($,0,0)),createBasePrivateIdentifierNode:$=>p(new l($,0,0)),createBaseTokenNode:$=>p(new o($,0,0)),createBaseNode:$=>p(new i($,0,0))},f=wk(11,h),{createNodeArray:b,createNumericLiteral:A,createStringLiteral:I,createLiteralLikeNode:R,createIdentifier:M,createPrivateIdentifier:N,createToken:O,createArrayLiteralExpression:U,createObjectLiteralExpression:K,createPropertyAccessExpression:ee,createPropertyAccessChain:V,createElementAccessExpression:se,createElementAccessChain:G,createCallExpression:re,createCallChain:_e,createNewExpression:ye,createParenthesizedExpression:Q,createBlock:Y,createVariableStatement:oe,createExpressionStatement:he,createIfStatement:Ae,createWhileStatement:de,createForStatement:ie,createForOfStatement:ge,createVariableDeclaration:Ne,createVariableDeclarationList:qe}=f,Ee,Me,Ce,Oe,At,be,Ue,it,Ft,gt,Qe,It,on,$t,Cn,Hn,yn=!0,tn=!1;function en($,xe,Ke,Rt,Ct=!1,Kt,zr,Oi=0){var Ci;if(Kt=Q3($,Kt),Kt===6){const Yi=ho($,xe,Ke,Rt,Ct);return _w(Yi,(Ci=Yi.statements[0])==null?void 0:Ci.expression,Yi.parseDiagnostics,!1,void 0),Yi.referencedFiles=et,Yi.typeReferenceDirectives=et,Yi.libReferenceDirectives=et,Yi.amdDependencies=et,Yi.hasNoDefaultLib=!1,Yi.pragmas=U6,Yi}Gi($,xe,Ke,Rt,Kt,Oi);const mi=Qn(Ke,Ct,Kt,zr||VAe,Oi);return xo(),mi}e.parseSourceFile=en;function gi($,xe){Gi("",$,xe,void 0,1,0),ke();const Ke=te(!0),Rt=q()===1&&!Ue.length;return xo(),Rt?Ke:void 0}e.parseIsolatedEntityName=gi;function ho($,xe,Ke=2,Rt,Ct=!1){Gi($,xe,Ke,Rt,6,0),Me=Hn,ke();const Kt=L();let zr,Oi;if(q()===1)zr=Mo([],Kt,Kt),Oi=_l();else{let Yi;for(;q()!==1;){let is;switch(q()){case 23:is=w1();break;case 112:case 97:case 106:is=_l();break;case 41:wi(()=>ke()===9&&ke()!==59)?is=Qr():is=lv();break;case 9:case 11:if(wi(()=>ke()!==59)){is=Xr();break}default:is=lv();break}Yi&&Ao(Yi)?Yi.push(is):Yi?Yi=[Yi,is]:(Yi=is,q()!==1&&hn(m.Unexpected_token))}const fs=Ao(Yi)?an(U(Yi),Kt):C.checkDefined(Yi),Ps=he(fs);an(Ps,Kt),zr=Mo([Ps],Kt),Oi=Rs(1,m.Unexpected_token)}const Ci=Bt($,2,6,!1,zr,Oi,Me,ts);Ct&&nt(Ci),Ci.nodeCount=Qe,Ci.identifierCount=on,Ci.identifiers=It,Ci.parseDiagnostics=JA(Ue,Ci),it&&(Ci.jsDocDiagnostics=JA(it,Ci));const mi=Ci;return xo(),mi}e.parseJsonText=ho;function Gi($,xe,Ke,Rt,Ct,Kt){switch(i=uu.getNodeConstructor(),o=uu.getTokenConstructor(),s=uu.getIdentifierConstructor(),l=uu.getPrivateIdentifierConstructor(),u=uu.getSourceFileConstructor(),Ee=ha($),Ce=xe,Oe=Ke,Ft=Rt,At=Ct,be=yk(Ct),Ue=[],$t=0,It=new Map,on=0,Qe=0,Me=0,yn=!0,At){case 1:case 2:Hn=524288;break;case 6:Hn=134742016;break;default:Hn=0;break}tn=!1,t.setText(Ce),t.setOnError(Lt),t.setScriptTarget(Oe),t.setLanguageVariant(be),t.setScriptKind(At),t.setJSDocParsingMode(Kt)}function xo(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Ce=void 0,Oe=void 0,Ft=void 0,At=void 0,be=void 0,Me=0,Ue=void 0,it=void 0,$t=0,It=void 0,Cn=void 0,yn=!0}function Qn($,xe,Ke,Rt,Ct){const Kt=Tu(Ee);Kt&&(Hn|=33554432),Me=Hn,ke();const zr=ea(0,cp);C.assert(q()===1);const Oi=me(),Ci=Ir(_l(),Oi),mi=Bt(Ee,$,Ke,Kt,zr,Ci,Me,Rt);return lq(mi,Ce),cq(mi,Yi),mi.commentDirectives=t.getCommentDirectives(),mi.nodeCount=Qe,mi.identifierCount=on,mi.identifiers=It,mi.parseDiagnostics=JA(Ue,mi),mi.jsDocParsingMode=Ct,it&&(mi.jsDocDiagnostics=JA(it,mi)),xe&&nt(mi),mi;function Yi(fs,Ps,is){Ue.push(WR(Ee,Ce,fs,Ps,is))}}let Di=!1;function Ir($,xe){if(!xe)return $;C.assert(!$.jsDoc);const Ke=Hi(Wj($,Ce),Rt=>Y_.parseJSDocComment($,Rt.pos,Rt.end-Rt.pos));return Ke.length&&($.jsDoc=Ke),Di&&(Di=!1,$.flags|=536870912),$}function Xt($){const xe=Ft,Ke=dq.createSyntaxCursor($);Ft={currentNode:Yi};const Rt=[],Ct=Ue;Ue=[];let Kt=0,zr=Ci($.statements,0);for(;zr!==-1;){const fs=$.statements[Kt],Ps=$.statements[zr];Ur(Rt,$.statements,Kt,zr),Kt=mi($.statements,zr);const is=Br(Ct,$_=>$_.start>=fs.pos),Uf=is>=0?Br(Ct,$_=>$_.start>=Ps.pos,is):-1;is>=0&&Ur(Ue,Ct,is,Uf>=0?Uf:void 0),bo(()=>{const $_=Hn;for(Hn|=65536,t.resetTokenState(Ps.pos),ke();q()!==1;){const jm=t.getTokenFullStart(),pv=rc(0,cp);if(Rt.push(pv),jm===t.getTokenFullStart()&&ke(),Kt>=0){const fv=$.statements[Kt];if(pv.end===fv.pos)break;pv.end>fv.pos&&(Kt=mi($.statements,Kt+1))}}Hn=$_},2),zr=Kt>=0?Ci($.statements,Kt):-1}if(Kt>=0){const fs=$.statements[Kt];Ur(Rt,$.statements,Kt);const Ps=Br(Ct,is=>is.start>=fs.pos);Ps>=0&&Ur(Ue,Ct,Ps)}return Ft=xe,f.updateSourceFile($,ut(b(Rt),$.statements));function Oi(fs){return!(fs.flags&65536)&&!!(fs.transformFlags&67108864)}function Ci(fs,Ps){for(let is=Ps;is<fs.length;is++)if(Oi(fs[is]))return is;return-1}function mi(fs,Ps){for(let is=Ps;is<fs.length;is++)if(!Oi(fs[is]))return is;return-1}function Yi(fs){const Ps=Ke.currentNode(fs);return yn&&Ps&&Oi(Ps)&&(Ps.intersectsChange=!0),Ps}}function nt($){Jy($,!0)}e.fixupParentReferences=nt;function Bt($,xe,Ke,Rt,Ct,Kt,zr,Oi){let Ci=f.createSourceFile(Ct,Kt,zr);if(nP(Ci,0,Ce.length),mi(Ci),!Rt&&dc(Ci)&&Ci.transformFlags&67108864){const Yi=Ci;Ci=Xt(Ci),Yi!==Ci&&mi(Ci)}return Ci;function mi(Yi){Yi.text=Ce,Yi.bindDiagnostics=[],Yi.bindSuggestionDiagnostics=void 0,Yi.languageVersion=xe,Yi.fileName=$,Yi.languageVariant=yk(Ke),Yi.isDeclarationFile=Rt,Yi.scriptKind=Ke,Oi(Yi),Yi.setExternalModuleIndicator=Oi}}function Dn($,xe){$?Hn|=xe:Hn&=~xe}function oi($){Dn($,8192)}function yi($){Dn($,16384)}function eo($){Dn($,32768)}function Ro($){Dn($,65536)}function fa($,xe){const Ke=$&Hn;if(Ke){Dn(!1,Ke);const Rt=xe();return Dn(!0,Ke),Rt}return xe()}function Fa($,xe){const Ke=$&~Hn;if(Ke){Dn(!0,Ke);const Rt=xe();return Dn(!1,Ke),Rt}return xe()}function An($){return fa(8192,$)}function wn($){return Fa(8192,$)}function Je($){return fa(131072,$)}function mt($){return Fa(131072,$)}function pt($){return Fa(16384,$)}function Pt($){return Fa(32768,$)}function le($){return Fa(65536,$)}function Fe($){return fa(65536,$)}function dt($){return Fa(81920,$)}function j($){return fa(81920,$)}function ot($){return(Hn&$)!==0}function Dt(){return ot(16384)}function Ye(){return ot(8192)}function _t(){return ot(131072)}function Gt(){return ot(32768)}function gn(){return ot(65536)}function hn($,...xe){return H(t.getTokenStart(),t.getTokenEnd(),$,...xe)}function dn($,xe,Ke,...Rt){const Ct=el(Ue);let Kt;return(!Ct||$!==Ct.start)&&(Kt=WR(Ee,Ce,$,xe,Ke,...Rt),Ue.push(Kt)),tn=!0,Kt}function H($,xe,Ke,...Rt){return dn($,xe-$,Ke,...Rt)}function We($,xe,...Ke){H($.pos,$.end,xe,...Ke)}function Lt($,xe,Ke){dn(t.getTokenEnd(),xe,$,Ke)}function L(){return t.getTokenFullStart()}function me(){return t.hasPrecedingJSDocComment()}function q(){return gt}function fe(){return gt=t.scan()}function Ve($){return ke(),$()}function ke(){return Bd(gt)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&H(t.getTokenStart(),t.getTokenEnd(),m.Keywords_cannot_contain_escape_characters),fe()}function Tt(){return gt=t.scanJsDocToken()}function kt($){return gt=t.scanJSDocCommentTextToken($)}function nn(){return gt=t.reScanGreaterToken()}function En(){return gt=t.reScanSlashToken()}function nr($){return gt=t.reScanTemplateToken($)}function lr(){return gt=t.reScanLessThanToken()}function ai(){return gt=t.reScanHashToken()}function si(){return gt=t.scanJsxIdentifier()}function Kn(){return gt=t.scanJsxToken()}function Hr(){return gt=t.scanJsxAttributeValue()}function bo($,xe){const Ke=gt,Rt=Ue.length,Ct=tn,Kt=Hn,zr=xe!==0?t.lookAhead($):t.tryScan($);return C.assert(Kt===Hn),(!zr||xe!==0)&&(gt=Ke,xe!==2&&(Ue.length=Rt),tn=Ct),zr}function wi($){return bo($,1)}function vi($){return bo($,0)}function ga(){return q()===80?!0:q()>118}function Ja(){return q()===80?!0:q()===127&&Dt()||q()===135&&gn()?!1:q()>118}function Qt($,xe,Ke=!0){return q()===$?(Ke&&ke(),!0):(xe?hn(xe):hn(m._0_expected,pa($)),!1)}const va=Object.keys(oL).filter($=>$.length>2);function Wl($){var Ct;if(a1($)){H(wa(Ce,$.template.pos),$.template.end,m.Module_declaration_names_may_only_use_or_quoted_strings);return}const xe=je($)?Tr($):void 0;if(!xe||!tf(xe,Oe)){hn(m._0_expected,pa(27));return}const Ke=wa(Ce,$.pos);switch(xe){case"const":case"let":case"var":H(Ke,$.end,m.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":to(m.Interface_name_cannot_be_0,m.Interface_must_be_given_a_name,19);return;case"is":H(Ke,t.getTokenStart(),m.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":to(m.Namespace_name_cannot_be_0,m.Namespace_must_be_given_a_name,19);return;case"type":to(m.Type_alias_name_cannot_be_0,m.Type_alias_must_be_given_a_name,64);return}const Rt=(Ct=$C(xe,va,Kt=>Kt))!=null?Ct:za(xe);if(Rt){H(Ke,$.end,m.Unknown_keyword_or_identifier_Did_you_mean_0,Rt);return}q()!==0&&H(Ke,$.end,m.Unexpected_keyword_or_identifier)}function to($,xe,Ke){q()===Ke?hn(xe):hn($,t.getTokenValue())}function za($){for(const xe of va)if($.length>xe.length+2&&po($,xe))return"".concat(xe," ").concat($.slice(xe.length))}function La($,xe,Ke){if(q()===60&&!t.hasPrecedingLineBreak()){hn(m.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(q()===21){hn(m.Cannot_start_a_function_call_in_a_type_annotation),ke();return}if(xe&&!pc()){Ke?hn(m._0_expected,pa(27)):hn(m.Expected_for_property_initializer);return}if(!Cl()){if(Ke){hn(m._0_expected,pa(27));return}Wl($)}}function ys($){return q()===$?(Tt(),!0):(C.assert(v3($)),hn(m._0_expected,pa($)),!1)}function tc($,xe,Ke,Rt){if(q()===xe){ke();return}const Ct=hn(m._0_expected,pa(xe));Ke&&Ct&&Oa(Ct,WR(Ee,Ce,Rt,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,pa($),pa(xe)))}function ao($){return q()===$?(ke(),!0):!1}function ca($){if(q()===$)return _l()}function pu($){if(q()===$)return wf()}function Rs($,xe,Ke){return ca($)||Hs($,!1,xe||m._0_expected,Ke||pa($))}function ka($){const xe=pu($);return xe||(C.assert(v3($)),Hs($,!1,m._0_expected,pa($)))}function _l(){const $=L(),xe=q();return ke(),an(O(xe),$)}function wf(){const $=L(),xe=q();return Tt(),an(O(xe),$)}function pc(){return q()===27?!0:q()===20||q()===1||t.hasPrecedingLineBreak()}function Cl(){return pc()?(q()===27&&ke(),!0):!1}function cl(){return Cl()||Qt(27)}function Mo($,xe,Ke,Rt){const Ct=b($,Rt);return bh(Ct,xe,Ke!=null?Ke:t.getTokenFullStart()),Ct}function an($,xe,Ke){return bh($,xe,Ke!=null?Ke:t.getTokenFullStart()),Hn&&($.flags|=Hn),tn&&(tn=!1,$.flags|=262144),$}function Hs($,xe,Ke,...Rt){xe?dn(t.getTokenFullStart(),0,Ke,...Rt):Ke&&hn(Ke,...Rt);const Ct=L(),Kt=$===80?M("",void 0):wy($)?f.createTemplateLiteralLikeNode($,"","",void 0):$===9?A("",void 0):$===11?I("",void 0):$===282?f.createMissingDeclaration():O($);return an(Kt,Ct)}function iu($){let xe=It.get($);return xe===void 0&&It.set($,xe=$),xe}function fu($,xe,Ke){if($){on++;const Oi=L(),Ci=q(),mi=iu(t.getTokenValue()),Yi=t.hasExtendedUnicodeEscape();return fe(),an(M(mi,Ci,Yi),Oi)}if(q()===81)return hn(Ke||m.Private_identifiers_are_not_allowed_outside_class_bodies),fu(!0);if(q()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return fu(!0);on++;const Rt=q()===1,Ct=t.isReservedWord(),Kt=t.getTokenText(),zr=Ct?m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:m.Identifier_expected;return Hs(80,Rt,xe||zr,Kt)}function Rp($){return fu(ga(),void 0,$)}function Ws($,xe){return fu(Ja(),$,xe)}function Cc($){return fu(sd(q()),$)}function pe(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&hn(m.Unicode_escape_sequence_cannot_appear_here),fu(sd(q()))}function Z(){return sd(q())||q()===11||q()===9}function we(){return sd(q())||q()===11}function yt($){if(q()===11||q()===9){const xe=Xr();return xe.text=iu(xe.text),xe}return q()===23?gr():q()===81?br():Cc()}function pn(){return yt()}function gr(){const $=L();Qt(23);const xe=An(Xe);return Qt(24),an(f.createComputedPropertyName(xe),$)}function br(){const $=L(),xe=N(iu(t.getTokenValue()));return ke(),an(xe,$)}function qr($){return q()===$&&vi(hr)}function Ri(){return ke(),t.hasPrecedingLineBreak()?!1:Sl()}function hr(){switch(q()){case 87:return ke()===94;case 95:return ke(),q()===90?wi(Xl):q()===156?wi(Nl):Ho();case 90:return Xl();case 126:case 139:case 153:return ke(),Sl();default:return Ri()}}function Ho(){return q()===60||q()!==42&&q()!==130&&q()!==19&&Sl()}function Nl(){return ke(),Ho()}function zc(){return Fv(q())&&vi(hr)}function Sl(){return q()===23||q()===19||q()===42||q()===26||Z()}function Xl(){return ke(),q()===86||q()===100||q()===120||q()===60||q()===128&&wi(LT)||q()===134&&wi(kT)}function Is($,xe){if(Sc($))return!0;switch($){case 0:case 1:case 3:return!(q()===27&&xe)&&W1();case 2:return q()===84||q()===90;case 4:return wi(Qa);case 5:return wi(xg)||q()===27&&!xe;case 6:return q()===23||Z();case 12:switch(q()){case 23:case 42:case 26:case 25:return!0;default:return Z()}case 18:return Z();case 9:return q()===23||q()===26||Z();case 24:return we();case 7:return q()===19?wi(nc):xe?Ja()&&!Cd():nx()&&!Cd();case 8:return ss();case 10:return q()===28||q()===26||ss();case 19:return q()===103||q()===87||Ja();case 15:switch(q()){case 28:case 25:return!0}case 11:return q()===26||l_();case 16:return H_(!1);case 17:return H_(!0);case 20:case 21:return q()===28||bg();case 22:return D();case 23:return q()===161&&wi(fC)?!1:sd(q());case 13:return sd(q())||q()===19;case 14:return!0;case 25:return!0;case 26:return C.fail("ParsingContext.Count used as a context");default:C.assertNever($,"Non-exhaustive case in 'isListElement'.")}}function nc(){if(C.assert(q()===19),ke()===20){const $=ke();return $===28||$===19||$===96||$===119}return!0}function op(){return ke(),Ja()}function ap(){return ke(),sd(q())}function Jc(){return ke(),dre(q())}function Cd(){return q()===119||q()===96?wi(Pe):!1}function Pe(){return ke(),l_()}function Wt(){return ke(),bg()}function qn($){if(q()===1)return!0;switch($){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return q()===20;case 3:return q()===20||q()===84||q()===90;case 7:return q()===19||q()===96||q()===119;case 8:return Eo();case 19:return q()===32||q()===21||q()===19||q()===96||q()===119;case 11:return q()===22||q()===27;case 15:case 21:case 10:return q()===24;case 17:case 16:case 18:return q()===22||q()===24;case 20:return q()!==28;case 22:return q()===19||q()===20;case 13:return q()===32||q()===44;case 14:return q()===30&&wi(Si);default:return!1}}function Eo(){return!!(pc()||ov(q())||q()===39)}function Xo(){C.assert($t,"Missing parsing context");for(let $=0;$<26;$++)if($t&1<<$&&(Is($,!0)||qn($)))return!0;return!1}function ea($,xe){const Ke=$t;$t|=1<<$;const Rt=[],Ct=L();for(;!qn($);){if(Is($,!1)){Rt.push(rc($,xe));continue}if(Mh($))break}return $t=Ke,Mo(Rt,Ct)}function rc($,xe){const Ke=Sc($);return Ke?ul(Ke):xe()}function Sc($,xe){var Ke;if(!Ft||!vl($)||tn)return;const Rt=Ft.currentNode(xe!=null?xe:t.getTokenFullStart());if(!(Gl(Rt)||Rt.intersectsChange||sR(Rt)||(Rt.flags&101441536)!==Hn)&&Ul(Rt,$))return ek(Rt)&&((Ke=Rt.jsDoc)!=null&&Ke.jsDocCache)&&(Rt.jsDoc.jsDocCache=void 0),Rt}function ul($){return t.resetTokenState($.end),ke(),$}function vl($){switch($){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Ul($,xe){switch(xe){case 5:return ic($);case 2:return Kc($);case 0:case 1:case 3:return ff($);case 6:return jd($);case 4:return Nd($);case 8:return Of($);case 17:case 16:return U_($)}return!1}function ic($){if($)switch($.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:const xe=$;return!(xe.name.kind===80&&xe.name.escapedText==="constructor")}return!1}function Kc($){if($)switch($.kind){case 296:case 297:return!0}return!1}function ff($){if($)switch($.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}function jd($){return $.kind===306}function Nd($){if($)switch($.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}function Of($){return $.kind!==260?!1:$.initializer===void 0}function U_($){return $.kind!==169?!1:$.initializer===void 0}function Mh($){return ev($),Xo()?!0:(ke(),!1)}function ev($){switch($){case 0:return q()===90?hn(m._0_expected,pa(95)):hn(m.Declaration_or_statement_expected);case 1:return hn(m.Declaration_or_statement_expected);case 2:return hn(m.case_or_default_expected);case 3:return hn(m.Statement_expected);case 18:case 4:return hn(m.Property_or_signature_expected);case 5:return hn(m.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return hn(m.Enum_member_expected);case 7:return hn(m.Expression_expected);case 8:return Bd(q())?hn(m._0_is_not_allowed_as_a_variable_declaration_name,pa(q())):hn(m.Variable_declaration_expected);case 9:return hn(m.Property_destructuring_pattern_expected);case 10:return hn(m.Array_element_destructuring_pattern_expected);case 11:return hn(m.Argument_expression_expected);case 12:return hn(m.Property_assignment_expected);case 15:return hn(m.Expression_or_comma_expected);case 17:return hn(m.Parameter_declaration_expected);case 16:return Bd(q())?hn(m._0_is_not_allowed_as_a_parameter_name,pa(q())):hn(m.Parameter_declaration_expected);case 19:return hn(m.Type_parameter_declaration_expected);case 20:return hn(m.Type_argument_expected);case 21:return hn(m.Type_expected);case 22:return hn(m.Unexpected_token_expected);case 23:return q()===161?hn(m._0_expected,"}"):hn(m.Identifier_expected);case 13:return hn(m.Identifier_expected);case 14:return hn(m.Identifier_expected);case 24:return hn(m.Identifier_or_string_literal_expected);case 25:return hn(m.Identifier_expected);case 26:return C.fail("ParsingContext.Count used as a context");default:C.assertNever($)}}function Bu($,xe,Ke){const Rt=$t;$t|=1<<$;const Ct=[],Kt=L();let zr=-1;for(;;){if(Is($,!1)){const Oi=t.getTokenFullStart(),Ci=rc($,xe);if(!Ci){$t=Rt;return}if(Ct.push(Ci),zr=t.getTokenStart(),ao(28))continue;if(zr=-1,qn($))break;Qt(28,tv($)),Ke&&q()===27&&!t.hasPrecedingLineBreak()&&ke(),Oi===t.getTokenFullStart()&&ke();continue}if(qn($)||Mh($))break}return $t=Rt,Mo(Ct,Kt,void 0,zr>=0)}function tv($){return $===6?m.An_enum_member_name_must_be_followed_by_a_or:void 0}function Dp(){const $=Mo([],L());return $.isMissingList=!0,$}function vg($){return!!$.isMissingList}function Ud($,xe,Ke,Rt){if(Qt(Ke)){const Ct=Bu($,xe);return Qt(Rt),Ct}return Dp()}function te($,xe){const Ke=L();let Rt=$?Cc(xe):Ws(xe);for(;ao(25)&&q()!==30;)Rt=an(f.createQualifiedName(Rt,zt($,!1,!0)),Ke);return Rt}function lt($,xe){return an(f.createQualifiedName($,xe),$.pos)}function zt($,xe,Ke){if(t.hasPrecedingLineBreak()&&sd(q())&&wi(qp))return Hs(80,!0,m.Identifier_expected);if(q()===81){const Rt=br();return xe?Rt:Hs(80,!0,m.Identifier_expected)}return $?Ke?Cc():pe():Ws()}function Jt($){const xe=L(),Ke=[];let Rt;do Rt=ni($),Ke.push(Rt);while(Rt.literal.kind===17);return Mo(Ke,xe)}function F($){const xe=L();return an(f.createTemplateExpression(so($),Jt($)),xe)}function De(){const $=L();return an(f.createTemplateLiteralType(so(!1),st()),$)}function st(){const $=L(),xe=[];let Ke;do Ke=Vt(),xe.push(Ke);while(Ke.literal.kind===17);return Mo(xe,$)}function Vt(){const $=L();return an(f.createTemplateLiteralTypeSpan(Tc(),ir(!1)),$)}function ir($){return q()===20?(nr($),Ba()):Rs(18,m._0_expected,pa(20))}function ni($){const xe=L();return an(f.createTemplateSpan(An(Xe),ir($)),xe)}function Xr(){return Fl(q())}function so($){!$&&t.getTokenFlags()&26656&&nr(!1);const xe=Fl(q());return C.assert(xe.kind===16,"Template head has wrong token kind"),xe}function Ba(){const $=Fl(q());return C.assert($.kind===17||$.kind===18,"Template fragment has wrong token kind"),$}function Ga($){const xe=$===15||$===18,Ke=t.getTokenText();return Ke.substring(1,Ke.length-(t.isUnterminated()?0:xe?1:2))}function Fl($){const xe=L(),Ke=wy($)?f.createTemplateLiteralLikeNode($,t.getTokenValue(),Ga($),t.getTokenFlags()&7176):$===9?A(t.getTokenValue(),t.getNumericLiteralFlags()):$===11?I(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):mN($)?R($,t.getTokenValue()):C.fail();return t.hasExtendedUnicodeEscape()&&(Ke.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ke.isUnterminated=!0),ke(),an(Ke,xe)}function mu(){return te(!0,m.Type_expected)}function Nc(){if(!t.hasPrecedingLineBreak()&&lr()===30)return Ud(20,Tc,30,32)}function Cp(){const $=L();return an(f.createTypeReferenceNode(mu(),Nc()),$)}function Hd($){switch($.kind){case 183:return Gl($.typeName);case 184:case 185:{const{parameters:xe,type:Ke}=$;return vg(xe)||Hd(Ke)}case 196:return Hd($.type);default:return!1}}function pb($){return ke(),an(f.createTypePredicateNode(void 0,$,Tc()),$.pos)}function ps(){const $=L();return ke(),an(f.createThisTypeNode(),$)}function Wf(){const $=L();return ke(),an(f.createJSDocAllType(),$)}function Ff(){const $=L();return ke(),an(f.createJSDocNonNullableType(hb(),!1),$)}function Vi(){const $=L();return ke(),q()===28||q()===20||q()===22||q()===32||q()===64||q()===52?an(f.createJSDocUnknownType(),$):an(f.createJSDocNullableType(Tc(),!1),$)}function Lh(){const $=L(),xe=me();if(vi(jf)){const Ke=bn(36),Rt=Ut(59,!1);return Ir(an(f.createJSDocFunctionType(Ke,Rt),$),xe)}return an(f.createTypeReferenceNode(Cc(),void 0),$)}function yg(){const $=L();let xe;return(q()===110||q()===105)&&(xe=Cc(),Qt(59)),an(f.createParameterDeclaration(void 0,void 0,xe,void 0,zf(),void 0),$)}function zf(){t.setInJSDocType(!0);const $=L();if(ao(144)){const Rt=f.createJSDocNamepathType(void 0);e:for(;;)switch(q()){case 20:case 1:case 28:case 5:break e;default:Tt()}return t.setInJSDocType(!1),an(Rt,$)}const xe=ao(26);let Ke=gb();return t.setInJSDocType(!1),xe&&(Ke=an(f.createJSDocVariadicType(Ke),$)),q()===64?(ke(),an(f.createJSDocOptionalType(Ke),$)):Ke}function fb(){const $=L();Qt(114);const xe=te(!0),Ke=t.hasPrecedingLineBreak()?void 0:oE();return an(f.createTypeQueryNode(xe,Ke),$)}function mb(){const $=L(),xe=Fh(!1,!0),Ke=Ws();let Rt,Ct;ao(96)&&(bg()||!l_()?Rt=Tc():Ct=yb());const Kt=ao(64)?Tc():void 0,zr=f.createTypeParameterDeclaration(xe,Ke,Rt,Kt);return zr.expression=Ct,an(zr,$)}function mf(){if(q()===30)return Ud(19,mb,30,32)}function H_($){return q()===26||ss()||Fv(q())||q()===60||bg(!$)}function _f($){const xe=xr(m.Private_identifiers_cannot_be_used_as_parameters);return xL(xe)===0&&!St($)&&Fv(q())&&ke(),xe}function nv(){return ga()||q()===23||q()===19}function ze($){return Nt($)}function Ze($){return Nt($,!1)}function Nt($,xe=!0){const Ke=L(),Rt=me(),Ct=$?le(()=>Fh(!0)):Fe(()=>Fh(!0));if(q()===110){const Ci=f.createParameterDeclaration(Ct,void 0,fu(!0),void 0,ly(),void 0),mi=$c(Ct);return mi&&We(mi,m.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ir(an(Ci,Ke),Rt)}const Kt=yn;yn=!1;const zr=ca(26);if(!xe&&!nv())return;const Oi=Ir(an(f.createParameterDeclaration(Ct,zr,_f(Ct),ca(58),ly(),c_()),Ke),Rt);return yn=Kt,Oi}function Ut($,xe){if(vn($,xe))return Je(gb)}function vn($,xe){return $===39?(Qt($),!0):ao(59)?!0:xe&&q()===39?(hn(m._0_expected,pa(59)),ke(),!0):!1}function Jn($,xe){const Ke=Dt(),Rt=gn();yi(!!($&1)),Ro(!!($&2));const Ct=$&32?Bu(17,yg):Bu(16,()=>xe?ze(Rt):Ze(Rt));return yi(Ke),Ro(Rt),Ct}function bn($){if(!Qt(21))return Dp();const xe=Jn($,!0);return Qt(22),xe}function $n(){ao(28)||cl()}function fi($){const xe=L(),Ke=me();$===180&&Qt(105);const Rt=mf(),Ct=bn(4),Kt=Ut(59,!0);$n();const zr=$===179?f.createCallSignature(Rt,Ct,Kt):f.createConstructSignature(Rt,Ct,Kt);return Ir(an(zr,xe),Ke)}function cr(){return q()===23&&wi(ei)}function ei(){if(ke(),q()===26||q()===24)return!0;if(Fv(q())){if(ke(),Ja())return!0}else if(Ja())ke();else return!1;return q()===59||q()===28?!0:q()!==58?!1:(ke(),q()===59||q()===28||q()===24)}function fr($,xe,Ke){const Rt=Ud(16,()=>ze(!1),23,24),Ct=ly();$n();const Kt=f.createIndexSignature(Ke,Rt,Ct);return Ir(an(Kt,$),xe)}function Yo($,xe,Ke){const Rt=pn(),Ct=ca(58);let Kt;if(q()===21||q()===30){const zr=mf(),Oi=bn(4),Ci=Ut(59,!0);Kt=f.createMethodSignature(Ke,Rt,Ct,zr,Oi,Ci)}else{const zr=ly();Kt=f.createPropertySignature(Ke,Rt,Ct,zr),q()===64&&(Kt.initializer=c_())}return $n(),Ir(an(Kt,$),xe)}function Qa(){if(q()===21||q()===30||q()===139||q()===153)return!0;let $=!1;for(;Fv(q());)$=!0,ke();return q()===23?!0:(Z()&&($=!0,ke()),$?q()===21||q()===30||q()===58||q()===59||q()===28||pc():!1)}function Zu(){if(q()===21||q()===30)return fi(179);if(q()===105&&wi(_u))return fi(180);const $=L(),xe=me(),Ke=Fh(!1);return qr(139)?uv($,xe,Ke,177,4):qr(153)?uv($,xe,Ke,178,4):cr()?fr($,xe,Ke):Yo($,xe,Ke)}function _u(){return ke(),q()===21||q()===30}function rv(){return ke()===25}function H0(){switch(ke()){case 21:case 30:case 25:return!0}return!1}function JI(){const $=L();return an(f.createTypeLiteralNode(q0()),$)}function q0(){let $;return Qt(19)?($=ea(4,Zu),Qt(20)):$=Dp(),$}function ZD(){return ke(),q()===40||q()===41?ke()===148:(q()===148&&ke(),q()===23&&op()&&ke()===103)}function eC(){const $=L(),xe=Cc();Qt(103);const Ke=Tc();return an(f.createTypeParameterDeclaration(void 0,xe,Ke,void 0),$)}function tC(){const $=L();Qt(19);let xe;(q()===148||q()===40||q()===41)&&(xe=_l(),xe.kind!==148&&Qt(148)),Qt(23);const Ke=eC(),Rt=ao(130)?Tc():void 0;Qt(24);let Ct;(q()===58||q()===40||q()===41)&&(Ct=_l(),Ct.kind!==58&&Qt(58));const Kt=ly();cl();const zr=ea(4,Zu);return Qt(20),an(f.createMappedTypeNode(xe,Ke,Rt,Ct,Kt,zr),$)}function hT(){const $=L();if(ao(26))return an(f.createRestTypeNode(Tc()),$);const xe=Tc();if(QR(xe)&&xe.pos===xe.type.pos){const Ke=f.createOptionalTypeNode(xe.type);return ut(Ke,xe),Ke.flags=xe.flags,Ke}return xe}function D1(){return ke()===59||q()===58&&ke()===59}function KI(){return q()===26?sd(ke())&&D1():sd(q())&&D1()}function nC(){if(wi(KI)){const $=L(),xe=me(),Ke=ca(26),Rt=Cc(),Ct=ca(58);Qt(59);const Kt=hT(),zr=f.createNamedTupleMember(Ke,Rt,Ct,Kt);return Ir(an(zr,$),xe)}return hT()}function XI(){const $=L();return an(f.createTupleTypeNode(Ud(21,nC,23,24)),$)}function YI(){const $=L();Qt(21);const xe=Tc();return Qt(22),an(f.createParenthesizedType(xe),$)}function $I(){let $;if(q()===128){const xe=L();ke();const Ke=an(O(128),xe);$=Mo([Ke],xe)}return $}function QI(){const $=L(),xe=me(),Ke=$I(),Rt=ao(105);C.assert(!Ke||Rt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Ct=mf(),Kt=bn(4),zr=Ut(39,!1),Oi=Rt?f.createConstructorTypeNode(Ke,Ct,Kt,zr):f.createFunctionTypeNode(Ct,Kt,zr);return Ir(an(Oi,$),xe)}function gT(){const $=_l();return q()===25?void 0:$}function ZI($){const xe=L();$&&ke();let Ke=q()===112||q()===97||q()===106?_l():Fl(q());return $&&(Ke=an(f.createPrefixUnaryExpression(41,Ke),xe)),an(f.createLiteralTypeNode(Ke),xe)}function C1(){return ke(),q()===102}function N1(){Me|=4194304;const $=L(),xe=ao(114);Qt(102),Qt(21);const Ke=Tc();let Rt;if(ao(28)){const zr=t.getTokenStart();Qt(19);const Oi=q();if(Oi===118||Oi===132?ke():hn(m._0_expected,pa(118)),Qt(59),Rt=Cb(Oi,!0),!Qt(20)){const Ci=el(Ue);Ci&&Ci.code===m._0_expected.code&&Oa(Ci,WR(Ee,Ce,zr,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Qt(22);const Ct=ao(25)?mu():void 0,Kt=Nc();return an(f.createImportTypeNode(Ke,Rt,Ct,Kt,xe),$)}function _b(){return ke(),q()===9||q()===10}function hb(){switch(q()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return vi(gT)||Cp();case 67:t.reScanAsteriskEqualsToken();case 42:return Wf();case 61:t.reScanQuestionToken();case 58:return Vi();case 100:return Lh();case 54:return Ff();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return ZI();case 41:return wi(_b)?ZI(!0):Cp();case 116:return _l();case 110:{const $=ps();return q()===142&&!t.hasPrecedingLineBreak()?pb($):$}case 114:return wi(C1)?N1():fb();case 19:return wi(ZD)?tC():JI();case 23:return XI();case 21:return YI();case 102:return N1();case 131:return wi(qp)?tx():Cp();case 16:return De();default:return Cp()}}function bg($){switch(q()){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!$;case 41:return!$&&wi(_b);case 21:return!$&&wi(J0);default:return Ja()}}function J0(){return ke(),q()===22||H_(!1)||bg()}function os(){const $=L();let xe=hb();for(;!t.hasPrecedingLineBreak();)switch(q()){case 54:ke(),xe=an(f.createJSDocNonNullableType(xe,!0),$);break;case 58:if(wi(Wt))return xe;ke(),xe=an(f.createJSDocNullableType(xe,!0),$);break;case 23:if(Qt(23),bg()){const Ke=Tc();Qt(24),xe=an(f.createIndexedAccessTypeNode(xe,Ke),$)}else Qt(24),xe=an(f.createArrayTypeNode(xe),$);break;default:return xe}return xe}function vT($){const xe=L();return Qt($),an(f.createTypeOperatorNode($,kh()),xe)}function rC(){if(ao(96)){const $=mt(Tc);if(_t()||q()!==58)return $}}function K0(){const $=L(),xe=Ws(),Ke=vi(rC),Rt=f.createTypeParameterDeclaration(void 0,xe,Ke);return an(Rt,$)}function iv(){const $=L();return Qt(140),an(f.createInferTypeNode(K0()),$)}function kh(){const $=q();switch($){case 143:case 158:case 148:return vT($);case 140:return iv()}return Je(os)}function Bf($){if(yT()){const xe=QI();let Ke;return Th(xe)?Ke=$?m.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:m.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ke=$?m.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:m.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,We(xe,Ke),xe}}function qd($,xe,Ke){const Rt=L(),Ct=$===52,Kt=ao($);let zr=Kt&&Bf(Ct)||xe();if(q()===$||Kt){const Oi=[zr];for(;ao($);)Oi.push(Bf(Ct)||xe());zr=an(Ke(Mo(Oi,Rt)),Rt)}return zr}function Np(){return qd(51,kh,f.createIntersectionTypeNode)}function sp(){return qd(52,Np,f.createUnionTypeNode)}function sy(){return ke(),q()===105}function yT(){return q()===30||q()===21&&wi(ex)?!0:q()===105||q()===128&&wi(sy)}function iC(){if(Fv(q())&&Fh(!1),Ja()||q()===110)return ke(),!0;if(q()===23||q()===19){const $=Ue.length;return xr(),$===Ue.length}return!1}function ex(){return ke(),!!(q()===22||q()===26||iC()&&(q()===59||q()===28||q()===58||q()===64||q()===22&&(ke(),q()===39)))}function gb(){const $=L(),xe=Ja()&&vi(X0),Ke=Tc();return xe?an(f.createTypePredicateNode(void 0,xe,Ke),$):Ke}function X0(){const $=Ws();if(q()===142&&!t.hasPrecedingLineBreak())return ke(),$}function tx(){const $=L(),xe=Rs(131),Ke=q()===110?ps():Ws(),Rt=ao(142)?Tc():void 0;return an(f.createTypePredicateNode(xe,Ke,Rt),$)}function Tc(){if(Hn&81920)return fa(81920,Tc);if(yT())return QI();const $=L(),xe=sp();if(!_t()&&!t.hasPrecedingLineBreak()&&ao(96)){const Ke=mt(Tc);Qt(58);const Rt=Je(Tc);Qt(59);const Ct=Je(Tc);return an(f.createConditionalTypeNode(xe,Ke,Rt,Ct),$)}return xe}function ly(){return ao(59)?Tc():void 0}function nx(){switch(q()){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 wi(H0);default:return Ja()}}function l_(){if(nx())return!0;switch(q()){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 d_()?!0:Ja()}}function bT(){return q()!==19&&q()!==100&&q()!==86&&q()!==60&&l_()}function Xe(){const $=Gt();$&&eo(!1);const xe=L();let Ke=hu(!0),Rt;for(;Rt=ca(28);)Ke=P1(Ke,Rt,hu(!0),xe);return $&&eo(!0),Ke}function c_(){return ao(64)?hu(!0):void 0}function hu($){if(Y0())return vb();const xe=uy($)||ET($);if(xe)return xe;const Ke=L(),Rt=me(),Ct=_m(0);return Ct.kind===80&&q()===39?cy(Ke,Ct,$,Rt,void 0):ep(Ct)&&jv(nn())?P1(Ct,_l(),hu($),Ke):mm(Ct,Ke,$)}function Y0(){return q()===127?Dt()?!0:wi(qs):!1}function rx(){return ke(),!t.hasPrecedingLineBreak()&&Ja()}function vb(){const $=L();return ke(),!t.hasPrecedingLineBreak()&&(q()===42||l_())?an(f.createYieldExpression(ca(42),hu(!0)),$):an(f.createYieldExpression(void 0,void 0),$)}function cy($,xe,Ke,Rt,Ct){C.assert(q()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Kt=f.createParameterDeclaration(void 0,void 0,xe,void 0,void 0,void 0);an(Kt,xe.pos);const zr=Mo([Kt],Kt.pos,Kt.end),Oi=Rs(39),Ci=TT(!!Ct,Ke),mi=f.createArrowFunction(Ct,void 0,zr,void 0,Oi,Ci);return Ir(an(mi,$),Rt)}function uy($){const xe=P2();if(xe!==0)return xe===1?$0(!0,!0):vi(()=>u_($))}function P2(){return q()===21||q()===30||q()===134?wi(Za):q()===39?1:0}function Za(){if(q()===134&&(ke(),t.hasPrecedingLineBreak()||q()!==21&&q()!==30))return 0;const $=q(),xe=ke();if($===21){if(xe===22)switch(ke()){case 39:case 59:case 19:return 1;default:return 0}if(xe===23||xe===19)return 2;if(xe===26)return 1;if(Fv(xe)&&xe!==134&&wi(op))return ke()===130?0:1;if(!Ja()&&xe!==110)return 0;switch(ke()){case 59:return 1;case 58:return ke(),q()===59||q()===28||q()===64||q()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return C.assert($===30),!Ja()&&q()!==87?0:be===1?wi(()=>{ao(87);const Rt=ke();if(Rt===96)switch(ke()){case 64:case 32:case 44:return!1;default:return!0}else if(Rt===28||Rt===64)return!0;return!1})?1:0:2}function u_($){const xe=t.getTokenStart();if(Cn!=null&&Cn.has(xe))return;const Ke=$0(!1,$);return Ke||(Cn||(Cn=new Set)).add(xe),Ke}function ET($){if(q()===134&&wi(ST)===1){const xe=L(),Ke=me(),Rt=yf(),Ct=_m(0);return cy(xe,Ct,$,Ke,Rt)}}function ST(){if(q()===134){if(ke(),t.hasPrecedingLineBreak()||q()===39)return 0;const $=_m(0);if(!t.hasPrecedingLineBreak()&&$.kind===80&&q()===39)return 1}return 0}function $0($,xe){const Ke=L(),Rt=me(),Ct=yf(),Kt=St(Ct,_P)?2:0,zr=mf();let Oi;if(Qt(21)){if($)Oi=Jn(Kt,$);else{const jm=Jn(Kt,$);if(!jm)return;Oi=jm}if(!Qt(22)&&!$)return}else{if(!$)return;Oi=Dp()}const Ci=q()===59,mi=Ut(59,!1);if(mi&&!$&&Hd(mi))return;let Yi=mi;for(;(Yi==null?void 0:Yi.kind)===196;)Yi=Yi.type;const fs=Yi&&ZR(Yi);if(!$&&q()!==39&&(fs||q()!==19))return;const Ps=q(),is=Rs(39),Uf=Ps===39||Ps===19?TT(St(Ct,_P),xe):Ws();if(!xe&&Ci&&q()!==59)return;const $_=f.createArrowFunction(Ct,zr,Oi,mi,is,Uf);return Ir(an($_,Ke),Rt)}function TT($,xe){if(q()===19)return Tb($?2:0);if(q()!==27&&q()!==100&&q()!==86&&W1()&&!bT())return Tb(16|($?2:0));const Ke=yn;yn=!1;const Rt=$?le(()=>hu(xe)):Fe(()=>hu(xe));return yn=Ke,Rt}function mm($,xe,Ke){const Rt=ca(58);if(!Rt)return $;let Ct;return an(f.createConditionalExpression($,Rt,fa(r,()=>hu(!1)),Ct=Rs(59),tm(Ct)?hu(Ke):Hs(80,!1,m._0_expected,pa(59))),xe)}function _m($){const xe=L(),Ke=yb();return ix($,Ke,xe)}function ov($){return $===103||$===165}function ix($,xe,Ke){for(;;){nn();const Rt=uk(q());if(!(q()===43?Rt>=$:Rt>$)||q()===103&&Ye())break;if(q()===130||q()===152){if(t.hasPrecedingLineBreak())break;{const Kt=q();ke(),xe=Kt===152?oC(xe,Tc()):Xi(xe,Tc())}}else xe=P1(xe,_l(),_m(Rt),Ke)}return xe}function d_(){return Ye()&&q()===103?!1:uk(q())>0}function oC($,xe){return an(f.createSatisfiesExpression($,xe),$.pos)}function P1($,xe,Ke,Rt){return an(f.createBinaryExpression($,xe,Ke),Rt)}function Xi($,xe){return an(f.createAsExpression($,xe),$.pos)}function Qr(){const $=L();return an(f.createPrefixUnaryExpression(q(),Ve(yl)),$)}function wh(){const $=L();return an(f.createDeleteExpression(Ve(yl)),$)}function Jd(){const $=L();return an(f.createTypeOfExpression(Ve(yl)),$)}function M2(){const $=L();return an(f.createVoidExpression(Ve(yl)),$)}function av(){return q()===135?gn()?!0:wi(qs):!1}function L2(){const $=L();return an(f.createAwaitExpression(Ve(yl)),$)}function yb(){if(Up()){const Ke=L(),Rt=Eg();return q()===43?ix(uk(q()),Rt,Ke):Rt}const $=q(),xe=yl();if(q()===43){const Ke=wa(Ce,xe.pos),{end:Rt}=xe;xe.kind===216?H(Ke,Rt,m.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(C.assert(v3($)),H(Ke,Rt,m.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($)))}return xe}function yl(){switch(q()){case 40:case 41:case 55:case 54:return Qr();case 91:return wh();case 114:return Jd();case 116:return M2();case 30:return be===1?sv(!0,void 0,void 0,!0):zm();case 135:if(av())return L2();default:return Eg()}}function Up(){switch(q()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(be!==1)return!1;default:return!0}}function Eg(){if(q()===46||q()===47){const xe=L();return an(f.createPrefixUnaryExpression(q(),Ve(hm)),xe)}else if(be===1&&q()===30&&wi(Jc))return sv(!0);const $=hm();if(C.assert(ep($)),(q()===46||q()===47)&&!t.hasPrecedingLineBreak()){const xe=q();return ke(),an(f.createPostfixUnaryExpression($,xe),$.pos)}return $}function hm(){const $=L();let xe;return q()===102?wi(_u)?(Me|=4194304,xe=_l()):wi(rv)?(ke(),ke(),xe=an(f.createMetaProperty(102,Cc()),$),Me|=8388608):xe=bb():xe=q()===108?Fm():bb(),py($,xe)}function bb(){const $=L(),xe=Q0();return ou($,xe,!0)}function Fm(){const $=L();let xe=_l();if(q()===30){const Ke=L(),Rt=vi(ur);Rt!==void 0&&(H(Ke,L(),m.super_may_not_use_type_arguments),ro()||(xe=f.createExpressionWithTypeArguments(xe,Rt)))}return q()===21||q()===25||q()===23?xe:(Rs(25,m.super_must_be_followed_by_an_argument_list_or_member_access),an(ee(xe,zt(!0,!0,!0)),$))}function sv($,xe,Ke,Rt=!1){const Ct=L(),Kt=Tg($);let zr;if(Kt.kind===286){let Oi=Sg(Kt),Ci;const mi=Oi[Oi.length-1];if((mi==null?void 0:mi.kind)===284&&!M0(mi.openingElement.tagName,mi.closingElement.tagName)&&M0(Kt.tagName,mi.closingElement.tagName)){const Yi=mi.children.end,fs=an(f.createJsxElement(mi.openingElement,mi.children,an(f.createJsxClosingElement(an(M(""),Yi,Yi)),Yi,Yi)),mi.openingElement.pos,Yi);Oi=Mo([...Oi.slice(0,Oi.length-1),fs],Oi.pos,Yi),Ci=mi.closingElement}else Ci=L1(Kt,$),M0(Kt.tagName,Ci.tagName)||(Ke&&W_(Ke)&&M0(Ci.tagName,Ke.tagName)?We(Kt.tagName,m.JSX_element_0_has_no_corresponding_closing_tag,bN(Ce,Kt.tagName)):We(Ci.tagName,m.Expected_corresponding_JSX_closing_tag_for_0,bN(Ce,Kt.tagName)));zr=an(f.createJsxElement(Kt,Oi,Ci),Ct)}else Kt.kind===289?zr=an(f.createJsxFragment(Kt,Sg(Kt),xT($)),Ct):(C.assert(Kt.kind===285),zr=Kt);if(!Rt&&$&&q()===30){const Oi=typeof xe>"u"?zr.pos:xe,Ci=vi(()=>sv(!0,Oi));if(Ci){const mi=Hs(28,!1);return nP(mi,Ci.pos,0),H(wa(Ce,Oi),Ci.end,m.JSX_expressions_must_have_one_parent_element),an(f.createBinaryExpression(zr,mi,Ci),Ct)}}return zr}function M1(){const $=L(),xe=f.createJsxText(t.getTokenValue(),gt===13);return gt=t.scanJsxToken(),an(xe,$)}function AT($,xe){switch(xe){case 1:if(hI($))We($,m.JSX_fragment_has_no_corresponding_closing_tag);else{const Ke=$.tagName,Rt=Math.min(wa(Ce,Ke.pos),Ke.end);H(Rt,Ke.end,m.JSX_element_0_has_no_corresponding_closing_tag,bN(Ce,$.tagName))}return;case 31:case 7:return;case 12:case 13:return M1();case 19:return aC(!1);case 30:return sv(!1,void 0,$);default:return C.assertNever(xe)}}function Sg($){const xe=[],Ke=L(),Rt=$t;for($t|=16384;;){const Ct=AT($,gt=t.reScanJsxToken());if(!Ct||(xe.push(Ct),W_($)&&(Ct==null?void 0:Ct.kind)===284&&!M0(Ct.openingElement.tagName,Ct.closingElement.tagName)&&M0($.tagName,Ct.closingElement.tagName)))break}return $t=Rt,Mo(xe,Ke)}function ox(){const $=L();return an(f.createJsxAttributes(ea(13,sC)),$)}function Tg($){const xe=L();if(Qt(30),q()===32)return Kn(),an(f.createJsxOpeningFragment(),xe);const Ke=q_(),Rt=(Hn&524288)===0?oE():void 0,Ct=ox();let Kt;return q()===32?(Kn(),Kt=f.createJsxOpeningElement(Ke,Rt,Ct)):(Qt(44),Qt(32,void 0,!1)&&($?ke():Kn()),Kt=f.createJsxSelfClosingElement(Ke,Rt,Ct)),an(Kt,xe)}function q_(){const $=L(),xe=dy();if(r_(xe))return xe;let Ke=xe;for(;ao(25);)Ke=an(ee(Ke,zt(!0,!1,!1)),$);return Ke}function dy(){const $=L();si();const xe=q()===110,Ke=pe();return ao(59)?(si(),an(f.createJsxNamespacedName(Ke,pe()),$)):xe?an(f.createToken(110),$):Ke}function aC($){const xe=L();if(!Qt(19))return;let Ke,Rt;return q()!==20&&($||(Ke=ca(26)),Rt=Xe()),$?Qt(20):Qt(20,void 0,!1)&&Kn(),an(f.createJsxExpression(Ke,Rt),xe)}function sC(){if(q()===19)return Qs();const $=L();return an(f.createJsxAttribute(IT(),lC()),$)}function lC(){if(q()===64){if(Hr()===11)return Xr();if(q()===19)return aC(!0);if(q()===30)return sv(!0);hn(m.or_JSX_element_expected)}}function IT(){const $=L();si();const xe=pe();return ao(59)?(si(),an(f.createJsxNamespacedName(xe,pe()),$)):xe}function Qs(){const $=L();Qt(19),Qt(26);const xe=Xe();return Qt(20),an(f.createJsxSpreadAttribute(xe),$)}function L1($,xe){const Ke=L();Qt(31);const Rt=q_();return Qt(32,void 0,!1)&&(xe||!M0($.tagName,Rt)?ke():Kn()),an(f.createJsxClosingElement(Rt),Ke)}function xT($){const xe=L();return Qt(31),Qt(32,m.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&($?ke():Kn()),an(f.createJsxJsxClosingFragment(),xe)}function zm(){C.assert(be!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const $=L();Qt(30);const xe=Tc();Qt(32);const Ke=yl();return an(f.createTypeAssertion(xe,Ke),$)}function Eb(){return ke(),sd(q())||q()===23||ro()}function cC(){return q()===29&&wi(Eb)}function RT($){if($.flags&64)return!0;if(fI($)){let xe=$.expression;for(;fI(xe)&&!(xe.flags&64);)xe=xe.expression;if(xe.flags&64){for(;fI($);)$.flags|=64,$=$.expression;return!0}}return!1}function k2($,xe,Ke){const Rt=zt(!0,!0,!0),Ct=Ke||RT(xe),Kt=Ct?V(xe,Ke,Rt):ee(xe,Rt);if(Ct&&Ji(Kt.name)&&We(Kt.name,m.An_optional_chain_cannot_contain_private_identifiers),Xv(xe)&&xe.typeArguments){const zr=xe.typeArguments.pos-1,Oi=wa(Ce,xe.typeArguments.end)+1;H(zr,Oi,m.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return an(Kt,$)}function vr($,xe,Ke){let Rt;if(q()===24)Rt=Hs(80,!0,m.An_element_access_expression_should_take_an_argument);else{const Kt=An(Xe);nf(Kt)&&(Kt.text=iu(Kt.text)),Rt=Kt}Qt(24);const Ct=Ke||RT(xe)?G(xe,Ke,Rt):se(xe,Rt);return an(Ct,$)}function ou($,xe,Ke){for(;;){let Rt,Ct=!1;if(Ke&&cC()?(Rt=Rs(29),Ct=sd(q())):Ct=ao(25),Ct){xe=k2($,xe,Rt);continue}if((Rt||!Gt())&&ao(23)){xe=vr($,xe,Rt);continue}if(ro()){xe=!Rt&&xe.kind===233?hf($,xe.expression,Rt,xe.typeArguments):hf($,xe,Rt,void 0);continue}if(!Rt){if(q()===54&&!t.hasPrecedingLineBreak()){ke(),xe=an(f.createNonNullExpression(xe),$);continue}const Kt=vi(ur);if(Kt){xe=an(f.createExpressionWithTypeArguments(xe,Kt),$);continue}}return xe}}function ro(){return q()===15||q()===16}function hf($,xe,Ke,Rt){const Ct=f.createTaggedTemplateExpression(xe,Rt,q()===15?(nr(!0),Xr()):F(!0));return(Ke||xe.flags&64)&&(Ct.flags|=64),Ct.questionDotToken=Ke,an(Ct,$)}function py($,xe){for(;;){xe=ou($,xe,!0);let Ke;const Rt=ca(29);if(Rt&&(Ke=vi(ur),ro())){xe=hf($,xe,Rt,Ke);continue}if(Ke||q()===21){!Rt&&xe.kind===233&&(Ke=xe.typeArguments,xe=xe.expression);const Ct=J_(),Kt=Rt||RT(xe)?_e(xe,Rt,Ke,Ct):re(xe,Ke,Ct);xe=an(Kt,$);continue}if(Rt){const Ct=Hs(80,!1,m.Identifier_expected);xe=an(V(xe,Rt,Ct),$)}break}return xe}function J_(){Qt(21);const $=Bu(11,k1);return Qt(22),$}function ur(){if((Hn&524288)!==0||lr()!==30)return;ke();const $=Bu(20,Tc);if(nn()===32)return ke(),$&&DT()?$:void 0}function DT(){switch(q()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||d_()||!l_()}function Q0(){switch(q()){case 15:t.getTokenFlags()&26656&&nr(!1);case 9:case 10:case 11:return Xr();case 110:case 108:case 106:case 112:case 97:return _l();case 21:return Xc();case 23:return w1();case 19:return lv();case 134:if(!wi(kT))break;return CT();case 60:return iE();case 86:return px();case 100:return CT();case 105:return Z0();case 44:case 69:if(En()===14)return Xr();break;case 16:return F(!1);case 81:return br()}return Ws(m.Expression_expected)}function Xc(){const $=L(),xe=me();Qt(21);const Ke=An(Xe);return Qt(22),Ir(an(Q(Ke),$),xe)}function Oh(){const $=L();Qt(26);const xe=hu(!0);return an(f.createSpreadElement(xe),$)}function Bm(){return q()===26?Oh():q()===28?an(f.createOmittedExpression(),L()):hu(!0)}function k1(){return fa(r,Bm)}function w1(){const $=L(),xe=t.getTokenStart(),Ke=Qt(23),Rt=t.hasPrecedingLineBreak(),Ct=Bu(15,Bm);return tc(23,24,Ke,xe),an(U(Ct,Rt),$)}function Sb(){const $=L(),xe=me();if(ca(26)){const Yi=hu(!0);return Ir(an(f.createSpreadAssignment(Yi),$),xe)}const Ke=Fh(!0);if(qr(139))return uv($,xe,Ke,177,0);if(qr(153))return uv($,xe,Ke,178,0);const Rt=ca(42),Ct=Ja(),Kt=pn(),zr=ca(58),Oi=ca(54);if(Rt||q()===21||q()===30)return p_($,xe,Ke,Rt,Kt,zr,Oi);let Ci;if(Ct&&q()!==59){const Yi=ca(64),fs=Yi?An(()=>hu(!0)):void 0;Ci=f.createShorthandPropertyAssignment(Kt,fs),Ci.equalsToken=Yi}else{Qt(59);const Yi=An(()=>hu(!0));Ci=f.createPropertyAssignment(Kt,Yi)}return Ci.modifiers=Ke,Ci.questionToken=zr,Ci.exclamationToken=Oi,Ir(an(Ci,$),xe)}function lv(){const $=L(),xe=t.getTokenStart(),Ke=Qt(19),Rt=t.hasPrecedingLineBreak(),Ct=Bu(12,Sb,!0);return tc(19,20,Ke,xe),an(K(Ct,Rt),$)}function CT(){const $=Gt();eo(!1);const xe=L(),Ke=me(),Rt=Fh(!1);Qt(100);const Ct=ca(42),Kt=Ct?1:0,zr=St(Rt,_P)?2:0,Oi=Kt&&zr?dt(Gm):Kt?pt(Gm):zr?le(Gm):Gm(),Ci=mf(),mi=bn(Kt|zr),Yi=Ut(59,!1),fs=Tb(Kt|zr);eo($);const Ps=f.createFunctionExpression(Rt,Ct,Oi,Ci,mi,Yi,fs);return Ir(an(Ps,xe),Ke)}function Gm(){return ga()?Rp():void 0}function Z0(){const $=L();if(Qt(105),ao(25)){const Kt=Cc();return an(f.createMetaProperty(105,Kt),$)}const xe=L();let Ke=ou(xe,Q0(),!1),Rt;Ke.kind===233&&(Rt=Ke.typeArguments,Ke=Ke.expression),q()===29&&hn(m.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,bN(Ce,Ke));const Ct=q()===21?J_():void 0;return an(ye(Ke,Rt,Ct),$)}function Ag($,xe){const Ke=L(),Rt=me(),Ct=t.getTokenStart(),Kt=Qt(19,xe);if(Kt||$){const zr=t.hasPrecedingLineBreak(),Oi=ea(1,cp);tc(19,20,Kt,Ct);const Ci=Ir(an(Y(Oi,zr),Ke),Rt);return q()===64&&(hn(m.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),ke()),Ci}else{const zr=Dp();return Ir(an(Y(zr,void 0),Ke),Rt)}}function Tb($,xe){const Ke=Dt();yi(!!($&1));const Rt=gn();Ro(!!($&2));const Ct=yn;yn=!1;const Kt=Gt();Kt&&eo(!1);const zr=Ag(!!($&16),xe);return Kt&&eo(!0),yn=Ct,yi(Ke),Ro(Rt),zr}function ax(){const $=L(),xe=me();return Qt(27),Ir(an(f.createEmptyStatement(),$),xe)}function eE(){const $=L(),xe=me();Qt(101);const Ke=t.getTokenStart(),Rt=Qt(21),Ct=An(Xe);tc(21,22,Rt,Ke);const Kt=cp(),zr=ao(93)?cp():void 0;return Ir(an(Ae(Ct,Kt,zr),$),xe)}function uC(){const $=L(),xe=me();Qt(92);const Ke=cp();Qt(117);const Rt=t.getTokenStart(),Ct=Qt(21),Kt=An(Xe);return tc(21,22,Ct,Rt),ao(27),Ir(an(f.createDoStatement(Ke,Kt),$),xe)}function O1(){const $=L(),xe=me();Qt(117);const Ke=t.getTokenStart(),Rt=Qt(21),Ct=An(Xe);tc(21,22,Rt,Ke);const Kt=cp();return Ir(an(de(Ct,Kt),$),xe)}function NT(){const $=L(),xe=me();Qt(99);const Ke=ca(135);Qt(21);let Rt;q()!==27&&(q()===115||q()===121||q()===87||q()===160&&wi(cv)||q()===135&&wi(Pp)?Rt=F1(!0):Rt=wn(Xe));let Ct;if(Ke?Qt(165):ao(165)){const Kt=An(()=>hu(!0));Qt(22),Ct=ge(Ke,Rt,Kt,cp())}else if(ao(103)){const Kt=An(Xe);Qt(22),Ct=f.createForInStatement(Rt,Kt,cp())}else{Qt(27);const Kt=q()!==27&&q()!==22?An(Xe):void 0;Qt(27);const zr=q()!==22?An(Xe):void 0;Qt(22),Ct=ie(Rt,Kt,zr,cp())}return Ir(an(Ct,$),xe)}function Hp($){const xe=L(),Ke=me();Qt($===252?83:88);const Rt=pc()?void 0:Ws();cl();const Ct=$===252?f.createBreakStatement(Rt):f.createContinueStatement(Rt);return Ir(an(Ct,xe),Ke)}function PT(){const $=L(),xe=me();Qt(107);const Ke=pc()?void 0:An(Xe);return cl(),Ir(an(f.createReturnStatement(Ke),$),xe)}function Hl(){const $=L(),xe=me();Qt(118);const Ke=t.getTokenStart(),Rt=Qt(21),Ct=An(Xe);tc(21,22,Rt,Ke);const Kt=Fa(67108864,cp);return Ir(an(f.createWithStatement(Ct,Kt),$),xe)}function Bc(){const $=L(),xe=me();Qt(84);const Ke=An(Xe);Qt(59);const Rt=ea(3,cp);return Ir(an(f.createCaseClause(Ke,Rt),$),xe)}function MT(){const $=L();Qt(90),Qt(59);const xe=ea(3,cp);return an(f.createDefaultClause(xe),$)}function Iu(){return q()===84?Bc():MT()}function lp(){const $=L();Qt(19);const xe=ea(2,Iu);return Qt(20),an(f.createCaseBlock(xe),$)}function tE(){const $=L(),xe=me();Qt(109),Qt(21);const Ke=An(Xe);Qt(22);const Rt=lp();return Ir(an(f.createSwitchStatement(Ke,Rt),$),xe)}function Gf(){const $=L(),xe=me();Qt(111);let Ke=t.hasPrecedingLineBreak()?void 0:An(Xe);return Ke===void 0&&(on++,Ke=an(M(""),L())),Cl()||Wl(Ke),Ir(an(f.createThrowStatement(Ke),$),xe)}function Ab(){const $=L(),xe=me();Qt(113);const Ke=Ag(!1),Rt=q()===85?Ib():void 0;let Ct;return(!Rt||q()===98)&&(Qt(98,m.catch_or_finally_expected),Ct=Ag(!1)),Ir(an(f.createTryStatement(Ke,Rt,Ct),$),xe)}function Ib(){const $=L();Qt(85);let xe;ao(21)?(xe=Pd(),Qt(22)):xe=void 0;const Ke=Ag(!1);return an(f.createCatchClause(xe,Ke),$)}function au(){const $=L(),xe=me();return Qt(89),cl(),Ir(an(f.createDebuggerStatement(),$),xe)}function sx(){const $=L();let xe=me(),Ke;const Rt=q()===21,Ct=An(Xe);return je(Ct)&&ao(59)?Ke=f.createLabeledStatement(Ct,cp()):(Cl()||Wl(Ct),Ke=he(Ct),Rt&&(xe=!1)),Ir(an(Ke,$),xe)}function qp(){return ke(),sd(q())&&!t.hasPrecedingLineBreak()}function LT(){return ke(),q()===86&&!t.hasPrecedingLineBreak()}function kT(){return ke(),q()===100&&!t.hasPrecedingLineBreak()}function qs(){return ke(),(sd(q())||q()===9||q()===10||q()===11)&&!t.hasPrecedingLineBreak()}function dC(){for(;;)switch(q()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return lx();case 135:return cx();case 120:case 156:return rx();case 144:case 145:return mC();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const $=q();if(ke(),t.hasPrecedingLineBreak())return!1;if($===138&&q()===156)return!0;continue;case 162:return ke(),q()===19||q()===80||q()===95;case 102:return ke(),q()===11||q()===42||q()===19||sd(q());case 95:let xe=ke();if(xe===156&&(xe=wi(ke)),xe===64||xe===42||xe===19||xe===90||xe===130||xe===60)return!0;continue;case 126:ke();continue;default:return!1}}function nE(){return wi(dC)}function W1(){switch(q()){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:return!0;case 102:return nE()||wi(H0);case 87:case 95:return nE();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return nE()||!wi(qp);default:return l_()}}function w2(){return ke(),ga()||q()===19||q()===23}function gd(){return wi(w2)}function cv(){return K_(!0)}function K_($){return ke(),$&&q()===165?!1:(ga()||q()===19)&&!t.hasPrecedingLineBreak()}function lx(){return wi(K_)}function Pp($){return ke()===160?K_($):!1}function cx(){return wi(Pp)}function cp(){switch(q()){case 27:return ax();case 19:return Ag(!1);case 115:return rE(L(),me(),void 0);case 121:if(gd())return rE(L(),me(),void 0);break;case 135:if(cx())return rE(L(),me(),void 0);break;case 160:if(lx())return rE(L(),me(),void 0);break;case 100:return z1(L(),me(),void 0);case 86:return zT(L(),me(),void 0);case 101:return eE();case 92:return uC();case 117:return O1();case 99:return NT();case 88:return Hp(251);case 83:return Hp(252);case 107:return PT();case 118:return Hl();case 109:return tE();case 111:return Gf();case 113:case 85:case 98:return Ab();case 89:return au();case 60:return fy();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(nE())return fy();break}return sx()}function ux($){return $.kind===138}function fy(){const $=L(),xe=me(),Ke=Fh(!0);if(St(Ke,ux)){const Ct=wT($);if(Ct)return Ct;for(const Kt of Ke)Kt.flags|=33554432;return Fa(33554432,()=>pC($,xe,Ke))}else return pC($,xe,Ke)}function wT($){return Fa(33554432,()=>{const xe=Sc($t,$);if(xe)return ul(xe)})}function pC($,xe,Ke){switch(q()){case 115:case 121:case 87:case 160:case 135:return rE($,xe,Ke);case 100:return z1($,xe,Ke);case 86:return zT($,xe,Ke);case 120:return ht($,xe,Ke);case 156:return ln($,xe,Ke);case 94:return Ni($,xe,Ke);case 162:case 144:case 145:return ed($,xe,Ke);case 102:return Un($,xe,Ke);case 95:switch(ke(),q()){case 90:case 64:return Gh($,xe,Ke);case 130:return zh($,xe,Ke);default:return O2($,xe,Ke)}default:if(Ke){const Rt=Hs(282,!0,m.Declaration_expected);return tP(Rt,$),Rt.modifiers=Ke,Rt}return}}function fC(){return ke()===11}function OT(){return ke(),q()===161||q()===64}function mC(){return ke(),!t.hasPrecedingLineBreak()&&(Ja()||q()===11)}function xb($,xe){if(q()!==19){if($&4){$n();return}if(pc()){cl();return}}return Tb($,xe)}function Mp(){const $=L();if(q()===28)return an(f.createOmittedExpression(),$);const xe=ca(26),Ke=xr(),Rt=c_();return an(f.createBindingElement(xe,void 0,Ke,Rt),$)}function Wh(){const $=L(),xe=ca(26),Ke=ga();let Rt=pn(),Ct;Ke&&q()!==59?(Ct=Rt,Rt=void 0):(Qt(59),Ct=xr());const Kt=c_();return an(f.createBindingElement(xe,Rt,Ct,Kt),$)}function _C(){const $=L();Qt(19);const xe=An(()=>Bu(9,Wh));return Qt(20),an(f.createObjectBindingPattern(xe),$)}function WT(){const $=L();Qt(23);const xe=An(()=>Bu(10,Mp));return Qt(24),an(f.createArrayBindingPattern(xe),$)}function ss(){return q()===19||q()===23||q()===81||ga()}function xr($){return q()===23?WT():q()===19?_C():Rp($)}function gf(){return Pd(!0)}function Pd($){const xe=L(),Ke=me(),Rt=xr(m.Private_identifiers_are_not_allowed_in_variable_declarations);let Ct;$&&Rt.kind===80&&q()===54&&!t.hasPrecedingLineBreak()&&(Ct=_l());const Kt=ly(),zr=ov(q())?void 0:c_(),Oi=Ne(Rt,Ct,Kt,zr);return Ir(an(Oi,xe),Ke)}function F1($){const xe=L();let Ke=0;switch(q()){case 115:break;case 121:Ke|=1;break;case 87:Ke|=2;break;case 160:Ke|=4;break;case 135:C.assert(cx()),Ke|=6,ke();break;default:C.fail()}ke();let Rt;if(q()===165&&wi(hC))Rt=Dp();else{const Ct=Ye();oi($),Rt=Bu(8,$?Pd:gf),oi(Ct)}return an(qe(Rt,Ke),xe)}function hC(){return op()&&ke()===22}function rE($,xe,Ke){const Rt=F1(!1);cl();const Ct=oe(Ke,Rt);return Ir(an(Ct,$),xe)}function z1($,xe,Ke){const Rt=gn(),Ct=M_(Ke);Qt(100);const Kt=ca(42),zr=Ct&2048?Gm():Rp(),Oi=Kt?1:0,Ci=Ct&1024?2:0,mi=mf();Ct&32&&Ro(!0);const Yi=bn(Oi|Ci),fs=Ut(59,!1),Ps=xb(Oi|Ci,m.or_expected);Ro(Rt);const is=f.createFunctionDeclaration(Ke,Kt,zr,mi,Yi,fs,Ps);return Ir(an(is,$),xe)}function FT(){if(q()===137)return Qt(137);if(q()===11&&wi(ke)===21)return vi(()=>{const $=Xr();return $.text==="constructor"?$:void 0})}function Ig($,xe,Ke){return vi(()=>{if(FT()){const Rt=mf(),Ct=bn(0),Kt=Ut(59,!1),zr=xb(0,m.or_expected),Oi=f.createConstructorDeclaration(Ke,Ct,zr);return Oi.typeParameters=Rt,Oi.type=Kt,Ir(an(Oi,$),xe)}})}function p_($,xe,Ke,Rt,Ct,Kt,zr,Oi){const Ci=Rt?1:0,mi=St(Ke,_P)?2:0,Yi=mf(),fs=bn(Ci|mi),Ps=Ut(59,!1),is=xb(Ci|mi,Oi),Uf=f.createMethodDeclaration(Ke,Rt,Ct,Kt,Yi,fs,Ps,is);return Uf.exclamationToken=zr,Ir(an(Uf,$),xe)}function vf($,xe,Ke,Rt,Ct){const Kt=!Ct&&!t.hasPrecedingLineBreak()?ca(54):void 0,zr=ly(),Oi=fa(90112,c_);La(Rt,zr,Oi);const Ci=f.createPropertyDeclaration(Ke,Rt,Ct||Kt,zr,Oi);return Ir(an(Ci,$),xe)}function Vm($,xe,Ke){const Rt=ca(42),Ct=pn(),Kt=ca(58);return Rt||q()===21||q()===30?p_($,xe,Ke,Rt,Ct,Kt,void 0,m.or_expected):vf($,xe,Ke,Ct,Kt)}function uv($,xe,Ke,Rt,Ct){const Kt=pn(),zr=mf(),Oi=bn(0),Ci=Ut(59,!1),mi=xb(Ct),Yi=Rt===177?f.createGetAccessorDeclaration(Ke,Kt,Oi,Ci,mi):f.createSetAccessorDeclaration(Ke,Kt,Oi,mi);return Yi.typeParameters=zr,Sp(Yi)&&(Yi.type=Ci),Ir(an(Yi,$),xe)}function xg(){let $;if(q()===60)return!0;for(;Fv(q());){if($=q(),sj($))return!0;ke()}if(q()===42||(Z()&&($=q(),ke()),q()===23))return!0;if($!==void 0){if(!Bd($)||$===153||$===139)return!0;switch(q()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return pc()}}return!1}function Rg($,xe,Ke){Rs(126);const Rt=dx(),Ct=Ir(an(f.createClassStaticBlockDeclaration(Rt),$),xe);return Ct.modifiers=Ke,Ct}function dx(){const $=Dt(),xe=gn();yi(!1),Ro(!0);const Ke=Ag(!1);return yi($),Ro(xe),Ke}function fc(){if(gn()&&q()===135){const $=L(),xe=Ws(m.Expression_expected);ke();const Ke=ou($,xe,!0);return py($,Ke)}return hm()}function gC(){const $=L();if(!ao(60))return;const xe=Pt(fc);return an(f.createDecorator(xe),$)}function Vf($,xe,Ke){const Rt=L(),Ct=q();if(q()===87&&xe){if(!vi(Ri))return}else{if(Ke&&q()===126&&wi(Db))return;if($&&q()===126)return;if(!zc())return}return an(O(Ct),Rt)}function Fh($,xe,Ke){const Rt=L();let Ct,Kt,zr,Oi=!1,Ci=!1,mi=!1;if($&&q()===60)for(;Kt=gC();)Ct=Rn(Ct,Kt);for(;zr=Vf(Oi,xe,Ke);)zr.kind===126&&(Oi=!0),Ct=Rn(Ct,zr),Ci=!0;if(Ci&&$&&q()===60)for(;Kt=gC();)Ct=Rn(Ct,Kt),mi=!0;if(mi)for(;zr=Vf(Oi,xe,Ke);)zr.kind===126&&(Oi=!0),Ct=Rn(Ct,zr);return Ct&&Mo(Ct,Rt)}function yf(){let $;if(q()===134){const xe=L();ke();const Ke=an(O(134),xe);$=Mo([Ke],xe)}return $}function B1(){const $=L(),xe=me();if(q()===27)return ke(),Ir(an(f.createSemicolonClassElement(),$),xe);const Ke=Fh(!0,!0,!0);if(q()===126&&wi(Db))return Rg($,xe,Ke);if(qr(139))return uv($,xe,Ke,177,0);if(qr(153))return uv($,xe,Ke,178,0);if(q()===137||q()===11){const Rt=Ig($,xe,Ke);if(Rt)return Rt}if(cr())return fr($,xe,Ke);if(sd(q())||q()===11||q()===9||q()===42||q()===23)if(St(Ke,ux)){for(const Ct of Ke)Ct.flags|=33554432;return Fa(33554432,()=>Vm($,xe,Ke))}else return Vm($,xe,Ke);if(Ke){const Rt=Hs(80,!0,m.Declaration_expected);return vf($,xe,Ke,Rt,void 0)}return C.fail("Should not have attempted to parse class member declaration.")}function iE(){const $=L(),xe=me(),Ke=Fh(!0);if(q()===86)return bf($,xe,Ke,231);const Rt=Hs(282,!0,m.Expression_expected);return tP(Rt,$),Rt.modifiers=Ke,Rt}function px(){return bf(L(),me(),void 0,231)}function zT($,xe,Ke){return bf($,xe,Ke,263)}function bf($,xe,Ke,Rt){const Ct=gn();Qt(86);const Kt=Fs(),zr=mf();St(Ke,oI)&&Ro(!0);const Oi=V1();let Ci;Qt(19)?(Ci=ae(),Qt(20)):Ci=Dp(),Ro(Ct);const mi=Rt===263?f.createClassDeclaration(Ke,Kt,zr,Oi,Ci):f.createClassExpression(Ke,Kt,zr,Oi,Ci);return Ir(an(mi,$),xe)}function Fs(){return ga()&&!G1()?fu(ga()):void 0}function G1(){return q()===119&&wi(ap)}function V1(){if(D())return ea(22,dv)}function dv(){const $=L(),xe=q();C.assert(xe===96||xe===119),ke();const Ke=Bu(7,Rb);return an(f.createHeritageClause(xe,Ke),$)}function Rb(){const $=L(),xe=hm();if(xe.kind===233)return xe;const Ke=oE();return an(f.createExpressionWithTypeArguments(xe,Ke),$)}function oE(){return q()===30?Ud(20,Tc,30,32):void 0}function D(){return q()===96||q()===119}function ae(){return ea(5,B1)}function ht($,xe,Ke){Qt(120);const Rt=Ws(),Ct=mf(),Kt=V1(),zr=q0(),Oi=f.createInterfaceDeclaration(Ke,Rt,Ct,Kt,zr);return Ir(an(Oi,$),xe)}function ln($,xe,Ke){Qt(156),t.hasPrecedingLineBreak()&&hn(m.Line_break_not_permitted_here);const Rt=Ws(),Ct=mf();Qt(64);const Kt=q()===141&&vi(gT)||Tc();cl();const zr=f.createTypeAliasDeclaration(Ke,Rt,Ct,Kt);return Ir(an(zr,$),xe)}function kr(){const $=L(),xe=me(),Ke=pn(),Rt=An(c_);return Ir(an(f.createEnumMember(Ke,Rt),$),xe)}function Ni($,xe,Ke){Qt(94);const Rt=Ws();let Ct;Qt(19)?(Ct=j(()=>Bu(6,kr)),Qt(20)):Ct=Dp();const Kt=f.createEnumDeclaration(Ke,Rt,Ct);return Ir(an(Kt,$),xe)}function bi(){const $=L();let xe;return Qt(19)?(xe=ea(1,cp),Qt(20)):xe=Dp(),an(f.createModuleBlock(xe),$)}function io($,xe,Ke,Rt){const Ct=Rt&32,Kt=Rt&8?Cc():Ws(),zr=ao(25)?io(L(),!1,void 0,8|Ct):bi(),Oi=f.createModuleDeclaration(Ke,Kt,zr,Rt);return Ir(an(Oi,$),xe)}function ya($,xe,Ke){let Rt=0,Ct;q()===162?(Ct=Ws(),Rt|=2048):(Ct=Xr(),Ct.text=iu(Ct.text));let Kt;q()===19?Kt=bi():cl();const zr=f.createModuleDeclaration(Ke,Ct,Kt,Rt);return Ir(an(zr,$),xe)}function ed($,xe,Ke){let Rt=0;if(q()===162)return ya($,xe,Ke);if(ao(145))Rt|=32;else if(Qt(144),q()===11)return ya($,xe,Ke);return io($,xe,Ke,Rt)}function Md(){return q()===149&&wi(jf)}function jf(){return ke()===21}function Db(){return ke()===19}function Si(){return ke()===44}function zh($,xe,Ke){Qt(130),Qt(145);const Rt=Ws();cl();const Ct=f.createNamespaceExportDeclaration(Rt);return Ct.modifiers=Ke,Ir(an(Ct,$),xe)}function Un($,xe,Ke){Qt(102);const Rt=t.getTokenFullStart();let Ct;Ja()&&(Ct=Ws());let Kt=!1;if((Ct==null?void 0:Ct.escapedText)==="type"&&(q()!==161||Ja()&&wi(OT))&&(Ja()||Nb())&&(Kt=!0,Ct=Ja()?Ws():void 0),Ct&&!BT())return j1($,xe,Ke,Ct,Kt);let zr;(Ct||q()===42||q()===19)&&(zr=X_(Ct,Rt,Kt),Qt(161));const Oi=GT(),Ci=q();let mi;(Ci===118||Ci===132)&&!t.hasPrecedingLineBreak()&&(mi=Cb(Ci)),cl();const Yi=f.createImportDeclaration(Ke,zr,Oi,mi);return Ir(an(Yi,$),xe)}function fx(){const $=L(),xe=sd(q())?Cc():Fl(11);Qt(59);const Ke=hu(!0);return an(f.createImportAttribute(xe,Ke),$)}function Cb($,xe){const Ke=L();xe||Qt($);const Rt=t.getTokenStart();if(Qt(19)){const Ct=t.hasPrecedingLineBreak(),Kt=Bu(24,fx,!0);if(!Qt(20)){const zr=el(Ue);zr&&zr.code===m._0_expected.code&&Oa(zr,WR(Ee,Ce,Rt,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return an(f.createImportAttributes(Kt,Ct,$),Ke)}else{const Ct=Mo([],L(),void 0,!1);return an(f.createImportAttributes(Ct,!1,$),Ke)}}function Nb(){return q()===42||q()===19}function BT(){return q()===28||q()===161}function j1($,xe,Ke,Rt,Ct){Qt(64);const Kt=Bh();cl();const zr=f.createImportEqualsDeclaration(Ke,Ct,Rt,Kt);return Ir(an(zr,$),xe)}function X_($,xe,Ke){let Rt;return(!$||ao(28))&&(Rt=q()===42?d9():Pb(275)),an(f.createImportClause(Ke,$,Rt),xe)}function Bh(){return Md()?vC():te(!1)}function vC(){const $=L();Qt(149),Qt(21);const xe=GT();return Qt(22),an(f.createExternalModuleReference(xe),$)}function GT(){if(q()===11){const $=Xr();return $.text=iu($.text),$}else return Xe()}function d9(){const $=L();Qt(42),Qt(130);const xe=Ws();return an(f.createNamespaceImport(xe),$)}function Pb($){const xe=L(),Ke=$===275?f.createNamedImports(Ud(23,T8,19,20)):f.createNamedExports(Ud(23,S8,19,20));return an(Ke,xe)}function S8(){const $=me();return Ir(aE(281),$)}function T8(){return aE(276)}function aE($){const xe=L();let Ke=Bd(q())&&!Ja(),Rt=t.getTokenStart(),Ct=t.getTokenEnd(),Kt=!1,zr,Oi=!0,Ci=Cc();if(Ci.escapedText==="type")if(q()===130){const fs=Cc();if(q()===130){const Ps=Cc();sd(q())?(Kt=!0,zr=fs,Ci=Yi(),Oi=!1):(zr=Ci,Ci=Ps,Oi=!1)}else sd(q())?(zr=Ci,Oi=!1,Ci=Yi()):(Kt=!0,Ci=fs)}else sd(q())&&(Kt=!0,Ci=Yi());Oi&&q()===130&&(zr=Ci,Qt(130),Ci=Yi()),$===276&&Ke&&H(Rt,Ct,m.Identifier_expected);const mi=$===276?f.createImportSpecifier(Kt,zr,Ci):f.createExportSpecifier(Kt,zr,Ci);return an(mi,xe);function Yi(){return Ke=Bd(q())&&!Ja(),Rt=t.getTokenStart(),Ct=t.getTokenEnd(),Cc()}}function f_($){return an(f.createNamespaceExport(Cc()),$)}function O2($,xe,Ke){const Rt=gn();Ro(!0);let Ct,Kt,zr;const Oi=ao(156),Ci=L();ao(42)?(ao(130)&&(Ct=f_(Ci)),Qt(161),Kt=GT()):(Ct=Pb(279),(q()===161||q()===11&&!t.hasPrecedingLineBreak())&&(Qt(161),Kt=GT()));const mi=q();Kt&&(mi===118||mi===132)&&!t.hasPrecedingLineBreak()&&(zr=Cb(mi)),cl(),Ro(Rt);const Yi=f.createExportDeclaration(Ke,Oi,Ct,Kt,zr);return Ir(an(Yi,$),xe)}function Gh($,xe,Ke){const Rt=gn();Ro(!0);let Ct;ao(64)?Ct=!0:Qt(90);const Kt=hu(!0);cl(),Ro(Rt);const zr=f.createExportAssignment(Ke,Ct,Kt);return Ir(an(zr,$),xe)}let mx;($=>{$[$.SourceElements=0]="SourceElements",$[$.BlockStatements=1]="BlockStatements",$[$.SwitchClauses=2]="SwitchClauses",$[$.SwitchClauseStatements=3]="SwitchClauseStatements",$[$.TypeMembers=4]="TypeMembers",$[$.ClassMembers=5]="ClassMembers",$[$.EnumMembers=6]="EnumMembers",$[$.HeritageClauseElement=7]="HeritageClauseElement",$[$.VariableDeclarations=8]="VariableDeclarations",$[$.ObjectBindingElements=9]="ObjectBindingElements",$[$.ArrayBindingElements=10]="ArrayBindingElements",$[$.ArgumentExpressions=11]="ArgumentExpressions",$[$.ObjectLiteralMembers=12]="ObjectLiteralMembers",$[$.JsxAttributes=13]="JsxAttributes",$[$.JsxChildren=14]="JsxChildren",$[$.ArrayLiteralMembers=15]="ArrayLiteralMembers",$[$.Parameters=16]="Parameters",$[$.JSDocParameters=17]="JSDocParameters",$[$.RestProperties=18]="RestProperties",$[$.TypeParameters=19]="TypeParameters",$[$.TypeArguments=20]="TypeArguments",$[$.TupleElementTypes=21]="TupleElementTypes",$[$.HeritageClauses=22]="HeritageClauses",$[$.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",$[$.ImportAttributes=24]="ImportAttributes",$[$.JSDocComment=25]="JSDocComment",$[$.Count=26]="Count"})(mx||(mx={}));let A8;($=>{$[$.False=0]="False",$[$.True=1]="True",$[$.Unknown=2]="Unknown"})(A8||(A8={}));let Y_;($=>{function xe(mi,Yi,fs){Gi("file.js",mi,99,void 0,1,0),t.setText(mi,Yi,fs),gt=t.scan();const Ps=Ke(),is=Bt("file.js",99,1,!1,[],O(1),0,ts),Uf=JA(Ue,is);return it&&(is.jsDocDiagnostics=JA(it,is)),xo(),Ps?{jsDocTypeExpression:Ps,diagnostics:Uf}:void 0}$.parseJSDocTypeExpressionForTests=xe;function Ke(mi){const Yi=L(),fs=(mi?ao:Qt)(19),Ps=Fa(16777216,zf);(!mi||fs)&&ys(20);const is=f.createJSDocTypeExpression(Ps);return nt(is),an(is,Yi)}$.parseJSDocTypeExpression=Ke;function Rt(){const mi=L(),Yi=ao(19),fs=L();let Ps=te(!1);for(;q()===81;)ai(),Tt(),Ps=an(f.createJSDocMemberName(Ps,Ws()),fs);Yi&&ys(20);const is=f.createJSDocNameReference(Ps);return nt(is),an(is,mi)}$.parseJSDocNameReference=Rt;function Ct(mi,Yi,fs){Gi("",mi,99,void 0,1,0);const Ps=Fa(16777216,()=>Ci(Yi,fs)),Uf=JA(Ue,{languageVariant:0,text:mi});return xo(),Ps?{jsDoc:Ps,diagnostics:Uf}:void 0}$.parseIsolatedJSDocComment=Ct;function Kt(mi,Yi,fs){const Ps=gt,is=Ue.length,Uf=tn,$_=Fa(16777216,()=>Ci(Yi,fs));return Ya($_,mi),Hn&524288&&(it||(it=[]),Ur(it,Ue,is)),gt=Ps,Ue.length=is,tn=Uf,$_}$.parseJSDocComment=Kt;let zr;(mi=>{mi[mi.BeginningOfLine=0]="BeginningOfLine",mi[mi.SawAsterisk=1]="SawAsterisk",mi[mi.SavingComments=2]="SavingComments",mi[mi.SavingBackticks=3]="SavingBackticks"})(zr||(zr={}));let Oi;(mi=>{mi[mi.Property=1]="Property",mi[mi.Parameter=2]="Parameter",mi[mi.CallbackParameter=4]="CallbackParameter"})(Oi||(Oi={}));function Ci(mi=0,Yi){const fs=Ce,Ps=Yi===void 0?fs.length:mi+Yi;if(Yi=Ps-mi,C.assert(mi>=0),C.assert(mi<=Ps),C.assert(Ps<=fs.length),!oq(fs,mi))return;let is,Uf,$_,jm,pv,fv=[];const Mb=[],up=$t;$t|=1<<25;const VT=t.scanRange(mi+3,Yi-5,yC);return $t=up,VT;function yC(){let Nn=1,Gr,wr=mi-(fs.lastIndexOf("\n",mi)+1)+4;function Wi(Ds){Gr||(Gr=wr),fv.push(Ds),wr+=Ds.length}for(Tt();my(5););my(4)&&(Nn=0,wr=0);e:for(;;){switch(q()){case 60:F2(fv),pv||(pv=L()),B2(bC(wr)),Nn=0,Gr=void 0;break;case 4:fv.push(t.getTokenText()),Nn=0,wr=0;break;case 42:const Ds=t.getTokenText();Nn===1?(Nn=2,Wi(Ds)):(C.assert(Nn===0),Nn=1,wr+=Ds.length);break;case 5:C.assert(Nn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const td=t.getTokenText();Gr!==void 0&&wr+td.length>Gr&&fv.push(td.slice(Gr-wr)),wr+=td.length;break;case 1:break e;case 82:Nn=2,Wi(t.getTokenValue());break;case 19:Nn=2;const Vh=t.getTokenFullStart(),Hf=t.getTokenEnd()-1,Q_=mc(Hf);if(Q_){jm||W2(fv),Mb.push(an(f.createJSDocText(fv.join("")),jm!=null?jm:mi,Vh)),Mb.push(Q_),fv=[],jm=t.getTokenEnd();break}default:Nn=2,Wi(t.getTokenText());break}Nn===2?kt(!1):Tt()}const Mi=fv.join("").trimEnd();Mb.length&&Mi.length&&Mb.push(an(f.createJSDocText(Mi),jm!=null?jm:mi,pv)),Mb.length&&is&&C.assertIsDefined(pv,"having parsed tags implies that the end of the comment span should be set");const Va=is&&Mo(is,Uf,$_);return an(f.createJSDocComment(Mb.length?Mo(Mb,mi,pv):Mi.length?Mi:void 0,Va),mi,Ps)}function W2(Nn){for(;Nn.length&&(Nn[0]==="\n"||Nn[0]==="\r");)Nn.shift()}function F2(Nn){for(;Nn.length;){const Gr=Nn[Nn.length-1].trimEnd();if(Gr==="")Nn.pop();else if(Gr.length<Nn[Nn.length-1].length){Nn[Nn.length-1]=Gr;break}else break}}function sE(){for(;;){if(Tt(),q()===1)return!0;if(!(q()===5||q()===4))return!1}}function mv(){if(!((q()===5||q()===4)&&wi(sE)))for(;q()===5||q()===4;)Tt()}function Lb(){if((q()===5||q()===4)&&wi(sE))return"";let Nn=t.hasPrecedingLineBreak(),Gr=!1,wr="";for(;Nn&&q()===42||q()===5||q()===4;)wr+=t.getTokenText(),q()===4?(Nn=!0,Gr=!0,wr=""):q()===42&&(Nn=!1),Tt();return Gr?wr:""}function bC(Nn){C.assert(q()===60);const Gr=t.getTokenStart();Tt();const wr=dE(void 0),Wi=Lb();let Mi;switch(wr.escapedText){case"author":Mi=Ms(Gr,wr,Nn,Wi);break;case"implements":Mi=wb(Gr,wr,Nn,Wi);break;case"augments":case"extends":Mi=Um(Gr,wr,Nn,Wi);break;case"class":case"constructor":Mi=uE(Gr,f.createJSDocClassTag,wr,Nn,Wi);break;case"public":Mi=uE(Gr,f.createJSDocPublicTag,wr,Nn,Wi);break;case"private":Mi=uE(Gr,f.createJSDocPrivateTag,wr,Nn,Wi);break;case"protected":Mi=uE(Gr,f.createJSDocProtectedTag,wr,Nn,Wi);break;case"readonly":Mi=uE(Gr,f.createJSDocReadonlyTag,wr,Nn,Wi);break;case"override":Mi=uE(Gr,f.createJSDocOverrideTag,wr,Nn,Wi);break;case"deprecated":Di=!0,Mi=uE(Gr,f.createJSDocDeprecatedTag,wr,Nn,Wi);break;case"this":Mi=p9(Gr,wr,Nn,Wi);break;case"enum":Mi=GZ(Gr,wr,Nn,Wi);break;case"arg":case"argument":case"param":return B(Gr,wr,2,Nn);case"return":case"returns":Mi=$e(Gr,wr,Nn,Wi);break;case"template":Mi=Wb(Gr,wr,Nn,Wi);break;case"type":Mi=Yt(Gr,wr,Nn,Wi);break;case"typedef":Mi=G2(Gr,wr,Nn,Wi);break;case"callback":Mi=yge(Gr,wr,Nn,Wi);break;case"overload":Mi=bge(Gr,wr,Nn,Wi);break;case"satisfies":Mi=cE(Gr,wr,Nn,Wi);break;case"see":Mi=Er(Gr,wr,Nn,Wi);break;case"exception":case"throws":Mi=$i(Gr,wr,Nn,Wi);break;default:Mi=kb(Gr,wr,Nn,Wi);break}return Mi}function Jp(Nn,Gr,wr,Wi){return Wi||(wr+=Gr-Nn),Ka(wr,Wi.slice(wr))}function Ka(Nn,Gr){const wr=L();let Wi=[];const Mi=[];let Va,Ds=0,td;function Vh(Z_){td||(td=Nn),Wi.push(Z_),Nn+=Z_.length}Gr!==void 0&&(Gr!==""&&Vh(Gr),Ds=1);let Hf=q();e:for(;;){switch(Hf){case 4:Ds=0,Wi.push(t.getTokenText()),Nn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:C.assert(Ds!==2&&Ds!==3,"whitespace shouldn't come from the scanner while saving comment text");const Z_=t.getTokenText();td!==void 0&&Nn+Z_.length>td&&(Wi.push(Z_.slice(td-Nn)),Ds=2),Nn+=Z_.length;break;case 19:Ds=2;const dp=t.getTokenFullStart(),I8=t.getTokenEnd()-1,hx=mc(I8);hx?(Mi.push(an(f.createJSDocText(Wi.join("")),Va!=null?Va:wr,dp)),Mi.push(hx),Wi=[],Va=t.getTokenEnd()):Vh(t.getTokenText());break;case 62:Ds===3?Ds=2:Ds=3,Vh(t.getTokenText());break;case 82:Ds!==3&&(Ds=2),Vh(t.getTokenValue());break;case 42:if(Ds===0){Ds=1,Nn+=1;break}default:Ds!==3&&(Ds=2),Vh(t.getTokenText());break}Ds===2||Ds===3?Hf=kt(Ds===3):Hf=Tt()}W2(Wi);const Q_=Wi.join("").trimEnd();if(Mi.length)return Q_.length&&Mi.push(an(f.createJSDocText(Q_),Va!=null?Va:wr)),Mo(Mi,wr,t.getTokenEnd());if(Q_.length)return Q_}function mc(Nn){const Gr=vi(_x);if(!Gr)return;Tt(),mv();const wr=lE(),Wi=[];for(;q()!==20&&q()!==4&&q()!==1;)Wi.push(t.getTokenText()),Tt();const Mi=Gr==="link"?f.createJSDocLink:Gr==="linkcode"?f.createJSDocLinkCode:f.createJSDocLinkPlain;return an(Mi(wr,Wi.join("")),Nn,t.getTokenEnd())}function lE(){if(sd(q())){const Nn=L();let Gr=Cc();for(;ao(25);)Gr=an(f.createQualifiedName(Gr,q()===81?Hs(80,!1):Ws()),Nn);for(;q()===81;)ai(),Tt(),Gr=an(f.createJSDocMemberName(Gr,Ws()),Nn);return Gr}}function _x(){if(Lb(),q()===19&&Tt()===60&&sd(Tt())){const Nn=t.getTokenValue();if(z2(Nn))return Nn}}function z2(Nn){return Nn==="link"||Nn==="linkcode"||Nn==="linkplain"}function kb(Nn,Gr,wr,Wi){return an(f.createJSDocUnknownTag(Gr,Jp(Nn,L(),wr,Wi)),Nn)}function B2(Nn){Nn&&(is?is.push(Nn):(is=[Nn],Uf=Nn.pos),$_=Nn.end)}function or(){return Lb(),q()===19?Ke():void 0}function E(){const Nn=my(23);Nn&&mv();const Gr=my(62),wr=SC();return Gr&&ka(62),Nn&&(mv(),ca(64)&&Xe(),Qt(24)),{name:wr,isBracketed:Nn}}function P(Nn){switch(Nn.kind){case 151:return!0;case 188:return P(Nn.elementType);default:return Nf(Nn)&&je(Nn.typeName)&&Nn.typeName.escapedText==="Object"&&!Nn.typeArguments}}function B(Nn,Gr,wr,Wi){let Mi=or(),Va=!Mi;Lb();const{name:Ds,isBracketed:td}=E(),Vh=Lb();Va&&!wi(_x)&&(Mi=or());const Hf=Jp(Nn,L(),Wi,Vh),Q_=ce(Mi,Ds,wr,Wi);Q_&&(Mi=Q_,Va=!0);const Z_=wr===1?f.createJSDocPropertyTag(Gr,Ds,td,Mi,Va,Hf):f.createJSDocParameterTag(Gr,Ds,td,Mi,Va,Hf);return an(Z_,Nn)}function ce(Nn,Gr,wr,Wi){if(Nn&&P(Nn.type)){const Mi=L();let Va,Ds;for(;Va=vi(()=>m9(wr,Wi,Gr));)Va.kind===348||Va.kind===355?Ds=Rn(Ds,Va):Va.kind===352&&We(Va.tagName,m.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ds){const td=an(f.createJSDocTypeLiteral(Ds,Nn.type.kind===188),Mi);return an(f.createJSDocTypeExpression(td),Mi)}}}function $e(Nn,Gr,wr,Wi){St(is,uF)&&H(Gr.pos,t.getTokenStart(),m._0_tag_already_specified,ji(Gr.escapedText));const Mi=or();return an(f.createJSDocReturnTag(Gr,Mi,Jp(Nn,L(),wr,Wi)),Nn)}function Yt(Nn,Gr,wr,Wi){St(is,xP)&&H(Gr.pos,t.getTokenStart(),m._0_tag_already_specified,ji(Gr.escapedText));const Mi=Ke(!0),Va=wr!==void 0&&Wi!==void 0?Jp(Nn,L(),wr,Wi):void 0;return an(f.createJSDocTypeTag(Gr,Mi,Va),Nn)}function Er(Nn,Gr,wr,Wi){const Va=q()===23||wi(()=>Tt()===60&&sd(Tt())&&z2(t.getTokenValue()))?void 0:Rt(),Ds=wr!==void 0&&Wi!==void 0?Jp(Nn,L(),wr,Wi):void 0;return an(f.createJSDocSeeTag(Gr,Va,Ds),Nn)}function $i(Nn,Gr,wr,Wi){const Mi=or(),Va=Jp(Nn,L(),wr,Wi);return an(f.createJSDocThrowsTag(Gr,Mi,Va),Nn)}function Ms(Nn,Gr,wr,Wi){const Mi=L(),Va=m_();let Ds=t.getTokenFullStart();const td=Jp(Nn,Ds,wr,Wi);td||(Ds=t.getTokenFullStart());const Vh=typeof td!="string"?Mo(To([an(Va,Mi,Ds)],td),Mi):Va.text+td;return an(f.createJSDocAuthorTag(Gr,Vh),Nn)}function m_(){const Nn=[];let Gr=!1,wr=t.getToken();for(;wr!==1&&wr!==4;){if(wr===30)Gr=!0;else{if(wr===60&&!Gr)break;if(wr===32&&Gr){Nn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Nn.push(t.getTokenText()),wr=Tt()}return f.createJSDocText(Nn.join(""))}function wb(Nn,Gr,wr,Wi){const Mi=BZ();return an(f.createJSDocImplementsTag(Gr,Mi,Jp(Nn,L(),wr,Wi)),Nn)}function Um(Nn,Gr,wr,Wi){const Mi=BZ();return an(f.createJSDocAugmentsTag(Gr,Mi,Jp(Nn,L(),wr,Wi)),Nn)}function cE(Nn,Gr,wr,Wi){const Mi=Ke(!1),Va=wr!==void 0&&Wi!==void 0?Jp(Nn,L(),wr,Wi):void 0;return an(f.createJSDocSatisfiesTag(Gr,Mi,Va),Nn)}function BZ(){const Nn=ao(19),Gr=L(),wr=vge();t.setInJSDocType(!0);const Wi=oE();t.setInJSDocType(!1);const Mi=f.createExpressionWithTypeArguments(wr,Wi),Va=an(Mi,Gr);return Nn&&Qt(20),Va}function vge(){const Nn=L();let Gr=dE();for(;ao(25);){const wr=dE();Gr=an(ee(Gr,wr),Nn)}return Gr}function uE(Nn,Gr,wr,Wi,Mi){return an(Gr(wr,Jp(Nn,L(),Wi,Mi)),Nn)}function p9(Nn,Gr,wr,Wi){const Mi=Ke(!0);return mv(),an(f.createJSDocThisTag(Gr,Mi,Jp(Nn,L(),wr,Wi)),Nn)}function GZ(Nn,Gr,wr,Wi){const Mi=Ke(!0);return mv(),an(f.createJSDocEnumTag(Gr,Mi,Jp(Nn,L(),wr,Wi)),Nn)}function G2(Nn,Gr,wr,Wi){var Hf;let Mi=or();Lb();const Va=f9();mv();let Ds=Ka(wr),td;if(!Mi||P(Mi.type)){let Q_,Z_,dp,I8=!1;for(;(Q_=vi(()=>UZ(wr)))&&Q_.kind!==352;)if(I8=!0,Q_.kind===351)if(Z_){const hx=hn(m.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);hx&&Oa(hx,WR(Ee,Ce,0,0,m.The_tag_was_first_specified_here));break}else Z_=Q_;else dp=Rn(dp,Q_);if(I8){const hx=Mi&&Mi.type.kind===188,Ege=f.createJSDocTypeLiteral(dp,hx);Mi=Z_&&Z_.typeExpression&&!P(Z_.typeExpression.type)?Z_.typeExpression:an(Ege,Nn),td=Mi.end}}td=td||Ds!==void 0?L():((Hf=Va!=null?Va:Mi)!=null?Hf:Gr).end,Ds||(Ds=Jp(Nn,td,wr,Wi));const Vh=f.createJSDocTypedefTag(Gr,Mi,Va,Ds);return an(Vh,Nn,td)}function f9(Nn){const Gr=t.getTokenStart();if(!sd(q()))return;const wr=dE();if(ao(25)){const Wi=f9(!0),Mi=f.createModuleDeclaration(void 0,wr,Wi,Nn?8:void 0);return an(Mi,Gr)}return Nn&&(wr.flags|=4096),wr}function VZ(Nn){const Gr=L();let wr,Wi;for(;wr=vi(()=>m9(4,Nn));){if(wr.kind===352){We(wr.tagName,m.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Wi=Rn(Wi,wr)}return Mo(Wi||[],Gr)}function jZ(Nn,Gr){const wr=VZ(Gr),Wi=vi(()=>{if(my(60)){const Mi=bC(Gr);if(Mi&&Mi.kind===349)return Mi}});return an(f.createJSDocSignature(void 0,wr,Wi),Nn)}function yge(Nn,Gr,wr,Wi){const Mi=f9();mv();let Va=Ka(wr);const Ds=jZ(Nn,wr);Va||(Va=Jp(Nn,L(),wr,Wi));const td=Va!==void 0?L():Ds.end;return an(f.createJSDocCallbackTag(Gr,Ds,Mi,Va),Nn,td)}function bge(Nn,Gr,wr,Wi){mv();let Mi=Ka(wr);const Va=jZ(Nn,wr);Mi||(Mi=Jp(Nn,L(),wr,Wi));const Ds=Mi!==void 0?L():Va.end;return an(f.createJSDocOverloadTag(Gr,Va,Mi),Nn,Ds)}function EC(Nn,Gr){for(;!je(Nn)||!je(Gr);)if(!je(Nn)&&!je(Gr)&&Nn.right.escapedText===Gr.right.escapedText)Nn=Nn.left,Gr=Gr.left;else return!1;return Nn.escapedText===Gr.escapedText}function UZ(Nn){return m9(1,Nn)}function m9(Nn,Gr,wr){let Wi=!0,Mi=!1;for(;;)switch(Tt()){case 60:if(Wi){const Va=U1(Nn,Gr);return Va&&(Va.kind===348||Va.kind===355)&&wr&&(je(Va.name)||!EC(wr,Va.name.left))?!1:Va}Mi=!1;break;case 4:Wi=!0,Mi=!1;break;case 42:Mi&&(Wi=!1),Mi=!0;break;case 80:Wi=!1;break;case 1:return!1}}function U1(Nn,Gr){C.assert(q()===60);const wr=t.getTokenFullStart();Tt();const Wi=dE(),Mi=Lb();let Va;switch(Wi.escapedText){case"type":return Nn===1&&Yt(wr,Wi);case"prop":case"property":Va=1;break;case"arg":case"argument":case"param":Va=6;break;case"template":return Wb(wr,Wi,Gr,Mi);case"this":return p9(wr,Wi,Gr,Mi);default:return!1}return Nn&Va?B(wr,Wi,Nn,Gr):!1}function dr(){const Nn=L(),Gr=my(23);Gr&&mv();const wr=Fh(!1,!0),Wi=dE(m.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Mi;if(Gr&&(mv(),Qt(64),Mi=Fa(16777216,zf),Qt(24)),!Gl(Wi))return an(f.createTypeParameterDeclaration(wr,Wi,void 0,Mi),Nn)}function Ob(){const Nn=L(),Gr=[];do{mv();const wr=dr();wr!==void 0&&Gr.push(wr),Lb()}while(my(28));return Mo(Gr,Nn)}function Wb(Nn,Gr,wr,Wi){const Mi=q()===19?Ke():void 0,Va=Ob();return an(f.createJSDocTemplateTag(Gr,Mi,Va,Jp(Nn,L(),wr,Wi)),Nn)}function my(Nn){return q()===Nn?(Tt(),!0):!1}function SC(){let Nn=dE();for(ao(23)&&Qt(24);ao(25);){const Gr=dE();ao(23)&&Qt(24),Nn=lt(Nn,Gr)}return Nn}function dE(Nn){if(!sd(q()))return Hs(80,!Nn,Nn||m.Identifier_expected);on++;const Gr=t.getTokenStart(),wr=t.getTokenEnd(),Wi=q(),Mi=iu(t.getTokenValue()),Va=an(M(Mi,Wi),Gr,wr);return Tt(),Va}}})(Y_=e.JSDocParser||(e.JSDocParser={}))})(L0||(L0={})),(e=>{function t(I,R,M,N){if(N=N||C.shouldAssert(2),f(I,R,M,N),Ere(M))return I;if(I.statements.length===0)return L0.parseSourceFile(I.fileName,R,I.languageVersion,void 0,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);const O=I;C.assert(!O.hasBeenIncrementallyParsed),O.hasBeenIncrementallyParsed=!0,L0.fixupParentReferences(O);const U=I.text,K=b(I),ee=p(I,M);f(I,R,ee,N),C.assert(ee.span.start<=M.span.start),C.assert($l(ee.span)===$l(M.span)),C.assert($l(lN(ee))===$l(lN(M)));const V=lN(ee).length-ee.span.length;u(O,ee.span.start,$l(ee.span),$l(lN(ee)),V,U,R,N);const se=L0.parseSourceFile(I.fileName,R,I.languageVersion,K,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);return se.commentDirectives=r(I.commentDirectives,se.commentDirectives,ee.span.start,$l(ee.span),V,U,R,N),se.impliedNodeFormat=I.impliedNodeFormat,se}e.updateSourceFile=t;function r(I,R,M,N,O,U,K,ee){if(!I)return R;let V,se=!1;for(const re of I){const{range:_e,type:ye}=re;if(_e.end<M)V=Rn(V,re);else if(_e.pos>N){G();const Q={range:{pos:_e.pos+O,end:_e.end+O},type:ye};V=Rn(V,Q),ee&&C.assert(U.substring(_e.pos,_e.end)===K.substring(Q.range.pos,Q.range.end))}}return G(),V;function G(){se||(se=!0,V?R&&V.push(...R):V=R)}}function i(I,R,M,N,O,U){R?ee(I):K(I);return;function K(V){let se="";if(U&&o(V)&&(se=N.substring(V.pos,V.end)),V._children&&(V._children=void 0),bh(V,V.pos+M,V.end+M),U&&o(V)&&C.assert(se===O.substring(V.pos,V.end)),Vo(V,K,ee),Fp(V))for(const G of V.jsDoc)K(G);l(V,U)}function ee(V){V._children=void 0,bh(V,V.pos+M,V.end+M);for(const se of V)K(se)}}function o(I){switch(I.kind){case 11:case 9:case 80:return!0}return!1}function s(I,R,M,N,O){C.assert(I.end>=R,"Adjusting an element that was entirely before the change range"),C.assert(I.pos<=M,"Adjusting an element that was entirely after the change range"),C.assert(I.pos<=I.end);const U=Math.min(I.pos,N),K=I.end>=M?I.end+O:Math.min(I.end,N);C.assert(U<=K),I.parent&&(C.assertGreaterThanOrEqual(U,I.parent.pos),C.assertLessThanOrEqual(K,I.parent.end)),bh(I,U,K)}function l(I,R){if(R){let M=I.pos;const N=O=>{C.assert(O.pos>=M),M=O.end};if(Fp(I))for(const O of I.jsDoc)N(O);Vo(I,N),C.assert(M<=I.end)}}function u(I,R,M,N,O,U,K,ee){V(I);return;function V(G){if(C.assert(G.pos<=G.end),G.pos>M){i(G,!1,O,U,K,ee);return}const re=G.end;if(re>=R){if(G.intersectsChange=!0,G._children=void 0,s(G,R,M,N,O),Vo(G,V,se),Fp(G))for(const _e of G.jsDoc)V(_e);l(G,ee);return}C.assert(re<R)}function se(G){if(C.assert(G.pos<=G.end),G.pos>M){i(G,!0,O,U,K,ee);return}const re=G.end;if(re>=R){G.intersectsChange=!0,G._children=void 0,s(G,R,M,N,O);for(const _e of G)V(_e);return}C.assert(re<R)}}function p(I,R){let N=R.span.start;for(let K=0;N>0&&K<=1;K++){const ee=h(I,N);C.assert(ee.pos<=N);const V=ee.pos;N=Math.max(0,V-1)}const O=hc(N,$l(R.span)),U=R.newLength+(R.span.start-N);return cL(O,U)}function h(I,R){let M=I,N;if(Vo(I,U),N){const K=O(N);K.pos>M.pos&&(M=K)}return M;function O(K){for(;;){const ee=PU(K);if(ee)K=ee;else return K}}function U(K){if(!Gl(K))if(K.pos<=R){if(K.pos>=M.pos&&(M=K),R<K.end)return Vo(K,U),!0;C.assert(K.end<=R),N=K}else return C.assert(K.pos>R),!0}}function f(I,R,M,N){const O=I.text;if(M&&(C.assert(O.length-M.span.length+M.newLength===R.length),N||C.shouldAssert(3))){const U=O.substr(0,M.span.start),K=R.substr(0,M.span.start);C.assert(U===K);const ee=O.substring($l(M.span),O.length),V=R.substring($l(lN(M)),R.length);C.assert(ee===V)}}function b(I){let R=I.statements,M=0;C.assert(M<R.length);let N=R[M],O=-1;return{currentNode(K){return K!==O&&(N&&N.end===K&&M<R.length-1&&(M++,N=R[M]),(!N||N.pos!==K)&&U(K)),O=K,C.assert(!N||N.pos===K),N}};function U(K){R=void 0,M=-1,N=void 0,Vo(I,ee,V);return;function ee(se){return K>=se.pos&&K<se.end?(Vo(se,ee,V),!0):!1}function V(se){if(K>=se.pos&&K<se.end)for(let G=0;G<se.length;G++){const re=se[G];if(re){if(re.pos===K)return R=se,M=G,N=re,!0;if(re.pos<K&&K<re.end)return Vo(re,ee,V),!0}}return!1}}}e.createSyntaxCursor=b;let A;(I=>{I[I.Value=-1]="Value"})(A||(A={}))})(dq||(dq={})),pq=new Map,$Ae=/^\/\/\/\s*<(\S+)\s.*?\/>/im,QAe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function SF(e){const t=new Map,r=new Map;return He(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function sD(){return OIe||(OIe=SF(_g))}function Dse(e){return ZAe(e,Jl)}function ZAe(e,t){const r=Wo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>"'".concat(o,"'")).join(", ");return t(m.Argument_for_0_option_must_be_Colon_1,"--".concat(e.name),i)}function TF(e,t,r){return PIe(e,(t!=null?t:"").trim(),r)}function Cse(e,t="",r){if(t=t.trim(),po(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return EI(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return Hi(i,o=>EI(e.element,parseInt(o),r));case"string":return Hi(i,o=>EI(e.element,o||"",r));case"boolean":case"object":return C.fail("List of ".concat(e.element.type," is not yet supported."));default:return Hi(i,o=>TF(e.element,o,r))}}function eIe(e){return e.name}function Nse(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return k0(o,i,t.alternateMode.diagnostic,e);const l=$C(e,t.optionDeclarations,eIe);return l?k0(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):k0(o,i,t.unknownOptionDiagnostic,r||e)}function fq(e,t,r){const i={};let o;const s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(h){let f=0;for(;f<h.length;){const b=h[f];if(f++,b.charCodeAt(0)===64)p(b.slice(1));else if(b.charCodeAt(0)===45){const A=b.slice(b.charCodeAt(1)===45?2:1),I=Pse(e.getOptionsNameMap,A,!0);if(I)f=tIe(h,f,e,I,i,l);else{const R=Pse(LF.getOptionsNameMap,A,!0);R?f=tIe(h,f,LF,R,o||(o={}),l):l.push(Nse(A,e,b))}}else s.push(b)}}function p(h){const f=PP(h,r||(I=>vu.readFile(I)));if(!No(f)){l.push(f);return}const b=[];let A=0;for(;;){for(;A<f.length&&f.charCodeAt(A)<=32;)A++;if(A>=f.length)break;const I=A;if(f.charCodeAt(I)===34){for(A++;A<f.length&&f.charCodeAt(A)!==34;)A++;A<f.length?(b.push(f.substring(I+1,A)),A++):l.push(Jl(m.Unterminated_quoted_string_in_response_file_0,h))}else{for(;f.charCodeAt(A)>32;)A++;b.push(f.substring(I,A))}}u(b)}}function tIe(e,t,r,i,o,s){if(i.isTSConfigOnly){const l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=EI(i,!1,s),t++):(l==="true"&&t++,s.push(Jl(m.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Jl(m.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!po(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Jl(r.optionTypeMismatchDiagnostic,i.name,gq(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=EI(i,parseInt(e[t]),s),t++;break;case"boolean":const l=e[t];o[i.name]=EI(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=EI(i,e[t]||"",s),t++;break;case"list":const u=Cse(i,e[t],s);o[i.name]=u||[],u&&t++;break;case"listOrElement":C.fail("listOrElement not supported here");break;default:o[i.name]=TF(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function nIe(e,t){return fq(Tw,e,t)}function mq(e,t){return Pse(sD,e,t)}function Pse(e,t,r=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:o}=e();if(r){const s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function rIe(){return FIe||(FIe=SF(PF))}function iIe(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=fq(BIe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Jl(m.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Jl(m.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Jl(m.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Jl(m.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function oIe(e,...t){return oa(Jl(e,...t).messageText,No)}function fw(e,t,r,i,o,s){const l=PP(e,h=>r.readFile(h));if(!No(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}const u=pw(e,l),p=r.getCurrentDirectory();return u.path=il(e,p,Mu(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,hw(u,r,yo(ri(e),p),t,yo(e,p),void 0,s,i,o)}function mw(e,t){const r=PP(e,t);return No(r)?_q(e,r):{config:{},error:r}}function _q(e,t){const r=pw(e,t);return{config:uIe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Mse(e,t){const r=PP(e,t);return No(r)?pw(e,r):{fileName:e,parseDiagnostics:[r]}}function PP(e,t){let r;try{r=t(e)}catch(i){return Jl(m.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Jl(m.Cannot_read_file_0,e):r}function hq(e){return PE(e,eIe)}function aIe(){return GIe||(GIe=SF(lD))}function sIe(){return VIe||(VIe=hq(_g))}function lIe(){return jIe||(jIe=hq(lD))}function cIe(){return UIe||(UIe=hq(Sw))}function LVe(){return Jse===void 0&&(Jse={name:void 0,type:"object",elementOptions:hq([Use,Hse,qse,Aw,{name:"references",type:"list",element:{name:"references",type:"object"},category:m.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:m.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:m.File_Management,defaultValueDescription:m.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:m.File_Management,defaultValueDescription:m.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},vw])}),Jse}function uIe(e,t,r){var i;const o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(nm(e,o,m.The_root_value_of_a_0_file_must_be_an_object,lc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),_d(o)){const s=Tn(o.elements,Wa);if(s)return _w(e,s,t,!0,r)}return{}}return _w(e,o,t,!0,r)}function Lse(e,t){var r;return _w(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function _w(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o==null?void 0:o.rootOptions);function s(h,f){var b;const A=i?{}:void 0;for(const I of h.properties){if(I.kind!==303){r.push(nm(e,I,m.Property_assignment_expected));continue}I.questionToken&&r.push(nm(e,I.questionToken,m.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(I.name)||r.push(nm(e,I.name,m.String_literal_with_double_quotes_expected));const R=PL(I.name)?void 0:cR(I.name),M=R&&ji(R),N=M?(b=f==null?void 0:f.elementOptions)==null?void 0:b.get(M):void 0,O=u(I.initializer,N);typeof M<"u"&&(i&&(A[M]=O),o==null||o.onPropertySet(M,O,I,f,N))}return A}function l(h,f){if(!i){h.forEach(b=>u(b,f));return}return rr(h.map(b=>u(b,f)),b=>b!==void 0)}function u(h,f){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(nm(e,h,m.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,f);case 209:return l(h.elements,f&&f.element)}f?r.push(nm(e,h,m.Compiler_option_0_requires_a_value_of_type_1,f.name,gq(f))):r.push(nm(e,h,m.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return Ma(h)&&p3(h,e)}}function gq(e){return e.type==="listOrElement"?"".concat(gq(e.element)," or Array"):e.type==="list"?"Array":No(e.type)?e.type:"string"}function dIe(e,t){if(e){if(gw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Ao(t);if(e.type==="listOrElement")return Ao(t)||dIe(e.element,t);const r=No(e.type)?e.type:"string";return typeof t===r}return!1}function pIe(e,t,r){var i,o,s;const l=Mu(r.useCaseSensitiveFileNames),u=Ot(rr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?wVe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Mv),R=>QM(yo(t,r.getCurrentDirectory()),yo(R,r.getCurrentDirectory()),l)),p={configFilePath:yo(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=IF(e.options,p),f=e.watchOptions&&OVe(e.watchOptions),b={compilerOptions:{...AF(h),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:f&&AF(f),references:Ot(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:Le(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:kVe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},A=new Set(h.keys()),I={};for(const R in yc)if(!A.has(R)&&St(yc[R].dependencies,M=>A.has(M))){const M=yc[R].computeValue(e.options),N=yc[R].computeValue({});M!==N&&(I[R]=yc[R].computeValue(e.options))}return zx(b.compilerOptions,AF(IF(I,p))),b}function AF(e){return{...Wo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function kVe(e){if(Le(e)){if(Le(e)!==1)return e;if(e[0]!==kF)return e}}function wVe(e,t,r,i){if(!t)return Mv;const o=$3(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&qy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&qy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):Mv}function fIe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return fIe(e.element);default:return e.type}}function vq(e,t){return jc(t,(r,i)=>{if(r===e)return i})}function IF(e,t){return mIe(e,sD(),t)}function OVe(e){return mIe(e,aIe())}function mIe(e,{optionsNameMap:t},r){const i=new Map,o=r&&Mu(r.useCaseSensitiveFileNames);for(const s in e)if(Cs(e,s)){if(t.has(s)&&(t.get(s).category===m.Command_line_Options||t.get(s).category===m.Output_Formatting))continue;const l=e[s],u=t.get(s.toLowerCase());if(u){C.assert(u.type!=="listOrElement");const p=fIe(u);p?u.type==="list"?i.set(s,l.map(h=>vq(h,p))):i.set(s,vq(l,p)):r&&u.isFilePath?i.set(s,QM(r.configFilePath,yo(l,ri(r.configFilePath)),o)):i.set(s,l)}}return i}function _Ie(e,t){const r=hIe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){const s=[],l=i(2);return Tq.forEach(u=>{if(!r.has(u.name))return;const p=r.get(u.name),h=Bse(u);p!==h?s.push("".concat(l).concat(u.name,": ").concat(p)):Cs(MF,u.name)&&s.push("".concat(l).concat(u.name,": ").concat(h))}),s.join(t)+t}}function hIe(e){const t=O6(e,MF);return IF(t)}function gIe(e,t,r){const i=hIe(e);return l();function o(u){return Array(u+1).join(" ")}function s({category:u,name:p,isCommandLineOnly:h}){const f=[m.Command_line_Options,m.Editor_Support,m.Compiler_Diagnostics,m.Backwards_Compatibility,m.Watch_and_Build_Modes,m.Output_Formatting];return!h&&u!==void 0&&(!f.includes(u)||i.has(p))}function l(){const u=new Map;u.set(m.Projects,[]),u.set(m.Language_and_Environment,[]),u.set(m.Modules,[]),u.set(m.JavaScript_Support,[]),u.set(m.Emit,[]),u.set(m.Interop_Constraints,[]),u.set(m.Type_Checking,[]),u.set(m.Completeness,[]);for(const I of _g)if(s(I)){let R=u.get(I.category);R||u.set(I.category,R=[]),R.push(I)}let p=0,h=0;const f=[];u.forEach((I,R)=>{f.length!==0&&f.push({value:""}),f.push({value:"/* ".concat(wo(R)," */")});for(const M of I){let N;i.has(M.name)?N='"'.concat(M.name,'": ').concat(JSON.stringify(i.get(M.name))).concat((h+=1)===i.size?"":","):N='// "'.concat(M.name,'": ').concat(JSON.stringify(Bse(M)),","),f.push({value:N,description:"/* ".concat(M.description&&wo(M.description)||M.name," */")}),p=Math.max(N.length,p)}});const b=o(2),A=[];A.push("{"),A.push("".concat(b,'"compilerOptions": {')),A.push("".concat(b).concat(b,"/* ").concat(wo(m.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)," */")),A.push("");for(const I of f){const{value:R,description:M=""}=I;A.push(R&&"".concat(b).concat(b).concat(R).concat(M&&o(p-R.length+2)+M))}if(t.length){A.push("".concat(b,"},")),A.push("".concat(b,'"files": ['));for(let I=0;I<t.length;I++)A.push("".concat(b).concat(b).concat(JSON.stringify(t[I])).concat(I===t.length-1?"":","));A.push("".concat(b,"]"))}else A.push("".concat(b,"}"));return A.push("}"),A.join(r)+r}}function yq(e,t){const r={},i=sD().optionsNameMap;for(const o in e)Cs(e,o)&&(r[o]=WVe(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function WVe(e,t,r){if(e&&!gw(t)){if(e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);C.assert(e.type!=="listOrElement")}return t}function vIe(e,t,r,i,o,s,l,u,p){return bIe(e,void 0,t,r,i,p,o,s,l,u)}function hw(e,t,r,i,o,s,l,u,p){var h,f;(h=ar)==null||h.push(ar.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const b=bIe(void 0,e,t,r,i,p,o,s,l,u);return(f=ar)==null||f.pop(),b}function bq(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function gw(e){return e==null}function yIe(e,t){return ri(yo(e,t))}function bIe(e,t,r,i,o={},s,l,u=[],p=[],h){C.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);const f=[],b=TIe(e,t,r,i,l,u,f,h),{raw:A}=b,I=O6(o,b.options||{}),R=s&&b.watchOptions?O6(s,b.watchOptions):b.watchOptions||s;I.configFilePath=l&&Lu(l);const M=O();t&&(t.configFileSpecs=M),bq(I,t);const N=ha(l?yIe(l,i):i);return{options:I,watchOptions:R,fileNames:U(N),projectReferences:K(N),typeAcquisition:b.typeAcquisition||Eq(),raw:A,errors:f,wildcardDirectories:qVe(M,N,r.useCaseSensitiveFileNames),compileOnSave:!!A.compileOnSave};function O(){const re=se("references",de=>typeof de=="object","object"),_e=ee(V("files"));if(_e){const de=re==="no-prop"||Ao(re)&&re.length===0,ie=Cs(A,"extends");if(_e.length===0&&de&&!ie)if(t){const ge=l||"tsconfig.json",Ne=m.The_files_list_in_config_file_0_is_empty,qe=OL(t,"files",Me=>Me.initializer),Ee=k0(t,qe,Ne,ge);f.push(Ee)}else G(m.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ye=ee(V("include"));const Q=V("exclude");let Y=!1,oe=ee(Q);if(Q==="no-prop"&&A.compilerOptions){const de=A.compilerOptions.outDir,ie=A.compilerOptions.declarationDir;(de||ie)&&(oe=[de,ie].filter(ge=>!!ge))}_e===void 0&&ye===void 0&&(ye=[kF],Y=!0);let he,Ae;return ye&&(he=wIe(ye,f,!0,t,"include")),oe&&(Ae=wIe(oe,f,!1,t,"exclude")),{filesSpecs:_e,includeSpecs:ye,excludeSpecs:oe,validatedFilesSpec:rr(_e,No),validatedIncludeSpecs:he,validatedExcludeSpecs:Ae,pathPatterns:void 0,isDefaultIncludeSpec:Y}}function U(re){const _e=LP(M,re,I,r,p);return SIe(_e,MP(A),u)&&f.push(EIe(M,l)),_e}function K(re){let _e;const ye=se("references",Q=>typeof Q=="object","object");if(Ao(ye))for(const Q of ye)typeof Q.path!="string"?G(m.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(_e||(_e=[])).push({path:yo(Q.path,re),originalPath:Q.path,prepend:Q.prepend,circular:Q.circular});return _e}function ee(re){return Ao(re)?re:void 0}function V(re){return se(re,No,"string")}function se(re,_e,ye){if(Cs(A,re)&&!gw(A[re]))if(Ao(A[re])){const Q=A[re];return!t&&!Yn(Q,_e)&&f.push(Jl(m.Compiler_option_0_requires_a_value_of_type_1,re,ye)),Q}else return G(m.Compiler_option_0_requires_a_value_of_type_1,re,"Array"),"not-array";return"no-prop"}function G(re,..._e){t||f.push(Jl(re,..._e))}}function FVe(e){return e.code===m.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function EIe({includeSpecs:e,excludeSpecs:t},r){return Jl(m.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function SIe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function MP(e){return!Cs(e,"files")&&!Cs(e,"references")}function xF(e,t,r,i,o){const s=i.length;return SIe(e,o)?i.push(EIe(r,t)):Ks(i,l=>!FVe(l)),s!==i.length}function zVe(e){return!!e.options}function TIe(e,t,r,i,o,s,l,u){var p;i=Lu(i);const h=yo(o||"",i);if(s.includes(h))return l.push(Jl(m.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||Lse(t,l)};const f=e?BVe(e,r,i,o,l):GVe(t,r,i,o,l);if((p=f.options)!=null&&p.paths&&(f.options.pathsBasePath=i),f.extendedConfigPath){s=s.concat([h]);const A={options:{}};No(f.extendedConfigPath)?b(A,f.extendedConfigPath):f.extendedConfigPath.forEach(I=>b(A,I)),!f.raw.include&&A.include&&(f.raw.include=A.include),!f.raw.exclude&&A.exclude&&(f.raw.exclude=A.exclude),!f.raw.files&&A.files&&(f.raw.files=A.files),f.raw.compileOnSave===void 0&&A.compileOnSave&&(f.raw.compileOnSave=A.compileOnSave),t&&A.extendedSourceFiles&&(t.extendedSourceFiles=Wo(A.extendedSourceFiles.keys())),f.options=zx(A.options,f.options),f.watchOptions=f.watchOptions&&A.watchOptions?zx(A.watchOptions,f.watchOptions):f.watchOptions||A.watchOptions}return f;function b(A,I){const R=VVe(t,I,r,s,l,u,A);if(R&&zVe(R)){const M=R.raw;let N;const O=U=>{M[U]&&(A[U]=Ot(M[U],K=>_p(K)?K:Yr(N||(N=rN(ri(I),i,Mu(r.useCaseSensitiveFileNames))),K)))};O("include"),O("exclude"),O("files"),M.compileOnSave!==void 0&&(A.compileOnSave=M.compileOnSave),zx(A.options,R.options),A.watchOptions=A.watchOptions&&R.watchOptions?zx({},A.watchOptions,R.watchOptions):A.watchOptions||R.watchOptions}}}function BVe(e,t,r,i,o){Cs(e,"excludes")&&o.push(Jl(m.Unknown_option_excludes_Did_you_mean_exclude));const s=CIe(e.compilerOptions,r,o,i),l=NIe(e.typeAcquisition,r,o,i),u=UVe(e.watchOptions,r,o);e.compileOnSave=jVe(e,r,o);const p=e.extends||e.extends===""?AIe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p}}function AIe(e,t,r,i,o,s,l,u){let p;const h=i?yIe(i,r):r;if(No(e))p=IIe(e,t,h,o,l,u);else if(Ao(e)){p=[];for(let f=0;f<e.length;f++){const b=e[f];No(b)?p=Rn(p,IIe(b,t,h,o,l==null?void 0:l.elements[f],u)):ZS(Aw.element,e,r,o,s,l==null?void 0:l.elements[f],u)}}else ZS(Aw,e,r,o,s,l,u);return p}function GVe(e,t,r,i,o){const s=DIe(i);let l,u,p,h;const f=LVe(),b=uIe(e,o,{rootOptions:f,onPropertySet:A});return l||(l=Eq(i)),h&&b&&b.compilerOptions===void 0&&o.push(nm(e,h[0],m._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,cR(h[0]))),{raw:b,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p};function A(I,R,M,N,O){if(O&&O!==Aw&&(R=ZS(O,R,r,o,M,M.initializer,e)),N!=null&&N.name)if(O){let U;N===Use?U=s:N===Hse?U=u!=null?u:u={}:N===qse?U=l!=null?l:l=Eq(i):C.fail("Unknown option"),U[O.name]=R}else I&&(N!=null&&N.extraKeyDiagnostics)&&(N.elementOptions?o.push(Nse(I,N.extraKeyDiagnostics,void 0,M.name,e)):o.push(nm(e,M.name,N.extraKeyDiagnostics.unknownOptionDiagnostic,I)));else N===f&&(O===Aw?p=AIe(R,t,r,i,o,M,M.initializer,e):O||(I==="excludes"&&o.push(nm(e,M.name,m.Unknown_option_excludes_Did_you_mean_exclude)),Tn(Tq,U=>U.name===I)&&(h=Rn(h,M.name))))}}function IIe(e,t,r,i,o,s){if(e=Lu(e),_p(e)||po(e,"./")||po(e,"../")){let u=yo(e,r);if(!t.fileExists(u)&&!Al(u,".json")&&(u="".concat(u,".json"),!t.fileExists(u))){i.push(k0(s,o,m.File_0_not_found,e));return}return u}const l=rle(e,Yr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(k0(s,o,m.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(k0(s,o,m.File_0_not_found,e))}function VVe(e,t,r,i,o,s,l){var b;const u=r.useCaseSensitiveFileNames?t:dh(t);let p,h,f;if(s&&(p=s.get(u))?{extendedResult:h,extendedConfig:f}=p:(h=Mse(t,A=>r.readFile(A)),h.parseDiagnostics.length||(f=TIe(void 0,h,r,ri(t),lc(t),i,o,s)),s&&s.set(u,{extendedResult:h,extendedConfig:f})),e&&(((b=l.extendedSourceFiles)!=null?b:l.extendedSourceFiles=new Set).add(h.fileName),h.extendedSourceFiles))for(const A of h.extendedSourceFiles)l.extendedSourceFiles.add(A);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return f}function jVe(e,t,r){if(!Cs(e,vw.name))return!1;const i=ZS(vw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function xIe(e,t,r){const i=[];return{options:CIe(e,t,i,r),errors:i}}function RIe(e,t,r){const i=[];return{options:NIe(e,t,i,r),errors:i}}function DIe(e){return e&&lc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function CIe(e,t,r,i){const o=DIe(i);return kse(sIe(),e,t,o,Tw,r),i&&(o.configFilePath=Lu(i)),o}function Eq(e){return{enable:!!e&&lc(e)==="jsconfig.json",include:[],exclude:[]}}function NIe(e,t,r,i){const o=Eq(i);return kse(cIe(),e,t,o,jse,r),o}function UVe(e,t,r){return kse(lIe(),e,t,void 0,LF,r)}function kse(e,t,r,i,o,s){if(t){for(const l in t){const u=e.get(l);u?(i||(i={}))[u.name]=ZS(u,t[l],r,s):s.push(Nse(l,o))}return i}}function k0(e,t,r,...i){return e&&t?nm(e,t,r,...i):Jl(r,...i)}function ZS(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(k0(l,o==null?void 0:o.name,m.Option_0_can_only_be_specified_on_command_line,e.name));return}if(dIe(e,t)){const u=e.type;if(u==="list"&&Ao(t))return MIe(e,t,r,i,o,s,l);if(u==="listOrElement")return Ao(t)?MIe(e,t,r,i,o,s,l):ZS(e.element,t,r,i,o,s,l);if(!No(e.type))return PIe(e,t,i,s,l);const p=EI(e,t,i,s,l);return gw(p)?p:HVe(e,r,p)}else i.push(k0(l,s,m.Compiler_option_0_requires_a_value_of_type_1,e.name,gq(e)))}function HVe(e,t,r){return e.isFilePath&&(r=yo(r,t),r===""&&(r=".")),r}function EI(e,t,r,i,o){var s;if(gw(t))return;const l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(k0(o,i,...l))}function PIe(e,t,r,i,o){if(gw(t))return;const s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return EI(e,l,r,i,o);r.push(ZAe(e,(u,...p)=>k0(o,i,u,...p)))}function MIe(e,t,r,i,o,s,l){return rr(Ot(t,(u,p)=>ZS(e.element,u,r,i,o,s==null?void 0:s.elements[p],l)),u=>e.listPreserveFalsyValues?!0:!!u)}function LP(e,t,r,i,o=et){t=ha(t);const s=Mu(i.useCaseSensitiveFileNames),l=new Map,u=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:f,validatedExcludeSpecs:b}=e,A=YN(r,o),I=Ek(r,A);if(h)for(const O of h){const U=yo(O,t);l.set(s(U),U)}let R;if(f&&f.length>0)for(const O of i.readDirectory(t,ra(I),b,f,void 0)){if(Il(O,".json")){if(!R){const ee=f.filter(se=>Al(se,".json")),V=Ot(X3(ee,t,"files"),se=>"^".concat(se,"$"));R=V?V.map(se=>qy(se,i.useCaseSensitiveFileNames)):et}if(Br(R,ee=>ee.test(O))!==-1){const ee=s(O);!l.has(ee)&&!p.has(ee)&&p.set(ee,O)}continue}if(KVe(O,l,u,A,s))continue;XVe(O,u,A,s);const U=s(O);!l.has(U)&&!u.has(U)&&u.set(U,O)}const M=Wo(l.values()),N=Wo(u.values());return M.concat(N,Wo(p.values()))}function wse(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!Le(l)||!Le(u))return!1;r=ha(r);const p=Mu(i);if(s){for(const h of s)if(p(yo(h,r))===e)return!1}return kIe(e,u,i,o,r)}function LIe(e){const t=po(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Al(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function RF(e,t,r,i){return kIe(e,rr(t,o=>!LIe(o)),r,i)}function kIe(e,t,r,i,o){const s=XN(t,Yr(ha(i),o),"exclude"),l=s&&qy(s,r);return l?l.test(e)?!0:!xA(e)&&l.test(Vc(e)):!1}function wIe(e,t,r,i,o){return e.filter(l=>{if(!No(l))return!1;const u=Ose(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){const p=e3(i,o,u);return k0(i,p,l,u)}}function Ose(e,t){if(C.assert(typeof e=="string"),t&&HIe.test(e))return[m.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(LIe(e))return[m.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function qVe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=XN(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){const p=[];for(const h of e){const f=ha(Yr(r,h));if(s&&s.test(f))continue;const b=JVe(f,i);if(b){const{key:A,path:I,flags:R}=b,M=u.get(A),N=M!==void 0?l[M]:void 0;(N===void 0||N<R)&&(l[M!==void 0?M:I]=R,M===void 0&&u.set(A,I),R===1&&p.push(A))}}for(const h in l)if(Cs(l,h))for(const f of p){const b=Wse(h,i);b!==f&&Am(f,b,r,!i)&&delete l[h]}}return l}function Wse(e,t){return t?e:dh(e)}function JVe(e,t){const r=qIe.exec(e);if(r){const i=e.indexOf("?"),o=e.indexOf("*"),s=e.lastIndexOf(ol);return{key:Wse(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(zU(e.substring(e.lastIndexOf(ol)+1))){const i=s0(e);return{key:Wse(i,t),path:i,flags:1}}}function KVe(e,t,r,i,o){const s=He(i,l=>Ic(e,l)?l:void 0);if(!s)return!1;for(const l of s){if(Il(e,l)&&(l!==".ts"||!Il(e,".d.ts")))return!1;const u=o(A0(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(Il(e,".js")||Il(e,".jsx")))continue;return!0}}return!1}function XVe(e,t,r,i){const o=He(r,s=>Ic(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){const l=o[s];if(Il(e,l))return;const u=i(A0(e,l));t.delete(u)}}function Fse(e){const t={};for(const r in e)if(Cs(e,r)){const i=mq(r);i!==void 0&&(t[r]=zse(e[r],i))}return t}function zse(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!Ao(e))return zse(e,t.element);case"list":const r=t.element;return Ao(e)?Hi(e,i=>zse(i,r)):"";default:return jc(t.type,(i,o)=>{if(i===e)return o})}}function Bse(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?"./".concat(t&&typeof t=="string"?t:""):"";case"list":return[];case"listOrElement":return Bse(e.element);case"object":return{};default:const r=L6(e.type.keys());return r!==void 0?r:C.fail("Expected 'option.type' to have entries.")}}var vw,Gse,kP,Vse,yw,DF,lD,bw,Ew,Sq,Tq,_g,Aq,Iq,xq,CF,NF,Rq,Dq,Cq,PF,Sw,OIe,WIe,MF,Tw,FIe,zIe,BIe,jse,GIe,LF,VIe,jIe,UIe,Aw,Use,Hse,qse,Jse,kF,HIe,qIe,YVe=T({"src/compiler/commandLineParser.ts"(){ta(),vw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},Gse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),kP=new Map(Ia(Gse.entries(),([e,t])=>[""+t,e])),Vse=[["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"],["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.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.sharedmemory","lib.es2022.sharedmemory.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"],["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.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],yw=Vse.map(e=>e[0]),DF=new Map(Vse),lD=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:m.Watch_and_Build_Modes,description:m.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:m.Watch_and_Build_Modes,description:m.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:m.Watch_and_Build_Modes,description:m.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:m.Watch_and_Build_Modes,description:m.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:Ose},category:m.Watch_and_Build_Modes,description:m.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Ose},category:m.Watch_and_Build_Modes,description:m.Remove_a_list_of_files_from_the_watch_mode_s_processing}],bw=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:m.Command_line_Options,description:m.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:m.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:m.Command_line_Options,description:m.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:m.Output_Formatting,description:m.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:m.Compiler_Diagnostics,description:m.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:m.Compiler_Diagnostics,description:m.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:m.Compiler_Diagnostics,description:m.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:m.Output_Formatting,description:m.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:m.Compiler_Diagnostics,description:m.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:m.Compiler_Diagnostics,description:m.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:m.Compiler_Diagnostics,description:m.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:m.FILE_OR_DIRECTORY,category:m.Compiler_Diagnostics,description:m.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:m.DIRECTORY,category:m.Compiler_Diagnostics,description:m.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:m.Projects,description:m.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:m.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,transpileOptionValue:void 0,description:m.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:m.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:m.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,description:m.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,defaultValueDescription:!1,description:m.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:m.Emit,description:m.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:m.Watch_and_Build_Modes,description:m.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:m.Command_line_Options,isCommandLineOnly:!0,description:m.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:m.Platform_specific}],Ew={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,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:m.VERSION,showInSimplifiedHelpView:!0,category:m.Language_and_Environment,description:m.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},Sq={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,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:m.KIND,showInSimplifiedHelpView:!0,category:m.Modules,description:m.Specify_what_module_code_is_generated,defaultValueDescription:void 0},Tq=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,description:m.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,description:m.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,description:m.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:m.Command_line_Options,paramType:m.FILE_OR_DIRECTORY,description:m.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:m.Command_line_Options,description:m.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,isCommandLineOnly:!0,description:m.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:m.Command_line_Options,isCommandLineOnly:!0,description:m.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Ew,Sq,{name:"lib",type:"list",element:{name:"lib",type:DF,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:m.Language_and_Environment,description:m.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:m.JavaScript_Support,description:m.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:m.JavaScript_Support,description:m.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:Gse,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:m.KIND,showInSimplifiedHelpView:!0,category:m.Language_and_Environment,description:m.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:m.FILE,showInSimplifiedHelpView:!0,category:m.Emit,description:m.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:m.DIRECTORY,showInSimplifiedHelpView:!0,category:m.Emit,description:m.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:m.LOCATION,category:m.Modules,description:m.Specify_the_root_folder_within_your_source_files,defaultValueDescription:m.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:m.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:m.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:m.FILE,category:m.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:m.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,defaultValueDescription:!1,description:m.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:m.Emit,description:m.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.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:m.Emit,description:m.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:m.Interop_Constraints,description:m.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:m.Interop_Constraints,description:m.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:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Type_Checking,description:m.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:m.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:m.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:m.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Ensure_use_strict_is_always_emitted,defaultValueDescription:m.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.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:m.Type_Checking,description:m.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.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:m.Type_Checking,description:m.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:m.STRATEGY,category:m.Modules,description:m.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:m.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:m.Modules,description:m.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:m.Modules,description:m.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,category:m.Modules,description:m.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:m.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:m.Modules,description:m.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:m.Modules,description:m.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:m.Interop_Constraints,description:m.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:m.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Interop_Constraints,description:m.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:m.Interop_Constraints,description:m.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:m.Modules,description:m.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:m.Modules,description:m.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Modules,description:m.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:m.Modules,description:m.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:m.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:m.Modules,description:m.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:m.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:m.Modules,description:m.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:m.LOCATION,category:m.Emit,description:m.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:m.LOCATION,category:m.Emit,description:m.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:m.Language_and_Environment,description:m.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:m.Language_and_Environment,description:m.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,category:m.Language_and_Environment,description:m.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:m.Modules,description:m.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:m.Modules,description:m.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:m.Backwards_Compatibility,paramType:m.FILE,transpileOptionValue:void 0,description:m.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:m.Completeness,description:m.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:m.Backwards_Compatibility,description:m.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:m.Emit,description:m.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:m.NEWLINE,category:m.Emit,description:m.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Output_Formatting,description:m.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:m.Language_and_Environment,affectsProgramStructure:!0,description:m.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:m.Modules,description:m.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:m.Emit,description:m.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:m.Editor_Support,description:m.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:m.Projects,description:m.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:m.Projects,description:m.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:m.Projects,description:m.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Backwards_Compatibility,description:m.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,transpileOptionValue:void 0,description:m.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:m.DIRECTORY,category:m.Emit,transpileOptionValue:void 0,description:m.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:m.Completeness,description:m.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Backwards_Compatibility,description:m.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Backwards_Compatibility,description:m.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:m.Interop_Constraints,description:m.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:m.JavaScript_Support,description:m.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:m.Backwards_Compatibility,description:m.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:m.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:m.Backwards_Compatibility,description:m.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:m.Specify_a_list_of_language_service_plugins_to_include,category:m.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:m.Control_what_method_is_used_to_detect_module_format_JS_files,category:m.Language_and_Environment,defaultValueDescription:m.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}],_g=[...bw,...Tq],Aq=_g.filter(e=>!!e.affectsSemanticDiagnostics),Iq=_g.filter(e=>!!e.affectsEmit),xq=_g.filter(e=>!!e.affectsDeclarationPath),CF=_g.filter(e=>!!e.affectsModuleResolution),NF=_g.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),Rq=_g.filter(e=>!!e.affectsProgramStructure),Dq=_g.filter(e=>Cs(e,"transpileOptionValue")),Cq=[{name:"verbose",shortName:"v",category:m.Command_line_Options,description:m.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:m.Command_line_Options,description:m.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:m.Command_line_Options,description:m.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:m.Command_line_Options,description:m.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],PF=[...bw,...Cq],Sw=[{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}],WIe={diagnostic:m.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:rIe},MF={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Tw={alternateMode:WIe,getOptionsNameMap:sD,optionDeclarations:_g,unknownOptionDiagnostic:m.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:m.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:m.Compiler_option_0_expects_an_argument},zIe={diagnostic:m.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:sD},BIe={alternateMode:zIe,getOptionsNameMap:rIe,optionDeclarations:PF,unknownOptionDiagnostic:m.Unknown_build_option_0,unknownDidYouMeanDiagnostic:m.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:m.Build_option_0_requires_a_value_of_type_1},jse={optionDeclarations:Sw,unknownOptionDiagnostic:m.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:m.Unknown_type_acquisition_option_0_Did_you_mean_1},LF={getOptionsNameMap:aIe,optionDeclarations:lD,unknownOptionDiagnostic:m.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:m.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:m.Watch_option_0_requires_a_value_of_type_1},Aw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:m.File_Management,disallowNullOrUndefined:!0},Use={name:"compilerOptions",type:"object",elementOptions:sIe(),extraKeyDiagnostics:Tw},Hse={name:"watchOptions",type:"object",elementOptions:lIe(),extraKeyDiagnostics:LF},qse={name:"typeAcquisition",type:"object",elementOptions:cIe(),extraKeyDiagnostics:jse},kF="**/*",HIe=/(^|\/)\*\*\/?$/,qIe=/^[^*?]*(?=\/[^/]*[*?])/}});function So(e,t,...r){e.trace(kU(t,...r))}function Yg(e,t){return!!e.traceResolution&&t.trace!==void 0}function SI(e,t){let r;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+ol.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Nq(e){return SI(void 0,e)}function JIe(e){if(e)return C.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function wF(e){const t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function $Ve(e){const t=[];return e&1&&t.push(...Lk),e&2&&t.push(...jR),e&4&&t.push(...Mk),e&8&&t.push(".json"),t}function Kse(e){if(e)return C.assert(tW(e.extension)),{fileName:e.path,packageId:e.packageId}}function KIe(e,t,r,i,o,s,l,u,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Qc(e)){const{resolvedFileName:h,originalPath:f}=$Ie(t.path,l.host,l.traceEnabled);f&&(t={...t,path:h,originalPath:f})}return XIe(t,r,i,o,s,l.resultFromCache,u,p)}function XIe(e,t,r,i,o,s,l,u){return s?l!=null&&l.isReadonly?{...s,failedLookupLocations:Xse(s.failedLookupLocations,r),affectingLocations:Xse(s.affectingLocations,i),resolutionDiagnostics:Xse(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=cD(s.failedLookupLocations,r),s.affectingLocations=cD(s.affectingLocations,i),s.resolutionDiagnostics=cD(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:wP(r),affectingLocations:wP(i),resolutionDiagnostics:wP(o),alternateResult:u}}function wP(e){return e.length?e:void 0}function cD(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function Xse(e,t){return e!=null&&e.length?t.length?[...e,...t]:e.slice():wP(t)}function YIe(e,t,r,i){if(!Cs(e,t)){i.traceEnabled&&So(i.host,m.package_json_does_not_have_a_0_field,t);return}const o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&So(i.host,m.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function Pq(e,t,r,i){const o=YIe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&So(i.host,m.package_json_had_a_falsy_0_field,t);return}const s=ha(Yr(r,o));return i.traceEnabled&&So(i.host,m.package_json_has_0_field_1_that_references_2,t,o,s),s}function QVe(e,t,r){return Pq(e,"typings",t,r)||Pq(e,"types",t,r)}function ZVe(e,t,r){return Pq(e,"tsconfig",t,r)}function eje(e,t,r){return Pq(e,"main",t,r)}function tje(e,t){const r=YIe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&So(t.host,m.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function nje(e,t){const r=tje(e,t);if(r===void 0)return;if(t.traceEnabled)for(const l in r)Cs(r,l)&&!GM.tryParse(l)&&So(t.host,m.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=OF(r);if(!i){t.traceEnabled&&So(t.host,m.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,ue);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&So(t.host,m.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(o,"']"),"object",typeof s);return}return i}function OF(e){cle||(cle=new Tm(Te));for(const t in e){if(!Cs(e,t))continue;const r=GM.tryParse(t);if(r!==void 0&&r.test(cle))return{version:t,paths:e[t]}}}function OP(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=ri(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return rje(r)}function rje(e){let t;return xm(ha(e),r=>{const i=Yr(r,yxe);(t!=null?t:t=[]).push(i)}),t}function ije(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Og(e,t,!i)===0}function $Ie(e,t,r){const i=hje(e,t,r),o=ije(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function QIe(e,t,r){const i=Al(e,"/node_modules/@types")||Al(e,"/node_modules/@types/")?hxe(t,r):t;return Yr(e,i)}function Yse(e,t,r,i,o,s,l){C.assert(typeof e=="string","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 u=Yg(r,i);o&&(r=o.commandLine.options);const p=t?ri(t):void 0;let h=p?s==null?void 0:s.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Qc(e)&&(h=s==null?void 0:s.getFromNonRelativeNameCache(e,l,p,o)),h)return u&&(So(i,m.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&So(i,m.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),So(i,m.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),V(h)),h;const f=OP(r,i);u&&(t===void 0?f===void 0?So(i,m.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):So(i,m.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,f):f===void 0?So(i,m.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):So(i,m.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,f),o&&So(i,m.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const b=[],A=[];let I=$se(r);l!==void 0&&(I|=30);const R=md(r);l===99&&3<=R&&R<=99&&(I|=32);const M=I&8?ib(r,l):[],N=[],O={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:b,affectingLocations:A,packageJsonInfoCache:s,features:I,conditions:M,requestContainingDirectory:p,reportDiagnostic:re=>void N.push(re),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let U=se(),K=!0;U||(U=G(),K=!1);let ee;if(U){const{fileName:re,packageId:_e}=U;let ye=re,Q;r.preserveSymlinks||({resolvedFileName:ye,originalPath:Q}=$Ie(re,i,u)),ee={primary:K,resolvedFileName:ye,originalPath:Q,packageId:_e,isExternalLibraryImport:w0(re)}}return h={resolvedTypeReferenceDirective:ee,failedLookupLocations:wP(b),affectingLocations:wP(A),resolutionDiagnostics:wP(N)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Qc(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),u&&V(h),h;function V(re){var _e;(_e=re.resolvedTypeReferenceDirective)!=null&&_e.resolvedFileName?re.resolvedTypeReferenceDirective.packageId?So(i,m.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,re.resolvedTypeReferenceDirective.resolvedFileName,By(re.resolvedTypeReferenceDirective.packageId),re.resolvedTypeReferenceDirective.primary):So(i,m.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,re.resolvedTypeReferenceDirective.resolvedFileName,re.resolvedTypeReferenceDirective.primary):So(i,m.Type_reference_directive_0_was_not_resolved,e)}function se(){if(f&&f.length)return u&&So(i,m.Resolving_with_primary_search_path_0,f.join(", ")),qt(f,re=>{const _e=QIe(re,e,O),ye=Zm(re,i);if(!ye&&u&&So(i,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,re),r.typeRoots){const Q=pD(4,_e,!ye,O);if(Q){const Y=xw(Q.path),oe=Y?m1(Y,!1,O):void 0;return Kse(SI(oe,Q))}}return Kse(ole(4,_e,!ye,O))});u&&So(i,m.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function G(){const re=t&&ri(t);if(re!==void 0){let _e;if(!r.typeRoots||!Al(t,bD))if(u&&So(i,m.Looking_up_in_node_modules_folder_initial_location_0,re),Qc(e)){const{path:ye}=ixe(re,e);_e=Oq(4,ye,!1,O,!0)}else{const ye=pxe(4,e,re,O,void 0,void 0);_e=ye&&ye.value}else u&&So(i,m.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Kse(_e)}else u&&So(i,m.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function $se(e){let t=0;switch(md(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function ib(e,t){const r=md(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}const i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),To(i,e.customConditions)}function Mq(e,t,r,i,o){const s=Rw(o==null?void 0:o.getPackageJsonInfoCache(),i,r);return xm(t,l=>{if(lc(l)!=="node_modules"){const u=Yr(l,"node_modules"),p=Yr(u,e);return m1(p,!1,s)}})}function WF(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=OP(e,t);if(i){for(const o of i)if(t.directoryExists(o))for(const s of t.getDirectories(o)){const l=ha(s),u=Yr(o,l,"package.json");if(!(t.fileExists(u)&&jN(u,t).typings===null)){const h=lc(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function FF(e){return!!(e!=null&&e.contents)}function Qse(e){return!!e&&!e.contents}function Zse(e){var t;if(e===null||typeof e!="object")return""+e;if(Ao(e))return"[".concat((t=e.map(i=>Zse(i)))==null?void 0:t.join(","),"]");let r="{";for(const i in e)Cs(e,i)&&(r+="".concat(i,": ").concat(Zse(e[i])));return r+"}"}function Lq(e,t){return t.map(r=>Zse(H3(e,r))).join("|")+"|".concat(e.pathsBasePath)}function kq(e,t){const r=new Map,i=new Map;let o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:u,clear:h,getOwnMap:()=>o};function s(b){return b?p(b.commandLine.options,!1):o}function l(b){return b?p(b.commandLine.options,!0):o}function u(b){e!==b&&(e?o=p(b,!0):r.set(b,o),e=b)}function p(b,A){let I=r.get(b);if(I)return I;const R=f(b);if(I=i.get(R),!I){if(e){const M=f(e);M===R?I=o:i.has(M)||i.set(M,o)}A&&(I!=null||(I=new Map)),I&&i.set(R,I)}return I&&r.set(b,I),I}function h(){const b=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(b&&t.set(e,b),r.set(e,o))}function f(b){let A=t.get(b);return A||t.set(b,A=Lq(b,CF)),A}}function oje(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r==null?void 0:r.get(il(u,e,t))}function o(u,p){(r||(r=new Map)).set(il(u,e,t),p)}function s(){r=void 0}function l(){return r}}function ZIe(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function aje(e,t,r,i){const o=kq(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function u(h,f){const b=il(h,e,t);return ZIe(o,f,b,()=>TI())}function p(h,f,b,A){var I,R;const M=il(b,e,t);return(R=(I=o.getMapOfCacheRedirects(A))==null?void 0:I.get(M))==null?void 0:R.get(h,f)}}function WP(e,t){return t===void 0?e:"".concat(t,"|").concat(e)}function TI(){const e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{const[u,p]=t.get(l);return o(s,u,p)})},size(){return e.size}};return r;function i(o,s){const l=WP(o,s);return t.set(l,[o,s]),l}}function sje(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function lje(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function cje(e,t,r,i,o){const s=kq(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:u};function l(){s.clear()}function u(b){s.update(b)}function p(b,A,I,R){var M,N;return C.assert(!Qc(b)),(N=(M=s.getMapOfCacheRedirects(R))==null?void 0:M.get(WP(b,A)))==null?void 0:N.get(I)}function h(b,A,I){return C.assert(!Qc(b)),ZIe(s,I,WP(b,A),f)}function f(){const b=new Map;return{get:A,set:I};function A(M){return b.get(il(M,e,t))}function I(M,N){const O=il(M,e,t);if(b.has(O))return;b.set(O,N);const U=i(N),K=U&&R(O,U);let ee=O;for(;ee!==K;){const V=ri(ee);if(V===ee||b.has(V))break;b.set(V,N),ee=V}}function R(M,N){const O=il(ri(N),e,t);let U=0;const K=Math.min(M.length,O.length);for(;U<K&&M.charCodeAt(U)===O.charCodeAt(U);)U++;if(U===M.length&&(O.length===U||O[U]===ol))return M;const ee=mh(M);if(U<ee)return;const V=M.lastIndexOf(ol,U-1);if(V!==-1)return M.substr(0,Math.max(V,ee))}}}function exe(e,t,r,i,o,s){s!=null||(s=new Map);const l=aje(e,t,r,s),u=cje(e,t,r,o,s);return i!=null||(i=oje(e,t)),{...i,...l,...u,clear:p,update:f,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),u.clear()}function f(b){l.update(b),u.update(b)}}function uD(e,t,r,i,o){const s=exe(e,t,r,i,sje,o);return s.getOrCreateCacheForModuleName=(l,u,p)=>s.getOrCreateCacheForNonRelativeName(l,u,p),s}function zF(e,t,r,i,o){return exe(e,t,r,i,lje,o)}function wq(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function BF(e,t,r,i,o){return dD(e,t,wq(r),i,o)}function txe(e,t,r,i){const o=ri(t);return r.getFromDirectoryCache(e,i,o,void 0)}function dD(e,t,r,i,o,s,l){var u,p,h;const f=Yg(r,i);s&&(r=s.commandLine.options),f&&(So(i,m.Resolving_module_0_from_1,e,t),s&&So(i,m.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const b=ri(t);let A=o==null?void 0:o.getFromDirectoryCache(e,l,b,s);if(A)f&&So(i,m.Resolution_for_module_0_was_found_in_cache_from_location_1,e,b);else{let I=r.moduleResolution;switch(I===void 0?(I=md(r),f&&So(i,m.Module_resolution_kind_is_not_specified_using_0,Jx[I])):f&&So(i,m.Explicitly_specified_module_resolution_kind_Colon_0,Jx[I]),(u=ad)==null||u.logStartResolveModule(e),I){case 3:A=fje(e,t,r,i,o,s,l);break;case 99:A=mje(e,t,r,i,o,s,l);break;case 2:A=nle(e,t,r,i,o,s,l?ib(r,l):void 0);break;case 1:A=sle(e,t,r,i,o,s);break;case 100:A=tle(e,t,r,i,o,s,l?ib(r,l):void 0);break;default:return C.fail("Unexpected moduleResolution: ".concat(I))}A&&A.resolvedModule&&((p=ad)==null||p.logInfoEvent('Module "'.concat(e,'" resolved to "').concat(A.resolvedModule.resolvedFileName,'"'))),(h=ad)==null||h.logStopResolveModule(A&&A.resolvedModule?""+A.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(b,s).set(e,l,A),Qc(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(b,A))}return f&&(A.resolvedModule?A.resolvedModule.packageId?So(i,m.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,A.resolvedModule.resolvedFileName,By(A.resolvedModule.packageId)):So(i,m.Module_name_0_was_successfully_resolved_to_1,e,A.resolvedModule.resolvedFileName):So(i,m.Module_name_0_was_not_resolved,e)),A}function nxe(e,t,r,i,o){const s=uje(e,t,i,o);return s?s.value:Qc(t)?dje(e,t,r,i,o):pje(e,t,i,o)}function uje(e,t,r,i){var o;const{baseUrl:s,paths:l,configFile:u}=i.compilerOptions;if(l&&!Wp(t)){i.traceEnabled&&(s&&So(i.host,m.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),So(i.host,m.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const p=x3(i.compilerOptions,i.host),h=u!=null&&u.configFileSpecs?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=eW(l)):void 0;return ale(e,t,p,l,h,r,!1,i)}}function dje(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&So(o.host,m.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const s=ha(Yr(r,t));let l,u;for(const p of o.compilerOptions.rootDirs){let h=ha(p);Al(h,ol)||(h+=ol);const f=po(s,h)&&(u===void 0||u.length<h.length);o.traceEnabled&&So(o.host,m.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,f),f&&(u=h,l=p)}if(u){o.traceEnabled&&So(o.host,m.Longest_matching_prefix_for_0_is_1,s,u);const p=s.substr(u.length);o.traceEnabled&&So(o.host,m.Loading_0_from_the_root_dir_1_candidate_location_2,p,u,s);const h=i(e,s,!Zm(r,o.host),o);if(h)return h;o.traceEnabled&&So(o.host,m.Trying_other_entries_in_rootDirs);for(const f of o.compilerOptions.rootDirs){if(f===l)continue;const b=Yr(ha(f),p);o.traceEnabled&&So(o.host,m.Loading_0_from_the_root_dir_1_candidate_location_2,p,f,b);const A=ri(b),I=i(e,b,!Zm(A,o.host),o);if(I)return I}o.traceEnabled&&So(o.host,m.Module_resolution_using_rootDirs_has_failed)}}function pje(e,t,r,i){const{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&So(i.host,m.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);const s=ha(Yr(o,t));return i.traceEnabled&&So(i.host,m.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!Zm(ri(s),i.host),i)}function ele(e,t,r){const{resolvedModule:i,failedLookupLocations:o}=_je(e,t,r);if(!i)throw new Error("Could not resolve JS module '".concat(e,"' starting at '").concat(t,"'. Looked in: ").concat(o==null?void 0:o.join(", ")));return i.resolvedFileName}function fje(e,t,r,i,o,s,l){return rxe(30,e,t,r,i,o,s,l)}function mje(e,t,r,i,o,s,l){return rxe(30,e,t,r,i,o,s,l)}function rxe(e,t,r,i,o,s,l,u,p){const h=ri(r),f=u===99?32:0;let b=i.noDtsResolution?3:7;return x0(i)&&(b|=8),Iw(e|f,t,h,i,o,s,b,!1,l,p)}function _je(e,t,r){return Iw(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function tle(e,t,r,i,o,s,l){const u=ri(t);let p=r.noDtsResolution?3:7;return x0(r)&&(p|=8),Iw($se(r),e,u,r,i,o,p,!1,s,l)}function nle(e,t,r,i,o,s,l,u){let p;return u?p=8:r.noDtsResolution?(p=3,x0(r)&&(p|=8)):p=x0(r)?15:7,Iw(l?30:0,e,ri(t),r,i,o,p,!!u,s,l)}function rle(e,t,r){return Iw(30,e,ri(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function Iw(e,t,r,i,o,s,l,u,p,h){var f,b,A,I,R;const M=Yg(i,o),N=[],O=[],U=md(i);h!=null||(h=ib(i,U===100||U===2?void 0:e&32?99:1));const K=[],ee={compilerOptions:i,host:o,traceEnabled:M,failedLookupLocations:N,affectingLocations:O,packageJsonInfoCache:s,features:e,conditions:h!=null?h:et,requestContainingDirectory:r,reportDiagnostic:re=>void K.push(re),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};M&&KA(U)&&So(o,m.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",ee.conditions.map(re=>"'".concat(re,"'")).join(", "));let V;if(U===2){const re=l&5,_e=l&-6;V=re&&G(re,ee)||_e&&G(_e,ee)||void 0}else V=G(l,ee);let se;if(ee.resolvedPackageDirectory&&!u&&!Qc(t)){const re=(V==null?void 0:V.value)&&l&5&&!cxe(5,V.value.resolved.extension);if((f=V==null?void 0:V.value)!=null&&f.isExternalLibraryImport&&re&&e&8&&(h!=null&&h.includes("import"))){ob(ee,m.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const _e={...ee,features:ee.features&-9,reportDiagnostic:ts},ye=G(l&5,_e);(b=ye==null?void 0:ye.value)!=null&&b.isExternalLibraryImport&&(se=ye.value.resolved.path)}else if((!(V!=null&&V.value)||re)&&U===2){ob(ee,m.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const _e={...ee.compilerOptions,moduleResolution:100},ye={...ee,compilerOptions:_e,features:30,conditions:ib(_e),reportDiagnostic:ts},Q=G(l&5,ye);(A=Q==null?void 0:Q.value)!=null&&A.isExternalLibraryImport&&(se=Q.value.resolved.path)}}return KIe(t,(I=V==null?void 0:V.value)==null?void 0:I.resolved,(R=V==null?void 0:V.value)==null?void 0:R.isExternalLibraryImport,N,O,K,ee,s,se);function G(re,_e){const Q=nxe(re,t,r,(Y,oe,he,Ae)=>Oq(Y,oe,he,Ae,!0),_e);if(Q)return af({resolved:Q,isExternalLibraryImport:w0(Q.path)});if(Qc(t)){const{path:Y,parts:oe}=ixe(r,t),he=Oq(re,Y,!1,_e,!0);return he&&af({resolved:he,isExternalLibraryImport:Nr(oe,"node_modules")})}else{let Y;if(e&2&&po(t,"#")&&(Y=bje(re,t,r,_e,s,p)),!Y&&e&4&&(Y=yje(re,t,r,_e,s,p)),!Y){if(t.includes(":")){M&&So(o,m.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,wF(re));return}M&&So(o,m.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,wF(re)),Y=pxe(re,t,r,_e,s,p)}return re&4&&(Y!=null||(Y=vxe(t,_e))),Y&&{value:Y.value&&{resolved:Y.value,isExternalLibraryImport:!0}}}}}function ixe(e,t){const r=Yr(e,t),i=Gc(r),o=el(i);return{path:o==="."||o===".."?Vc(ha(r)):ha(r),parts:i}}function hje(e,t,r){if(!t.realpath)return e;const i=ha(t.realpath(e));return r&&So(t,m.Resolving_real_path_for_0_result_1,e,i),i}function Oq(e,t,r,i,o){if(i.traceEnabled&&So(i.host,m.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,wF(e)),!wv(t)){if(!r){const l=ri(t);Zm(l,i.host)||(i.traceEnabled&&So(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}const s=pD(e,t,r,i);if(s){const l=o?xw(s.path):void 0,u=l?m1(l,!1,i):void 0;return SI(u,s)}}if(r||Zm(t,i.host)||(i.traceEnabled&&So(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return ole(e,t,r,i,o)}function w0(e){return e.includes(Dh)}function xw(e,t){const r=ha(e),i=r.lastIndexOf(Dh);if(i===-1)return;const o=i+Dh.length;let s=oxe(r,o,t);return r.charCodeAt(o)===64&&(s=oxe(r,s,t)),r.slice(0,s)}function oxe(e,t,r){const i=e.indexOf(ol,t+1);return i===-1?r?e.length:t:i}function ile(e,t,r,i){return Nq(pD(e,t,r,i))}function pD(e,t,r,i){const o=axe(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=sxe(t,e,"",r,i);if(s)return s}}function axe(e,t,r,i){if(!lc(t).includes("."))return;let s=Ad(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const l=t.substring(s.length);return i.traceEnabled&&So(i.host,m.File_name_0_has_a_1_extension_stripping_it,t,l),sxe(s,e,l,r,i)}function Wq(e,t,r,i){return e&1&&Ic(t,Lk)||e&4&&Ic(t,Mk)?Fq(t,r,i)!==void 0?{path:t,ext:k3(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Il(t,".json")?Fq(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:axe(e,t,r,i)}function sxe(e,t,r,i,o){if(!i){const l=ri(e);l&&(i=!Zm(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!Tu(e+r)&&s(".d".concat(r,".ts"))||void 0}function s(l,u){const p=Fq(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function Fq(e,t,r){var l;var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return lxe(e,t,r);const o=(l=qg(e))!=null?l:"",s=o?Tk(e,o):e;return He(r.compilerOptions.moduleSuffixes,u=>lxe(s+u+o,t,r))}function lxe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&So(r.host,m.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&So(r.host,m.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function ole(e,t,r,i,o=!0){const s=o?m1(t,r,i):void 0,l=s&&s.contents.packageJsonContent,u=s&&GF(s,i);return SI(s,Bq(e,t,r,i,l,u))}function zq(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s;const l=5|(o?2:0),u=$se(t),p=Rw(i==null?void 0:i.getPackageJsonInfoCache(),r,t);p.conditions=ib(t),p.requestContainingDirectory=e.packageDirectory;const h=Bq(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,GF(e,p));if(s=Rn(s,h==null?void 0:h.path),u&8&&e.contents.packageJsonContent.exports){const f=NE([ib(t,99),ib(t,1)],Ym);for(const b of f){const A={...p,failedLookupLocations:[],conditions:b,host:r},I=gje(e,e.contents.packageJsonContent.exports,A,l);if(I)for(const R of I)s=wg(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function gje(e,t,r,i){let o;if(Ao(t))for(const l of t)s(l);else if(typeof t=="object"&&t!==null&&VF(t))for(const l in t)s(t[l]);else s(t);return o;function s(l){var u,p;if(typeof l=="string"&&po(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,$Ve(i),void 0,[lre($A(l,"**/*"),".*")]).forEach(h=>{o=wg(o,{path:h,ext:Kx(h),resolvedUsingTsExtension:void 0})})}else{const h=Gc(l).slice(2);if(h.includes("..")||h.includes(".")||h.includes("node_modules"))return!1;const f=Yr(e.packageDirectory,l),b=yo(f,(p=(u=r.host).getCurrentDirectory)==null?void 0:p.call(u)),A=Wq(i,b,!1,r);if(A)return o=wg(o,A,(I,R)=>I.path===R.path),!0}else if(Array.isArray(l)){for(const h of l)if(s(h))return!0}else if(typeof l=="object"&&l!==null)return He(Qh(l),h=>{if(h==="default"||Nr(r.conditions,h)||Nw(r.conditions,h))return s(l[h]),!0})}}function Rw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Yg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:et,requestContainingDirectory:void 0,reportDiagnostic:ts,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function Dw(e,t){const r=Gc(e);for(r.pop();r.length>0;){const i=m1(Ny(r),!1,t);if(i)return i;r.pop()}}function GF(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=nje(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m1(e,t,r){var i,o,s,l,u,p;const{host:h,traceEnabled:f}=r,b=Yr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(b);return}const A=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(b);if(A!==void 0){if(FF(A))return f&&So(h,m.File_0_exists_according_to_earlier_cached_lookups,b),(s=r.affectingLocations)==null||s.push(b),A.packageDirectory===e?A:{packageDirectory:e,contents:A.contents};A.directoryExists&&f&&So(h,m.File_0_does_not_exist_according_to_earlier_cached_lookups,b),(l=r.failedLookupLocations)==null||l.push(b);return}const I=Zm(e,h);if(I&&h.fileExists(b)){const R=jN(b,h);f&&So(h,m.Found_package_json_at_0,b);const M={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(b,M),(u=r.affectingLocations)==null||u.push(b),M}else I&&f&&So(h,m.File_0_does_not_exist,b),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(b,{packageDirectory:e,directoryExists:I}),(p=r.failedLookupLocations)==null||p.push(b)}function Bq(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=ZVe(o,t,i):l=e&4&&QVe(o,t,i)||e&7&&eje(o,t,i)||void 0);const u=(A,I,R,M)=>{const N=Wq(A,I,R,M);if(N)return Nq(N);const O=A===4?5:A,U=M.features,K=M.candidateIsFromPackageJsonField;M.candidateIsFromPackageJsonField=!0,(o==null?void 0:o.type)!=="module"&&(M.features&=-33);const ee=Oq(O,I,R,M,!1);return M.features=U,M.candidateIsFromPackageJsonField=K,ee},p=l?!Zm(ri(l),i.host):void 0,h=r||!Zm(t,i.host),f=Yr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||Am(t,l))){const A=Im(t,l||f,!1);i.traceEnabled&&So(i.host,m.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,Te,A);const I=ale(e,A,t,s.paths,void 0,u,p||h,i);if(I)return JIe(I.value)}const b=l&&JIe(u(e,l,p,i));if(b)return b;if(!(i.features&32))return pD(e,f,h,i)}function cxe(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function Cw(e){let t=e.indexOf(ol);return e[0]==="@"&&(t=e.indexOf(ol,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function VF(e){return Yn(Qh(e),t=>po(t,"."))}function vje(e){return!St(Qh(e),t=>po(t,"."))}function yje(e,t,r,i,o,s){var l,u;const p=yo(Yr(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),h=Dw(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!="string")return;const f=Gc(t),b=Gc(h.contents.packageJsonContent.name);if(!Yn(b,(N,O)=>f[O]===N))return;const A=f.slice(b.length),I=Le(A)?".".concat(ol).concat(A.join(ol)):".";if(Xy(i.compilerOptions)&&!w0(r))return Gq(h,e,I,i,o,s);const R=e&5,M=e&-6;return Gq(h,R,I,i,o,s)||Gq(h,M,I,i,o,s)}function Gq(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&vje(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Cs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return dxe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(VF(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&So(i.host,m.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),af(void 0);const l=uxe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&So(i.host,m.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),af(void 0)}}function bje(e,t,r,i,o,s){var l,u;if(t==="#"||po(t,"#/"))return i.traceEnabled&&So(i.host,m.Invalid_import_specifier_0_has_no_possible_resolutions,t),af(void 0);const p=yo(Yr(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),h=Dw(p,i);if(!h)return i.traceEnabled&&So(i.host,m.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),af(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&So(i.host,m.package_json_scope_0_has_no_imports_defined,h.packageDirectory),af(void 0);const f=uxe(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return f||(i.traceEnabled&&So(i.host,m.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),af(void 0))}function Vq(e,t){const r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function uxe(e,t,r,i,o,s,l,u){const p=dxe(e,t,r,i,o,l,u);if(!Al(o,ol)&&!o.includes("*")&&Cs(s,o)){const b=s[o];return p(b,"",!1,o)}const h=uS(rr(Qh(s),b=>b.includes("*")||Al(b,"/")),Vq);for(const b of h)if(t.features&16&&f(b,o)){const A=s[b],I=b.indexOf("*"),R=o.substring(b.substring(0,I).length,o.length-(b.length-1-I));return p(A,R,!0,b)}else if(Al(b,"*")&&po(o,b.substring(0,b.length-1))){const A=s[b],I=o.substring(b.length-1);return p(A,I,!0,b)}else if(po(o,b)){const A=s[b],I=o.substring(b.length);return p(A,I,!1,b)}function f(b,A){if(Al(b,"*"))return!1;const I=b.indexOf("*");return I===-1?!1:po(A,b.substring(0,I))&&Al(A,b.substring(I+1))}}function dxe(e,t,r,i,o,s,l){return u;function u(p,h,f,b){if(typeof p=="string"){if(!f&&h.length>0&&!Al(p,"/"))return t.traceEnabled&&So(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);if(!po(p,"./")){if(l&&!po(p,"../")&&!po(p,"/")&&!_p(p)){const V=f?p.replace(/\*/g,h):p+h;ob(t,m.Using_0_subpath_1_with_target_2,"imports",b,V),ob(t,m.Resolving_module_0_from_1,V,s.packageDirectory+"/");const se=Iw(t.features,V,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return af(se.resolvedModule?{path:se.resolvedModule.resolvedFileName,extension:se.resolvedModule.extension,packageId:se.resolvedModule.packageId,originalPath:se.resolvedModule.originalPath,resolvedUsingTsExtension:se.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&So(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0)}const N=(Wp(p)?Gc(p).slice(1):Gc(p)).slice(1);if(N.includes("..")||N.includes(".")||N.includes("node_modules"))return t.traceEnabled&&So(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);const O=Yr(s.packageDirectory,p),U=Gc(h);if(U.includes("..")||U.includes(".")||U.includes("node_modules"))return t.traceEnabled&&So(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);t.traceEnabled&&So(t.host,m.Using_0_subpath_1_with_target_2,l?"imports":"exports",b,f?p.replace(/\*/g,h):p+h);const K=A(f?O.replace(/\*/g,h):O+h),ee=R(K,h,Yr(s.packageDirectory,"package.json"),l);return ee||af(SI(s,Wq(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!Le(p))return t.traceEnabled&&So(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);for(const M of p){const N=u(M,h,f,b);if(N)return N}}else{ob(t,m.Entering_conditional_exports);for(const M of Qh(p))if(M==="default"||t.conditions.includes(M)||Nw(t.conditions,M)){ob(t,m.Matched_0_condition_1,l?"imports":"exports",M);const N=p[M],O=u(N,h,f,b);if(O)return ob(t,m.Resolved_under_condition_0,M),ob(t,m.Exiting_conditional_exports),O;ob(t,m.Failed_to_resolve_under_condition_0,M)}else ob(t,m.Saw_non_matching_condition_0,M);ob(t,m.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&So(t.host,m.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),af(void 0);return t.traceEnabled&&So(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);function A(M){var N,O;return M===void 0?M:yo(M,(O=(N=t.host).getCurrentDirectory)==null?void 0:O.call(N))}function I(M,N){return Vc(Yr(M,N))}function R(M,N,O,U){var K,ee,V,se;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!M.includes("/node_modules/")&&(!t.compilerOptions.configFile||Am(s.packageDirectory,A(t.compilerOptions.configFile.fileName),!jq(t)))){const re=Vv({useCaseSensitiveFileNames:()=>jq(t)}),_e=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const ye=A($P(t.compilerOptions,()=>[],((ee=(K=t.host).getCurrentDirectory)==null?void 0:ee.call(K))||"",re));_e.push(ye)}else if(t.requestContainingDirectory){const ye=A(Yr(t.requestContainingDirectory,"index.ts")),Q=A($P(t.compilerOptions,()=>[ye,A(O)],((se=(V=t.host).getCurrentDirectory)==null?void 0:se.call(V))||"",re));_e.push(Q);let Y=Vc(Q);for(;Y&&Y.length>1;){const oe=Gc(Y);oe.pop();const he=Ny(oe);_e.unshift(he),Y=Vc(he)}}_e.length>1&&t.reportDiagnostic(Jl(U?m.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:m.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,N===""?".":N,O));for(const ye of _e){const Q=G(ye);for(const Y of Q)if(Am(Y,M,!jq(t))){const oe=M.slice(Y.length+1),he=Yr(ye,oe),Ae=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const de of Ae)if(Il(he,de)){const ie=soe(he);for(const ge of ie){if(!cxe(e,ge))continue;const Ne=$M(he,ge,de,!jq(t));if(t.host.fileExists(Ne))return af(SI(s,Wq(e,Ne,!1,t)))}}}}}return;function G(re){var _e,ye;const Q=t.compilerOptions.configFile?((ye=(_e=t.host).getCurrentDirectory)==null?void 0:ye.call(_e))||"":re,Y=[];return t.compilerOptions.declarationDir&&Y.push(A(I(Q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&Y.push(A(I(Q,t.compilerOptions.outDir))),Y}}}}function Nw(e,t){if(!e.includes("types")||!po(t,"types@"))return!1;const r=GM.tryParse(t.substring(6));return r?r.test(Te):!1}function pxe(e,t,r,i,o,s){return fxe(e,t,r,i,!1,o,s)}function Eje(e,t,r){return fxe(4,e,t,r,!0,void 0,void 0)}function fxe(e,t,r,i,o,s,l){const u=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){ob(i,m.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,wF(p));const b=f(p);if(b)return b}if(h&&!o)return ob(i,m.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,wF(h)),f(h);function f(b){return xm(Lu(r),A=>{if(lc(A)!=="node_modules"){const I=gxe(s,t,u,A,l,i);return I||af(mxe(b,t,A,i,o,s,l))}})}}function mxe(e,t,r,i,o,s,l){const u=Yr(r,"node_modules"),p=Zm(u,i.host);if(!p&&i.traceEnabled&&So(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){const h=_xe(e,t,u,p,i,s,l);if(h)return h}if(e&4){const h=Yr(u,"@types");let f=p;return p&&!Zm(h,i.host)&&(i.traceEnabled&&So(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),f=!1),_xe(4,hxe(t,i),h,f,i,s,l)}}function _xe(e,t,r,i,o,s,l){var O;var u,p;const h=ha(Yr(r,t)),{packageName:f,rest:b}=Cw(t),A=Yr(r,f);let I,R=m1(h,!i,o);if(b!==""&&R&&(!(o.features&8)||!Cs((O=(u=I=m1(A,!i,o))==null?void 0:u.contents.packageJsonContent)!=null?O:et,"exports"))){const U=pD(e,h,!i,o);if(U)return Nq(U);const K=Bq(e,h,!i,o,R.contents.packageJsonContent,GF(R,o));return SI(R,K)}const M=(U,K,ee,V)=>{let se=(b||!(V.features&32))&&pD(U,K,ee,V)||Bq(U,K,ee,V,R&&R.contents.packageJsonContent,R&&GF(R,V));return!se&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&V.features&32&&(se=pD(U,Yr(K,"index.js"),ee,V)),SI(R,se)};if(b!==""&&(R=I!=null?I:m1(A,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(p=Gq(R,e,Yr(".",b),o,s,l))==null?void 0:p.value;const N=b!==""&&R?GF(R,o):void 0;if(N){o.traceEnabled&&So(o.host,m.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,N.version,Te,b);const U=i&&Zm(A,o.host),K=ale(e,b,A,N.paths,void 0,M,!U,o);if(K)return K.value}return M(e,h,!i,o)}function ale(e,t,r,i,o,s,l,u){o||(o=eW(i));const p=GU(o,t);if(p){const h=No(p)?void 0:Vne(p,t),f=No(p)?p:Gne(p);return u.traceEnabled&&So(u.host,m.Module_name_0_matched_pattern_1,t,f),{value:He(i[f],A=>{const I=h?$A(A,h):A,R=ha(Yr(r,I));u.traceEnabled&&So(u.host,m.Trying_substitution_0_candidate_module_location_Colon_1,A,I);const M=qg(A);if(M!==void 0){const N=Fq(R,l,u);if(N!==void 0)return Nq({path:N,ext:M,resolvedUsingTsExtension:void 0})}return s(e,R,l||!Zm(ri(R),u.host),u)})}}}function hxe(e,t){const r=fD(e);return t.traceEnabled&&r!==e&&So(t.host,m.Scoped_package_detected_looking_in_0,r),r}function jF(e){return"@types/".concat(fD(e))}function fD(e){if(po(e,"@")){const t=e.replace(ol,Hq);if(t!==e)return t.slice(1)}return e}function FP(e){const t=QC(e,"@types/");return t!==e?Pw(t):e}function Pw(e){return e.includes(Hq)?"@"+e.replace(Hq,ol):e}function gxe(e,t,r,i,o,s){const l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&So(s.host,m.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function sle(e,t,r,i,o,s){const l=Yg(r,i),u=[],p=[],h=ri(t),f=[],b={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:R=>void f.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},A=I(5)||I(2|(r.resolveJsonModule?8:0));return KIe(e,A&&A.value,(A==null?void 0:A.value)&&w0(A.value.path),u,p,f,b,o);function I(R){const M=nxe(R,e,h,ile,b);if(M)return{value:M};if(Qc(e)){const N=ha(Yr(h,e));return af(ile(R,N,!1,b))}else{const N=xm(h,O=>{const U=gxe(o,e,void 0,O,s,b);if(U)return U;const K=ha(Yr(O,e));return af(ile(R,K,!1,b))});if(N)return N;if(R&5){let O=Eje(e,h,b);return R&4&&(O!=null||(O=vxe(e,b))),O}}}}function vxe(e,t){if(t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=QIe(r,e,t),o=Zm(r,t.host);!o&&t.traceEnabled&&So(t.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const s=pD(4,i,!o,t);if(s){const u=xw(s.path),p=u?m1(u,!1,t):void 0;return af(SI(p,s))}const l=ole(4,i,!o,t);if(l)return af(l)}}function mD(e,t){return!!e.allowImportingTsExtensions||t&&Tu(t)}function lle(e,t,r,i,o,s){const l=Yg(r,i);l&&So(i,m.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);const u=[],p=[],h=[],f={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:A=>void h.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},b=mxe(4,e,o,f,!1,void 0,void 0);return XIe(b,!0,u,p,h,f.resultFromCache,void 0)}function af(e){return e!==void 0?{value:e}:void 0}function ob(e,t,...r){e.traceEnabled&&So(e.host,t,...r)}function jq(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var cle,yxe,Uq,Dh,Hq,Sje=T({"src/compiler/moduleNameResolver.ts"(){ta(),yxe=Yr("node_modules","@types"),Uq=(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))(Uq||{}),Dh="/node_modules/",Hq="__"}});function $g(e,t){return e.body&&!e.body.parent&&(Ya(e.body,e),Jy(e.body,!1)),e.body?ule(e.body,t):1}function ule(e,t=new Map){const r=cs(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=Tje(e,t);return t.set(r,i),i}function Tje(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(BE(e))return 2;break;case 272:case 271:if(!$r(e,32))return 0;break;case 278:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(const o of r.exportClause.elements){const s=Aje(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Vo(e,o=>{const s=ule(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:C.assertNever(s)}}),i}case 267:return $g(e,t);case 80:if(e.flags&4096)return 0}return 1}function Aje(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(Jo(i)||O_(i)||Zi(i)){const o=i.statements;let s;for(const l of o)if(uL(l,r)){l.parent||(Ya(l,i),Jy(l,!1));const u=ule(l,t);if((s===void 0||u>s)&&(s=u),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function AI(e){return C.attachFlowNodeDebugInfo(e),e}function dle(e,t){var r,i;rl("beforeBind"),(r=ad)==null||r.logStartBindFile(""+e.fileName),Exe(e,t),(i=ad)==null||i.logStopBindFile(),rl("afterBind"),ef("Bind","beforeBind","afterBind")}function Ije(){var e,t,r,i,o,s,l,u,p,h,f,b,A,I,R,M,N,O,U,K,ee,V,se=!1,G=0,re,_e,ye={flags:1},Q={flags:1},Y=H();return he;function oe(F,De,...st){return nm(jn(F)||e,F,De,...st)}function he(F,De){var st,Vt;e=F,t=De,r=ls(t),V=Ae(e,De),_e=new Set,G=0,re=uu.getSymbolConstructor(),C.attachFlowNodeDebugInfo(ye),C.attachFlowNodeDebugInfo(Q),e.locals||((st=ar)==null||st.push(ar.Phase.Bind,"bindSourceFile",{path:e.path},!0),we(e),(Vt=ar)==null||Vt.pop(),e.symbolCount=G,e.classifiableNames=_e,tc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,u=void 0,p=void 0,h=!1,f=void 0,b=void 0,A=void 0,I=void 0,R=void 0,M=void 0,N=void 0,U=void 0,K=!1,se=!1,ee=0}function Ae(F,De){return fd(De,"alwaysStrict")&&!F.isDeclarationFile?!0:!!F.externalModuleIndicator}function de(F,De){return G++,new re(F,De)}function ie(F,De,st){F.flags|=st,De.symbol=F,F.declarations=wg(F.declarations,De),st&1955&&!F.exports&&(F.exports=ua()),st&6240&&!F.members&&(F.members=ua()),F.constEnumOnlyModule&&F.flags&304&&(F.constEnumOnlyModule=!1),st&111551&&YL(F,De)}function ge(F){if(F.kind===277)return F.isExportEquals?"export=":"default";const De=Po(F);if(De){if(ku(F)){const st=om(De);return R_(F)?"__global":'"'.concat(st,'"')}if(De.kind===167){const st=De.expression;if(nf(st))return hl(st.text);if(b3(st))return pa(st.operator)+st.operand.text;C.fail("Only computed properties with literal names have declaration names")}if(Ji(De)){const st=cu(F);if(!st)return;const Vt=st.symbol;return sk(Vt,De.escapedText)}return r_(De)?YA(De):C_(De)?LN(De):void 0}switch(F.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(Vl(F)===2)return"export=";C.fail("Unknown binary declaration kind");break;case 324:return SR(F)?"__new":"__call";case 169:return C.assert(F.parent.kind===324,"Impossible parameter parent kind",()=>"parent is: ".concat(C.formatSyntaxKind(F.parent.kind),", expected JSDocFunctionType")),"arg"+F.parent.parameters.indexOf(F)}}function Ne(F){return ld(F)?Ns(F.name):ji(C.checkDefined(ge(F)))}function qe(F,De,st,Vt,ir,ni,Xr){C.assert(Xr||!jy(st));const so=$r(st,2048)||Ku(st)&&st.name.escapedText==="default",Ba=Xr?"__computed":so&&De?"default":ge(st);let Ga;if(Ba===void 0)Ga=de(0,"__missing");else if(Ga=F.get(Ba),Vt&2885600&&_e.add(Ba),!Ga)F.set(Ba,Ga=de(0,Ba)),ni&&(Ga.isReplaceableByMethod=!0);else{if(ni&&!Ga.isReplaceableByMethod)return Ga;if(Ga.flags&ir){if(Ga.isReplaceableByMethod)F.set(Ba,Ga=de(0,Ba));else if(!(Vt&3&&Ga.flags&67108864)){ld(st)&&Ya(st.name,st);let Fl=Ga.flags&2?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0,mu=!0;(Ga.flags&384||Vt&384)&&(Fl=m.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,mu=!1);let Nc=!1;Le(Ga.declarations)&&(so||Ga.declarations&&Ga.declarations.length&&st.kind===277&&!st.isExportEquals)&&(Fl=m.A_module_cannot_have_multiple_default_exports,mu=!1,Nc=!0);const Cp=[];Lm(st)&&Gl(st.type)&&$r(st,32)&&Ga.flags&2887656&&Cp.push(oe(st,m.Did_you_mean_0,"export type { ".concat(ji(st.name.escapedText)," }")));const Hd=Po(st)||st;He(Ga.declarations,(ps,Wf)=>{const Ff=Po(ps)||ps,Vi=mu?oe(Ff,Fl,Ne(ps)):oe(Ff,Fl);e.bindDiagnostics.push(Nc?Oa(Vi,oe(Hd,Wf===0?m.Another_export_default_is_here:m.and_here)):Vi),Nc&&Cp.push(oe(Ff,m.The_first_export_default_is_here))});const pb=mu?oe(Hd,Fl,Ne(st)):oe(Hd,Fl);e.bindDiagnostics.push(Oa(pb,...Cp)),Ga=de(0,Ba)}}}return ie(Ga,st,Vt),Ga.parent?C.assert(Ga.parent===De,"Existing symbol parent should match new one"):Ga.parent=De,Ga}function Ee(F,De,st){const Vt=!!(d0(F)&32)||Me(F);if(De&2097152)return F.kind===281||F.kind===271&&Vt?qe(o.symbol.exports,o.symbol,F,De,st):(C.assertNode(o,_h),qe(o.locals,void 0,F,De,st));if(im(F)&&C.assert(sr(F)),!ku(F)&&(Vt||o.flags&128)){if(!_h(o)||!o.locals||$r(F,2048)&&!ge(F))return qe(o.symbol.exports,o.symbol,F,De,st);const ir=De&111551?1048576:0,ni=qe(o.locals,void 0,F,ir,st);return ni.exportSymbol=qe(o.symbol.exports,o.symbol,F,De,st),F.localSymbol=ni,ni}else return C.assertNode(o,_h),qe(o.locals,void 0,F,De,st)}function Me(F){if(F.parent&&Ql(F)&&(F=F.parent),!im(F))return!1;if(!ew(F)&&F.fullName)return!0;const De=Po(F);return De?!!(_k(De.parent)&&ic(De.parent)||Ju(De.parent)&&d0(De.parent)&32):!1}function Ce(F,De){const st=o,Vt=s,ir=l;if(De&1?(F.kind!==219&&(s=o),o=l=F,De&32&&(o.locals=ua(),Kn(o))):De&2&&(l=F,De&32&&(l.locals=void 0)),De&4){const ni=f,Xr=b,so=A,Ba=I,Ga=N,Fl=U,mu=K,Nc=De&16&&!$r(F,1024)&&!F.asteriskToken&&!!xS(F)||F.kind===175;Nc||(f=AI({flags:2}),De&144&&(f.node=F)),I=Nc||F.kind===176||sr(F)&&(F.kind===262||F.kind===218)?Cn():void 0,N=void 0,b=void 0,A=void 0,U=void 0,K=!1,Ue(F),F.flags&=-5633,!(f.flags&1)&&De&8&&tm(F.body)&&(F.flags|=512,K&&(F.flags|=1024),F.endFlowNode=f),F.kind===312&&(F.flags|=ee,F.endFlowNode=f),I&&(en(I,f),f=Qn(I),(F.kind===176||F.kind===175||sr(F)&&(F.kind===262||F.kind===218))&&(F.returnFlowNode=f)),Nc||(f=ni),b=Xr,A=so,I=Ba,N=Ga,U=Fl,K=mu}else De&64?(h=!1,Ue(F),C.assertNotNode(F,je),F.flags=h?F.flags|256:F.flags&-257):Ue(F);o=st,s=Vt,l=ir}function Oe(F){At(F,De=>De.kind===262?we(De):void 0),At(F,De=>De.kind!==262?we(De):void 0)}function At(F,De=we){F!==void 0&&He(F,De)}function be(F){Vo(F,we,At)}function Ue(F){const De=se;if(se=!1,Jt(F)){be(F),yt(F),se=De;return}switch(F.kind>=243&&F.kind<=259&&!t.allowUnreachableCode&&(F.flowNode=f),F.kind){case 247:eo(F);break;case 246:Ro(F);break;case 248:fa(F);break;case 249:case 250:Fa(F);break;case 245:An(F);break;case 253:case 257:wn(F);break;case 252:case 251:pt(F);break;case 258:Pt(F);break;case 255:le(F);break;case 269:Fe(F);break;case 296:dt(F);break;case 244:j(F);break;case 256:Dt(F);break;case 224:gn(F);break;case 225:hn(F);break;case 226:if(Uv(F)){se=De,dn(F);return}Y(F);break;case 220:We(F);break;case 227:Lt(F);break;case 260:me(F);break;case 211:case 212:ai(F);break;case 213:si(F);break;case 235:lr(F);break;case 353:case 345:case 347:ke(F);break;case 312:{Oe(F.statements),we(F.endOfFileToken);break}case 241:case 268:Oe(F.statements);break;case 208:q(F);break;case 169:fe(F);break;case 210:case 209:case 303:case 230:se=De;default:be(F);break}yt(F),se=De}function it(F){switch(F.kind){case 80:case 81:case 110:case 211:case 212:return gt(F);case 213:return Qe(F);case 217:if(nD(F))return!1;case 235:return it(F.expression);case 226:return on(F);case 224:return F.operator===54&&it(F.operand);case 221:return it(F.expression)}return!1}function Ft(F){return GN(F)||(Fr(F)||fI(F)||Gd(F))&&Ft(F.expression)||mr(F)&&F.operatorToken.kind===28&&Ft(F.right)||$s(F)&&(nf(F.argumentExpression)||jl(F.argumentExpression))&&Ft(F.expression)||wc(F)&&Ft(F.left)}function gt(F){return Ft(F)||qu(F)&>(F.expression)}function Qe(F){if(F.arguments){for(const De of F.arguments)if(gt(De))return!0}return!!(F.expression.kind===211&>(F.expression.expression))}function It(F,De){return XR(F)&&$t(F.expression)&&ds(De)}function on(F){switch(F.operatorToken.kind){case 64:case 76:case 77:case 78:return gt(F.left);case 35:case 36:case 37:case 38:return $t(F.left)||$t(F.right)||It(F.right,F.left)||It(F.left,F.right)||hN(F.right)&&it(F.left)||hN(F.left)&&it(F.right);case 104:return $t(F.left);case 103:return it(F.right);case 28:return it(F.right)}return!1}function $t(F){switch(F.kind){case 217:return $t(F.expression);case 226:switch(F.operatorToken.kind){case 64:return $t(F.left);case 28:return $t(F.right)}}return gt(F)}function Cn(){return AI({flags:4,antecedents:void 0})}function Hn(){return AI({flags:8,antecedents:void 0})}function yn(F,De,st){return AI({flags:1024,target:F,antecedents:De,antecedent:st})}function tn(F){F.flags|=F.flags&2048?4096:2048}function en(F,De){!(De.flags&1)&&!Nr(F.antecedents,De)&&((F.antecedents||(F.antecedents=[])).push(De),tn(De))}function gi(F,De,st){return De.flags&1?De:st?(st.kind===112&&F&64||st.kind===97&&F&32)&&!I4(st)&&!tj(st.parent)?ye:it(st)?(tn(De),AI({flags:F,antecedent:De,node:st})):De:F&32?De:ye}function ho(F,De,st,Vt){return tn(F),AI({flags:128,antecedent:F,switchStatement:De,clauseStart:st,clauseEnd:Vt})}function Gi(F,De,st){tn(De);const Vt=AI({flags:F,antecedent:De,node:st});return N&&en(N,Vt),Vt}function xo(F,De){return tn(F),AI({flags:512,antecedent:F,node:De})}function Qn(F){const De=F.antecedents;return De?De.length===1?De[0]:F:ye}function Di(F){const De=F.parent;switch(De.kind){case 245:case 247:case 246:return De.expression===F;case 248:case 227:return De.condition===F}return!1}function Ir(F){for(;;)if(F.kind===217)F=F.expression;else if(F.kind===224&&F.operator===54)F=F.operand;else return mk(F)}function Xt(F){return EU(vs(F))}function nt(F){for(;Gd(F.parent)||tb(F.parent)&&F.parent.operator===54;)F=F.parent;return!Di(F)&&!Ir(F.parent)&&!(qu(F.parent)&&F.parent.expression===F)}function Bt(F,De,st,Vt){const ir=R,ni=M;R=st,M=Vt,F(De),R=ir,M=ni}function Dn(F,De,st){Bt(we,F,De,st),(!F||!Xt(F)&&!Ir(F)&&!(qu(F)&&dN(F)))&&(en(De,gi(32,f,F)),en(st,gi(64,f,F)))}function oi(F,De,st){const Vt=b,ir=A;b=De,A=st,we(F),b=Vt,A=ir}function yi(F,De){let st=U;for(;st&&F.parent.kind===256;)st.continueTarget=De,st=st.next,F=F.parent;return De}function eo(F){const De=yi(F,Hn()),st=Cn(),Vt=Cn();en(De,f),f=De,Dn(F.expression,st,Vt),f=Qn(st),oi(F.statement,Vt,De),en(De,f),f=Qn(Vt)}function Ro(F){const De=Hn(),st=yi(F,Cn()),Vt=Cn();en(De,f),f=De,oi(F.statement,Vt,st),en(st,f),f=Qn(st),Dn(F.expression,De,Vt),f=Qn(Vt)}function fa(F){const De=yi(F,Hn()),st=Cn(),Vt=Cn();we(F.initializer),en(De,f),f=De,Dn(F.condition,st,Vt),f=Qn(st),oi(F.statement,Vt,De),we(F.incrementor),en(De,f),f=Qn(Vt)}function Fa(F){const De=yi(F,Hn()),st=Cn();we(F.expression),en(De,f),f=De,F.kind===250&&we(F.awaitModifier),en(st,f),we(F.initializer),F.initializer.kind!==261&&_t(F.initializer),oi(F.statement,st,De),en(De,f),f=Qn(st)}function An(F){const De=Cn(),st=Cn(),Vt=Cn();Dn(F.expression,De,st),f=Qn(De),we(F.thenStatement),en(Vt,f),f=Qn(st),we(F.elseStatement),en(Vt,f),f=Qn(Vt)}function wn(F){we(F.expression),F.kind===253&&(K=!0,I&&en(I,f)),f=ye}function Je(F){for(let De=U;De;De=De.next)if(De.name===F)return De}function mt(F,De,st){const Vt=F.kind===252?De:st;Vt&&(en(Vt,f),f=ye)}function pt(F){if(we(F.label),F.label){const De=Je(F.label.escapedText);De&&(De.referenced=!0,mt(F,De.breakTarget,De.continueTarget))}else mt(F,b,A)}function Pt(F){const De=I,st=N,Vt=Cn(),ir=Cn();let ni=Cn();if(F.finallyBlock&&(I=ir),en(ni,f),N=ni,we(F.tryBlock),en(Vt,f),F.catchClause&&(f=Qn(ni),ni=Cn(),en(ni,f),N=ni,we(F.catchClause),en(Vt,f)),I=De,N=st,F.finallyBlock){const Xr=Cn();Xr.antecedents=To(To(Vt.antecedents,ni.antecedents),ir.antecedents),f=Xr,we(F.finallyBlock),f.flags&1?f=ye:(I&&ir.antecedents&&en(I,yn(Xr,ir.antecedents,f)),N&&ni.antecedents&&en(N,yn(Xr,ni.antecedents,f)),f=Vt.antecedents?yn(Xr,Vt.antecedents,f):ye)}else f=Qn(Vt)}function le(F){const De=Cn();we(F.expression);const st=b,Vt=O;b=De,O=f,we(F.caseBlock),en(De,f);const ir=He(F.caseBlock.clauses,ni=>ni.kind===297);F.possiblyExhaustive=!ir&&!De.antecedents,ir||en(De,ho(O,F,0,0)),b=st,O=Vt,f=Qn(De)}function Fe(F){const De=F.clauses,st=F.parent.expression.kind===112||it(F.parent.expression);let Vt=ye;for(let ir=0;ir<De.length;ir++){const ni=ir;for(;!De[ir].statements.length&&ir+1<De.length;)Vt===ye&&(f=O),we(De[ir]),ir++;const Xr=Cn();en(Xr,st?ho(O,F.parent,ni,ir+1):O),en(Xr,Vt),f=Qn(Xr);const so=De[ir];we(so),Vt=f,!(f.flags&1)&&ir!==De.length-1&&t.noFallthroughCasesInSwitch&&(so.fallthroughFlowNode=f)}}function dt(F){const De=f;f=O,we(F.expression),f=De,At(F.statements)}function j(F){we(F.expression),ot(F.expression)}function ot(F){if(F.kind===213){const De=F;De.expression.kind!==108&&GN(De.expression)&&(f=xo(f,De))}}function Dt(F){const De=Cn();U={next:U,name:F.label.escapedText,breakTarget:De,continueTarget:void 0,referenced:!1},we(F.label),we(F.statement),!U.referenced&&!t.allowUnusedLabels&&Cc(Uoe(t),F.label,m.Unused_label),U=U.next,en(De,f),f=Qn(De)}function Ye(F){F.kind===226&&F.operatorToken.kind===64?_t(F.left):_t(F)}function _t(F){if(Ft(F))f=Gi(16,f,F);else if(F.kind===209)for(const De of F.elements)De.kind===230?_t(De.expression):Ye(De);else if(F.kind===210)for(const De of F.properties)De.kind===303?Ye(De.initializer):De.kind===304?_t(De.name):De.kind===305&&_t(De.expression)}function Gt(F,De,st){const Vt=Cn();F.operatorToken.kind===56||F.operatorToken.kind===77?Dn(F.left,Vt,st):Dn(F.left,De,Vt),f=Qn(Vt),we(F.operatorToken),BN(F.operatorToken.kind)?(Bt(we,F.right,De,st),_t(F.left),en(De,gi(32,f,F)),en(st,gi(64,f,F))):Dn(F.right,De,st)}function gn(F){if(F.operator===54){const De=R;R=M,M=De,be(F),M=R,R=De}else be(F),(F.operator===46||F.operator===47)&&_t(F.operand)}function hn(F){be(F),(F.operator===46||F.operator===47)&&_t(F.operand)}function dn(F){se?(se=!1,we(F.operatorToken),we(F.right),se=!0,we(F.left)):(se=!0,we(F.left),se=!1,we(F.operatorToken),we(F.right)),_t(F.left)}function H(){return yF(F,De,st,Vt,ir,void 0);function F(Xr,so){if(so){so.stackIndex++,Ya(Xr,i);const Ga=V;br(Xr);const Fl=i;i=Xr,so.skip=!1,so.inStrictModeStack[so.stackIndex]=Ga,so.parentStack[so.stackIndex]=Fl}else so={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const Ba=Xr.operatorToken.kind;if(fk(Ba)||BN(Ba)){if(nt(Xr)){const Ga=Cn();Gt(Xr,Ga,Ga),f=Qn(Ga)}else Gt(Xr,R,M);so.skip=!0}return so}function De(Xr,so,Ba){if(!so.skip){const Ga=ni(Xr);return Ba.operatorToken.kind===28&&ot(Xr),Ga}}function st(Xr,so,Ba){so.skip||we(Xr)}function Vt(Xr,so,Ba){if(!so.skip){const Ga=ni(Xr);return Ba.operatorToken.kind===28&&ot(Xr),Ga}}function ir(Xr,so){if(!so.skip){const Fl=Xr.operatorToken.kind;if(jv(Fl)&&!sg(Xr)&&(_t(Xr.left),Fl===64&&Xr.left.kind===212)){const mu=Xr.left;$t(mu.expression)&&(f=Gi(256,f,Xr))}}const Ba=so.inStrictModeStack[so.stackIndex],Ga=so.parentStack[so.stackIndex];Ba!==void 0&&(V=Ba),Ga!==void 0&&(i=Ga),so.skip=!1,so.stackIndex--}function ni(Xr){if(Xr&&mr(Xr)&&!Uv(Xr))return Xr;we(Xr)}}function We(F){be(F),F.expression.kind===211&&_t(F.expression)}function Lt(F){const De=Cn(),st=Cn(),Vt=Cn();Dn(F.condition,De,st),f=Qn(De),we(F.questionToken),we(F.whenTrue),en(Vt,f),f=Qn(st),we(F.colonToken),we(F.whenFalse),en(Vt,f),f=Qn(Vt)}function L(F){const De=Hc(F)?void 0:F.name;if(Zo(De))for(const st of De.elements)L(st);else f=Gi(16,f,F)}function me(F){be(F),(F.initializer||rR(F.parent.parent))&&L(F)}function q(F){we(F.dotDotDotToken),we(F.propertyName),Ve(F.initializer),we(F.name)}function fe(F){At(F.modifiers),we(F.dotDotDotToken),we(F.questionToken),we(F.type),Ve(F.initializer),we(F.name)}function Ve(F){if(!F)return;const De=f;if(we(F),De===ye||De===f)return;const st=Cn();en(st,De),en(st,f),f=Qn(st)}function ke(F){we(F.tagName),F.kind!==347&&F.fullName&&(Ya(F.fullName,F),Jy(F.fullName,!1)),typeof F.comment!="string"&&At(F.comment)}function Tt(F){be(F);const De=b0(F);De&&De.kind!==174&&ie(De.symbol,De,32)}function kt(F,De,st){Bt(we,F,De,st),(!qu(F)||dN(F))&&(en(De,gi(32,f,F)),en(st,gi(64,f,F)))}function nn(F){switch(F.kind){case 211:we(F.questionDotToken),we(F.name);break;case 212:we(F.questionDotToken),we(F.argumentExpression);break;case 213:we(F.questionDotToken),At(F.typeArguments),At(F.arguments);break}}function En(F,De,st){const Vt=uN(F)?Cn():void 0;kt(F.expression,Vt||De,st),Vt&&(f=Qn(Vt)),Bt(nn,F,De,st),dN(F)&&(en(De,gi(32,f,F)),en(st,gi(64,f,F)))}function nr(F){if(nt(F)){const De=Cn();En(F,De,De),f=Qn(De)}else En(F,R,M)}function lr(F){qu(F)?nr(F):be(F)}function ai(F){qu(F)?nr(F):be(F)}function si(F){if(qu(F))nr(F);else{const De=vs(F.expression);De.kind===218||De.kind===219?(At(F.typeArguments),At(F.arguments),we(F.expression)):(be(F),F.expression.kind===108&&(f=xo(f,F)))}if(F.expression.kind===211){const De=F.expression;je(De.name)&&$t(De.expression)&&aU(De.name)&&(f=Gi(256,f,F))}}function Kn(F){u&&(u.nextContainer=F),u=F}function Hr(F,De,st){switch(o.kind){case 267:return Ee(F,De,st);case 312:return wi(F,De,st);case 231:case 263:return bo(F,De,st);case 266:return qe(o.symbol.exports,o.symbol,F,De,st);case 187:case 329:case 210:case 264:case 292:return qe(o.symbol.members,o.symbol,F,De,st);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&C.assertNode(o,_h),qe(o.locals,void 0,F,De,st)}}function bo(F,De,st){return aa(F)?qe(o.symbol.exports,o.symbol,F,De,st):qe(o.symbol.members,o.symbol,F,De,st)}function wi(F,De,st){return dc(e)?Ee(F,De,st):qe(e.locals,void 0,F,De,st)}function vi(F){const De=Zi(F)?F:ti(F.body,O_);return!!De&&De.statements.some(st=>Zl(st)||wl(st))}function ga(F){F.flags&33554432&&!vi(F)?F.flags|=128:F.flags&=-129}function Ja(F){if(ga(F),ku(F))if($r(F,32)&&Ws(F,m.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Rj(F))Qt(F);else{let De;if(F.name.kind===11){const{text:Vt}=F.name;De=FR(Vt),De===void 0&&Ws(F.name,m.Pattern_0_can_have_at_most_one_Asterisk_character,Vt)}const st=Hr(F,512,110735);e.patternAmbientModules=Rn(e.patternAmbientModules,De&&!No(De)?{pattern:De,symbol:st}:void 0)}else{const De=Qt(F);if(De!==0){const{symbol:st}=F;st.constEnumOnlyModule=!(st.flags&304)&&De===2&&st.constEnumOnlyModule!==!1}}}function Qt(F){const De=$g(F),st=De!==0;return Hr(F,st?512:1024,st?110735:0),De}function va(F){const De=de(131072,ge(F));ie(De,F,131072);const st=de(2048,"__type");ie(st,F,2048),st.members=ua(),st.members.set(De.escapedName,De)}function Wl(F){return La(F,4096,"__object")}function to(F){return La(F,4096,"__jsxAttributes")}function za(F,De,st){return Hr(F,De,st)}function La(F,De,st){const Vt=de(De,st);return De&106508&&(Vt.parent=o.symbol),ie(Vt,F,De),Vt}function ys(F,De,st){switch(l.kind){case 267:Ee(F,De,st);break;case 312:if(zp(o)){Ee(F,De,st);break}default:C.assertNode(l,_h),l.locals||(l.locals=ua(),Kn(l)),qe(l.locals,void 0,F,De,st)}}function tc(){if(!p)return;const F=o,De=u,st=l,Vt=i,ir=f;for(const ni of p){const Xr=ni.parent.parent;o=kj(Xr)||e,l=vh(Xr)||e,f=AI({flags:2}),i=ni,we(ni.typeExpression);const so=Po(ni);if((ew(ni)||!ni.fullName)&&so&&_k(so.parent)){const Ba=ic(so.parent);if(Ba){vl(e.symbol,so.parent,Ba,!!zn(so,Fl=>Fr(Fl)&&Fl.name.escapedText==="prototype"),!1);const Ga=o;switch(KL(so.parent)){case 1:case 2:zp(e)?o=e:o=void 0;break;case 4:o=so.parent.expression;break;case 3:o=so.parent.expression.name;break;case 5:o=_1(e,so.parent.expression)?e:Fr(so.parent.expression)?so.parent.expression.name:so.parent.expression;break;case 0:return C.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Ee(ni,524288,788968),o=Ga}}else ew(ni)||!ni.fullName||ni.fullName.kind===80?(i=ni.parent,ys(ni,524288,788968)):we(ni.fullName)}o=F,u=De,l=st,i=Vt,f=ir}function ao(F){if(!e.parseDiagnostics.length&&!(F.flags&33554432)&&!(F.flags&16777216)&&!Zie(F)){const De=p0(F);if(De===void 0)return;V&&De>=119&&De<=127?e.bindDiagnostics.push(oe(F,ca(F),Ns(F))):De===135?dc(e)&&r3(F)?e.bindDiagnostics.push(oe(F,m.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ns(F))):F.flags&65536&&e.bindDiagnostics.push(oe(F,m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ns(F))):De===127&&F.flags&16384&&e.bindDiagnostics.push(oe(F,m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ns(F)))}}function ca(F){return cu(F)?m.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?m.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:m.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function pu(F){F.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(oe(F,m.constructor_is_a_reserved_word,Ns(F))))}function Rs(F){V&&ep(F.left)&&jv(F.operatorToken.kind)&&pc(F,F.left)}function ka(F){V&&F.variableDeclaration&&pc(F,F.variableDeclaration.name)}function _l(F){if(V&&F.expression.kind===80){const De=AS(e,F.expression);e.bindDiagnostics.push(eu(e,De.start,De.length,m.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function wf(F){return je(F)&&(F.escapedText==="eval"||F.escapedText==="arguments")}function pc(F,De){if(De&&De.kind===80){const st=De;if(wf(st)){const Vt=AS(e,De);e.bindDiagnostics.push(eu(e,Vt.start,Vt.length,Cl(F),Tr(st)))}}}function Cl(F){return cu(F)?m.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:e.externalModuleIndicator?m.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:m.Invalid_use_of_0_in_strict_mode}function cl(F){V&&pc(F,F.name)}function Mo(F){return cu(F)?m.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?m.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:m.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function an(F){if(r<2&&l.kind!==312&&l.kind!==267&&!nR(l)){const De=AS(e,F);e.bindDiagnostics.push(eu(e,De.start,De.length,Mo(F)))}}function Hs(F){V&&pc(F,F.operand)}function iu(F){V&&(F.operator===46||F.operator===47)&&pc(F,F.operand)}function fu(F){V&&Ws(F,m.with_statements_are_not_allowed_in_strict_mode)}function Rp(F){V&&ls(t)>=2&&(nie(F.statement)||kl(F.statement))&&Ws(F.label,m.A_label_is_not_allowed_here)}function Ws(F,De,...st){const Vt=yh(e,F.pos);e.bindDiagnostics.push(eu(e,Vt.start,Vt.length,De,...st))}function Cc(F,De,st){pe(F,De,De,st)}function pe(F,De,st,Vt){Z(F,{pos:g0(De,e),end:st.end},Vt)}function Z(F,De,st){const Vt=eu(e,De.pos,De.end-De.pos,st);F?e.bindDiagnostics.push(Vt):e.bindSuggestionDiagnostics=Rn(e.bindSuggestionDiagnostics,{...Vt,category:2})}function we(F){if(!F)return;Ya(F,i),ar&&(F.tracingPath=e.path);const De=V;if(br(F),F.kind>165){const st=i;i=F;const Vt=qq(F);Vt===0?Ue(F):Ce(F,Vt),i=st}else{const st=i;F.kind===1&&(i=F),yt(F),i=st}V=De}function yt(F){if(Fp(F))if(sr(F))for(const De of F.jsDoc)we(De);else for(const De of F.jsDoc)Ya(De,F),Jy(De,!1)}function pn(F){if(!V)for(const De of F){if(!Cm(De))return;if(gr(De)){V=!0;return}}}function gr(F){const De=FE(e,F.expression);return De==='"use strict"'||De==="'use strict'"}function br(F){switch(F.kind){case 80:if(F.flags&4096){let Xr=F.parent;for(;Xr&&!im(Xr);)Xr=Xr.parent;ys(Xr,524288,788968);break}case 110:return f&&(bt(F)||i.kind===304)&&(F.flowNode=f),ao(F);case 166:f&&l3(F)&&(F.flowNode=f);break;case 236:case 108:F.flowNode=f;break;case 81:return pu(F);case 211:case 212:const De=F;f&&Ft(De)&&(De.flowNode=f),qie(De)&&qn(De),sr(De)&&e.commonJsModuleIndicator&&ag(De)&&!UF(l,"module")&&qe(e.locals,void 0,De.expression,134217729,111550);break;case 226:switch(Vl(F)){case 1:op(F);break;case 2:ap(F);break;case 3:ea(F.left,F);break;case 6:Eo(F);break;case 4:Cd(F);break;case 5:const Xr=F.left.expression;if(sr(F)&&je(Xr)){const so=UF(l,Xr.escapedText);if(i3(so==null?void 0:so.valueDeclaration)){Cd(F);break}}Sc(F);break;case 0:break;default:C.fail("Unknown binary expression special property assignment kind")}return Rs(F);case 299:return ka(F);case 220:return _l(F);case 225:return Hs(F);case 224:return iu(F);case 254:return fu(F);case 256:return Rp(F);case 197:h=!0;return;case 182:break;case 168:return lt(F);case 169:return tv(F);case 260:return Bu(F);case 208:return F.flowNode=f,Bu(F);case 172:case 171:return qr(F);case 303:case 304:return Ud(F,4,0);case 306:return Ud(F,8,900095);case 179:case 180:case 181:return Hr(F,131072,0);case 174:case 173:return Ud(F,8192|(F.questionToken?16777216:0),Nm(F)?0:103359);case 262:return Dp(F);case 176:return Hr(F,16384,0);case 177:return Ud(F,32768,46015);case 178:return Ud(F,65536,78783);case 184:case 324:case 330:case 185:return va(F);case 187:case 329:case 200:return Ri(F);case 339:return Tt(F);case 210:return Wl(F);case 218:case 219:return vg(F);case 213:switch(Vl(F)){case 7:return rc(F);case 8:return nc(F);case 9:return Xo(F);case 0:break;default:return C.fail("Unknown call expression assignment declaration kind")}sr(F)&&U_(F);break;case 231:case 263:return V=!0,Mh(F);case 264:return ys(F,64,788872);case 265:return ys(F,524288,788968);case 266:return ev(F);case 267:return Ja(F);case 292:return to(F);case 291:return za(F,4,0);case 271:case 274:case 276:case 281:return Hr(F,2097152,2097152);case 270:return zc(F);case 273:return Xl(F);case 278:return Sl(F);case 277:return Nl(F);case 312:return pn(F.statements),hr();case 241:if(!nR(F.parent))return;case 268:return pn(F.statements);case 348:if(F.parent.kind===330)return tv(F);if(F.parent.kind!==329)break;case 355:const ir=F,ni=ir.isBracketed||ir.typeExpression&&ir.typeExpression.type.kind===323?16777220:4;return Hr(ir,ni,0);case 353:case 345:case 347:return(p||(p=[])).push(F);case 346:return we(F.typeExpression)}}function qr(F){const De=Wd(F),st=De?98304:4,Vt=De?13247:0;return Ud(F,st|(F.questionToken?16777216:0),Vt)}function Ri(F){return La(F,2048,"__type")}function hr(){if(ga(e),dc(e))Ho();else if(rm(e)){Ho();const F=e.symbol;qe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=F}}function Ho(){La(e,512,'"'.concat(Ad(e.fileName),'"'))}function Nl(F){if(!o.symbol||!o.symbol.exports)La(F,111551,ge(F));else{const De=AR(F)?2097152:4,st=qe(o.symbol.exports,o.symbol,F,De,-1);F.isExportEquals&&YL(st,F)}}function zc(F){St(F.modifiers)&&e.bindDiagnostics.push(oe(F,m.Modifiers_cannot_appear_here));const De=Zi(F.parent)?dc(F.parent)?F.parent.isDeclarationFile?void 0:m.Global_module_exports_may_only_appear_in_declaration_files:m.Global_module_exports_may_only_appear_in_module_files:m.Global_module_exports_may_only_appear_at_top_level;De?e.bindDiagnostics.push(oe(F,De)):(e.symbol.globalExports=e.symbol.globalExports||ua(),qe(e.symbol.globalExports,e.symbol,F,2097152,2097152))}function Sl(F){!o.symbol||!o.symbol.exports?La(F,8388608,ge(F)):F.exportClause?Ih(F.exportClause)&&(Ya(F.exportClause,F),qe(o.symbol.exports,o.symbol,F.exportClause,2097152,2097152)):qe(o.symbol.exports,o.symbol,F,8388608,0)}function Xl(F){F.name&&Hr(F,2097152,2097152)}function Is(F){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=F,e.externalModuleIndicator||Ho()),!0)}function nc(F){if(!Is(F))return;const De=Of(F.arguments[0],void 0,(st,Vt)=>(Vt&&ie(Vt,st,67110400),Vt));De&&qe(De.exports,De,F,1048580,0)}function op(F){if(!Is(F))return;const De=Of(F.left.expression,void 0,(st,Vt)=>(Vt&&ie(Vt,st,67110400),Vt));if(De){const Vt=ok(F.right)&&(RS(F.left.expression)||ag(F.left.expression))?2097152:1048580;Ya(F.left,F),qe(De.exports,De,F.left,Vt,0)}}function ap(F){if(!Is(F))return;const De=HL(F.right);if(IU(De)||o===e&&_1(e,De))return;if(Wa(De)&&Yn(De.properties,rp)){He(De.properties,Jc);return}const st=AR(F)?2097152:1049092,Vt=qe(e.symbol.exports,e.symbol,F,st|67108864,0);YL(Vt,F)}function Jc(F){qe(e.symbol.exports,e.symbol,F,69206016,0)}function Cd(F){if(C.assert(sr(F)),mr(F)&&Fr(F.left)&&Ji(F.left.name)||Fr(F)&&Ji(F.name))return;const st=Fd(F,!1,!1);switch(st.kind){case 262:case 218:let Vt=st.symbol;if(mr(st.parent)&&st.parent.operatorToken.kind===64){const Xr=st.parent.left;UE(Xr)&&Hy(Xr.expression)&&(Vt=Nd(Xr.expression.expression,s))}Vt&&Vt.valueDeclaration&&(Vt.members=Vt.members||ua(),jy(F)?Pe(F,Vt,Vt.members):qe(Vt.members,Vt,F,67108868,0),ie(Vt,Vt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const ir=st.parent,ni=aa(st)?ir.symbol.exports:ir.symbol.members;jy(F)?Pe(F,ir.symbol,ni):qe(ni,ir.symbol,F,67108868,0,!0);break;case 312:if(jy(F))break;st.commonJsModuleIndicator?qe(st.symbol.exports,st.symbol,F,1048580,0):Hr(F,1,111550);break;case 267:break;default:C.failBadSyntaxKind(st)}}function Pe(F,De,st){qe(st,De,F,4,0,!0,!0),Wt(F,De)}function Wt(F,De){De&&(De.assignmentDeclarationMembers||(De.assignmentDeclarationMembers=new Map)).set(cs(F),F)}function qn(F){F.expression.kind===110?Cd(F):UE(F)&&F.parent.parent.kind===312&&(Hy(F.expression)?ea(F,F.parent):ul(F))}function Eo(F){Ya(F.left,F),Ya(F.right,F),Kc(F.left.expression,F.left,!1,!0)}function Xo(F){const De=Nd(F.arguments[0].expression);De&&De.valueDeclaration&&ie(De,De.valueDeclaration,32),Ul(F,De,!0)}function ea(F,De){const st=F.expression,Vt=st.expression;Ya(Vt,st),Ya(st,F),Ya(F,De),Kc(Vt,F,!0,!0)}function rc(F){let De=Nd(F.arguments[0]);const st=F.parent.parent.kind===312;De=vl(De,F.arguments[0],st,!1,!1),Ul(F,De,!1)}function Sc(F){var De;const st=Nd(F.left.expression,l)||Nd(F.left.expression,o);if(!sr(F)&&!Jie(st))return;const Vt=wR(F.left);if(!(je(Vt)&&((De=UF(o,Vt.escapedText))==null?void 0:De.flags)&2097152))if(Ya(F.left,F),Ya(F.right,F),je(F.left.expression)&&o===e&&_1(e,F.left.expression))op(F);else if(jy(F)){La(F,67108868,"__computed");const ir=vl(st,F.left.expression,ic(F.left),!1,!1);Wt(F,ir)}else ul(oa(F.left,CS))}function ul(F){C.assert(!je(F)),Ya(F.expression,F),Kc(F.expression,F,!1,!1)}function vl(F,De,st,Vt,ir){return(F==null?void 0:F.flags)&2097152||(st&&!Vt&&(F=Of(De,F,(so,Ba,Ga)=>{if(Ba)return ie(Ba,so,67110400),Ba;{const Fl=Ga?Ga.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=ua());return qe(Fl,Ga,so,67110400,110735)}})),ir&&F&&F.valueDeclaration&&ie(F,F.valueDeclaration,32)),F}function Ul(F,De,st){if(!De||!ff(De))return;const Vt=st?De.members||(De.members=ua()):De.exports||(De.exports=ua());let ir=0,ni=0;js(OA(F))?(ir=8192,ni=103359):sa(F)&&DS(F)&&(St(F.arguments[2].properties,Xr=>{const so=Po(Xr);return!!so&&je(so)&&Tr(so)==="set"})&&(ir|=65540,ni|=78783),St(F.arguments[2].properties,Xr=>{const so=Po(Xr);return!!so&&je(so)&&Tr(so)==="get"})&&(ir|=32772,ni|=46015)),ir===0&&(ir=4,ni=0),qe(Vt,De,F,ir|67108864,ni&-67108865)}function ic(F){return mr(F.parent)?jd(F.parent).parent.kind===312:F.parent.parent.kind===312}function Kc(F,De,st,Vt){let ir=Nd(F,l)||Nd(F,o);const ni=ic(De);ir=vl(ir,De.expression,ni,st,Vt),Ul(De,ir,st)}function ff(F){if(F.flags&1072)return!0;const De=F.valueDeclaration;if(De&&sa(De))return!!OA(De);let st=De?ki(De)?De.initializer:mr(De)?De.right:Fr(De)&&mr(De.parent)?De.parent.right:void 0:void 0;if(st=st&&HL(st),st){const Vt=Hy(ki(De)?De.name:mr(De)?De.left:De);return!!y0(mr(st)&&(st.operatorToken.kind===57||st.operatorToken.kind===61)?st.right:st,Vt)}return!1}function jd(F){for(;mr(F.parent);)F=F.parent;return F.parent}function Nd(F,De=o){if(je(F))return UF(De,F.escapedText);{const st=Nd(F.expression);return st&&st.exports&&st.exports.get(Vg(F))}}function Of(F,De,st){if(_1(e,F))return e.symbol;if(je(F))return st(F,Nd(F),De);{const Vt=Of(F.expression,De,st),ir=JL(F);return Ji(ir)&&C.fail("unexpected PrivateIdentifier"),st(ir,Vt&&Vt.exports&&Vt.exports.get(Vg(F)),Vt)}}function U_(F){!e.commonJsModuleIndicator&&Td(F,!1)&&Is(F)}function Mh(F){if(F.kind===263)ys(F,32,899503);else{const ir=F.name?F.name.escapedText:"__class";La(F,32,ir),F.name&&_e.add(F.name.escapedText)}const{symbol:De}=F,st=de(4194308,"prototype"),Vt=De.exports.get(st.escapedName);Vt&&(F.name&&Ya(F.name,F),e.bindDiagnostics.push(oe(Vt.declarations[0],m.Duplicate_identifier_0,El(st)))),De.exports.set(st.escapedName,st),st.parent=De}function ev(F){return BE(F)?ys(F,128,899967):ys(F,256,899327)}function Bu(F){if(V&&pc(F,F.name),!Zo(F.name)){const De=F.kind===260?F:F.parent.parent;sr(F)&&jE(De)&&!f0(F)&&!(d0(F)&32)?Hr(F,2097152,2097152):Aj(F)?ys(F,2,111551):JE(F)?Hr(F,1,111551):Hr(F,1,111550)}}function tv(F){if(!(F.kind===348&&o.kind!==330)&&(V&&!(F.flags&33554432)&&pc(F,F.name),Zo(F.name)?La(F,1,"__"+F.parent.parameters.indexOf(F)):Hr(F,1,111551),hp(F,F.parent))){const De=F.parent.parent;qe(De.symbol.members,De.symbol,F,4|(F.questionToken?16777216:0),0)}}function Dp(F){!e.isDeclarationFile&&!(F.flags&33554432)&&MN(F)&&(ee|=4096),cl(F),V?(an(F),ys(F,16,110991)):Hr(F,16,110991)}function vg(F){!e.isDeclarationFile&&!(F.flags&33554432)&&MN(F)&&(ee|=4096),f&&(F.flowNode=f),cl(F);const De=F.name?F.name.escapedText:"__function";return La(F,16,De)}function Ud(F,De,st){return!e.isDeclarationFile&&!(F.flags&33554432)&&MN(F)&&(ee|=4096),f&&Z4(F)&&(F.flowNode=f),jy(F)?La(F,De,"__computed"):Hr(F,De,st)}function te(F){const De=zn(F,st=>st.parent&&dI(st.parent)&&st.parent.extendsType===st);return De&&De.parent}function lt(F){var De,st;if(pm(F.parent)){const Vt=g3(F.parent);Vt?(C.assertNode(Vt,_h),(De=Vt.locals)!=null||(Vt.locals=ua()),qe(Vt.locals,void 0,F,262144,526824)):Hr(F,262144,526824)}else if(F.parent.kind===195){const Vt=te(F.parent);Vt?(C.assertNode(Vt,_h),(st=Vt.locals)!=null||(Vt.locals=ua()),qe(Vt.locals,void 0,F,262144,526824)):La(F,262144,ge(F))}else Hr(F,262144,526824)}function zt(F){const De=$g(F);return De===1||De===2&&n1(t)}function Jt(F){if(!(f.flags&1))return!1;if(f===ye&&(TL(F)&&F.kind!==242||F.kind===263||F.kind===267&&zt(F))&&(f=Q,!t.allowUnreachableCode)){const st=joe(t)&&!(F.flags&33554432)&&(!kl(F)||!!(Wv(F.declarationList)&7)||F.declarationList.declarations.some(Vt=>!!Vt.initializer));xje(F,(Vt,ir)=>pe(st,Vt,ir,m.Unreachable_code_detected))}return!0}}function xje(e,t){if(qi(e)&&bxe(e)&&Jo(e.parent)){const{statements:r}=e.parent,i=VU(r,e);dG(i,bxe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function bxe(e){return!xc(e)&&!Rje(e)&&!D0(e)&&!(kl(e)&&!(Wv(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function Rje(e){switch(e.kind){case 264:case 265:return!0;case 267:return $g(e)!==1;case 266:return $r(e,4096);default:return!1}}function _1(e,t){let r=0;const i=zM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),RS(t)||ag(t))return!0;if(je(t)){const o=UF(e,t.escapedText);if(o&&o.valueDeclaration&&ki(o.valueDeclaration)&&o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),wc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function qq(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(Z4(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Qo(e.parent)||Rl(e.parent)?0:34}return 0}function UF(e,t){var u;var r,i,o,s;const l=(i=(r=ti(e,_h))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return(u=l.exportSymbol)!=null?u:l;if(Zi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(x_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var Jq,Kq,Exe,Dje=T({"src/compiler/binder.ts"(){ta(),fS(),Jq=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Jq||{}),Kq=(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))(Kq||{}),Exe=Ije()}});function ple(e,t,r,i,o,s,l,u,p,h){return f;function f(b=()=>!0){const A=[],I=[];return{walkType:_e=>{try{return R(_e),{visitedTypes:EA(A),visitedSymbols:EA(I)}}finally{zo(A),zo(I)}},walkSymbol:_e=>{try{return re(_e),{visitedTypes:EA(A),visitedSymbols:EA(I)}}finally{zo(A),zo(I)}}};function R(_e){if(!(!_e||A[_e.id]||(A[_e.id]=_e,re(_e.symbol)))){if(_e.flags&524288){const Q=_e,Y=Q.objectFlags;Y&4&&M(_e),Y&32&&ee(_e),Y&3&&se(_e),Y&24&&G(Q)}_e.flags&262144&&N(_e),_e.flags&3145728&&O(_e),_e.flags&4194304&&U(_e),_e.flags&8388608&&K(_e)}}function M(_e){R(_e.target),He(h(_e),R)}function N(_e){R(u(_e))}function O(_e){He(_e.types,R)}function U(_e){R(_e.type)}function K(_e){R(_e.objectType),R(_e.indexType),R(_e.constraint)}function ee(_e){R(_e.typeParameter),R(_e.constraintType),R(_e.templateType),R(_e.modifiersType)}function V(_e){const ye=t(_e);ye&&R(ye.type),He(_e.typeParameters,R);for(const Q of _e.parameters)re(Q);R(e(_e)),R(r(_e))}function se(_e){G(_e),He(_e.typeParameters,R),He(i(_e),R),R(_e.thisType)}function G(_e){const ye=o(_e);for(const Q of ye.indexInfos)R(Q.keyType),R(Q.type);for(const Q of ye.callSignatures)V(Q);for(const Q of ye.constructSignatures)V(Q);for(const Q of ye.properties)re(Q)}function re(_e){if(!_e)return!1;const ye=Ta(_e);if(I[ye])return!1;if(I[ye]=_e,!b(_e))return!0;const Q=s(_e);return R(Q),_e.exports&&_e.exports.forEach(re),He(_e.declarations,Y=>{if(Y.type&&Y.type.kind===186){const oe=Y.type,he=l(p(oe.exprName));re(he)}}),!1}}}var Cje=T({"src/compiler/symbolWalker.ts"(){ta()}});function Mw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){const s=l();return{relativePreference:o!==void 0?Qc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{const p=u!==i.impliedNodeFormat?l(u):s;if((u!=null?u:i.impliedNodeFormat)===99)return mD(r,i.fileName)?[3,2]:[2];if(md(r)===1)return p===2?[2,1]:[1,2];const h=mD(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:C.assertNever(p)}}};function l(u){if(o!==void 0){if(QE(o))return 2;if(Al(o,"/index"))return 1}return Qoe(t,u!=null?u:i.impliedNodeFormat,r,i)}}function Nje(e,t,r,i,o,s,l={}){const u=Sxe(e,t,r,i,o,Mw({},e,t,s),{},l);if(u!==s)return u}function HF(e,t,r,i,o,s={}){return Sxe(e,t,r,i,o,Mw({},e,t),{},s)}function Pje(e,t,r,i,o,s={}){const l=Xq(t.fileName,i),u=Cxe(l,r,i,o,s);return qt(u,p=>mle(p,l,t,i,e,o,!0,s.overrideImportMode))}function Sxe(e,t,r,i,o,s,l,u={}){const p=Xq(r,o),h=Cxe(p,i,o,l,u);return qt(h,f=>mle(f,p,t,o,e,l,void 0,u.overrideImportMode))||xxe(i,p,e,o,u.overrideImportMode||t.impliedNodeFormat,s)}function Mje(e,t,r,i,o={}){return Txe(e,t,r,i,o)[0]}function Txe(e,t,r,i,o={}){var s;const l=G4(e);if(!l)return et;const u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=u==null?void 0:u.get(t.path,l.path,i,o);return[p==null?void 0:p.moduleSpecifiers,l,p==null?void 0:p.modulePaths,u]}function Axe(e,t,r,i,o,s,l={}){return Ixe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function Ixe(e,t,r,i,o,s,l={},u){let p=!1;const h=wje(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[f,b,A,I]=Txe(e,i,o,s,l);if(f)return{moduleSpecifiers:f,computedWithoutCache:p};if(!b)return{moduleSpecifiers:et,computedWithoutCache:p};p=!0,A||(A=Nxe(Xq(i.fileName,o),b.originalFileName,o));const R=Lje(A,r,i,o,s,l,u);return I==null||I.set(i.path,b.path,s,l,A,R),{moduleSpecifiers:R,computedWithoutCache:p}}function Lje(e,t,r,i,o,s={},l){const u=Xq(r.fileName,i),p=Mw(o,t,r),h=He(e,M=>He(i.getFileIncludeReasons().get(il(M.path,i.getCurrentDirectory(),u.getCanonicalFileName)),N=>{if(N.kind!==3||N.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Ace(r,N.index,t))return;const O=Kw(r,N.index).text;return p.relativePreference!==1||!Wp(O)?O:void 0}));if(h)return[h];const f=St(e,M=>M.isInNodeModules);let b,A,I,R;for(const M of e){const N=M.isInNodeModules?mle(M,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(b=Rn(b,N),N&&M.isRedirect)return b;if(!N){const O=xxe(M.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,p,M.isRedirect);if(!O)continue;M.isRedirect?I=Rn(I,O):zV(O)?w0(O)?R=Rn(R,O):A=Rn(A,O):(l||!f||M.isInNodeModules)&&(R=Rn(R,O))}}return A!=null&&A.length?A:I!=null&&I.length?I:b!=null&&b.length?b:C.checkDefined(R)}function Xq(e,t){e=yo(e,t.getCurrentDirectory());const r=Mu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ri(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function xxe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},u){const{baseUrl:p,paths:h,rootDirs:f}=r;if(u&&!h)return;const{sourceDirectory:b,canonicalSourceDirectory:A,getCanonicalFileName:I}=t,R=s(o),M=f&&Fje(f,e,b,I,R,r)||Lw(ME(Im(b,e,I)),R,r);if(!p&&!h&&!_W(r)||l===0)return u?void 0:M;const N=yo(x3(r,i)||p,i.getCurrentDirectory()),O=kxe(e,N,I);if(!O)return u?void 0:M;const U=u?void 0:Wje(e,b,r,i,o),K=u||U===void 0?h&&Pxe(O,h,R,i,r):void 0;if(u)return K;const ee=U!=null?U:K===void 0&&p!==void 0?Lw(O,R,r):K;if(!ee)return M;if(l===1&&!Wp(ee))return ee;if(l===3&&!Wp(ee)){const V=r.configFilePath?il(ri(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),se=il(e,V,I),G=po(A,V),re=po(se,V);if(G&&!re||!G&&re)return ee;const _e=fle(i,ri(se)),ye=fle(i,b),Q=!PR(i);return kje(_e,ye,Q)?M:ee}return wxe(ee)||qF(M)<qF(ee)?M:ee}function kje(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Og(e,t,r)===0}function qF(e){let t=0;for(let r=po(e,"./")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function Rxe(e,t){return Ry(t.isRedirect,e.isRedirect)||Sk(e.path,t.path)}function fle(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):xm(t,r=>e.fileExists(Yr(r,"package.json"))?r:void 0)}function Dxe(e,t,r,i,o){var s;const l=Vv(r),u=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=il(t,u,l),f=r.redirectTargetsMap.get(h)||et,A=[...p?[p]:et,t,...f].map(O=>yo(O,u));let I=!Yn(A,rP);if(!i){const O=He(A,U=>!(I&&rP(U))&&o(U,p===U));if(O)return O}const R=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),M=yo(t,u);return R&&xm(ri(M),O=>{const U=R.get(Vc(il(O,u,l)));if(U)return GV(e,O,l)?!1:He(A,K=>{if(!GV(K,O,l))return;const ee=Im(O,K,l);for(const V of U){const se=Py(V,ee),G=o(se,K===p);if(I=!0,G)return G}})})||(i?He(A,O=>I&&rP(O)?void 0:o(O,O===p)):void 0)}function Cxe(e,t,r,i,o={}){var s;const l=il(e.importingSourceFileName,r.getCurrentDirectory(),Vv(r)),u=il(t,r.getCurrentDirectory(),Vv(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){const f=p.get(l,u,i,o);if(f!=null&&f.modulePaths)return f.modulePaths}const h=Nxe(e,t,r);return p&&p.setModulePaths(l,u,i,o,h),h}function Nxe(e,t,r){const i=new Map;Dxe(e.importingSourceFileName,t,r,!0,(s,l)=>{const u=w0(s);i.set(s,{path:e.getCanonicalFileName(s),isRedirect:l,isInNodeModules:u})});const o=[];for(let s=e.canonicalSourceDirectory;i.size!==0;){const l=Vc(s);let u;i.forEach(({path:h,isRedirect:f,isInNodeModules:b},A)=>{po(h,l)&&((u||(u=[])).push({path:A,isRedirect:f,isInNodeModules:b}),i.delete(A))}),u&&(u.length>1&&u.sort(Rxe),o.push(...u));const p=ri(s);if(p===s)break;s=p}if(i.size){const s=Wo(i.entries(),([l,{isRedirect:u,isInNodeModules:p}])=>({path:l,isRedirect:u,isInNodeModules:p}));s.length>1&&s.sort(Rxe),o.push(...s)}return o}function wje(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(l=>xj(l)&&(!zE(l)||!Qc(om(l.name))));if(i)return i.name.text;const s=Hi(e.declarations,l=>{var u,p,h,f;if(!Ql(l))return;const b=M(l);if(!((u=b==null?void 0:b.parent)!=null&&u.parent&&O_(b.parent)&&ku(b.parent.parent)&&Zi(b.parent.parent.parent)))return;const A=(f=(h=(p=b.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:h.valueDeclaration)==null?void 0:f.expression;if(!A)return;const I=t.getSymbolAtLocation(A);if(!I)return;if(((I==null?void 0:I.flags)&2097152?t.getAliasedSymbol(I):I)===l.symbol)return b.parent.parent;function M(N){for(;N.flags&8;)N=N.parent;return N}})[0];if(s)return s.name.text}function Pxe(e,t,r,i,o){for(const l in t)for(const u of t[l]){const p=ha(u),h=p.indexOf("*"),f=r.map(b=>({ending:b,value:Lw(e,[b],o)}));if(qg(p)&&f.push({ending:void 0,value:e}),h!==-1){const b=p.substring(0,h),A=p.substring(h+1);for(const{ending:I,value:R}of f)if(R.length>=b.length+A.length&&po(R,b)&&Al(R,A)&&s({ending:I,value:R})){const M=R.substring(b.length,R.length-A.length);if(!Wp(M))return $A(l,M)}}else if(St(f,b=>b.ending!==0&&p===b.value)||St(f,b=>b.ending===0&&p===b.value&&s(b)))return l}function s({ending:l,value:u}){return l!==0||u===Lw(e,[l],o,i)}}function JF(e,t,r,i,o,s,l,u,p){if(typeof s=="string"){const h=!PR(t),f=()=>t.getCommonSourceDirectory(),b=p&&IJ(r,e,h,f),A=p&&AJ(r,e,h,f),I=yo(Yr(i,s),void 0),R=XA(r)?Ad(r)+hle(r,e):void 0;switch(u){case 0:if(R&&Og(R,I,h)===0||Og(r,I,h)===0||b&&Og(b,I,h)===0||A&&Og(A,I,h)===0)return{moduleFileToTry:o};break;case 1:if(R&&Am(I,R,h)){const U=Im(I,R,!1);return{moduleFileToTry:yo(Yr(Yr(o,s),U),void 0)}}if(Am(I,r,h)){const U=Im(I,r,!1);return{moduleFileToTry:yo(Yr(Yr(o,s),U),void 0)}}if(b&&Am(I,b,h)){const U=Im(I,b,!1);return{moduleFileToTry:Yr(o,U)}}if(A&&Am(I,A,h)){const U=Im(I,A,!1);return{moduleFileToTry:Yr(o,U)}}break;case 2:const M=I.indexOf("*"),N=I.slice(0,M),O=I.slice(M+1);if(R&&po(R,N,h)&&Al(R,O,h)){const U=R.slice(N.length,R.length-O.length);return{moduleFileToTry:$A(o,U)}}if(po(r,N,h)&&Al(r,O,h)){const U=r.slice(N.length,r.length-O.length);return{moduleFileToTry:$A(o,U)}}if(b&&po(b,N,h)&&Al(b,O,h)){const U=b.slice(N.length,b.length-O.length);return{moduleFileToTry:$A(o,U)}}if(A&&po(A,N,h)&&Al(A,O,h)){const U=A.slice(N.length,A.length-O.length);return{moduleFileToTry:$A(o,U)}}break}}else{if(Array.isArray(s))return He(s,h=>JF(e,t,r,i,o,h,l,u,p));if(typeof s=="object"&&s!==null){for(const h of Qh(s))if(h==="default"||l.indexOf(h)>=0||Nw(l,h)){const f=s[h],b=JF(e,t,r,i,o,f,l,u,p);if(b)return b}}}}function Oje(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&VF(s)?He(Qh(s),u=>{const p=yo(Yr(o,u),void 0),h=Al(u,"/")?1:u.includes("*")?2:0;return JF(e,t,r,i,p,s[u],l,h,!1)}):JF(e,t,r,i,o,s,l,0,!1)}function Wje(e,t,r,i,o){var s,l,u;if(!i.readFile||!_W(r))return;const p=fle(i,t);if(!p)return;const h=Yr(p,"package.json"),f=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(Qse(f)||!i.fileExists(h))return;const b=(f==null?void 0:f.contents.packageJsonContent)||w3(i.readFile(h)),A=b==null?void 0:b.imports;if(!A)return;const I=ib(r,o);return(u=He(Qh(A),R=>{if(!po(R,"#")||R==="#"||po(R,"#/"))return;const M=Al(R,"/")?1:R.includes("*")?2:0;return JF(r,i,e,p,R,A[R],I,M,!0)}))==null?void 0:u.moduleFileToTry}function Fje(e,t,r,i,o,s){const l=Mxe(t,e,i);if(l===void 0)return;const u=Mxe(r,e,i),p=Pi(u,f=>Ot(l,b=>ME(Im(f,b,i)))),h=EG(p,Sk);if(h)return Lw(h,o,s)}function mle({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,p,h){if(!s.fileExists||!s.readFile)return;const f=aW(e);if(!f)return;const A=Mw(u,l,o).getAllowedEndingsInPreferredOrder();let I=e,R=!1;if(!p){let ee=f.packageRootIndex,V;for(;;){const{moduleFileToTry:se,packageRootPath:G,blockedByExports:re,verbatimFromExports:_e}=K(ee);if(md(l)!==1){if(re)return;if(_e)return se}if(G){I=G,R=!0;break}if(V||(V=se),ee=e.indexOf(ol,ee+1),ee===-1){I=Lw(V,A,l,s);break}}}if(t&&!R)return;const M=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),N=r(I.substring(0,f.topLevelNodeModulesIndex));if(!(po(i,N)||M&&po(r(M),N)))return;const O=I.substring(f.topLevelPackageNameIndex+1),U=FP(O);return md(l)===1&&U===O?void 0:U;function K(ee){var V,se;const G=e.substring(0,ee),re=Yr(G,"package.json");let _e=e,ye=!1;const Q=(se=(V=s.getPackageJsonInfoCache)==null?void 0:V.call(s))==null?void 0:se.getPackageJsonInfo(re);if(FF(Q)||Q===void 0&&s.fileExists(re)){const Y=(Q==null?void 0:Q.contents.packageJsonContent)||w3(s.readFile(re)),oe=h||o.impliedNodeFormat;if(mW(l)){const de=G.substring(f.topLevelPackageNameIndex+1),ie=FP(de),ge=ib(l,oe),Ne=Y!=null&&Y.exports?Oje(l,s,e,G,ie,Y.exports,ge):void 0;if(Ne)return{...Ne,verbatimFromExports:!0};if(Y!=null&&Y.exports)return{moduleFileToTry:e,blockedByExports:!0}}const he=Y!=null&&Y.typesVersions?OF(Y.typesVersions):void 0;if(he){const de=e.slice(G.length+1),ie=Pxe(de,he.paths,A,s,l);ie===void 0?ye=!0:_e=Yr(G,ie)}const Ae=(Y==null?void 0:Y.typings)||(Y==null?void 0:Y.types)||(Y==null?void 0:Y.main)||"index.js";if(No(Ae)&&!(ye&&GU(eW(he.paths),Ae))){const de=il(Ae,G,r),ie=r(_e);if(Ad(de)===Ad(ie))return{packageRootPath:G,moduleFileToTry:_e};if((Y==null?void 0:Y.type)!=="module"&&!Ic(ie,kk)&&po(ie,de)&&ri(ie)===s0(de)&&Ad(lc(ie))==="index")return{packageRootPath:G,moduleFileToTry:_e}}}else{const Y=r(_e.substring(f.packageRootIndex+1));if(Y==="index.d.ts"||Y==="index.js"||Y==="index.ts"||Y==="index.tsx")return{moduleFileToTry:_e,packageRootPath:G}}return{moduleFileToTry:_e}}}function zje(e,t){if(!e.fileExists)return;const r=ra(YN({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of r){const o=t+i;if(e.fileExists(o))return o}}function Mxe(e,t,r){return Hi(t,i=>{const o=kxe(e,i,r);return o!==void 0&&wxe(o)?void 0:o})}function Lw(e,t,r,i){if(Ic(e,[".json",".mjs",".cjs"]))return e;const o=Ad(e);if(e===o)return e;const s=t.indexOf(2),l=t.indexOf(3);if(Ic(e,[".mts",".cts"])&&l!==-1&&l<s)return e;if(Ic(e,[".d.mts",".mts",".d.cts",".cts"]))return o+_le(e,r);if(!Ic(e,[".d.ts"])&&Ic(e,[".ts"])&&e.includes(".d."))return Lxe(e);switch(t[0]){case 0:const u=Gx(o,"/index");return i&&u!==o&&zje(i,u)?o:u;case 1:return o;case 2:return o+_le(e,r);case 3:if(Tu(e)){const p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+_le(e,r)}return e;default:return C.assertNever(t[0])}}function Lxe(e){const t=lc(e);if(!Al(e,".ts")||!t.includes(".d.")||Ic(t,[".d.ts"]))return;const r=Tk(e,".ts"),i=r.substring(r.lastIndexOf("."));return r.substring(0,r.indexOf(".d."))+i}function _le(e,t){var r;return(r=hle(e,t))!=null?r:C.fail("Extension ".concat(QN(e)," is unsupported:: FileName:: ").concat(e))}function hle(e,t){const r=qg(e);switch(r){case".ts":case".d.ts":return".js";case".tsx":return t.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return r;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function kxe(e,t,r){const i=RA(t,e,t,r,!1);return _p(i)?void 0:i}function wxe(e){return po(e,"..")}var gle,vle=T({"src/compiler/moduleSpecifiers.ts"(){ta(),gle=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(gle||{})}}),h1={};X(h1,{RelativePreference:()=>gle,countPathComponents:()=>qF,forEachFileNameOfModule:()=>Dxe,getModuleSpecifier:()=>HF,getModuleSpecifierPreferences:()=>Mw,getModuleSpecifiers:()=>Axe,getModuleSpecifiersWithCacheInfo:()=>Ixe,getNodeModulesPackageName:()=>Pje,tryGetJSExtensionForFile:()=>hle,tryGetModuleSpecifiersFromCache:()=>Mje,tryGetRealFileNameForNonJsDeclarationFileName:()=>Lxe,updateModuleSpecifier:()=>Nje});var yle=T({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){vle()}});function Bje(){this.flags=0}function cs(e){return e.id||(e.id=Sle,Sle++),e.id}function Ta(e){return e.id||(e.id=Ele,Ele++),e.id}function Yq(e,t){const r=$g(e);return r===1||t&&r===2}function ble(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,u=uu.getSymbolConstructor(),p=uu.getTypeConstructor(),h=uu.getSignatureConstructor(),f=0,b=0,A=0,I=0,R=0,M=0,N,O,U=!1,K=ua(),ee=[1],V=e.getCompilerOptions(),se=ls(V),G=wu(V),re=!!V.experimentalDecorators,_e=dP(V),ye=Hoe(V),Q=FS(V),Y=fd(V,"strictNullChecks"),oe=fd(V,"strictFunctionTypes"),he=fd(V,"strictBindCallApply"),Ae=fd(V,"strictPropertyInitialization"),de=fd(V,"noImplicitAny"),ie=fd(V,"noImplicitThis"),ge=fd(V,"useUnknownInCatchVariables"),Ne=!!V.keyofStringsOnly,qe=Ne?1:0,Ee=V.suppressExcessPropertyErrors?0:8192,Me=V.exactOptionalPropertyTypes,Ce=ght(),Oe=Yyt(),At=X_(),be=ua(),Ue=Za(4,"undefined");Ue.declarations=[];var it=Za(1536,"globalThis",8);it.exports=be,it.declarations=[],be.set(it.escapedName,it);var Ft=Za(4,"arguments"),gt=Za(4,"require"),Qe=V.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",It=!V.verbatimModuleSyntax||!!V.importsNotUsedAsValues,on,$t,Cn=0,Hn,yn=0;const tn={getNodeCount:()=>od(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>od(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>od(e.getSourceFiles(),(n,a)=>n+a.symbolCount,b),getTypeCount:()=>f,getInstantiationCount:()=>A,getRelationCacheSizes:()=>({assignable:qd.size,identity:sp.size,subtype:kh.size,strictSubtype:Bf.size}),isUndefinedSymbol:n=>n===Ue,isArgumentsSymbol:n=>n===Ft,isUnknownSymbol:n=>n===pt,getMergedSymbol:ss,getDiagnostics:n7e,getGlobalDiagnostics:pyt,getRecursionIdentity:Tee,getUnmatchedProperties:Yve,getTypeOfSymbolAtLocation:(n,a)=>{const c=Do(a);return c?oft(n,c):_t},getTypeOfSymbol:dr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const c=Do(n,Io);return c===void 0?C.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(C.assert(hp(c,c.parent)),M2(c,hl(a)))},getDeclaredTypeOfSymbol:Zs,getPropertiesOfType:bs,getPropertyOfType:(n,a)=>ba(n,hl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{const d=Do(c);if(!d)return;const _=hl(a),y=ete(_,d);return y?wye(n,y):void 0},getTypeOfPropertyOfType:(n,a)=>Ke(n,hl(a)),getIndexInfoOfType:(n,a)=>Cg(n,a===0?ke:Tt),getIndexInfosOfType:vd,getIndexInfosOfIndexSymbol:Uge,getSignaturesOfType:Ko,getIndexTypeOfType:(n,a)=>fE(n,a===0?ke:Tt),getIndexType:n=>eh(n),getBaseTypes:dp,getBaseTypeOfLiteralType:Ev,getWidenedType:Xp,getTypeFromTypeNode:n=>{const a=Do(n,Ui);return a?Ti(a):_t},getParameterType:b_,getParameterIdentifierInfoAtPosition:w_t,getPromisedTypeOfPromise:i6,getAwaitedType:n=>dA(n),getReturnTypeOfSignature:ms,isNullableType:oB,getNullableType:j9,getNonNullableType:Sv,getNonOptionalType:Ree,getTypeArguments:Js,typeToTypeNode:At.typeToTypeNode,indexInfoToIndexSignatureDeclaration:At.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:At.signatureToSignatureDeclaration,symbolToEntityName:At.symbolToEntityName,symbolToExpression:At.symbolToExpression,symbolToNode:At.symbolToNode,symbolToTypeParameterDeclarations:At.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:At.symbolToParameterDeclaration,typeParameterToDeclaration:At.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const c=Do(n);return c?fyt(c,a):[]},getSymbolAtLocation:n=>{const a=Do(n);return a?Jm(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=Do(n);return a?Eyt(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=Do(n);return a?Syt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=Do(n,Ku);return a?Tyt(a):void 0},getExportSymbolOfSymbol(n){return ss(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=Do(n);return a?xx(a):_t},getTypeOfAssignmentPattern:n=>{const a=Do(n,gN);return a&&Nte(a)||_t},getPropertySymbolOfDestructuringAssignment:n=>{const a=Do(n,je);return a?Ayt(a):void 0},signatureToString:(n,a,c,d)=>zh(n,Do(a),c,d),typeToString:(n,a,c)=>Un(n,Do(a),c),symbolToString:(n,a,c,d)=>Si(n,Do(a),c,d),typePredicateToString:(n,a,c)=>Bh(n,Do(a),c),writeSignature:(n,a,c,d,_)=>zh(n,Do(a),c,d,_),writeType:(n,a,c,d)=>Un(n,Do(a),c,d),writeSymbol:(n,a,c,d,_)=>Si(n,Do(a),c,d,_),writeTypePredicate:(n,a,c,d)=>Bh(n,Do(a),c,d),getAugmentedPropertiesOfType:Obe,getRootSymbols:u7e,getSymbolOfExpando:cte,getContextualType:(n,a)=>{const c=Do(n,bt);if(c)return a&4?ho(c,()=>Yd(c,a)):Yd(c,a)},getContextualTypeForObjectLiteralElement:n=>{const a=Do(n,Bg);return a?Eye(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const c=Do(n,WE);return c&&bye(c,a)},getContextualTypeForJsxAttribute:n=>{const a=Do(n,M4);return a&&A3e(a,void 0)},isContextSensitive:Kf,getTypeOfPropertyOfContextualType:SE,getFullyQualifiedName:qp,getResolvedSignature:(n,a,c)=>Gi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:en,getResolvedSignatureForSignatureHelp:(n,a,c)=>gi(n,()=>Gi(n,a,c,16)),getExpandedParameters:I8e,hasEffectiveRestParameter:Kh,containsArgumentsReference:Gge,getConstantValue:n=>{const a=Do(n,_7e);return a?Wbe(a):void 0},isValidPropertyAccess:(n,a)=>{const c=Do(n,Jre);return!!c&&Umt(c,hl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{const d=Do(n,Fr);return!!d&&eWe(d,a,c)},getSignatureFromDeclaration:n=>{const a=Do(n,Qo);return a?gm(a):void 0},isImplementationOfOverload:n=>{const a=Do(n,Qo);return a?f7e(a):void 0},getImmediateAliasedSymbol:xye,getAliasedSymbol:Bc,getEmitResolver:ly,getExportsOfModule:wT,getExportsAndPropertiesOfModule:pC,forEachExportAndPropertyOfModule:fC,getSymbolWalker:ple(Rct,Jf,ms,dp,h_,dr,Hm,Ld,Vp,Js),getAmbientModules:zbt,getJsxIntrinsicTagNamesAt:Tmt,isOptionalParameter:n=>{const a=Do(n,Io);return a?C8(a):!1},tryGetMemberInModuleExports:(n,a)=>OT(hl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>mC(hl(n),a),tryFindAmbientModule:n=>XZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>XZ(n,!1),getApparentType:kd,getUnionType:Zr,isTypeAssignableTo:Sa,createAnonymousType:Fs,createSignature:Dg,createSymbol:Za,createIndexInfo:Hh,getAnyType:()=>j,getStringType:()=>ke,getStringLiteralType:Xd,getNumberType:()=>Tt,getNumberLiteralType:v_,getBigIntType:()=>kt,createPromiseType:hB,createArrayType:Vu,getElementTypeOfArrayType:V9,getBooleanType:()=>ai,getFalseType:n=>n?nn:En,getTrueType:n=>n?nr:lr,getVoidType:()=>Kn,getUndefinedType:()=>We,getNullType:()=>fe,getESSymbolType:()=>si,getNeverType:()=>Hr,getOptionalType:()=>q,getPromiseType:()=>x9(!1),getPromiseLikeType:()=>p6e(!1),getAsyncIterableType:()=>{const n=oee(!1);if(n!==Mo)return n},isSymbolAccessible:Ni,isArrayType:Yf,isTupleType:ja,isArrayLikeType:by,isEmptyAnonymousObjectType:Jh,isTypeInvalidDueToUnionDiscriminant:lct,getExactOptionalProperties:wdt,getAllPossiblePropertiesOfTypes:cct,getSuggestedSymbolForNonexistentProperty:Fye,getSuggestionForNonexistentProperty:zye,getSuggestedSymbolForNonexistentJSXAttribute:Q3e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Bye(n,hl(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Bmt(n,hl(a),c),getSuggestedSymbolForNonexistentModule:nte,getSuggestionForNonexistentExport:Gmt,getSuggestedSymbolForNonexistentClassMember:$3e,getBaseConstraintOfType:Gu,getDefaultFromTypeParameter:n=>n&&n.flags&262144?JT(n):void 0,resolveName(n,a,c,d){return yl(a,hl(n),c,void 0,void 0,!1,d)},getJsxNamespace:n=>ji(X0(n)),getJsxFragmentFactory:n=>{const a=zbe(n);return a&&ji(Vp(a).escapedText)},getAccessibleSymbolChain:Rb,getTypePredicateOfSignature:Jf,resolveExternalModuleName:n=>{const a=Do(n,bt);return a&&gd(a,a,!0)},resolveExternalModuleSymbol:Pp,tryGetThisTypeAt:(n,a,c)=>{const d=Do(n);return d&&hye(d,a,c)},getTypeArgumentConstraint:n=>{const a=Do(n,Ui);return a&&Xht(a)},getSuggestionDiagnostics:(n,a)=>{const c=Do(n,Zi)||C.fail("Could not determine parsed source file.");if(ZN(c,V,e))return et;let d;try{return i=a,kbe(c),C.assert(!!(Qr(c).flags&1)),d=Ur(d,vT.getDiagnostics(c.fileName)),vFe(t7e(c),(_,y,x)=>{!sR(_)&&!e7e(y,!!(_.flags&33554432))&&(d||(d=[])).push({...x,category:2})}),d||et}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(tn)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:wr,isDeclarationVisible:f_,isPropertyAccessible:Vye,getTypeOnlyAliasDeclaration:Gf,getMemberOverrideModifierStatus:Rvt,isTypeParameterPossiblyReferenced:L9,typeHasCallOrConstructSignatures:Pte};function en(n,a){const c=new Set,d=[];ho(a,()=>Gi(n,d,void 0,0));for(const _ of d)c.add(_);d.length=0,gi(a,()=>Gi(n,d,void 0,0));for(const _ of d)c.add(_);return Wo(c)}function gi(n,a){if(n=zn(n,dj),n){const c=[],d=[];for(;n;){const y=Qr(n);if(c.push([y,y.resolvedSignature]),y.resolvedSignature=void 0,e1(n)){const x=Xi(xr(n)),k=x.type;d.push([x,k]),x.type=void 0}n=zn(n.parent,dj)}const _=a();for(const[y,x]of c)y.resolvedSignature=x;for(const[y,x]of d)y.type=x;return _}return a()}function ho(n,a){const c=zn(n,WE);if(c){let _=n;do Qr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}U=!0;const d=gi(n,a);if(U=!1,c){let _=n;do Qr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return d}function Gi(n,a,c,d){const _=Do(n,WE);on=c;const y=_?WC(_,a,d):void 0;return on=void 0,y}var xo=new Map,Qn=new Map,Di=new Map,Ir=new Map,Xt=new Map,nt=new Map,Bt=new Map,Dn=new Map,oi=new Map,yi=new Map,eo=new Map,Ro=new Map,fa=new Map,Fa=new Map,An=new Map,wn=[],Je=new Map,mt=new Set,pt=Za(4,"unknown"),Pt=Za(0,"__resolving__"),le=new Map,Fe=new Map,dt=new Set,j=fc(1,"any"),ot=fc(1,"any",262144,"auto"),Dt=fc(1,"any",void 0,"wildcard"),Ye=fc(1,"any",void 0,"blocked string"),_t=fc(1,"error"),Gt=fc(1,"unresolved"),gn=fc(1,"any",65536,"non-inferrable"),hn=fc(1,"intrinsic"),dn=fc(2,"unknown"),H=fc(2,"unknown",void 0,"non-null"),We=fc(32768,"undefined"),Lt=Y?We:fc(32768,"undefined",65536,"widening"),L=fc(32768,"undefined",void 0,"missing"),me=Me?L:We,q=fc(32768,"undefined",void 0,"optional"),fe=fc(65536,"null"),Ve=Y?fe:fc(65536,"null",65536,"widening"),ke=fc(4,"string"),Tt=fc(8,"number"),kt=fc(64,"bigint"),nn=fc(512,"false",void 0,"fresh"),En=fc(512,"false"),nr=fc(512,"true",void 0,"fresh"),lr=fc(512,"true");nr.regularType=lr,nr.freshType=nr,lr.regularType=lr,lr.freshType=nr,nn.regularType=En,nn.freshType=nn,En.regularType=En,En.freshType=nn;var ai=Zr([En,lr]),si=fc(4096,"symbol"),Kn=fc(16384,"void"),Hr=fc(131072,"never"),bo=fc(131072,"never",262144,"silent"),wi=fc(131072,"never",void 0,"implicit"),vi=fc(131072,"never",void 0,"unreachable"),ga=fc(67108864,"object"),Ja=Zr([ke,Tt]),Qt=Zr([ke,Tt,si]),va=Ne?ke:Qt,Wl=Zr([Tt,kt]),to=Zr([ke,Tt,ai,kt,fe,We]),za=XT(["",""],[Tt]),La=M9(n=>n.flags&262144?ldt(n):n,()=>"(restrictive mapper)"),ys=M9(n=>n.flags&262144?Dt:n,()=>"(permissive mapper)"),tc=fc(131072,"never",void 0,"unique literal"),ao=M9(n=>n.flags&262144?tc:n,()=>"(unique literal mapper)"),ca,pu=M9(n=>(ca&&(n===Rp||n===Ws||n===Cc)&&ca(!0),n),()=>"(unmeasurable reporter)"),Rs=M9(n=>(ca&&(n===Rp||n===Ws||n===Cc)&&ca(!1),n),()=>"(unreliable reporter)"),ka=Fs(void 0,K,et,et,et),_l=Fs(void 0,K,et,et,et);_l.objectFlags|=2048;var wf=Za(2048,"__type");wf.members=ua();var pc=Fs(wf,K,et,et,et),Cl=Fs(void 0,K,et,et,et),cl=Y?Zr([We,fe,Cl]):dn,Mo=Fs(void 0,K,et,et,et);Mo.instantiations=new Map;var an=Fs(void 0,K,et,et,et);an.objectFlags|=262144;var Hs=Fs(void 0,K,et,et,et),iu=Fs(void 0,K,et,et,et),fu=Fs(void 0,K,et,et,et),Rp=yf(),Ws=yf();Ws.constraint=Rp;var Cc=yf(),pe=yf(),Z=yf();Z.constraint=pe;var we=A9(1,"<<unresolved>>",0,j),yt=Dg(void 0,void 0,void 0,et,j,void 0,0,0),pn=Dg(void 0,void 0,void 0,et,_t,void 0,0,0),gr=Dg(void 0,void 0,void 0,et,j,void 0,0,0),br=Dg(void 0,void 0,void 0,et,bo,void 0,0,0),qr=Hh(Tt,ke,!0),Ri=new Map,hr={get yieldType(){return C.fail("Not supported")},get returnType(){return C.fail("Not supported")},get nextType(){return C.fail("Not supported")}},Ho=Ty(j,j,j),Nl=Ty(j,j,dn),zc=Ty(Hr,j,We),Sl={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Vct,getGlobalIterableType:oee,getGlobalIterableIteratorType:jct,getGlobalGeneratorType:Uct,resolveIterationType:(n,a)=>dA(n,a,m.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:m.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:m.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:m.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Xl={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Hct,getGlobalIterableType:nve,getGlobalIterableIteratorType:qct,getGlobalGeneratorType:Jct,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:m.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:m.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:m.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Is,nc=new Map,op=[],ap,Jc,Cd,Pe,Wt,qn,Eo,Xo,ea,rc,Sc,ul,vl,Ul,ic,Kc,ff,jd,Nd,Of,U_,Mh,ev,Bu,tv,Dp,vg,Ud,te,lt,zt,Jt,F,De,st,Vt,ir,ni,Xr,so,Ba,Ga,Fl,mu,Nc,Cp,Hd,pb,ps,Wf,Ff,Vi,Lh,yg,zf,fb,mb,mf=new Map,H_=0,_f=0,nv=0,ze=!1,Ze=0,Nt,Ut,vn,Jn=[],bn=[],$n=[],fi=0,cr=[],ei=[],fr=0,Yo=Xd(""),Qa=v_(0),Zu=uee({negative:!1,base10Value:"0"}),_u=[],rv=[],H0=[],JI=0,q0=!1,ZD=0,eC=10,tC=[],hT=[],D1=[],KI=[],nC=[],XI=[],YI=[],$I=[],QI=[],gT=[],ZI=[],C1=[],N1=[],_b=[],hb=[],bg=[],J0=[],os=DR(),vT=DR(),rC=Fh(),K0,iv,kh=new Map,Bf=new Map,qd=new Map,Np=new Map,sp=new Map,sy=new Map,yT=ua();yT.set(Ue.escapedName,Ue);var iC=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",V.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return $yt(),tn;function ex(n){return n?An.get(n):void 0}function gb(n,a){return n&&An.set(n,a),a}function X0(n){if(n){const a=jn(n);if(a)if(hI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const c=a.pragmas.get("jsxfrag");if(c){const _=Ao(c)?c[0]:c;if(a.localJsxFragmentFactory=bI(_.arguments.factory,se),rt(a.localJsxFragmentFactory,Tc,Zd),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Vp(a.localJsxFragmentFactory).escapedText}const d=zbe(n);if(d)return a.localJsxFragmentFactory=d,a.localJsxFragmentNamespace=Vp(d).escapedText}else{const c=tx(a);if(c)return a.localJsxNamespace=c}}return K0||(K0="React",V.jsxFactory?(iv=bI(V.jsxFactory,se),rt(iv,Tc),iv&&(K0=Vp(iv).escapedText)):V.reactNamespace&&(K0=hl(V.reactNamespace))),iv||(iv=w.createQualifiedName(w.createIdentifier(ji(K0)),"createElement")),K0}function tx(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const c=Ao(a)?a[0]:a;if(n.localJsxFactory=bI(c.arguments.factory,se),rt(n.localJsxFactory,Tc,Zd),n.localJsxFactory)return n.localJsxNamespace=Vp(n.localJsxFactory).escapedText}}function Tc(n){return bh(n,-1,-1),xn(n,Tc,void 0)}function ly(n,a){return n7e(n,a),Oe}function nx(n,a,...c){const d=n?Or(n,a,...c):Jl(a,...c),_=os.lookup(d);return _||(os.add(d),d)}function l_(n,a,c,...d){const _=Xe(a,c,...d);return _.skippedOn=n,_}function bT(n,a,...c){return n?Or(n,a,...c):Jl(a,...c)}function Xe(n,a,...c){const d=bT(n,a,...c);return os.add(d),d}function c_(n,a){n?os.add(a):vT.add({...a,category:2})}function hu(n,a,c,...d){if(a.pos<0||a.end<0){if(!n)return;const _=jn(a);c_(n,"message"in c?eu(_,0,0,c,...d):wj(_,c));return}c_(n,"message"in c?Or(a,c,...d):Gg(jn(a),a,c))}function Y0(n,a,c,...d){const _=Xe(n,c,...d);if(a){const y=Or(n,m.Did_you_forget_to_use_await);Oa(_,y)}return _}function rx(n,a){const c=Array.isArray(n)?He(n,$V):$V(n);return c&&Oa(a,Or(c,m.The_declaration_was_marked_as_deprecated_here)),vT.add(a),a}function vb(n){const a=Pd(n);return a&&Le(n.declarations)>1?a.flags&64?St(n.declarations,cy):Yn(n.declarations,cy):!!n.valueDeclaration&&cy(n.valueDeclaration)||Le(n.declarations)&&Yn(n.declarations,cy)}function cy(n){return!!(aS(n)&536870912)}function uy(n,a,c){const d=Or(n,m._0_is_deprecated,c);return rx(a,d)}function P2(n,a,c,d){const _=c?Or(n,m.The_signature_0_of_1_is_deprecated,d,c):Or(n,m._0_is_deprecated,d);return rx(a,_)}function Za(n,a,c){b++;const d=new u(n|33554432,a);return d.links=new Ile,d.links.checkFlags=c||0,d}function u_(n,a){const c=Za(1,n);return c.links.type=a,c}function ET(n,a){const c=Za(4,n);return c.links.type=a,c}function ST(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function $0(n,a){a.mergeId||(a.mergeId=Tle,Tle++),tC[a.mergeId]=n}function TT(n){const a=Za(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),$0(a,n),a}function mm(n,a,c=!1){if(!(n.flags&ST(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const _=Hl(n);if(_===pt)return a;n=TT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&YL(n,a.valueDeclaration),Ur(n.declarations,a.declarations),a.members&&(n.members||(n.members=ua()),d_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=ua()),d_(n.exports,a.exports,c)),c||$0(n,a)}else if(n.flags&1024)n!==it&&Xe(a.declarations&&Po(a.declarations[0]),m.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Si(n));else{const _=!!(n.flags&384||a.flags&384),y=!!(n.flags&2||a.flags&2),x=_?m.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:y?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0,k=a.declarations&&jn(a.declarations[0]),z=n.declarations&&jn(n.declarations[0]),J=RL(k,V.checkJs),ne=RL(z,V.checkJs),Se=Si(a);if(k&&z&&Is&&!_&&k!==z){const ve=Og(k.path,z.path)===-1?k:z,Ge=ve===k?z:k,vt=i0(Is,"".concat(ve.path,"|").concat(Ge.path),()=>({firstFile:ve,secondFile:Ge,conflictingSymbols:new Map})),xt=i0(vt.conflictingSymbols,Se,()=>({isBlockScoped:y,firstFileLocations:[],secondFileLocations:[]}));J||d(xt.firstFileLocations,a),ne||d(xt.secondFileLocations,n)}else J||_m(a,x,Se,n),ne||_m(n,x,Se,a)}return n;function d(_,y){if(y.declarations)for(const x of y.declarations)Tf(_,x)}}function _m(n,a,c,d){He(n.declarations,_=>{ov(_,a,c,d.declarations)})}function ov(n,a,c,d){const _=(y0(n,!1)?Hj(n):Po(n))||n,y=nx(_,a,c);for(const x of d||et){const k=(y0(x,!1)?Hj(x):Po(x))||x;if(k===_)continue;y.relatedInformation=y.relatedInformation||[];const z=Or(k,m._0_was_also_declared_here,c),J=Or(k,m.and_here);Le(y.relatedInformation)>=5||St(y.relatedInformation,ne=>KN(ne,J)===0||KN(ne,z)===0)||Oa(y,Le(y.relatedInformation)?J:z)}}function ix(n,a){if(!(n!=null&&n.size))return a;if(!(a!=null&&a.size))return n;const c=ua();return d_(c,n),d_(c,a),c}function d_(n,a,c=!1){a.forEach((d,_)=>{const y=n.get(_);n.set(_,y?mm(y,d,c):ss(d))})}function oC(n){var a,c,d;const _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){C.assert(_.symbol.declarations.length>1);return}if(R_(_))d_(be,_.symbol.exports);else{const y=n.parent.parent.flags&33554432?void 0:m.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let x=cv(n,n,y,!0);if(!x)return;if(x=Pp(x),x.flags&1920)if(St(Jc,k=>x===k.symbol)){const k=mm(_.symbol,x,!0);Cd||(Cd=new Map),Cd.set(n.text,k)}else{if((c=x.exports)!=null&&c.get("__export")&&((d=_.symbol.exports)!=null&&d.size)){const k=Age(x,"resolvedExports");for(const[z,J]of Wo(_.symbol.exports.entries()))k.has(z)&&!x.exports.has(z)&&mm(k.get(z),J)}mm(x,_.symbol)}else Xe(n,m.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function P1(n,a,c){a.forEach((_,y)=>{const x=n.get(y);x?He(x.declarations,d(ji(y),c)):n.set(y,_)});function d(_,y){return x=>os.add(Or(x,y,_))}}function Xi(n){var c;if(n.flags&33554432)return n.links;const a=Ta(n);return(c=hT[a])!=null?c:hT[a]=new Ile}function Qr(n){const a=cs(n);return D1[a]||(D1[a]=new Bje)}function wh(n){return n.kind===312&&!zp(n)}function Jd(n,a,c){if(c){const d=ss(n.get(a));if(d&&(C.assert((xl(d)&1)===0,"Should never get an instantiated symbol here."),d.flags&c||d.flags&2097152&&Iu(d)&c))return d}}function M2(n,a){const c=n.parent,d=n.parent.parent,_=Jd(c.locals,a,111551),y=Jd(Fb(d.symbol),a,111551);return _&&y?[_,y]:C.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function av(n,a){const c=jn(n),d=jn(a),_=vh(n);if(c!==d){if(G&&(c.externalModuleIndicator||d.externalModuleIndicator)||!Os(V)||kS(a)||n.flags&33554432||x(a,n))return!0;const z=e.getSourceFiles();return z.indexOf(c)<=z.indexOf(d)}if(a.flags&16777216||kS(a)||rye(a))return!0;if(n.pos<=a.pos&&!(Uo(n)&&FL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){const z=S0(a,208);return z?zn(z,ns)!==zn(n,ns)||n.pos<z.pos:av(S0(n,260),a)}else{if(n.kind===260)return!y(n,a);if(ui(n))return!zn(a,z=>rs(z)&&z.parent.parent===n);if(Uo(n))return!k(n,a,!1);if(hp(n,n.parent))return!(ye&&cu(n)===cu(a)&&x(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(x(a,n))return ye&&cu(n)&&(Uo(n)||hp(n,n.parent))?!k(n,a,!0):!0;return!1;function y(z,J){switch(z.parent.parent.kind){case 243:case 248:case 250:if(L1(J,z,_))return!0;break}const ne=z.parent.parent;return rR(ne)&&L1(J,ne.expression,_)}function x(z,J){return!!zn(z,ne=>{if(ne===_)return"quit";if(Qo(ne))return!0;if(Rl(ne))return J.pos<z.pos;const Se=ti(ne.parent,Uo);if(Se&&Se.initializer===ne){if(aa(ne.parent)){if(J.kind===174)return!0;if(Uo(J)&&cu(z)===cu(J)){const Ge=J.name;if(je(Ge)||Ji(Ge)){const vt=dr(xr(J)),xt=rr(J.parent.members,Rl);if(Lvt(Ge,vt,xt,J.parent.pos,ne.pos))return!0}}}else if(!(J.kind===172&&!aa(J))||cu(z)!==cu(J))return!0}return!1})}function k(z,J,ne){return J.end>z.end?!1:zn(J,ve=>{if(ve===z)return"quit";switch(ve.kind){case 219:return!0;case 172:return ne&&(Uo(z)&&ve.parent===z.parent||hp(z,z.parent)&&ve.parent===z.parent.parent)?"quit":!0;case 241:switch(ve.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function L2(n,a,c){const d=ls(V),_=a;if(Io(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&d>=2){const k=Qr(_);return k.declarationRequiresScopeChange===void 0&&(k.declarationRequiresScopeChange=He(_.parameters,y)||!1),!k.declarationRequiresScopeChange}return!1;function y(k){return x(k.name)||!!k.initializer&&x(k.initializer)}function x(k){switch(k.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return x(k.name);case 172:return vc(k)?!ye:x(k.name);default:return tj(k)||qu(k)?d<7:ns(k)&&k.dotDotDotToken&&dm(k.parent)?d<4:Ui(k)?!1:Vo(k,x)||!1}}}function yb(n){return bS(n)&&zg(n.type)||xP(n)&&zg(n.typeExpression)}function yl(n,a,c,d,_,y,x=!1,k=!0){return Up(n,a,c,d,_,y,x,k,Jd)}function Up(n,a,c,d,_,y,x,k,z){var J,ne,Se;const ve=n;let Ge,vt,xt,cn,sn,er=!1;const Wn=n;let mn,Fn=!1;e:for(;n;){if(a==="const"&&yb(n))return;if(SL(n)&&vt&&n.name===vt&&(vt=n,n=n.parent),_h(n)&&n.locals&&!wh(n)&&(Ge=z(n.locals,a,c))){let Vn=!0;if(Qo(n)&&vt&&vt!==n.body?(c&Ge.flags&788968&&vt.kind!==327&&(Vn=Ge.flags&262144?vt===n.type||vt.kind===169||vt.kind===348||vt.kind===349||vt.kind===168:!1),c&Ge.flags&3&&(L2(Ge,n,vt)?Vn=!1:Ge.flags&1&&(Vn=vt.kind===169||vt===n.type&&!!zn(Ge.valueDeclaration,Io)))):n.kind===194&&(Vn=vt===n.trueType),Vn)break e;Ge=void 0}switch(er=er||hm(n,vt),n.kind){case 312:if(!zp(n))break;Fn=!0;case 267:const Vn=((J=xr(n))==null?void 0:J.exports)||K;if(n.kind===312||Ql(n)&&n.flags&33554432&&!R_(n)){if(Ge=Vn.get("default")){const mo=LR(Ge);if(mo&&Ge.flags&c&&mo.escapedName===a)break e;Ge=void 0}const tr=Vn.get(a);if(tr&&tr.flags===2097152&&(fl(tr,281)||fl(tr,280)))break}if(a!=="default"&&(Ge=z(Vn,a,c&2623475)))if(Zi(n)&&n.commonJsModuleIndicator&&!((ne=Ge.declarations)!=null&&ne.some(im)))Ge=void 0;else break e;break;case 266:if(Ge=z(((Se=xr(n))==null?void 0:Se.exports)||K,a,c&8)){d&&um(V)&&!(n.flags&33554432)&&jn(n)!==jn(Ge.valueDeclaration)&&Xe(Wn,m.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,ji(a),Qe,"".concat(ji(gf(n).escapedName),".").concat(ji(a)));break e}break;case 172:if(!aa(n)){const tr=uv(n.parent);tr&&tr.locals&&z(tr.locals,a,c&111551)&&(C.assertNode(n,Uo),cn=n)}break;case 263:case 231:case 264:if(Ge=z(xr(n).members||K,a,c&788968)){if(!sv(Ge,n)){Ge=void 0;break}if(vt&&aa(vt)){d&&Xe(Wn,m.Static_members_cannot_reference_class_type_parameters);return}break e}if(tu(n)&&c&32){const tr=n.name;if(tr&&a===tr.escapedText){Ge=n.symbol;break e}}break;case 233:if(vt===n.expression&&n.parent.token===96){const tr=n.parent.parent;if(ui(tr)&&(Ge=z(xr(tr).members,a,c&788968))){d&&Xe(Wn,m.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(mn=n.parent.parent,(ui(mn)||mn.kind===264)&&(Ge=z(xr(mn).members,a,c&788968))){d&&Xe(Wn,m.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(ls(V)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a==="arguments"){Ge=Ft;break e}break;case 218:if(c&3&&a==="arguments"){Ge=Ft;break e}if(c&16){const tr=n.name;if(tr&&a===tr.escapedText){Ge=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(Zc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:const Gn=TR(n);Gn&&(n=Gn.parent);break;case 169:vt&&(vt===n.initializer||vt===n.name&&Zo(vt))&&(sn||(sn=n));break;case 208:vt&&(vt===n.initializer||vt===n.name&&Zo(vt))&&JE(n)&&!sn&&(sn=n);break;case 195:if(c&262144){const tr=n.typeParameter.name;if(tr&&a===tr.escapedText){Ge=n.typeParameter.symbol;break e}}break;case 281:vt&&vt===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}bb(n)&&(xt=n),vt=n,n=pm(n)?g3(n)||n.parent:(o_(n)||uF(n))&&b0(n)||n.parent}if(y&&Ge&&(!xt||Ge!==xt.symbol)&&(Ge.isReferenced|=c),!Ge){if(vt&&(C.assertNode(vt,Zi),vt.commonJsModuleIndicator&&a==="exports"&&c&vt.symbol.flags))return vt.symbol;x||(Ge=z(be,a,c))}if(!Ge&&ve&&sr(ve)&&ve.parent&&Td(ve.parent,!1))return gt;function Pn(){return cn&&!ye?(Xe(Wn,Wn&&cn.type&&sL(cn.type,Wn.pos)?m.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:m.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ns(cn.name),Fm(_)),!0):!1}if(Ge){if(d&&Pn())return}else{d&&r(()=>{if(!Wn||Wn.parent.kind!==331&&!M1(Wn,a,_)&&!Pn()&&!AT(Wn)&&!ox(Wn,a,c)&&!dy(Wn,a)&&!IT(Wn,a,c)&&!aC(Wn,a,c)&&!Tg(Wn,a,c)){let Vn,Gn;if(_&&(Gn=Fmt(_),Gn&&Xe(Wn,d,Fm(_),Gn)),!Gn&&k&&ZD<eC&&(Vn=Bye(ve,a,c),(Vn==null?void 0:Vn.valueDeclaration)&&ku(Vn.valueDeclaration)&&R_(Vn.valueDeclaration)&&(Vn=void 0),Vn)){const mo=Si(Vn),_o=Wye(ve,Vn,!1),Fo=c===1920||_&&typeof _!="string"&&Ys(_)?m.Cannot_find_namespace_0_Did_you_mean_1:_o?m.Could_not_find_name_0_Did_you_mean_1:m.Cannot_find_name_0_Did_you_mean_1,vo=bT(Wn,Fo,Fm(_),mo);c_(!_o,vo),Vn.valueDeclaration&&Oa(vo,Or(Vn.valueDeclaration,m._0_is_declared_here,mo))}!Vn&&!Gn&&_&&Xe(Wn,d,Fm(_)),ZD++}});return}return d&&r(()=>{var Vn;if(Wn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){const Gn=vf(Ge);(Gn.flags&2||Gn.flags&32||Gn.flags&384)&&Qs(Gn,Wn)}if(Ge&&Fn&&(c&111551)===111551&&!(ve.flags&16777216)){const Gn=ss(Ge);Le(Gn.declarations)&&Yn(Gn.declarations,tr=>Zk(tr)||Zi(tr)&&!!tr.symbol.globalExports)&&hu(!V.allowUmdGlobalAccess,Wn,m._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,ji(a))}if(Ge&&sn&&!er&&(c&111551)===111551){const Gn=ss(qZ(Ge)),tr=N_(sn);Gn===xr(sn)?Xe(Wn,m.Parameter_0_cannot_reference_itself,Ns(sn.name)):Gn.valueDeclaration&&Gn.valueDeclaration.pos>sn.pos&&tr.parent.locals&&z(tr.parent.locals,Gn.escapedName,c)===Gn&&Xe(Wn,m.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ns(sn.name),Ns(Wn))}if(Ge&&Wn&&c&111551&&Ge.flags&2097152&&!(Ge.flags&111551)&&!I0(Wn)){const Gn=Gf(Ge,111551);if(Gn){const tr=Gn.kind===281||Gn.kind===278||Gn.kind===280?m._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:m._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,mo=ji(a);Eg(Xe(Wn,tr,mo),Gn,mo)}}if(V.isolatedModules&&Ge&&Fn&&(c&111551)===111551){const tr=z(be,a,c)===Ge&&Zi(vt)&&vt.locals&&z(vt.locals,a,-111552);if(tr){const mo=(Vn=tr.declarations)==null?void 0:Vn.find(_o=>_o.kind===276||_o.kind===273||_o.kind===274||_o.kind===271);mo&&!_L(mo)&&Xe(mo,m.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,ji(a))}}}),Ge}function Eg(n,a,c){return a?Oa(n,Or(a,a.kind===281||a.kind===278||a.kind===280?m._0_was_exported_here:m._0_was_imported_here,c)):n}function hm(n,a){return n.kind!==219&&n.kind!==218?lI(n)||(js(n)||n.kind===172&&!aa(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||$r(n,1024)?!0:!xS(n)}function bb(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Fm(n){return No(n)?ji(n):Ns(n)}function sv(n,a){if(n.declarations){for(const c of n.declarations)if(c.kind===168&&(pm(c.parent)?NS(c.parent):c.parent)===a)return!(pm(c.parent)&&Tn(c.parent.parent.tags,im))}return!1}function M1(n,a,c){if(!je(n)||n.escapedText!==a||r7e(n)||kS(n))return!1;const d=Fd(n,!1,!1);let _=d;for(;_;){if(ui(_.parent)){const y=xr(_.parent);if(!y)break;const x=dr(y);if(ba(x,a))return Xe(n,m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Fm(c),Si(y)),!0;if(_===d&&!aa(_)){const k=Zs(y).thisType;if(ba(k,a))return Xe(n,m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Fm(c)),!0}}_=_.parent}return!1}function AT(n){const a=Sg(n);return a&&qs(a,64,!0)?(Xe(n,m.Cannot_extend_an_interface_0_Did_you_mean_implements,gc(a)),!0):!1}function Sg(n){switch(n.kind){case 80:case 211:return n.parent?Sg(n.parent):void 0;case 233:if(jl(n.expression))return n.expression;default:return}}function ox(n,a,c){const d=1920|(sr(n)?111551:0);if(c===d){const _=Hl(yl(n,a,788968&~d,void 0,void 0,!1)),y=n.parent;if(_){if(Id(y)){C.assert(y.left===n,"Should only be resolving left side of qualified name as a namespace");const x=y.right.escapedText;if(ba(Zs(_),x))return Xe(y,m.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,ji(a),ji(x)),!0}return Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,ji(a)),!0}}return!1}function Tg(n,a,c){if(c&788584){const d=Hl(yl(n,a,111127,void 0,void 0,!1));if(d&&!(d.flags&1920))return Xe(n,m._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,ji(a)),!0}return!1}function q_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function dy(n,a){return q_(a)&&n.parent.kind===281?(Xe(n,m.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function aC(n,a,c){if(c&111551){if(q_(a)){const y=n.parent.parent;if(y&&y.parent&&of(y)){const x=y.token,k=y.parent.kind;k===264&&x===96?Xe(n,m.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,ji(a)):k===263&&x===96?Xe(n,m.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,ji(a)):k===263&&x===119&&Xe(n,m.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,ji(a))}else Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,ji(a));return!0}const d=Hl(yl(n,a,788544,void 0,void 0,!1)),_=d&&Iu(d);if(d&&_!==void 0&&!(_&111551)){const y=ji(a);return lC(a)?Xe(n,m._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,y):sC(n,d)?Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,y,y==="K"?"P":"K"):Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,y),!0}}return!1}function sC(n,a){const c=zn(n.parent,d=>rs(d)||Ep(d)?!1:Tp(d)||"quit");if(c&&c.members.length===1){const d=Zs(a);return!!(d.flags&1048576)&&yB(d,384,!0)}return!1}function lC(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function IT(n,a,c){if(c&111127){if(Hl(yl(n,a,1024,void 0,void 0,!1)))return Xe(n,m.Cannot_use_namespace_0_as_a_value,ji(a)),!0}else if(c&788544&&Hl(yl(n,a,1536,void 0,void 0,!1)))return Xe(n,m.Cannot_use_namespace_0_as_a_type,ji(a)),!0;return!1}function Qs(n,a){var c;if(C.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const d=(c=n.declarations)==null?void 0:c.find(_=>Aj(_)||ui(_)||_.kind===266);if(d===void 0)return C.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(d.flags&33554432)&&!av(d,a)){let _;const y=Ns(Po(d));n.flags&2?_=Xe(a,m.Block_scoped_variable_0_used_before_its_declaration,y):n.flags&32?_=Xe(a,m.Class_0_used_before_its_declaration,y):n.flags&256?_=Xe(a,m.Enum_0_used_before_its_declaration,y):(C.assert(!!(n.flags&128)),um(V)&&(_=Xe(a,m.Enum_0_used_before_its_declaration,y))),_&&Oa(_,Or(d,m._0_is_declared_here,y))}}function L1(n,a,c){return!!a&&!!zn(n,d=>d===a||(d===c||Qo(d)&&(!xS(d)||Uc(d)&3)?"quit":!1))}function xT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function zm(n){return n.declarations&&ko(n.declarations,Eb)}function Eb(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&AR(n)||mr(n)&&Vl(n)===2&&AR(n)||zs(n)&&mr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&cC(n.parent.right)||n.kind===304||n.kind===303&&cC(n.initializer)||n.kind===260&&jE(n)||n.kind===208&&jE(n.parent.parent)}function cC(n){return ok(n)||Bs(n)&&ih(n)}function RT(n,a){const c=Tb(n);if(c){const _=wR(c.expression).arguments[0];return je(c.name)?Hl(ba(H8e(_),c.name.escapedText)):void 0}if(ki(n)||n.moduleReference.kind===283){const _=gd(n,Vj(n)||xN(n)),y=Pp(_);return lp(n,_,y,!1),y}const d=sx(n.moduleReference,a);return k2(n,d),d}function k2(n,a){if(lp(n,void 0,a,!1)&&!n.isTypeOnly){const c=Gf(xr(n)),d=c.kind===281||c.kind===278,_=d?m.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:m.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,y=d?m._0_was_exported_here:m._0_was_imported_here,x=c.kind===278?"*":ji(c.name.escapedText);Oa(Xe(n.moduleReference,_),Or(c,y,x))}}function vr(n,a,c,d){const _=n.exports.get("export="),y=_?ba(dr(_),a,!0):n.exports.get(a),x=Hl(y,d);return lp(c,y,x,!1),x}function ou(n){return wl(n)&&!n.isExportEquals||$r(n,2048)||Ku(n)||Ih(n)}function ro(n){return ds(n)?e.getModeForUsageLocation(jn(n),n):void 0}function hf(n,a){return n===99&&a===1}function py(n){return ro(n)===99&&Al(n.text,".json")}function J_(n,a,c,d){const _=n&&ro(d);if(n&&_!==void 0&&100<=G&&G<=199){const y=hf(_,n.impliedNodeFormat);if(_===99||y)return y}if(!Q)return!1;if(!n||n.isDeclarationFile){const y=vr(a,"default",void 0,!0);return!(y&&St(y.declarations,ou)||vr(a,hl("__esModule"),void 0,c))}return dd(n)?typeof n.externalModuleIndicator!="object"&&!vr(a,hl("__esModule"),void 0,c):fy(a)}function ur(n,a){const c=gd(n,n.parent.moduleSpecifier);if(c)return DT(c,n,a)}function DT(n,a,c){var d;let _;EN(n)?_=n:_=vr(n,"default",a,c);const y=(d=n.declarations)==null?void 0:d.find(Zi),x=Q0(a);if(!x)return _;const k=py(x),z=J_(y,n,c,x);if(!_&&!z&&!k)if(fy(n)&&!Q){const J=G>=5?"allowSyntheticDefaultImports":"esModuleInterop",Se=n.exports.get("export=").valueDeclaration,ve=Xe(a.name,m.Module_0_can_only_be_default_imported_using_the_1_flag,Si(n),J);Se&&Oa(ve,Or(Se,m.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,J))}else Ah(a)?Xc(n,a):CT(n,n,a,NA(a)&&a.propertyName||a.name);else if(z||k){const J=Pp(n,c)||Hl(n,c);return lp(a,n,J,!1),J}return lp(a,_,void 0,!1),_}function Q0(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return xh(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return C.assertNever(n)}}function Xc(n,a){var c,d,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))Xe(a.name,m.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Si(n),Si(a.symbol));else{const y=Xe(a.name,m.Module_0_has_no_default_export,Si(n)),x=(d=n.exports)==null?void 0:d.get("__export");if(x){const k=(_=x.declarations)==null?void 0:_.find(z=>{var J,ne;return!!(Zl(z)&&z.moduleSpecifier&&((ne=(J=gd(z,z.moduleSpecifier))==null?void 0:J.exports)!=null&&ne.has("default")))});k&&Oa(y,Or(k,m.export_Asterisk_does_not_re_export_a_default))}}}function Oh(n,a){const c=n.parent.parent.moduleSpecifier,d=gd(n,c),_=cp(d,c,a,!1);return lp(n,d,_,!1),_}function Bm(n,a){const c=n.parent.moduleSpecifier,d=c&&gd(n,c),_=c&&cp(d,c,a,!1);return lp(n,d,_,!1),_}function k1(n,a){if(n===pt&&a===pt)return pt;if(n.flags&790504)return n;const c=Za(n.flags|a.flags,n.escapedName);return C.assert(n.declarations||a.declarations),c.declarations=NE(To(n.declarations,a.declarations),Lv),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function w1(n,a,c,d){var _;if(n.flags&1536){const y=Mp(n).get(a.escapedText),x=Hl(y,d),k=(_=Xi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return lp(c,y,x,!1,k,a.escapedText),x}}function Sb(n,a){if(n.flags&3){const c=n.valueDeclaration.type;if(c)return Hl(ba(Ti(c),a))}}function lv(n,a,c=!1){var d;const _=Vj(n)||n.moduleSpecifier,y=gd(n,_),x=!Fr(a)&&a.propertyName||a.name;if(!je(x))return;const k=x.escapedText==="default"&&Q,z=cp(y,_,!1,k);if(z&&x.escapedText){if(EN(y))return y;let J;y&&y.exports&&y.exports.get("export=")?J=ba(dr(z),x.escapedText,!0):J=Sb(z,x.escapedText),J=Hl(J,c);let ne=w1(z,x,a,c);if(ne===void 0&&x.escapedText==="default"){const ve=(d=y.declarations)==null?void 0:d.find(Zi);(py(_)||J_(ve,y,c,_))&&(ne=Pp(y,c)||Hl(y,c))}const Se=ne&&J&&ne!==J?k1(J,ne):ne||J;return Se||CT(y,z,n,x),Se}}function CT(n,a,c,d){var _;const y=qp(n,c),x=Ns(d),k=nte(d,a);if(k!==void 0){const z=Si(k),J=Xe(d,m._0_has_no_exported_member_named_1_Did_you_mean_2,y,x,z);k.valueDeclaration&&Oa(J,Or(k.valueDeclaration,m._0_is_declared_here,z))}else(_=n.exports)!=null&&_.has("default")?Xe(d,m.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,y,x):Gm(c,d,x,n,y)}function Gm(n,a,c,d,_){var y,x;const k=(x=(y=ti(d.valueDeclaration,_h))==null?void 0:y.locals)==null?void 0:x.get(a.escapedText),z=d.exports;if(k){const J=z==null?void 0:z.get("export=");if(J)p_(J,k)?Z0(n,a,c,_):Xe(a,m.Module_0_has_no_exported_member_1,_,c);else{const ne=z?Tn(Bge(z),ve=>!!p_(ve,k)):void 0,Se=ne?Xe(a,m.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,Si(ne)):Xe(a,m.Module_0_declares_1_locally_but_it_is_not_exported,_,c);k.declarations&&Oa(Se,...Ot(k.declarations,(ve,Ge)=>Or(ve,Ge===0?m._0_is_declared_here:m.and_here,c)))}}else Xe(a,m.Module_0_has_no_exported_member_1,_,c)}function Z0(n,a,c,d){if(G>=5){const _=Eh(V)?m._0_can_only_be_imported_by_using_a_default_import:m._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Xe(a,_,c)}else if(sr(n)){const _=Eh(V)?m._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:m._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Xe(a,_,c)}else{const _=Eh(V)?m._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:m._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Xe(a,_,c,c,d)}}function Ag(n,a){if(np(n)&&Tr(n.propertyName||n.name)==="default"){const x=Q0(n),k=x&&gd(n,x);if(k)return DT(k,n,a)}const c=ns(n)?N_(n):n.parent.parent.parent,d=Tb(c),_=lv(c,d||n,a),y=n.propertyName||n.name;return d&&_&&je(y)?Hl(ba(dr(_),y.escapedText),a):(lp(n,void 0,_,!1),_)}function Tb(n){if(ki(n)&&n.initializer&&Fr(n.initializer))return n.initializer}function ax(n,a){if(x_(n.parent)){const c=Pp(n.parent.symbol,a);return lp(n,void 0,c,!1),c}}function eE(n,a,c){if(Tr(n.propertyName||n.name)==="default"){const _=Q0(n),y=_&&gd(n,_);if(y)return DT(y,n,!!c)}const d=n.parent.parent.moduleSpecifier?lv(n.parent.parent,n,c):qs(n.propertyName||n.name,a,!1,c);return lp(n,void 0,d,!1),d}function uC(n,a){const c=wl(n)?n.expression:n.right,d=O1(c,a);return lp(n,void 0,d,!1),d}function O1(n,a){if(tu(n))return ac(n).symbol;if(!Zd(n)&&!jl(n))return;const c=qs(n,901119,!0,a);return c||(ac(n),Qr(n).resolvedSymbol)}function NT(n,a){if(mr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return O1(n.parent.right,a)}function Hp(n,a=!1){switch(n.kind){case 271:case 260:return RT(n,a);case 273:return ur(n,a);case 274:return Oh(n,a);case 280:return Bm(n,a);case 276:case 208:return Ag(n,a);case 281:return eE(n,901119,a);case 277:case 226:return uC(n,a);case 270:return ax(n,a);case 304:return qs(n.name,901119,!0,a);case 303:return O1(n.initializer,a);case 212:case 211:return NT(n,a);default:return C.fail()}}function PT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Hl(n,a){return!a&&PT(n)?Bc(n):n}function Bc(n){C.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Xi(n);if(a.aliasTarget)a.aliasTarget===Pt&&(a.aliasTarget=pt);else{a.aliasTarget=Pt;const c=zm(n);if(!c)return C.fail();const d=Hp(c);a.aliasTarget===Pt?a.aliasTarget=d||pt:Xe(c,m.Circular_definition_of_import_alias_0,Si(n))}return a.aliasTarget}function MT(n){if(Xi(n).aliasTarget!==Pt)return Bc(n)}function Iu(n,a,c){const d=a&&Gf(n),_=d&&Zl(d),y=d&&(_?gd(d.moduleSpecifier,d.moduleSpecifier,!0):Bc(d.symbol)),x=_&&y?Wh(y):void 0;let k=c?0:n.flags,z;for(;n.flags&2097152;){const J=vf(Bc(n));if(!_&&J===y||(x==null?void 0:x.get(J.escapedName))===J)break;if(J===pt)return-1;if(J===n||z!=null&&z.has(J))break;J.flags&2097152&&(z?z.add(J):z=new Set([n,J])),k|=J.flags,n=J}return k}function lp(n,a,c,d,_,y){if(!n||Fr(n))return!1;const x=xr(n);if(h0(n)){const z=Xi(x);return z.typeOnlyDeclaration=n,!0}if(_){const z=Xi(x);return z.typeOnlyDeclaration=_,x.escapedName!==y&&(z.typeOnlyExportStarName=y),!0}const k=Xi(x);return tE(k,a,d)||tE(k,c,d)}function tE(n,a,c){var _,y;var d;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){const x=(_=(d=a.exports)==null?void 0:d.get("export="))!=null?_:a,k=x.declarations&&Tn(x.declarations,h0);n.typeOnlyDeclaration=(y=k!=null?k:Xi(x).typeOnlyDeclaration)!=null?y:!1}return!!n.typeOnlyDeclaration}function Gf(n,a){if(!(n.flags&2097152))return;const c=Xi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){const d=c.typeOnlyDeclaration.kind===278?Hl(Wh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Bc(c.typeOnlyDeclaration.symbol);return Iu(d)&a?c.typeOnlyDeclaration:void 0}}function Ab(n){if(!It)return;const a=xr(n),c=Bc(a);c&&(c===pt||Iu(a,!0)&111551&&!u6(c))&&Ib(a)}function Ib(n){C.assert(It);const a=Xi(n);if(!a.referenced){a.referenced=!0;const c=zm(n);if(!c)return C.fail();gR(c)&&Iu(Hl(n))&111551&&ac(c.moduleReference)}}function au(n){const a=Xi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function sx(n,a){return n.kind===80&&VN(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?qs(n,1920,!1,a):(C.assert(n.parent.kind===271),qs(n,901119,!1,a))}function qp(n,a){return n.parent?qp(n.parent,a)+"."+Si(n):Si(n,a,void 0,36)}function LT(n){for(;Id(n.parent);)n=n.parent;return n}function kT(n){let a=Vp(n),c=yl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Id(a.parent);){const d=dr(c);if(c=ba(d,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function qs(n,a,c,d,_){if(Gl(n))return;const y=1920|(sr(n)?a&111551:0);let x;if(n.kind===80){const k=a===y||Ys(n)?m.Cannot_find_namespace_0:F4e(Vp(n)),z=sr(n)&&!Ys(n)?dC(n,a):void 0;if(x=ss(yl(_||n,n.escapedText,a,c||z?void 0:k,n,!0,!1)),!x)return ss(z)}else if(n.kind===166||n.kind===211){const k=n.kind===166?n.left:n.expression,z=n.kind===166?n.right:n.name;let J=qs(k,y,c,!1,_);if(!J||Gl(z))return;if(J===pt)return J;if(J.valueDeclaration&&sr(J.valueDeclaration)&&md(V)!==100&&ki(J.valueDeclaration)&&J.valueDeclaration.initializer&&SWe(J.valueDeclaration.initializer)){const ne=J.valueDeclaration.initializer.arguments[0],Se=gd(ne,ne);if(Se){const ve=Pp(Se);ve&&(J=ve)}}if(x=ss(Jd(Mp(J),z.escapedText,a)),!x&&J.flags&2097152&&(x=ss(Jd(Mp(Bc(J)),z.escapedText,a))),!x){if(!c){const ne=qp(J),Se=Ns(z),ve=nte(z,J);if(ve){Xe(z,m._0_has_no_exported_member_named_1_Did_you_mean_2,ne,Se,Si(ve));return}const Ge=Id(n)&<(n);if(Pe&&a&788968&&Ge&&!XR(Ge.parent)&&kT(Ge)){Xe(Ge,m._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,gp(Ge));return}if(a&1920&&Id(n.parent)){const xt=ss(Jd(Mp(J),z.escapedText,788968));if(xt){Xe(n.parent.right,m.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,Si(xt),ji(n.parent.right.escapedText));return}}Xe(z,m.Namespace_0_has_no_exported_member_1,ne,Se)}return}}else C.assertNever(n,"Unknown entity name kind.");return C.assert((xl(x)&1)===0,"Should never get an instantiated symbol here."),!Ys(n)&&Zd(n)&&(x.flags&2097152||n.parent.kind===277)&&lp(eU(n),x,void 0,!0),x.flags&a||d?x:Bc(x)}function dC(n,a){if(ree(n.parent)){const c=nE(n.parent);if(c)return yl(c,n.escapedText,a,void 0,n,!0)}}function nE(n){if(zn(n,_=>iR(_)||_.flags&16777216?im(_):"quit"))return;const c=NS(n);if(c&&nu(c)&&XL(c.expression)){const _=xr(c.expression.left);if(_)return W1(_)}if(c&&Bs(c)&&XL(c.parent)&&nu(c.parent.parent)){const _=xr(c.parent.left);if(_)return W1(_)}if(c&&(Nm(c)||bc(c))&&mr(c.parent.parent)&&Vl(c.parent.parent)===6){const _=xr(c.parent.parent.left);if(_)return W1(_)}const d=E0(n);if(d&&Qo(d)){const _=xr(d);return _&&_.valueDeclaration}}function W1(n){const a=n.parent.valueDeclaration;return a?(RN(a)?OA(a):ES(a)?UL(a):void 0)||a:void 0}function w2(n){const a=n.valueDeclaration;if(!a||!sr(a)||n.flags&524288||y0(a,!1))return;const c=ki(a)?UL(a):OA(a);if(c){const d=gf(c);if(d)return Xye(d,n)}}function gd(n,a,c){const _=md(V)===1?m.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:m.Cannot_find_module_0_or_its_corresponding_type_declarations;return cv(n,a,c?void 0:_)}function cv(n,a,c,d=!1){return ds(a)?K_(n,a.text,c,a,d):void 0}function K_(n,a,c,d,_=!1){var y,x,k,z,J,ne,Se,ve,Ge,vt,xt;if(po(a,"@types/")){const tr=m.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,mo=QC(a,"@types/");Xe(d,tr,mo,a)}const cn=XZ(a,!0);if(cn)return cn;const sn=jn(n),er=ds(n)?n:((y=Ql(n)?n:n.parent&&Ql(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:y.name)||((x=Vy(n)?n:void 0)==null?void 0:x.argument.literal)||(ki(n)&&n.initializer&&Td(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((k=zn(n,Bp))==null?void 0:k.arguments[0])||((z=zn(n,Oc))==null?void 0:z.moduleSpecifier)||((J=zn(n,v0))==null?void 0:J.moduleReference.expression)||((ne=zn(n,Zl))==null?void 0:ne.moduleSpecifier),Wn=er&&ds(er)?e.getModeForUsageLocation(sn,er):sn.impliedNodeFormat,mn=md(V),Fn=(Se=e.getResolvedModule(sn,a,Wn))==null?void 0:Se.resolvedModule,Pn=Fn&&YJ(V,Fn,sn),Vn=Fn&&(!Pn||Pn===m.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Fn.resolvedFileName);if(Vn){if(Pn&&Xe(d,Pn,a,Fn.resolvedFileName),Fn.resolvedUsingTsExtension&&Tu(a)){const tr=((ve=zn(n,Oc))==null?void 0:ve.importClause)||zn(n,Qm(ru,Zl));(tr&&!tr.isTypeOnly||zn(n,Bp))&&Xe(d,m.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Gn(C.checkDefined(k3(a))))}else if(Fn.resolvedUsingTsExtension&&!mD(V,sn.fileName)){const tr=((Ge=zn(n,Oc))==null?void 0:Ge.importClause)||zn(n,Qm(ru,Zl));if(!(tr!=null&&tr.isTypeOnly||zn(n,fg))){const mo=C.checkDefined(k3(a));Xe(d,m.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,mo)}}if(Vn.symbol){if(Fn.isExternalLibraryImport&&!$N(Fn.extension)&&lx(!1,d,sn,Wn,Fn,a),mn===3||mn===99){const tr=sn.impliedNodeFormat===1&&!zn(n,Bp)||!!zn(n,ru),mo=zn(n,_o=>fg(_o)||Zl(_o)||Oc(_o));if(tr&&Vn.impliedNodeFormat===99&&!pae(mo))if(zn(n,ru))Xe(d,m.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,a);else{let _o;const Fo=qg(sn.fileName);if(Fo===".ts"||Fo===".js"||Fo===".tsx"||Fo===".jsx"){const vo=sn.packageJsonScope,Mc=Fo===".ts"?".mts":Fo===".js"?".mjs":void 0;vo&&!vo.contents.packageJsonContent.type?Mc?_o=Bo(void 0,m.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Mc,Yr(vo.packageDirectory,"package.json")):_o=Bo(void 0,m.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Yr(vo.packageDirectory,"package.json")):Mc?_o=Bo(void 0,m.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,Mc):_o=Bo(void 0,m.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}os.add(Gg(jn(d),d,Bo(_o,m.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,a)))}}return ss(Vn.symbol)}c&&Xe(d,m.File_0_is_not_a_module,Vn.fileName);return}if(Jc){const tr=AG(Jc,mo=>mo.pattern,a);if(tr){const mo=Cd&&Cd.get(a);return ss(mo||tr.symbol)}}if(Fn&&!$N(Fn.extension)&&Pn===void 0||Pn===m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){const tr=m.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Xe(d,tr,a,Fn.resolvedFileName)}else lx(de&&!!c,d,sn,Wn,Fn,a);return}if(c){if(Fn){const tr=e.getProjectReferenceRedirect(Fn.resolvedFileName);if(tr){Xe(d,m.Output_file_0_has_not_been_built_from_source_file_1,tr,Fn.resolvedFileName);return}}if(Pn)Xe(d,Pn,a,Fn.resolvedFileName);else{const tr=Wp(a)&&!xA(a),mo=mn===3||mn===99;if(!x0(V)&&Il(a,".json")&&mn!==1&&U3(V))Xe(d,m.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Wn===99&&mo&&tr){const _o=yo(a,ri(sn.path)),Fo=(vt=iC.find(([vo,Mc])=>e.fileExists(_o+vo)))==null?void 0:vt[1];Fo?Xe(d,m.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Fo):Xe(d,m.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((xt=e.getResolvedModule(sn,a,Wn))!=null&&xt.alternateResult){const _o=z4(sn,e,a,Wn,a);hu(!0,d,Bo(_o,c,a))}else Xe(d,c,a)}}return;function Gn(tr){const mo=Tk(a,tr);if(j3(G)||Wn===99){const _o=Tu(a)&&mD(V);return mo+(tr===".mts"||tr===".d.mts"?_o?".mts":".mjs":tr===".cts"||tr===".d.mts"?_o?".cts":".cjs":_o?".ts":".js")}return mo}}function lx(n,a,c,d,{packageId:_,resolvedFileName:y},x){let k;!Qc(x)&&_&&(k=z4(c,e,x,d,_.name)),hu(n,a,Bo(k,m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,y))}function Pp(n,a){if(n!=null&&n.exports){const c=Hl(n.exports.get("export="),a),d=cx(ss(c),ss(n));return ss(d)||n}}function cx(n,a){if(!n||n===pt||n===a||a.exports.size===1||n.flags&2097152)return n;const c=Xi(n);if(c.cjsExportMerged)return c.cjsExportMerged;const d=n.flags&33554432?n:TT(n);return d.flags=d.flags|512,d.exports===void 0&&(d.exports=ua()),a.exports.forEach((_,y)=>{y!=="export="&&d.exports.set(y,d.exports.has(y)?mm(d.exports.get(y),_):_)}),d===n&&(Xi(d).resolvedExports=void 0,Xi(d).resolvedMembers=void 0),Xi(d).cjsExportMerged=d,c.cjsExportMerged=d}function cp(n,a,c,d){var _;const y=Pp(n,c);if(!c&&y){if(!d&&!(y.flags&1539)&&!fl(y,312)){const k=G>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Xe(a,m.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,k),y}const x=a.parent;if(Oc(x)&&ER(x)||Bp(x)){const k=Bp(x)?x.arguments[0]:x.moduleSpecifier,z=dr(y),J=bWe(z,y,n,k);if(J)return ux(y,J,x);const ne=(_=n==null?void 0:n.declarations)==null?void 0:_.find(Zi),Se=ne&&hf(ro(k),ne.impliedNodeFormat);if(Eh(V)||Se){let ve=T9(z,0);if((!ve||!ve.length)&&(ve=T9(z,1)),ve&&ve.length||ba(z,"default",!0)||Se){const Ge=z.flags&3670016?EWe(z,y,n,k):Yye(y,y.parent);return ux(y,Ge,x)}}}}return y}function ux(n,a,c){const d=Za(n.flags,n.escapedName);d.declarations=n.declarations?n.declarations.slice():[],d.parent=n.parent,d.links.target=n,d.links.originatingImport=c,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),n.members&&(d.members=new Map(n.members)),n.exports&&(d.exports=new Map(n.exports));const _=h_(a);return d.links.type=Fs(d,_.members,et,et,_.indexInfos),d}function fy(n){return n.exports.get("export=")!==void 0}function wT(n){return Bge(Wh(n))}function pC(n){const a=wT(n),c=Pp(n);if(c!==n){const d=dr(c);xb(d)&&Ur(a,bs(d))}return a}function fC(n,a){Wh(n).forEach((_,y)=>{B1(y)||a(_,y)});const d=Pp(n);if(d!==n){const _=dr(d);xb(_)&&sct(_,(y,x)=>{a(y,x)})}}function OT(n,a){const c=Wh(a);if(c)return c.get(n)}function mC(n,a){const c=OT(n,a);if(c)return c;const d=Pp(a);if(d===a)return;const _=dr(d);return xb(_)?ba(_,n):void 0}function xb(n){return!(n.flags&402784252||Wr(n)&1||Yf(n)||ja(n))}function Mp(n){return n.flags&6256?Age(n,"resolvedExports"):n.flags&1536?Wh(n):n.exports||K}function Wh(n){const a=Xi(n);if(!a.resolvedExports){const{exports:c,typeOnlyExportStarMap:d}=WT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=d}return a.resolvedExports}function _C(n,a,c,d){a&&a.forEach((_,y)=>{if(y==="default")return;const x=n.get(y);if(!x)n.set(y,_),c&&d&&c.set(y,{specifierText:gc(d.moduleSpecifier)});else if(c&&d&&x&&Hl(x)!==Hl(_)){const k=c.get(y);k.exportsWithDuplicate?k.exportsWithDuplicate.push(d):k.exportsWithDuplicate=[d]}})}function WT(n){const a=[];let c;const d=new Set;n=Pp(n);const _=y(n)||K;return c&&d.forEach(x=>c.delete(x)),{exports:_,typeOnlyExportStarMap:c};function y(x,k,z){if(!z&&(x!=null&&x.exports)&&x.exports.forEach((Se,ve)=>d.add(ve)),!(x&&x.exports&&Tf(a,x)))return;const J=new Map(x.exports),ne=x.exports.get("__export");if(ne){const Se=ua(),ve=new Map;if(ne.declarations)for(const Ge of ne.declarations){const vt=gd(Ge,Ge.moduleSpecifier),xt=y(vt,Ge,z||Ge.isTypeOnly);_C(Se,xt,ve,Ge)}ve.forEach(({exportsWithDuplicate:Ge},vt)=>{if(!(vt==="export="||!(Ge&&Ge.length)||J.has(vt)))for(const xt of Ge)os.add(Or(xt,m.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ve.get(vt).specifierText,ji(vt)))}),_C(J,Se)}return k!=null&&k.isTypeOnly&&(c!=null||(c=new Map),J.forEach((Se,ve)=>c.set(ve,k))),J}}function ss(n){let a;return n&&n.mergeId&&(a=tC[n.mergeId])?a:n}function xr(n){return ss(n.symbol&&qZ(n.symbol))}function gf(n){return x_(n)?xr(n):void 0}function Pd(n){return ss(n.parent&&qZ(n.parent))}function F1(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&gf(n.valueDeclaration.parent)||n}function hC(n,a){const c=jn(a),d=cs(c),_=Xi(n);let y;if(_.extendedContainersByFile&&(y=_.extendedContainersByFile.get(d)))return y;if(c&&c.imports){for(const k of c.imports){if(Ys(k))continue;const z=gd(a,k,!0);!z||!Ig(z,n)||(y=Rn(y,z))}if(Le(y))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(d,y),y}if(_.extendedContainers)return _.extendedContainers;const x=e.getSourceFiles();for(const k of x){if(!dc(k))continue;const z=xr(k);Ig(z,n)&&(y=Rn(y,z))}return _.extendedContainers=y||et}function rE(n,a,c){const d=Pd(n);if(d&&!(n.flags&262144))return z(d);const _=Hi(n.declarations,ne=>{if(!ku(ne)&&ne.parent){if(ed(ne.parent))return xr(ne.parent);if(O_(ne.parent)&&ne.parent.parent&&Pp(xr(ne.parent.parent))===n)return xr(ne.parent.parent)}if(tu(ne)&&mr(ne.parent)&&ne.parent.operatorToken.kind===64&&zs(ne.parent.left)&&jl(ne.parent.left.expression))return ag(ne.parent.left)||RS(ne.parent.left.expression)?xr(jn(ne)):(ac(ne.parent.left.expression),Qr(ne.parent.left.expression).resolvedSymbol)});if(!Le(_))return;const y=Hi(_,ne=>Ig(ne,n)?ne:void 0);let x=[],k=[];for(const ne of y){const[Se,...ve]=z(ne);x=Rn(x,Se),k=Ur(k,ve)}return To(x,k);function z(ne){const Se=Hi(ne.declarations,J),ve=a&&hC(n,a),Ge=z1(ne,c);if(a&&ne.flags&dv(c)&&Rb(ne,a,1920,!1))return Rn(To(To([ne],Se),ve),Ge);const vt=!(ne.flags&dv(c))&&ne.flags&788968&&Zs(ne).flags&524288&&c===111551?V1(a,cn=>jc(cn,sn=>{if(sn.flags&dv(c)&&dr(sn)===Zs(ne))return sn})):void 0;let xt=vt?[vt,...Se,ne]:[...Se,ne];return xt=Rn(xt,Ge),xt=Ur(xt,ve),xt}function J(ne){return d&&FT(ne,d)}}function z1(n,a){const c=!!Le(n.declarations)&&Xa(n.declarations);if(a&111551&&c&&c.parent&&ki(c.parent)&&(Wa(c)&&c===c.parent.initializer||Tp(c)&&c===c.parent.type))return xr(c.parent)}function FT(n,a){const c=io(n),d=c&&c.exports&&c.exports.get("export=");return d&&p_(d,a)?c:void 0}function Ig(n,a){if(n===Pd(a))return a;const c=n.exports&&n.exports.get("export=");if(c&&p_(c,a))return n;const d=Mp(n),_=d.get(a.escapedName);return _&&p_(_,a)?_:jc(d,y=>{if(p_(y,a))return y})}function p_(n,a){if(ss(Hl(ss(n)))===ss(Hl(ss(a))))return n}function vf(n){return ss(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function Vm(n,a){return!!(n.flags&111551||n.flags&2097152&&Iu(n,!a)&111551)}function uv(n){const a=n.members;for(const c of a)if(c.kind===176&&tm(c.body))return c}function xg(n){var a;const c=new p(tn,n);return f++,c.id=f,(a=ar)==null||a.recordType(c),c}function Rg(n,a){const c=xg(n);return c.symbol=a,c}function dx(n){return new p(tn,n)}function fc(n,a,c=0,d){gC(a,d);const _=xg(n);return _.intrinsicName=a,_.debugIntrinsicName=d,_.objectFlags=c|524288|2097152|33554432|16777216,_}function gC(n,a){const c="".concat(n,",").concat(a!=null?a:"");dt.has(c)&&C.fail("Duplicate intrinsic type name ".concat(n).concat(a?" (".concat(a,")"):"","; you may need to pass a name to createIntrinsicType.")),dt.add(c)}function Vf(n,a){const c=Rg(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function Fh(){return Zr(Wo(Zq.keys(),Xd))}function yf(n){return Rg(262144,n)}function B1(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function iE(n){let a;return n.forEach((c,d)=>{px(c,d)&&(a||(a=[])).push(c)}),a||et}function px(n,a){return!B1(a)&&Vm(n)}function zT(n){const a=iE(n),c=QZ(n);return c?To(a,[c]):a}function bf(n,a,c,d,_){const y=n;return y.members=a,y.properties=et,y.callSignatures=c,y.constructSignatures=d,y.indexInfos=_,a!==K&&(y.properties=iE(a)),y}function Fs(n,a,c,d,_){return bf(Vf(16,n),a,c,d,_)}function G1(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=rr(n.constructSignatures,d=>!(d.flags&4));if(n.constructSignatures===a)return n;const c=Fs(n.symbol,n.members,n.callSignatures,St(a)?a:et,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function V1(n,a){let c;for(let d=n;d;d=d.parent){if(_h(d)&&d.locals&&!wh(d)&&(c=a(d.locals,void 0,!0,d)))return c;switch(d.kind){case 312:if(!zp(d))break;case 267:const _=xr(d);if(c=a((_==null?void 0:_.exports)||K,void 0,!0,d))return c;break;case 263:case 231:case 264:let y;if((xr(d).members||K).forEach((x,k)=>{x.flags&788968&&(y||(y=ua())).set(k,x)}),y&&(c=a(y,void 0,!1,d)))return c;break}}return a(be,void 0,!0)}function dv(n){return n===111551?111551:1920}function Rb(n,a,c,d,_=new Map){if(!(n&&!D(n)))return;const y=Xi(n),x=y.accessibleChainCache||(y.accessibleChainCache=new Map),k=V1(a,(sn,er,Wn,mn)=>mn),z="".concat(d?0:1,"|").concat(k&&cs(k),"|").concat(c);if(x.has(z))return x.get(z);const J=Ta(n);let ne=_.get(J);ne||_.set(J,ne=[]);const Se=V1(a,ve);return x.set(z,Se),Se;function ve(sn,er,Wn){if(!Tf(ne,sn))return;const mn=xt(sn,er,Wn);return ne.pop(),mn}function Ge(sn,er){return!oE(sn,a,er)||!!Rb(sn.parent,a,dv(er),d,_)}function vt(sn,er,Wn){return(n===(er||sn)||ss(n)===ss(er||sn))&&!St(sn.declarations,ed)&&(Wn||Ge(ss(sn),c))}function xt(sn,er,Wn){return vt(sn.get(n.escapedName),void 0,er)?[n]:jc(sn,Fn=>{if(Fn.flags&2097152&&Fn.escapedName!=="export="&&Fn.escapedName!=="default"&&!(z3(Fn)&&a&&dc(jn(a)))&&(!d||St(Fn.declarations,v0))&&(!Wn||!St(Fn.declarations,jie))&&(er||!fl(Fn,281))){const Pn=Bc(Fn),Vn=cn(Fn,Pn,er);if(Vn)return Vn}if(Fn.escapedName===n.escapedName&&Fn.exportSymbol&&vt(ss(Fn.exportSymbol),void 0,er))return[n]})||(sn===be?cn(it,it,er):void 0)}function cn(sn,er,Wn){if(vt(sn,er,Wn))return[sn];const mn=Mp(er),Fn=mn&&ve(mn,!0);if(Fn&&Ge(sn,dv(c)))return[sn].concat(Fn)}}function oE(n,a,c){let d=!1;return V1(a,_=>{let y=ss(_.get(n.escapedName));if(!y)return!1;if(y===n)return!0;const x=y.flags&2097152&&!fl(y,281);return y=x?Bc(y):y,(x?Iu(y):y.flags)&c?(d=!0,!0):!1}),d}function D(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ae(n,a){return bi(n,a,788968,!1,!0).accessibility===0}function ht(n,a){return bi(n,a,111551,!1,!0).accessibility===0}function ln(n,a,c){return bi(n,a,c,!1,!1).accessibility===0}function kr(n,a,c,d,_,y){if(!Le(n))return;let x,k=!1;for(const z of n){const J=Rb(z,a,d,!1);if(J){x=z;const ve=Md(J[0],_);if(ve)return ve}if(y&&St(z.declarations,ed)){if(_){k=!0;continue}return{accessibility:0}}const ne=rE(z,a,d),Se=kr(ne,a,c,c===z?dv(d):d,_,y);if(Se)return Se}if(k)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:Si(c,a,d),errorModuleName:x!==c?Si(x,a,1920):void 0}}function Ni(n,a,c,d){return bi(n,a,c,d,!0)}function bi(n,a,c,d,_){if(n&&a){const y=kr([n],a,n,c,d,_);if(y)return y;const x=He(n.declarations,io);if(x){const k=io(a);if(x!==k)return{accessibility:2,errorSymbolName:Si(n,a,c),errorModuleName:Si(x),errorNode:sr(a)?a:void 0}}return{accessibility:1,errorSymbolName:Si(n,a,c)}}return{accessibility:0}}function io(n){const a=zn(n,ya);return a&&xr(a)}function ya(n){return ku(n)||n.kind===312&&zp(n)}function ed(n){return H4(n)||n.kind===312&&zp(n)}function Md(n,a){let c;if(!Yn(rr(n.declarations,y=>y.kind!==80),d))return;return{accessibility:0,aliasesToMakeVisible:c};function d(y){var x,k;if(!f_(y)){const z=xT(y);if(z&&!$r(z,32)&&f_(z.parent))return _(y,z);if(ki(y)&&kl(y.parent.parent)&&!$r(y.parent.parent,32)&&f_(y.parent.parent.parent))return _(y,y.parent.parent);if(q4(y)&&!$r(y,32)&&f_(y.parent))return _(y,y);if(ns(y)){if(n.flags&2097152&&sr(y)&&((x=y.parent)!=null&&x.parent)&&ki(y.parent.parent)&&((k=y.parent.parent.parent)!=null&&k.parent)&&kl(y.parent.parent.parent.parent)&&!$r(y.parent.parent.parent.parent,32)&&y.parent.parent.parent.parent.parent&&f_(y.parent.parent.parent.parent.parent))return _(y,y.parent.parent.parent.parent);if(n.flags&2){const J=zn(y,kl);return $r(J,32)?!0:f_(J.parent)?_(y,J):!1}}return!1}return!0}function _(y,x){return a&&(Qr(y).isVisible=!0,c=wg(c,x)),!0}}function jf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!ig(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Db(n,a){const c=jf(n),d=Vp(n),_=yl(a,d.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&YE(d)&&Ni(xr(Fd(d,!1,!1)),d,c,!1).accessibility===0?{accessibility:0}:_&&Md(_,!0)||{accessibility:1,errorSymbolName:gc(d),errorNode:d}}function Si(n,a,c,d=4,_){let y=70221824;d&2&&(y|=128),d&1&&(y|=512),d&8&&(y|=16384),d&32&&(y|=134217728),d&16&&(y|=1073741824);const x=d&4?At.symbolToNode:At.symbolToEntityName;return _?k(_).getText():yN(k);function k(z){const J=x(n,c,a,y),ne=(a==null?void 0:a.kind)===312?DJ():y1(),Se=a&&jn(a);return ne.writeNode(4,J,Se,z),z}}function zh(n,a,c=0,d,_){return _?y(_).getText():yN(y);function y(x){let k;c&262144?k=d===1?185:184:k=d===1?180:179;const z=At.signatureToSignatureDeclaration(n,k,a,BT(c)|70221824|512),J=Bw(),ne=a&&jn(a);return J.writeNode(4,z,ne,mU(x)),x}}function Un(n,a,c=1064960,d=pk("")){const _=V.noErrorTruncation||c&1,y=At.typeToTypeNode(n,a,BT(c)|70221824|(_?1:0));if(y===void 0)return C.fail("should always get typenode");const x=n!==Gt?y1():RJ(),k=a&&jn(a);x.writeNode(4,y,k,d);const z=d.getText(),J=_?dW*2:Ck*2;return J&&z&&z.length>=J?z.substr(0,J-3)+"...":z}function fx(n,a){let c=Nb(n.symbol)?Un(n,n.symbol.valueDeclaration):Un(n),d=Nb(a.symbol)?Un(a,a.symbol.valueDeclaration):Un(a);return c===d&&(c=Cb(n),d=Cb(a)),[c,d]}function Cb(n){return Un(n,void 0,64)}function Nb(n){return n&&!!n.valueDeclaration&&bt(n.valueDeclaration)&&!Kf(n.valueDeclaration)}function BT(n=0){return n&848330095}function j1(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===qf(n.symbol)||!!(n.flags&524288)&&!!(Wr(n)&16777216))}function X_(){return{typeToTypeNode:(ct,Ie,Mn,Lr)=>a(Ie,Mn,Lr,di=>d(ct,di)),indexInfoToIndexSignatureDeclaration:(ct,Ie,Mn,Lr)=>a(Ie,Mn,Lr,di=>ne(ct,di,void 0)),signatureToSignatureDeclaration:(ct,Ie,Mn,Lr,di)=>a(Mn,Lr,di,Ii=>Se(ct,Ie,Ii)),symbolToEntityName:(ct,Ie,Mn,Lr,di)=>a(Mn,Lr,di,Ii=>vo(ct,Ii,Ie,!1)),symbolToExpression:(ct,Ie,Mn,Lr,di)=>a(Mn,Lr,di,Ii=>Mc(ct,Ii,Ie)),symbolToTypeParameterDeclarations:(ct,Ie,Mn,Lr)=>a(Ie,Mn,Lr,di=>Fn(ct,di)),symbolToParameterDeclaration:(ct,Ie,Mn,Lr)=>a(Ie,Mn,Lr,di=>cn(ct,di)),typeParameterToDeclaration:(ct,Ie,Mn,Lr)=>a(Ie,Mn,Lr,di=>vt(ct,di)),symbolTableToDeclarationStatements:(ct,Ie,Mn,Lr,di)=>a(Ie,Mn,Lr,Ii=>bl(ct,Ii,di)),symbolToNode:(ct,Ie,Mn,Lr,di)=>a(Mn,Lr,di,Ii=>n(ct,Ii,Ie))};function n(ct,Ie,Mn){if(Ie.flags&1073741824){if(ct.valueDeclaration){const di=Po(ct.valueDeclaration);if(di&&rs(di))return di}const Lr=Xi(ct).nameType;if(Lr&&Lr.flags&9216)return Ie.enclosingDeclaration=Lr.symbol.valueDeclaration,w.createComputedPropertyName(Mc(Lr.symbol,Ie,Mn))}return Mc(ct,Ie,Mn)}function a(ct,Ie,Mn,Lr){C.assert(ct===void 0||(ct.flags&16)===0);const di=Mn!=null&&Mn.trackSymbol?Mn.moduleResolverHost:Ie&134217728?Vje(e):void 0,Ii={enclosingDeclaration:ct,flags:Ie||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Ii.tracker=new eJ(Ii,Mn,di);const xi=Lr(Ii);return Ii.truncating&&Ii.flags&1&&Ii.tracker.reportTruncationError(),Ii.encounteredError?void 0:xi}function c(ct){return ct.truncating?ct.truncating:ct.truncating=ct.approximateLength>(ct.flags&1?dW:Ck)}function d(ct,Ie){const Mn=Ie.flags,Lr=_(ct,Ie);return Ie.flags=Mn,Lr}function _(ct,Ie){var Mn,Lr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const di=Ie.flags&8388608;if(Ie.flags&=-8388609,!ct){if(!(Ie.flags&262144)){Ie.encounteredError=!0;return}return Ie.approximateLength+=3,w.createKeywordTypeNode(133)}if(Ie.flags&536870912||(ct=g_(ct)),ct.flags&1)return ct.aliasSymbol?w.createTypeReferenceNode(tr(ct.aliasSymbol),z(ct.aliasTypeArguments,Ie)):ct===Gt?fP(w.createKeywordTypeNode(133),3,"unresolved"):(Ie.approximateLength+=3,w.createKeywordTypeNode(ct===hn?141:133));if(ct.flags&2)return w.createKeywordTypeNode(159);if(ct.flags&4)return Ie.approximateLength+=6,w.createKeywordTypeNode(154);if(ct.flags&8)return Ie.approximateLength+=6,w.createKeywordTypeNode(150);if(ct.flags&64)return Ie.approximateLength+=6,w.createKeywordTypeNode(163);if(ct.flags&16&&!ct.aliasSymbol)return Ie.approximateLength+=7,w.createKeywordTypeNode(136);if(ct.flags&1056){if(ct.symbol.flags&8){const kn=Pd(ct.symbol),ci=mo(kn,Ie,788968);if(Zs(kn)===ct)return ci;const Ai=El(ct.symbol);return tf(Ai,0)?Li(ci,w.createTypeReferenceNode(Ai,void 0)):fg(ci)?(ci.isTypeOf=!0,w.createIndexedAccessTypeNode(ci,w.createLiteralTypeNode(w.createStringLiteral(Ai)))):Nf(ci)?w.createIndexedAccessTypeNode(w.createTypeQueryNode(ci.typeName),w.createLiteralTypeNode(w.createStringLiteral(Ai))):C.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return mo(ct.symbol,Ie,788968)}if(ct.flags&128)return Ie.approximateLength+=ct.value.length+2,w.createLiteralTypeNode(pr(w.createStringLiteral(ct.value,!!(Ie.flags&268435456)),16777216));if(ct.flags&256){const kn=ct.value;return Ie.approximateLength+=(""+kn).length,w.createLiteralTypeNode(kn<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-kn)):w.createNumericLiteral(kn))}if(ct.flags&2048)return Ie.approximateLength+=ZE(ct.value).length+1,w.createLiteralTypeNode(w.createBigIntLiteral(ct.value));if(ct.flags&512)return Ie.approximateLength+=ct.intrinsicName.length,w.createLiteralTypeNode(ct.intrinsicName==="true"?w.createTrue():w.createFalse());if(ct.flags&8192){if(!(Ie.flags&1048576)){if(ht(ct.symbol,Ie.enclosingDeclaration))return Ie.approximateLength+=6,mo(ct.symbol,Ie,111551);Ie.tracker.reportInaccessibleUniqueSymbolError&&Ie.tracker.reportInaccessibleUniqueSymbolError()}return Ie.approximateLength+=13,w.createTypeOperatorNode(158,w.createKeywordTypeNode(155))}if(ct.flags&16384)return Ie.approximateLength+=4,w.createKeywordTypeNode(116);if(ct.flags&32768)return Ie.approximateLength+=9,w.createKeywordTypeNode(157);if(ct.flags&65536)return Ie.approximateLength+=4,w.createLiteralTypeNode(w.createNull());if(ct.flags&131072)return Ie.approximateLength+=5,w.createKeywordTypeNode(146);if(ct.flags&4096)return Ie.approximateLength+=6,w.createKeywordTypeNode(155);if(ct.flags&67108864)return Ie.approximateLength+=6,w.createKeywordTypeNode(151);if(oP(ct))return Ie.flags&4194304&&(!Ie.encounteredError&&!(Ie.flags&32768)&&(Ie.encounteredError=!0),(Lr=(Mn=Ie.tracker).reportInaccessibleThisError)==null||Lr.call(Mn)),Ie.approximateLength+=4,w.createThisTypeNode();if(!di&&ct.aliasSymbol&&(Ie.flags&16384||ae(ct.aliasSymbol,Ie.enclosingDeclaration))){const kn=z(ct.aliasTypeArguments,Ie);return B1(ct.aliasSymbol.escapedName)&&!(ct.aliasSymbol.flags&32)?w.createTypeReferenceNode(w.createIdentifier(""),kn):Le(kn)===1&&ct.aliasSymbol===Xo.symbol?w.createArrayTypeNode(kn[0]):mo(ct.aliasSymbol,Ie,788968,kn)}const Ii=Wr(ct);if(Ii&4)return C.assert(!!(ct.flags&524288)),ct.node?Ht(ct,Ln):Ln(ct);if(ct.flags&262144||Ii&3){if(ct.flags&262144&&Nr(Ie.inferTypeParameters,ct)){Ie.approximateLength+=El(ct.symbol).length+6;let ci;const Ai=Ld(ct);if(Ai){const Qi=X8e(ct,!0);Qi&&yv(Ai,Qi)||(Ie.approximateLength+=9,ci=Ai&&d(Ai,Ie))}return w.createInferTypeNode(Ge(ct,Ie,ci))}if(Ie.flags&4&&ct.flags&262144){const ci=Fo(ct,Ie);return Ie.approximateLength+=Tr(ci).length,w.createTypeReferenceNode(w.createIdentifier(Tr(ci)),void 0)}if(ct.symbol)return mo(ct.symbol,Ie,788968);const kn=(ct===pe||ct===Z)&&O&&O.symbol?(ct===Z?"sub-":"super-")+El(O.symbol):"?";return w.createTypeReferenceNode(w.createIdentifier(kn),void 0)}if(ct.flags&1048576&&ct.origin&&(ct=ct.origin),ct.flags&3145728){const kn=ct.flags&1048576?vC(ct.types):ct.types;if(Le(kn)===1)return d(kn[0],Ie);const ci=z(kn,Ie,!0);if(ci&&ci.length>0)return ct.flags&1048576?w.createUnionTypeNode(ci):w.createIntersectionTypeNode(ci);!Ie.encounteredError&&!(Ie.flags&262144)&&(Ie.encounteredError=!0);return}if(Ii&48)return C.assert(!!(ct.flags&524288)),un(ct);if(ct.flags&4194304){const kn=ct.type;Ie.approximateLength+=6;const ci=d(kn,Ie);return w.createTypeOperatorNode(143,ci)}if(ct.flags&134217728){const kn=ct.texts,ci=ct.types,Ai=w.createTemplateHead(kn[0]),Qi=w.createNodeArray(Ot(ci,($o,Tl)=>w.createTemplateLiteralTypeSpan(d($o,Ie),(Tl<ci.length-1?w.createTemplateMiddle:w.createTemplateTail)(kn[Tl+1]))));return Ie.approximateLength+=2,w.createTemplateLiteralType(Ai,Qi)}if(ct.flags&268435456){const kn=d(ct.type,Ie);return mo(ct.symbol,Ie,788968,[kn])}if(ct.flags&8388608){const kn=d(ct.objectType,Ie),ci=d(ct.indexType,Ie);return Ie.approximateLength+=2,w.createIndexedAccessTypeNode(kn,ci)}if(ct.flags&16777216)return Ht(ct,kn=>xi(kn));if(ct.flags&33554432){const kn=d(ct.baseType,Ie),ci=H2(ct)&&Zge("NoInfer",!1);return ci?mo(ci,Ie,788968,[kn]):kn}return C.fail("Should be unreachable.");function xi(kn){const ci=d(kn.checkType,Ie);if(Ie.approximateLength+=15,Ie.flags&4&&kn.root.isDistributive&&!(kn.checkType.flags&262144)){const pl=yf(Za(262144,"T")),Ls=Fo(pl,Ie),Yc=w.createTypeReferenceNode(Ls);Ie.approximateLength+=37;const ks=ZT(kn.root.checkType,pl,kn.mapper),Qf=Ie.inferTypeParameters;Ie.inferTypeParameters=kn.root.inferTypeParameters;const tt=d(co(kn.root.extendsType,ks),Ie);Ie.inferTypeParameters=Qf;const Et=Vr(co(Ti(kn.root.node.trueType),ks)),rn=Vr(co(Ti(kn.root.node.falseType),ks));return w.createConditionalTypeNode(ci,w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Yc.typeName))),w.createConditionalTypeNode(w.createTypeReferenceNode(w.cloneNode(Ls)),d(kn.checkType,Ie),w.createConditionalTypeNode(Yc,tt,Et,rn),w.createKeywordTypeNode(146)),w.createKeywordTypeNode(146))}const Ai=Ie.inferTypeParameters;Ie.inferTypeParameters=kn.root.inferTypeParameters;const Qi=d(kn.extendsType,Ie);Ie.inferTypeParameters=Ai;const $o=Vr(_E(kn)),Tl=Vr(hE(kn));return w.createConditionalTypeNode(ci,Qi,$o,Tl)}function Vr(kn){var ci,Ai,Qi;return kn.flags&1048576?(ci=Ie.visitedTypes)!=null&&ci.has(yd(kn))?(Ie.flags&131072||(Ie.encounteredError=!0,(Qi=(Ai=Ie.tracker)==null?void 0:Ai.reportCyclicStructureError)==null||Qi.call(Ai)),y(Ie)):Ht(kn,$o=>d($o,Ie)):d(kn,Ie)}function Rr(kn){return!!W8(kn)}function ft(kn){return!!kn.target&&Rr(kn.target)&&!Rr(kn)}function wt(kn){var ci;C.assert(!!(kn.flags&524288));const Ai=kn.declaration.readonlyToken?w.createToken(kn.declaration.readonlyToken.kind):void 0,Qi=kn.declaration.questionToken?w.createToken(kn.declaration.questionToken.kind):void 0;let $o,Tl;const pl=!AC(kn)&&!(UT(kn).flags&2)&&Ie.flags&4&&!(Ef(kn).flags&262144&&((ci=Ld(Ef(kn)))==null?void 0:ci.flags)&4194304);if(AC(kn)){if(ft(kn)&&Ie.flags&4){const Et=yf(Za(262144,"T")),rn=Fo(Et,Ie);Tl=w.createTypeReferenceNode(rn)}$o=w.createTypeOperatorNode(143,Tl||d(UT(kn),Ie))}else if(pl){const Et=yf(Za(262144,"T")),rn=Fo(Et,Ie);Tl=w.createTypeReferenceNode(rn),$o=Tl}else $o=d(Ef(kn),Ie);const Ls=Ge(__(kn),Ie,$o),Yc=kn.declaration.nameType?d(_y(kn),Ie):void 0,ks=d(Xb(_v(kn),!!(jh(kn)&4)),Ie),Qf=w.createMappedTypeNode(Ai,Ls,Yc,Qi,ks,void 0);Ie.approximateLength+=10;const tt=pr(Qf,1);if(ft(kn)&&Ie.flags&4){const Et=co(Ld(Ti(kn.declaration.typeParameter.constraint.type))||dn,kn.mapper);return w.createConditionalTypeNode(d(UT(kn),Ie),w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Tl.typeName),Et.flags&2?void 0:d(Et,Ie))),tt,w.createKeywordTypeNode(146))}else if(pl)return w.createConditionalTypeNode(d(Ef(kn),Ie),w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Tl.typeName),w.createTypeOperatorNode(143,d(UT(kn),Ie)))),tt,w.createKeywordTypeNode(146));return tt}function un(kn){var ci,Ai;const Qi=kn.id,$o=kn.symbol;if($o){if(!!(Wr(kn)&8388608)){const ks=kn.node;if(lI(ks)&&Ti(ks)===kn){const Qf=zl(Ie,ks);if(Qf)return Qf}return(ci=Ie.visitedTypes)!=null&&ci.has(Qi)?y(Ie):Ht(kn,_n)}const Ls=j1(kn)?788968:111551;if(ih($o.valueDeclaration))return mo($o,Ie,Ls);if($o.flags&32&&!GZ($o)&&!($o.valueDeclaration&&ui($o.valueDeclaration)&&Ie.flags&2048&&(!Rc($o.valueDeclaration)||Ni($o,Ie.enclosingDeclaration,Ls,!1).accessibility!==0))||$o.flags&896||Tl())return mo($o,Ie,Ls);if((Ai=Ie.visitedTypes)!=null&&Ai.has(Qi)){const Yc=d9(kn);return Yc?mo(Yc,Ie,788968):y(Ie)}else return Ht(kn,_n)}else return _n(kn);function Tl(){var pl;const Ls=!!($o.flags&8192)&&St($o.declarations,ks=>aa(ks)),Yc=!!($o.flags&16)&&($o.parent||He($o.declarations,ks=>ks.parent.kind===312||ks.parent.kind===268));if(Ls||Yc)return(!!(Ie.flags&4096)||((pl=Ie.visitedTypes)==null?void 0:pl.has(Qi)))&&(!(Ie.flags&8)||ht($o,Ie.enclosingDeclaration))}}function Ht(kn,ci){var Ai,Qi,$o;const Tl=kn.id,pl=Wr(kn)&16&&kn.symbol&&kn.symbol.flags&32,Ls=Wr(kn)&4&&kn.node?"N"+cs(kn.node):kn.flags&16777216?"N"+cs(kn.root.node):kn.symbol?(pl?"+":"")+Ta(kn.symbol):void 0;Ie.visitedTypes||(Ie.visitedTypes=new Set),Ls&&!Ie.symbolDepth&&(Ie.symbolDepth=new Map);const Yc=Ie.enclosingDeclaration&&Qr(Ie.enclosingDeclaration),ks="".concat(yd(kn),"|").concat(Ie.flags);Yc&&(Yc.serializedTypes||(Yc.serializedTypes=new Map));const Qf=(Ai=Yc==null?void 0:Yc.serializedTypes)==null?void 0:Ai.get(ks);if(Qf)return(Qi=Qf.trackedSymbols)==null||Qi.forEach(([jr,Fi,Oo])=>Ie.tracker.trackSymbol(jr,Fi,Oo)),Qf.truncating&&(Ie.truncating=!0),Ie.approximateLength+=Qf.addedLength,In(Qf.node);let tt;if(Ls){if(tt=Ie.symbolDepth.get(Ls)||0,tt>10)return y(Ie);Ie.symbolDepth.set(Ls,tt+1)}Ie.visitedTypes.add(Tl);const Et=Ie.trackedSymbols;Ie.trackedSymbols=void 0;const rn=Ie.approximateLength,Xn=ci(kn),Dr=Ie.approximateLength-rn;return!Ie.reportedDiagnostic&&!Ie.encounteredError&&(($o=Yc==null?void 0:Yc.serializedTypes)==null||$o.set(ks,{node:Xn,truncating:Ie.truncating,addedLength:Dr,trackedSymbols:Ie.trackedSymbols})),Ie.visitedTypes.delete(Tl),Ls&&Ie.symbolDepth.set(Ls,tt),Ie.trackedSymbols=Et,Xn;function In(jr){return!Ys(jr)&&Do(jr)===jr?jr:ut(w.cloneNode(xn(jr,In,void 0,yr)),jr)}function yr(jr,Fi,Oo,ma,_a){return jr&&jr.length===0?ut(w.createNodeArray(void 0,jr.hasTrailingComma),jr):Bn(jr,Fi,Oo,ma,_a)}}function _n(kn){if(Kd(kn)||kn.containsError)return wt(kn);const ci=h_(kn);if(!ci.properties.length&&!ci.indexInfos.length){if(!ci.callSignatures.length&&!ci.constructSignatures.length)return Ie.approximateLength+=2,pr(w.createTypeLiteralNode(void 0),1);if(ci.callSignatures.length===1&&!ci.constructSignatures.length){const pl=ci.callSignatures[0];return Se(pl,184,Ie)}if(ci.constructSignatures.length===1&&!ci.callSignatures.length){const pl=ci.constructSignatures[0];return Se(pl,185,Ie)}}const Ai=rr(ci.constructSignatures,pl=>!!(pl.flags&4));if(St(Ai)){const pl=Ot(Ai,KT);return ci.callSignatures.length+(ci.constructSignatures.length-Ai.length)+ci.indexInfos.length+(Ie.flags&2048?lu(ci.properties,Yc=>!(Yc.flags&4194304)):Le(ci.properties))&&pl.push(G1(ci)),d(Ea(pl),Ie)}const Qi=Ie.flags;Ie.flags|=4194304;const $o=na(ci);Ie.flags=Qi;const Tl=w.createTypeLiteralNode($o);return Ie.approximateLength+=2,pr(Tl,Ie.flags&1024?0:1),Tl}function Ln(kn){let ci=Js(kn);if(kn.target===Xo||kn.target===ea){if(Ie.flags&2){const $o=d(ci[0],Ie);return w.createTypeReferenceNode(kn.target===Xo?"Array":"ReadonlyArray",[$o])}const Ai=d(ci[0],Ie),Qi=w.createArrayTypeNode(Ai);return kn.target===Xo?Qi:w.createTypeOperatorNode(148,Qi)}else if(kn.target.objectFlags&8){if(ci=no(ci,(Ai,Qi)=>Xb(Ai,!!(kn.target.elementFlags[Qi]&2))),ci.length>0){const Ai=gy(kn),Qi=z(ci.slice(0,Ai),Ie);if(Qi){const{labeledElementDeclarations:$o}=kn.target;for(let pl=0;pl<Qi.length;pl++){const Ls=kn.target.elementFlags[pl],Yc=$o==null?void 0:$o[pl];Yc?Qi[pl]=w.createNamedTupleMember(Ls&12?w.createToken(26):void 0,w.createIdentifier(ji(ebe(Yc))),Ls&2?w.createToken(58):void 0,Ls&4?w.createArrayTypeNode(Qi[pl]):Qi[pl]):Qi[pl]=Ls&12?w.createRestTypeNode(Ls&4?w.createArrayTypeNode(Qi[pl]):Qi[pl]):Ls&2?w.createOptionalTypeNode(Qi[pl]):Qi[pl]}const Tl=pr(w.createTupleTypeNode(Qi),1);return kn.target.readonly?w.createTypeOperatorNode(148,Tl):Tl}}if(Ie.encounteredError||Ie.flags&524288){const Ai=pr(w.createTupleTypeNode([]),1);return kn.target.readonly?w.createTypeOperatorNode(148,Ai):Ai}Ie.encounteredError=!0;return}else{if(Ie.flags&2048&&kn.symbol.valueDeclaration&&ui(kn.symbol.valueDeclaration)&&!ht(kn.symbol,Ie.enclosingDeclaration))return un(kn);{const Ai=kn.target.outerTypeParameters;let Qi=0,$o;if(Ai){const Yc=Ai.length;for(;Qi<Yc;){const ks=Qi,Qf=Y8e(Ai[Qi]);do Qi++;while(Qi<Yc&&Y8e(Ai[Qi])===Qf);if(!mG(Ai,ci,ks,Qi)){const tt=z(ci.slice(ks,Qi),Ie),Et=Ie.flags;Ie.flags|=16;const rn=mo(Qf,Ie,788968,tt);Ie.flags=Et,$o=$o?Li($o,rn):rn}}}let Tl;if(ci.length>0){const Yc=(kn.target.typeParameters||et).length;Tl=z(ci.slice(Qi,Yc),Ie)}const pl=Ie.flags;Ie.flags|=16;const Ls=mo(kn.symbol,Ie,788968,Tl);return Ie.flags=pl,$o?Li($o,Ls):Ls}}}function Li(kn,ci){if(fg(kn)){let Ai=kn.typeArguments,Qi=kn.qualifier;Qi&&(je(Qi)?Ai!==zS(Qi)&&(Qi=Kv(w.cloneNode(Qi),Ai)):Ai!==zS(Qi.right)&&(Qi=w.updateQualifiedName(Qi,Qi.left,Kv(w.cloneNode(Qi.right),Ai)))),Ai=ci.typeArguments;const $o=_i(ci);for(const Tl of $o)Qi=Qi?w.createQualifiedName(Qi,Tl):Tl;return w.updateImportTypeNode(kn,kn.argument,kn.attributes,Qi,Ai,kn.isTypeOf)}else{let Ai=kn.typeArguments,Qi=kn.typeName;je(Qi)?Ai!==zS(Qi)&&(Qi=Kv(w.cloneNode(Qi),Ai)):Ai!==zS(Qi.right)&&(Qi=w.updateQualifiedName(Qi,Qi.left,Kv(w.cloneNode(Qi.right),Ai))),Ai=ci.typeArguments;const $o=_i(ci);for(const Tl of $o)Qi=w.createQualifiedName(Qi,Tl);return w.updateTypeReferenceNode(kn,Qi,Ai)}}function _i(kn){let ci=kn.typeName;const Ai=[];for(;!je(ci);)Ai.unshift(ci.right),ci=ci.left;return Ai.unshift(ci),Ai}function na(kn){if(c(Ie))return[w.createPropertySignature(void 0,"...",void 0,void 0)];const ci=[];for(const $o of kn.callSignatures)ci.push(Se($o,179,Ie));for(const $o of kn.constructSignatures)$o.flags&4||ci.push(Se($o,180,Ie));for(const $o of kn.indexInfos)ci.push(ne($o,Ie,kn.objectFlags&1024?y(Ie):void 0));const Ai=kn.properties;if(!Ai)return ci;let Qi=0;for(const $o of Ai){if(Qi++,Ie.flags&2048){if($o.flags&4194304)continue;Df($o)&6&&Ie.tracker.reportPrivateInBaseOfClassExpression&&Ie.tracker.reportPrivateInBaseOfClassExpression(ji($o.escapedName))}if(c(Ie)&&Qi+2<Ai.length-1){ci.push(w.createPropertySignature(void 0,"... ".concat(Ai.length-Qi," more ..."),void 0,void 0)),k(Ai[Ai.length-1],Ie,ci);break}k($o,Ie,ci)}return ci.length?ci:void 0}}function y(ct){return ct.approximateLength+=3,ct.flags&1?w.createKeywordTypeNode(133):w.createTypeReferenceNode(w.createIdentifier("..."),void 0)}function x(ct,Ie){var Mn;return!!(xl(ct)&8192)&&(Nr(Ie.reverseMappedStack,ct)||((Mn=Ie.reverseMappedStack)==null?void 0:Mn[0])&&!(Wr(es(Ie.reverseMappedStack).links.propertyType)&16))}function k(ct,Ie,Mn){var Lr;const di=!!(xl(ct)&8192),Ii=x(ct,Ie)?j:Ob(ct),xi=Ie.enclosingDeclaration;if(Ie.enclosingDeclaration=void 0,Ie.tracker.canTrackSymbol&&x8(ct.escapedName))if(ct.declarations){const _n=Xa(ct.declarations);if(g9(_n))if(mr(_n)){const Ln=Po(_n);Ln&&$s(Ln)&&_k(Ln.argumentExpression)&&er(Ln.argumentExpression,xi,Ie)}else er(_n.name.expression,xi,Ie)}else Ie.tracker.reportNonSerializableProperty(Si(ct));Ie.enclosingDeclaration=ct.valueDeclaration||((Lr=ct.declarations)==null?void 0:Lr[0])||xi;const Vr=On(ct,Ie);if(Ie.enclosingDeclaration=xi,Ie.approximateLength+=El(ct).length+1,ct.flags&98304){const _n=U1(ct);if(Ii!==_n&&!Kt(Ii)&&!Kt(_n)){const Ln=fl(ct,177),Li=gm(Ln);Mn.push(uc(Se(Li,177,Ie,{name:Vr}),Ln));const _i=fl(ct,178),na=gm(_i);Mn.push(uc(Se(na,178,Ie,{name:Vr}),_i));return}}const Rr=ct.flags&16777216?w.createToken(58):void 0;if(ct.flags&8208&&!zb(Ii).length&&!E_(ct)){const _n=Ko(_c(Ii,Ln=>!(Ln.flags&32768)),0);for(const Ln of _n){const Li=Se(Ln,173,Ie,{name:Vr,questionToken:Rr});Mn.push(Ht(Li))}if(_n.length||!Rr)return}let ft;x(ct,Ie)?ft=y(Ie):(di&&(Ie.reverseMappedStack||(Ie.reverseMappedStack=[]),Ie.reverseMappedStack.push(ct)),ft=Ii?xs(Ie,Ii,ct,xi):w.createKeywordTypeNode(133),di&&Ie.reverseMappedStack.pop());const wt=E_(ct)?[w.createToken(148)]:void 0;wt&&(Ie.approximateLength+=9);const un=w.createPropertySignature(wt,Vr,Rr,ft);Mn.push(Ht(un));function Ht(_n){var Ln;const Li=(Ln=ct.declarations)==null?void 0:Ln.find(_i=>_i.kind===355);if(Li){const _i=fL(Li.comment);_i&&R0(_n,[{kind:3,text:"*\n * "+_i.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else ct.valueDeclaration&&uc(_n,ct.valueDeclaration);return _n}}function z(ct,Ie,Mn){if(St(ct)){if(c(Ie))if(Mn){if(ct.length>2)return[d(ct[0],Ie),w.createTypeReferenceNode("... ".concat(ct.length-2," more ..."),void 0),d(ct[ct.length-1],Ie)]}else return[w.createTypeReferenceNode("...",void 0)];const di=!(Ie.flags&64)?Zp():void 0,Ii=[];let xi=0;for(const Vr of ct){if(xi++,c(Ie)&&xi+2<ct.length-1){Ii.push(w.createTypeReferenceNode("... ".concat(ct.length-xi," more ..."),void 0));const ft=d(ct[ct.length-1],Ie);ft&&Ii.push(ft);break}Ie.approximateLength+=2;const Rr=d(Vr,Ie);Rr&&(Ii.push(Rr),di&&rae(Rr)&&di.add(Rr.typeName.escapedText,[Vr,Ii.length-1]))}if(di){const Vr=Ie.flags;Ie.flags|=64,di.forEach(Rr=>{if(!iae(Rr,([ft],[wt])=>J(ft,wt)))for(const[ft,wt]of Rr)Ii[wt]=d(ft,Ie)}),Ie.flags=Vr}return Ii}}function J(ct,Ie){return ct===Ie||!!ct.symbol&&ct.symbol===Ie.symbol||!!ct.aliasSymbol&&ct.aliasSymbol===Ie.aliasSymbol}function ne(ct,Ie,Mn){const Lr=Iie(ct)||"x",di=d(ct.keyType,Ie),Ii=w.createParameterDeclaration(void 0,void 0,Lr,void 0,di,void 0);return Mn||(Mn=d(ct.type||j,Ie)),!ct.type&&!(Ie.flags&2097152)&&(Ie.encounteredError=!0),Ie.approximateLength+=Lr.length+4,w.createIndexSignature(ct.isReadonly?[w.createToken(148)]:void 0,[Ii],Mn)}function Se(ct,Ie,Mn,Lr){var _i,na,kn,ci;var di;const Ii=Mn.flags&256;Ii&&(Mn.flags&=-257),Mn.approximateLength+=3;let xi,Vr;Mn.flags&32&&ct.target&&ct.mapper&&ct.target.typeParameters?Vr=ct.target.typeParameters.map(Ai=>d(co(Ai,ct.mapper),Mn)):xi=ct.typeParameters&&ct.typeParameters.map(Ai=>vt(Ai,Mn));const Rr=I8e(ct,!0)[0];let ft;if(Mn.enclosingDeclaration&&ct.declaration&&ct.declaration!==Mn.enclosingDeclaration&&!sr(ct.declaration)&&(St(Rr)||St(ct.typeParameters))){let Ai=function(Qi,$o){var Qf;C.assert(Mn.enclosingDeclaration);let Tl;Qr(Mn.enclosingDeclaration).fakeScopeForSignatureDeclaration===Qi?Tl=Mn.enclosingDeclaration:Mn.enclosingDeclaration.parent&&Qr(Mn.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===Qi&&(Tl=Mn.enclosingDeclaration.parent),C.assertOptionalNode(Tl,Jo);const pl=(Qf=Tl==null?void 0:Tl.locals)!=null?Qf:ua();let Ls;if($o((tt,Et)=>{pl.has(tt)||(Ls=Rn(Ls,tt),pl.set(tt,Et))}),!Ls)return;const Yc=ft;function ks(){He(Ls,tt=>pl.delete(tt)),Yc==null||Yc()}if(Tl)ft=ks;else{const tt=Rh.createBlock(et);Qr(tt).fakeScopeForSignatureDeclaration=Qi,tt.locals=pl;const Et=Mn.enclosingDeclaration;Ya(tt,Et),Mn.enclosingDeclaration=tt,ft=()=>{Mn.enclosingDeclaration=Et,ks()}}};Ai("params",Qi=>{for(const $o of Rr)Qi($o.escapedName,$o)}),Mn.flags&4&&Ai("typeParams",Qi=>{var $o;for(const Tl of($o=ct.typeParameters)!=null?$o:et){const pl=Fo(Tl,Mn).escapedText;Qi(pl,Tl.symbol)}})}const wt=(St(Rr,Ai=>Ai!==Rr[Rr.length-1]&&!!(xl(Ai)&32768))?ct.parameters:Rr).map(Ai=>cn(Ai,Mn,Ie===176,Lr==null?void 0:Lr.privateSymbolVisitor,Lr==null?void 0:Lr.bundledImports)),un=Mn.flags&33554432?void 0:ve(ct,Mn);un&&wt.unshift(un);let Ht;const _n=Jf(ct);if(_n){const Ai=_n.kind===2||_n.kind===3?w.createToken(131):void 0,Qi=_n.kind===1||_n.kind===3?pr(w.createIdentifier(_n.parameterName),16777216):w.createThisTypeNode(),$o=_n.type&&d(_n.type,Mn);Ht=w.createTypePredicateNode(Ai,Qi,$o)}else{const Ai=ms(ct);Ai&&!(Ii&&Ct(Ai))?Ht=Ua(Mn,Ai,ct,Lr==null?void 0:Lr.privateSymbolVisitor,Lr==null?void 0:Lr.bundledImports):Ii||(Ht=w.createKeywordTypeNode(133))}let Ln=Lr==null?void 0:Lr.modifiers;if(Ie===185&&ct.flags&4){const Ai=M_(Ln);Ln=w.createModifiersFromModifierFlags(Ai|64)}const Li=Ie===179?w.createCallSignature(xi,wt,Ht):Ie===180?w.createConstructSignature(xi,wt,Ht):Ie===173?w.createMethodSignature(Ln,(_i=Lr==null?void 0:Lr.name)!=null?_i:w.createIdentifier(""),Lr==null?void 0:Lr.questionToken,xi,wt,Ht):Ie===174?w.createMethodDeclaration(Ln,void 0,(na=Lr==null?void 0:Lr.name)!=null?na:w.createIdentifier(""),void 0,xi,wt,Ht,void 0):Ie===176?w.createConstructorDeclaration(Ln,wt,void 0):Ie===177?w.createGetAccessorDeclaration(Ln,(kn=Lr==null?void 0:Lr.name)!=null?kn:w.createIdentifier(""),wt,Ht,void 0):Ie===178?w.createSetAccessorDeclaration(Ln,(ci=Lr==null?void 0:Lr.name)!=null?ci:w.createIdentifier(""),wt,void 0):Ie===181?w.createIndexSignature(Ln,wt,Ht):Ie===324?w.createJSDocFunctionType(wt,Ht):Ie===184?w.createFunctionTypeNode(xi,wt,Ht!=null?Ht:w.createTypeReferenceNode(w.createIdentifier(""))):Ie===185?w.createConstructorTypeNode(Ln,xi,wt,Ht!=null?Ht:w.createTypeReferenceNode(w.createIdentifier(""))):Ie===262?w.createFunctionDeclaration(Ln,void 0,Lr!=null&&Lr.name?oa(Lr.name,je):w.createIdentifier(""),xi,wt,Ht,void 0):Ie===218?w.createFunctionExpression(Ln,void 0,Lr!=null&&Lr.name?oa(Lr.name,je):w.createIdentifier(""),xi,wt,Ht,w.createBlock([])):Ie===219?w.createArrowFunction(Ln,xi,wt,Ht,void 0,w.createBlock([])):C.assertNever(Ie);if(Vr&&(Li.typeArguments=w.createNodeArray(Vr)),((di=ct.declaration)==null?void 0:di.kind)===330&&ct.declaration.parent.kind===346){const Ai=gc(ct.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(Qi=>Qi.replace(/^\s+/," ")).join("\n");fP(Li,3,Ai,!0)}return ft==null||ft(),Li}function ve(ct,Ie){if(ct.thisParameter)return cn(ct.thisParameter,Ie);if(ct.declaration&&sr(ct.declaration)){const Mn=E4(ct.declaration);if(Mn&&Mn.typeExpression)return w.createParameterDeclaration(void 0,void 0,"this",void 0,d(Ti(Mn.typeExpression),Ie))}}function Ge(ct,Ie,Mn){const Lr=Ie.flags;Ie.flags&=-513;const di=w.createModifiersFromModifierFlags(wve(ct)),Ii=Fo(ct,Ie),xi=JT(ct),Vr=xi&&d(xi,Ie);return Ie.flags=Lr,w.createTypeParameterDeclaration(di,Ii,Mn,Vr)}function vt(ct,Ie,Mn=Ld(ct)){const Lr=Mn&&d(Mn,Ie);return Ge(ct,Ie,Lr)}function xt(ct){const Ie=fl(ct,169);if(Ie)return Ie;if(!hh(ct))return fl(ct,348)}function cn(ct,Ie,Mn,Lr,di){const Ii=xt(ct);let xi=dr(ct);Ii&&m7e(Ii)&&(xi=Kb(xi));const Vr=xs(Ie,xi,ct,Ie.enclosingDeclaration,Lr,di),Rr=!(Ie.flags&8192)&&Mn&&Ii&&km(Ii)?Ot(kE(Ii),w.cloneNode):void 0,wt=Ii&&ng(Ii)||xl(ct)&32768?w.createToken(26):void 0,un=sn(ct,Ii,Ie),_n=Ii&&C8(Ii)||xl(ct)&16384?w.createToken(58):void 0,Ln=w.createParameterDeclaration(Rr,wt,un,_n,Vr,void 0);return Ie.approximateLength+=El(ct).length+3,Ln}function sn(ct,Ie,Mn){return Ie&&Ie.name?Ie.name.kind===80?pr(w.cloneNode(Ie.name),16777216):Ie.name.kind===166?pr(w.cloneNode(Ie.name.right),16777216):Lr(Ie.name):El(ct);function Lr(di){return Ii(di);function Ii(xi){Mn.tracker.canTrackSymbol&&rs(xi)&&Tge(xi)&&er(xi.expression,Mn.enclosingDeclaration,Mn);let Vr=xn(xi,Ii,void 0,void 0,Ii);return ns(Vr)&&(Vr=w.updateBindingElement(Vr,Vr.dotDotDotToken,Vr.propertyName,Vr.name,void 0)),Ys(Vr)||(Vr=w.cloneNode(Vr)),pr(Vr,16777217)}}}function er(ct,Ie,Mn){if(!Mn.tracker.canTrackSymbol)return;const Lr=Vp(ct),di=yl(Lr,Lr.escapedText,1160127,void 0,void 0,!0);di&&Mn.tracker.trackSymbol(di,Ie,111551)}function Wn(ct,Ie,Mn,Lr){return Ie.tracker.trackSymbol(ct,Ie.enclosingDeclaration,Mn),mn(ct,Ie,Mn,Lr)}function mn(ct,Ie,Mn,Lr){let di;return!(ct.flags&262144)&&(Ie.enclosingDeclaration||Ie.flags&64)&&!(Ie.flags&134217728)?(di=C.checkDefined(xi(ct,Mn,!0)),C.assert(di&&di.length>0)):di=[ct],di;function xi(Vr,Rr,ft){let wt=Rb(Vr,Ie.enclosingDeclaration,Rr,!!(Ie.flags&128)),un;if(!wt||oE(wt[0],Ie.enclosingDeclaration,wt.length===1?Rr:dv(Rr))){const _n=rE(wt?wt[0]:Vr,Ie.enclosingDeclaration,Rr);if(Le(_n)){un=_n.map(_i=>St(_i.declarations,ed)?Gn(_i,Ie):void 0);const Ln=_n.map((_i,na)=>na);Ln.sort(Ht);const Li=Ln.map(_i=>_n[_i]);for(const _i of Li){const na=xi(_i,dv(Rr),!1);if(na){if(_i.exports&&_i.exports.get("export=")&&p_(_i.exports.get("export="),Vr)){wt=na;break}wt=na.concat(wt||[Ig(_i,Vr)||Vr]);break}}}}if(wt)return wt;if(ft||!(Vr.flags&6144))return!ft&&!Lr&&He(Vr.declarations,ed)?void 0:[Vr];function Ht(_n,Ln){const Li=un[_n],_i=un[Ln];if(Li&&_i){const na=Wp(_i);return Wp(Li)===na?qF(Li)-qF(_i):na?-1:1}return 0}}}function Fn(ct,Ie){let Mn;return GC(ct).flags&524384&&(Mn=w.createNodeArray(Ot(wr(ct),di=>vt(di,Ie)))),Mn}function Pn(ct,Ie,Mn){var Lr;C.assert(ct&&0<=Ie&&Ie<ct.length);const di=ct[Ie],Ii=Ta(di);if((Lr=Mn.typeParameterSymbolList)!=null&&Lr.has(Ii))return;(Mn.typeParameterSymbolList||(Mn.typeParameterSymbolList=new Set)).add(Ii);let xi;if(Mn.flags&512&&Ie<ct.length-1){const Vr=di,Rr=ct[Ie+1];if(xl(Rr)&1){const ft=Wi(Vr.flags&2097152?Bc(Vr):Vr);xi=z(Ot(ft,wt=>Ub(wt,Rr.links.mapper)),Mn)}else xi=Fn(di,Mn)}return xi}function Vn(ct){return jS(ct.objectType)?Vn(ct.objectType):ct}function Gn(ct,Ie,Mn){var ft;let Lr=fl(ct,312);if(!Lr){const wt=qt(ct.declarations,un=>FT(un,ct));wt&&(Lr=fl(wt,312))}if(Lr&&Lr.moduleName!==void 0)return Lr.moduleName;if(!Lr){if(Ie.tracker.trackReferencedAmbientModule){const wt=rr(ct.declarations,ku);if(Le(wt))for(const un of wt)Ie.tracker.trackReferencedAmbientModule(un,ct)}if(Qq.test(ct.escapedName))return ct.escapedName.substring(1,ct.escapedName.length-1)}if(!Ie.enclosingDeclaration||!Ie.tracker.moduleResolverHost)return Qq.test(ct.escapedName)?ct.escapedName.substring(1,ct.escapedName.length-1):jn(Dj(ct)).fileName;const di=jn(Ml(Ie.enclosingDeclaration)),Ii=Mn||(di==null?void 0:di.impliedNodeFormat),xi=WP(di.path,Ii),Vr=Xi(ct);let Rr=Vr.specifierCache&&Vr.specifierCache.get(xi);if(!Rr){const wt=!!Os(V),{moduleResolverHost:un}=Ie.tracker,Ht=wt?{...V,baseUrl:un.getCommonSourceDirectory()}:V;Rr=Xa(Axe(ct,tn,Ht,di,un,{importModuleSpecifierPreference:wt?"non-relative":"project-relative",importModuleSpecifierEnding:wt?"minimal":Ii===99?"js":void 0},{overrideImportMode:Mn})),(ft=Vr.specifierCache)!=null||(Vr.specifierCache=new Map),Vr.specifierCache.set(xi,Rr)}return Rr}function tr(ct){const Ie=w.createIdentifier(ji(ct.escapedName));return ct.parent?w.createQualifiedName(tr(ct.parent),Ie):Ie}function mo(ct,Ie,Mn,Lr){const di=Wn(ct,Ie,Mn,!(Ie.flags&16384)),Ii=Mn===111551;if(St(di[0].declarations,ed)){const Rr=di.length>1?Vr(di,di.length-1,1):void 0,ft=Lr||Pn(di,0,Ie),wt=jn(Ml(Ie.enclosingDeclaration)),un=G4(di[0]);let Ht,_n;if((md(V)===3||md(V)===99)&&(un==null?void 0:un.impliedNodeFormat)===99&&un.impliedNodeFormat!==(wt==null?void 0:wt.impliedNodeFormat)&&(Ht=Gn(di[0],Ie,99),_n=w.createImportAttributes(w.createNodeArray([w.createImportAttribute(w.createStringLiteral("resolution-mode"),w.createStringLiteral("import"))]))),Ht||(Ht=Gn(di[0],Ie)),!(Ie.flags&67108864)&&md(V)!==1&&Ht.includes("/node_modules/")){const Li=Ht;if(md(V)===3||md(V)===99){const _i=(wt==null?void 0:wt.impliedNodeFormat)===99?1:99;Ht=Gn(di[0],Ie,_i),Ht.includes("/node_modules/")?Ht=Li:_n=w.createImportAttributes(w.createNodeArray([w.createImportAttribute(w.createStringLiteral("resolution-mode"),w.createStringLiteral(_i===99?"import":"require"))]))}_n||(Ie.encounteredError=!0,Ie.tracker.reportLikelyUnsafeImportRequiredError&&Ie.tracker.reportLikelyUnsafeImportRequiredError(Li))}const Ln=w.createLiteralTypeNode(w.createStringLiteral(Ht));if(Ie.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ie.tracker.trackExternalModuleSymbolOfImportTypeNode(di[0]),Ie.approximateLength+=Ht.length+10,!Rr||Zd(Rr)){if(Rr){const Li=je(Rr)?Rr:Rr.right;Kv(Li,void 0)}return w.createImportTypeNode(Ln,_n,Rr,ft,Ii)}else{const Li=Vn(Rr),_i=Li.objectType.typeName;return w.createIndexedAccessTypeNode(w.createImportTypeNode(Ln,_n,_i,ft,Ii),Li.indexType)}}const xi=Vr(di,di.length-1,0);if(jS(xi))return xi;if(Ii)return w.createTypeQueryNode(xi);{const Rr=je(xi)?xi:xi.right,ft=zS(Rr);return Kv(Rr,void 0),w.createTypeReferenceNode(xi,ft)}function Vr(Rr,ft,wt){const un=ft===Rr.length-1?Lr:Pn(Rr,ft,Ie),Ht=Rr[ft],_n=Rr[ft-1];let Ln;if(ft===0)Ie.flags|=16777216,Ln=aE(Ht,Ie),Ie.approximateLength+=(Ln?Ln.length:0)+1,Ie.flags^=16777216;else if(_n&&Mp(_n)){const _i=Mp(_n);jc(_i,(na,kn)=>{if(p_(na,Ht)&&!x8(kn)&&kn!=="export=")return Ln=ji(kn),!0})}if(Ln===void 0){const _i=qt(Ht.declarations,Po);if(_i&&rs(_i)&&Zd(_i.expression)){const na=Vr(Rr,ft-1,wt);return Zd(na)?w.createIndexedAccessTypeNode(w.createParenthesizedType(w.createTypeQueryNode(na)),w.createTypeQueryNode(_i.expression)):na}Ln=aE(Ht,Ie)}if(Ie.approximateLength+=Ln.length+1,!(Ie.flags&16)&&_n&&Fb(_n)&&Fb(_n).get(Ht.escapedName)&&p_(Fb(_n).get(Ht.escapedName),Ht)){const _i=Vr(Rr,ft-1,wt);return jS(_i)?w.createIndexedAccessTypeNode(_i,w.createLiteralTypeNode(w.createStringLiteral(Ln))):w.createIndexedAccessTypeNode(w.createTypeReferenceNode(_i,un),w.createLiteralTypeNode(w.createStringLiteral(Ln)))}const Li=pr(w.createIdentifier(Ln),16777216);if(un&&Kv(Li,w.createNodeArray(un)),Li.symbol=Ht,ft>wt){const _i=Vr(Rr,ft-1,wt);return Zd(_i)?w.createQualifiedName(_i,Li):C.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Li}}function _o(ct,Ie,Mn){const Lr=yl(Ie.enclosingDeclaration,ct,788968,void 0,ct,!1);return Lr&&Lr.flags&262144?Lr!==Mn.symbol:!1}function Fo(ct,Ie){var Mn,Lr;if(Ie.flags&4&&Ie.typeParameterNames){const Ii=Ie.typeParameterNames.get(yd(ct));if(Ii)return Ii}let di=vo(ct.symbol,Ie,788968,!0);if(!(di.kind&80))return w.createIdentifier("(Missing type parameter)");if(Ie.flags&4){const Ii=di.escapedText;let xi=((Mn=Ie.typeParameterNamesByTextNextNameCount)==null?void 0:Mn.get(Ii))||0,Vr=Ii;for(;(Lr=Ie.typeParameterNamesByText)!=null&&Lr.has(Vr)||_o(Vr,Ie,ct);)xi++,Vr="".concat(Ii,"_").concat(xi);if(Vr!==Ii){const Rr=zS(di);di=w.createIdentifier(Vr),Kv(di,Rr)}(Ie.typeParameterNamesByTextNextNameCount||(Ie.typeParameterNamesByTextNextNameCount=new Map)).set(Ii,xi),(Ie.typeParameterNames||(Ie.typeParameterNames=new Map)).set(yd(ct),di),(Ie.typeParameterNamesByText||(Ie.typeParameterNamesByText=new Set)).add(Vr)}return di}function vo(ct,Ie,Mn,Lr){const di=Wn(ct,Ie,Mn);return Lr&&di.length!==1&&!Ie.encounteredError&&!(Ie.flags&65536)&&(Ie.encounteredError=!0),Ii(di,di.length-1);function Ii(xi,Vr){const Rr=Pn(xi,Vr,Ie),ft=xi[Vr];Vr===0&&(Ie.flags|=16777216);const wt=aE(ft,Ie);Vr===0&&(Ie.flags^=16777216);const un=pr(w.createIdentifier(wt),16777216);return Rr&&Kv(un,w.createNodeArray(Rr)),un.symbol=ft,Vr>0?w.createQualifiedName(Ii(xi,Vr-1),un):un}}function Mc(ct,Ie,Mn){const Lr=Wn(ct,Ie,Mn);return di(Lr,Lr.length-1);function di(Ii,xi){const Vr=Pn(Ii,xi,Ie),Rr=Ii[xi];xi===0&&(Ie.flags|=16777216);let ft=aE(Rr,Ie);xi===0&&(Ie.flags^=16777216);let wt=ft.charCodeAt(0);if(VL(wt)&&St(Rr.declarations,ed))return w.createStringLiteral(Gn(Rr,Ie));if(xi===0||JU(ft,se)){const un=pr(w.createIdentifier(ft),16777216);return Vr&&Kv(un,w.createNodeArray(Vr)),un.symbol=Rr,xi>0?w.createPropertyAccessExpression(di(Ii,xi-1),un):un}else{wt===91&&(ft=ft.substring(1,ft.length-1),wt=ft.charCodeAt(0));let un;if(VL(wt)&&!(Rr.flags&8)?un=w.createStringLiteral(am(ft).replace(/\\./g,Ht=>Ht.substring(1)),wt===39):""+ +ft===ft&&(un=w.createNumericLiteral(+ft)),!un){const Ht=pr(w.createIdentifier(ft),16777216);Vr&&Kv(Ht,w.createNodeArray(Vr)),Ht.symbol=Rr,un=Ht}return w.createElementAccessExpression(di(Ii,xi-1),un)}}}function $f(ct){const Ie=Po(ct);return Ie?rs(Ie)?!!(go(Ie.expression).flags&402653316):$s(Ie)?!!(go(Ie.argumentExpression).flags&402653316):Ma(Ie):!1}function fp(ct){const Ie=Po(ct);return!!(Ie&&Ma(Ie)&&(Ie.singleQuote||!Ys(Ie)&&po(gc(Ie,!1),"'")))}function On(ct,Ie){const Mn=!!Le(ct.declarations)&&Yn(ct.declarations,$f),Lr=!!Le(ct.declarations)&&Yn(ct.declarations,fp),di=!!(ct.flags&8192),Ii=Zn(ct,Ie,Lr,Mn,di);if(Ii)return Ii;const xi=ji(ct.escapedName);return oW(xi,ls(V),Lr,Mn,di)}function Zn(ct,Ie,Mn,Lr,di){const Ii=Xi(ct).nameType;if(Ii){if(Ii.flags&384){const xi=""+Ii.value;return!tf(xi,ls(V))&&(Lr||!pg(xi))?w.createStringLiteral(xi,!!Mn):pg(xi)&&po(xi,"-")?w.createComputedPropertyName(w.createPrefixUnaryExpression(41,w.createNumericLiteral(-xi))):oW(xi,ls(V),Mn,Lr,di)}if(Ii.flags&8192)return w.createComputedPropertyName(Mc(Ii.symbol,Ie,111551))}}function lo(ct){const Ie={...ct};return Ie.typeParameterNames&&(Ie.typeParameterNames=new Map(Ie.typeParameterNames)),Ie.typeParameterNamesByText&&(Ie.typeParameterNamesByText=new Set(Ie.typeParameterNamesByText)),Ie.typeParameterSymbolList&&(Ie.typeParameterSymbolList=new Set(Ie.typeParameterSymbolList)),Ie.tracker=new eJ(Ie,Ie.tracker.inner,Ie.tracker.moduleResolverHost),Ie}function Sr(ct,Ie){return ct.declarations&&Tn(ct.declarations,Mn=>!!bu(Mn)&&(!Ie||!!zn(Mn,Lr=>Lr===Ie)))}function Co(ct,Ie){return!(Wr(Ie)&4)||!Nf(ct)||Le(ct.typeArguments)>=Uh(Ie.target.typeParameters)}function us(ct){for(;Qr(ct).fakeScopeForSignatureDeclaration;)ct=ct.parent;return ct}function xs(ct,Ie,Mn,Lr,di,Ii){if(!Kt(Ie)&&Lr){const Rr=Sr(Mn,us(Lr));if(Rr&&!js(Rr)&&!rf(Rr)){const ft=bu(Rr);if(ju(ft,Rr,Ie)&&Co(ft,Ie)){const wt=zl(ct,ft,di,Ii);if(wt)return wt}}}const xi=ct.flags;Ie.flags&8192&&Ie.symbol===Mn&&(!ct.enclosingDeclaration||St(Mn.declarations,Rr=>jn(Rr)===jn(ct.enclosingDeclaration)))&&(ct.flags|=1048576);const Vr=d(Ie,ct);return ct.flags=xi,Vr}function ju(ct,Ie,Mn){const Lr=Ti(ct);return Lr===Mn?!0:Io(Ie)&&Ie.questionToken?bm(Mn,524288)===Lr:!1}function Ua(ct,Ie,Mn,Lr,di){if(!Kt(Ie)&&ct.enclosingDeclaration){const Ii=Mn.declaration&&sm(Mn.declaration),xi=us(ct.enclosingDeclaration);if(zn(Ii,Vr=>Vr===xi)&&Ii){const Vr=Ti(Ii);if((Vr.flags&262144&&Vr.isThisType?co(Vr,Mn.mapper):Vr)===Ie&&Co(Ii,Ie)){const ft=zl(ct,Ii,Lr,di);if(ft)return ft}}}return d(Ie,ct)}function wd(ct,Ie,Mn){let Lr=!1;const di=Vp(ct);if(sr(ct)&&(RS(di)||ag(di.parent)||Id(di.parent)&&qj(di.parent.left)&&RS(di.parent.right)))return Lr=!0,{introducesError:Lr,node:ct};const Ii=jf(ct),xi=qs(di,Ii,!0,!0);if(xi&&(Ni(xi,Ie.enclosingDeclaration,Ii,!1).accessibility!==0?Lr=!0:(Ie.tracker.trackSymbol(xi,Ie.enclosingDeclaration,Ii),Mn==null||Mn(xi)),je(ct))){const Vr=Zs(xi),Rr=xi.flags&262144?Fo(Vr,Ie):w.cloneNode(ct);return Rr.symbol=xi,{introducesError:Lr,node:pr(Pr(Rr,ct),16777216)}}return{introducesError:Lr,node:ct}}function zl(ct,Ie,Mn,Lr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let di=!1;const Ii=jn(Ie),xi=rt(Ie,Vr,Ui);if(di)return;return xi===Ie?ut(w.cloneNode(Ie),Ie):xi;function Vr(Rr){if(tse(Rr)||Rr.kind===326)return w.createKeywordTypeNode(133);if(nse(Rr))return w.createKeywordTypeNode(159);if(QR(Rr))return w.createUnionTypeNode([rt(Rr.type,Vr,Ui),w.createLiteralTypeNode(w.createNull())]);if(zH(Rr))return w.createUnionTypeNode([rt(Rr.type,Vr,Ui),w.createKeywordTypeNode(157)]);if(sF(Rr))return rt(Rr.type,Vr);if(lF(Rr))return w.createArrayTypeNode(rt(Rr.type,Vr,Ui));if(XS(Rr))return w.createTypeLiteralNode(Ot(Rr.jsDocPropertyTags,Ht=>{const _n=je(Ht.name)?Ht.name:Ht.name.right,Ln=Ke(Ti(Rr),_n.escapedText),Li=Ln&&Ht.typeExpression&&Ti(Ht.typeExpression.type)!==Ln?d(Ln,ct):void 0;return w.createPropertySignature(void 0,_n,Ht.isBracketed||Ht.typeExpression&&zH(Ht.typeExpression.type)?w.createToken(58):void 0,Li||Ht.typeExpression&&rt(Ht.typeExpression.type,Vr,Ui)||w.createKeywordTypeNode(133))}));if(Nf(Rr)&&je(Rr.typeName)&&Rr.typeName.escapedText==="")return Pr(w.createKeywordTypeNode(133),Rr);if((Xv(Rr)||Nf(Rr))&&u3(Rr))return w.createTypeLiteralNode([w.createIndexSignature(void 0,[w.createParameterDeclaration(void 0,void 0,"x",void 0,rt(Rr.typeArguments[0],Vr,Ui))],rt(Rr.typeArguments[1],Vr,Ui))]);if(ZR(Rr))if(SR(Rr)){let Ht;return w.createConstructorTypeNode(void 0,Bn(Rr.typeParameters,Vr,gl),Hi(Rr.parameters,(_n,Ln)=>_n.name&&je(_n.name)&&_n.name.escapedText==="new"?(Ht=_n.type,void 0):w.createParameterDeclaration(void 0,ft(_n),wt(_n,Ln),_n.questionToken,rt(_n.type,Vr,Ui),void 0)),rt(Ht||Rr.type,Vr,Ui)||w.createKeywordTypeNode(133))}else return w.createFunctionTypeNode(Bn(Rr.typeParameters,Vr,gl),Ot(Rr.parameters,(Ht,_n)=>w.createParameterDeclaration(void 0,ft(Ht),wt(Ht,_n),Ht.questionToken,rt(Ht.type,Vr,Ui),void 0)),rt(Rr.type,Vr,Ui)||w.createKeywordTypeNode(133));if(Nf(Rr)&&GL(Rr)&&(!Co(Rr,Ti(Rr))||i6e(Rr)||pt===DC(Rr,788968,!0)))return Pr(d(Ti(Rr),ct),Rr);if(Vy(Rr)){const Ht=Qr(Rr).resolvedSymbol;return GL(Rr)&&Ht&&(!Rr.isTypeOf&&!(Ht.flags&788968)||!(Le(Rr.typeArguments)>=Uh(wr(Ht))))?Pr(d(Ti(Rr),ct),Rr):w.updateImportTypeNode(Rr,w.updateLiteralTypeNode(Rr.argument,un(Rr,Rr.argument.literal)),Rr.attributes,Rr.qualifier,Bn(Rr.typeArguments,Vr,Ui),Rr.isTypeOf)}if(Zd(Rr)||jl(Rr)){const{introducesError:Ht,node:_n}=wd(Rr,ct,Mn);if(di=di||Ht,_n!==Rr)return _n}return Ii&&cI(Rr)&&Ts(Ii,Rr.pos).line===Ts(Ii,Rr.end).line&&pr(Rr,1),xn(Rr,Vr,void 0);function ft(Ht){return Ht.dotDotDotToken||(Ht.type&&lF(Ht.type)?w.createToken(26):void 0)}function wt(Ht,_n){return Ht.name&&je(Ht.name)&&Ht.name.escapedText==="this"?"this":ft(Ht)?"args":"arg".concat(_n)}function un(Ht,_n){if(Lr){if(ct.tracker&&ct.tracker.moduleResolverHost){const Ln=Bbe(Ht);if(Ln){const _i={getCanonicalFileName:Mu(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ct.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ct.tracker.moduleResolverHost.getCommonSourceDirectory()},na=T3(_i,Ln);return w.createStringLiteral(na)}}}else if(ct.tracker&&ct.tracker.trackExternalModuleSymbolOfImportTypeNode){const Ln=cv(_n,_n,void 0);Ln&&ct.tracker.trackExternalModuleSymbolOfImportTypeNode(Ln)}return _n}}}function bl(ct,Ie,Mn){var Lr;const di=_s(w.createPropertyDeclaration,174,!0),Ii=_s((Mt,Cr,pi,Jr)=>w.createPropertySignature(Mt,Cr,pi,Jr),173,!1),xi=Ie.enclosingDeclaration;let Vr=[];const Rr=new Set,ft=[],wt=Ie;Ie={...wt,usedSymbolNames:new Set(wt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Lr=wt.remappedSymbolReferences)==null?void 0:Lr.entries()),tracker:void 0};const un={...wt.tracker.inner,trackSymbol:(Mt,Cr,pi)=>{var Jr,li;if((Jr=Ie.remappedSymbolNames)!=null&&Jr.has(Ta(Mt)))return!1;if(Ni(Mt,Cr,pi,!1).accessibility===0){const da=mn(Mt,Ie,pi);if(!(Mt.flags&4)){const jo=da[0],Vs=jn(wt.enclosingDeclaration);St(jo.declarations,hs=>jn(hs)===Vs)&&Ls(jo)}}else if((li=wt.tracker.inner)!=null&&li.trackSymbol)return wt.tracker.inner.trackSymbol(Mt,Cr,pi);return!1}};Ie.tracker=new eJ(Ie,un,wt.tracker.moduleResolverHost),jc(ct,(Mt,Cr)=>{const pi=ji(Cr);Km(Mt,pi)});let Ht=!Mn;const _n=ct.get("export=");return _n&&ct.size>1&&_n.flags&2098688&&(ct=ua(),ct.set("export=",_n)),$o(ct),ci(Vr);function Ln(Mt){return!!Mt&&Mt.kind===80}function Li(Mt){return kl(Mt)?rr(Ot(Mt.declarationList.declarations,Po),Ln):rr([Po(Mt)],Ln)}function _i(Mt){const Cr=Tn(Mt,wl),pi=Br(Mt,Ql);let Jr=pi!==-1?Mt[pi]:void 0;if(Jr&&Cr&&Cr.isExportEquals&&je(Cr.expression)&&je(Jr.name)&&Tr(Jr.name)===Tr(Cr.expression)&&Jr.body&&O_(Jr.body)){const li=rr(Mt,jo=>!!(pd(jo)&32)),as=Jr.name;let da=Jr.body;if(Le(li)&&(Jr=w.updateModuleDeclaration(Jr,Jr.modifiers,Jr.name,da=w.updateModuleBlock(da,w.createNodeArray([...Jr.body.statements,w.createExportDeclaration(void 0,!1,w.createNamedExports(Ot(Pi(li,jo=>Li(jo)),jo=>w.createExportSpecifier(!1,void 0,jo))),void 0)]))),Mt=[...Mt.slice(0,pi),Jr,...Mt.slice(pi+1)]),!Tn(Mt,jo=>jo!==Jr&&uL(jo,as))){Vr=[];const jo=!St(da.statements,Vs=>$r(Vs,32)||wl(Vs)||Zl(Vs));He(da.statements,Vs=>{ks(Vs,jo?32:0)}),Mt=[...rr(Mt,Vs=>Vs!==Jr&&Vs!==Cr),...Vr]}}return Mt}function na(Mt){const Cr=rr(Mt,Jr=>Zl(Jr)&&!Jr.moduleSpecifier&&!!Jr.exportClause&&Pf(Jr.exportClause));Le(Cr)>1&&(Mt=[...rr(Mt,li=>!Zl(li)||!!li.moduleSpecifier||!li.exportClause),w.createExportDeclaration(void 0,!1,w.createNamedExports(Pi(Cr,li=>oa(li.exportClause,Pf).elements)),void 0)]);const pi=rr(Mt,Jr=>Zl(Jr)&&!!Jr.moduleSpecifier&&!!Jr.exportClause&&Pf(Jr.exportClause));if(Le(pi)>1){const Jr=YC(pi,li=>Ma(li.moduleSpecifier)?">"+li.moduleSpecifier.text:">");if(Jr.length!==pi.length)for(const li of Jr)li.length>1&&(Mt=[...rr(Mt,as=>!li.includes(as)),w.createExportDeclaration(void 0,!1,w.createNamedExports(Pi(li,as=>oa(as.exportClause,Pf).elements)),li[0].moduleSpecifier)])}return Mt}function kn(Mt){const Cr=Br(Mt,pi=>Zl(pi)&&!pi.moduleSpecifier&&!pi.attributes&&!!pi.exportClause&&Pf(pi.exportClause));if(Cr>=0){const pi=Mt[Cr],Jr=Hi(pi.exportClause.elements,li=>{if(!li.propertyName){const as=OM(Mt),da=rr(as,jo=>uL(Mt[jo],li.name));if(Le(da)&&Yn(da,jo=>Ik(Mt[jo]))){for(const jo of da)Mt[jo]=Ai(Mt[jo]);return}}return li});Le(Jr)?Mt[Cr]=w.updateExportDeclaration(pi,pi.modifiers,pi.isTypeOnly,w.updateNamedExports(pi.exportClause,Jr),pi.moduleSpecifier,pi.attributes):Dy(Mt,Cr)}return Mt}function ci(Mt){return Mt=_i(Mt),Mt=na(Mt),Mt=kn(Mt),xi&&(Zi(xi)&&zp(xi)||Ql(xi))&&(!St(Mt,EL)||!Qre(Mt)&&St(Mt,N4))&&Mt.push(tw(w)),Mt}function Ai(Mt){const Cr=(pd(Mt)|32)&-129;return w.replaceModifiers(Mt,Cr)}function Qi(Mt){const Cr=pd(Mt)&-33;return w.replaceModifiers(Mt,Cr)}function $o(Mt,Cr,pi){Cr||ft.push(new Map),Mt.forEach(Jr=>{Tl(Jr,!1,!!pi)}),Cr||(ft[ft.length-1].forEach(Jr=>{Tl(Jr,!0,!!pi)}),ft.pop())}function Tl(Mt,Cr,pi){const Jr=ss(Mt);if(Rr.has(Ta(Jr)))return;if(Rr.add(Ta(Jr)),!Cr||Le(Mt.declarations)&&St(Mt.declarations,as=>!!zn(as,da=>da===xi))){const as=Ie;Ie=lo(Ie),pl(Mt,Cr,pi),Ie.reportedDiagnostic&&(wt.reportedDiagnostic=Ie.reportedDiagnostic),Ie.trackedSymbols&&(as.trackedSymbols?C.assert(Ie.trackedSymbols===as.trackedSymbols):as.trackedSymbols=Ie.trackedSymbols),Ie=as}}function pl(Mt,Cr,pi,Jr=Mt.escapedName){var li,as,da,jo,Vs,hs;const Ha=ji(Jr),Cu=Jr==="default";if(Cr&&!(Ie.flags&131072)&&GA(Ha)&&!Cu){Ie.encounteredError=!0;return}let Nu=Cu&&!!(Mt.flags&-113||Mt.flags&16&&Le(bs(dr(Mt))))&&!(Mt.flags&2097152),Ed=!Nu&&!Cr&&GA(Ha)&&!Cu;(Nu||Ed)&&(Cr=!0);const Yl=(Cr?0:32)|(Cu&&!Nu?2048:0),Pu=Mt.flags&1536&&Mt.flags&7&&Jr!=="export=",$d=Pu&&ws(dr(Mt),Mt);if((Mt.flags&8208||$d)&&In(dr(Mt),Mt,Km(Mt,Ha),Yl),Mt.flags&524288&&Qf(Mt,Ha,Yl),Mt.flags&98311&&Jr!=="export="&&!(Mt.flags&4194304)&&!(Mt.flags&32)&&!(Mt.flags&8192)&&!$d)if(pi)Da(Mt)&&(Ed=!1,Nu=!1);else{const su=dr(Mt),wp=Km(Mt,Ha);if(su.symbol&&su.symbol!==Mt&&su.symbol.flags&16&&St(su.symbol.declarations,e1)&&((li=su.symbol.members)!=null&&li.size||(as=su.symbol.exports)!=null&&as.size))Ie.remappedSymbolReferences||(Ie.remappedSymbolReferences=new Map),Ie.remappedSymbolReferences.set(Ta(su.symbol),Mt),pl(su.symbol,Cr,pi,Jr),Ie.remappedSymbolReferences.delete(Ta(su.symbol));else if(!(Mt.flags&16)&&ws(su,Mt))In(su,Mt,wp,Yl);else{const Cx=Mt.flags&2?rM(Mt)?2:1:(da=Mt.parent)!=null&&da.valueDeclaration&&Zi((jo=Mt.parent)==null?void 0:jo.valueDeclaration)?2:void 0,ah=Nu||!(Mt.flags&4)?wp:S_(wp,Mt);let Qb=Mt.declarations&&Tn(Mt.declarations,p6=>ki(p6));Qb&&qc(Qb.parent)&&Qb.parent.declarations.length===1&&(Qb=Qb.parent.parent);const Zb=(Vs=Mt.declarations)==null?void 0:Vs.find(Fr);if(Zb&&mr(Zb.parent)&&je(Zb.parent.right)&&((hs=su.symbol)!=null&&hs.valueDeclaration)&&Zi(su.symbol.valueDeclaration)){const p6=wp===Zb.parent.right.escapedText?void 0:Zb.parent.right;ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,p6,wp)])),0),Ie.tracker.trackSymbol(su.symbol,Ie.enclosingDeclaration,111551)}else{const p6=ut(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ah,void 0,xs(Ie,su,Mt,xi,Ls,Mn))],Cx)),Qb);ks(p6,ah!==wp?Yl&-33:Yl),ah!==wp&&!Cr&&(ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,ah,wp)])),0),Ed=!1,Nu=!1)}}}if(Mt.flags&384&&Dr(Mt,Ha,Yl),Mt.flags&32&&(Mt.flags&4&&Mt.valueDeclaration&&mr(Mt.valueDeclaration.parent)&&tu(Mt.valueDeclaration.parent.right)?Ei(Mt,Km(Mt,Ha),Yl):ma(Mt,Km(Mt,Ha),Yl)),(Mt.flags&1536&&(!Pu||rn(Mt))||$d)&&Xn(Mt,Ha,Yl),Mt.flags&64&&!(Mt.flags&32)&&tt(Mt,Ha,Yl),Mt.flags&2097152&&Ei(Mt,Km(Mt,Ha),Yl),Mt.flags&4&&Mt.escapedName==="export="&&Da(Mt),Mt.flags&8388608&&Mt.declarations)for(const su of Mt.declarations){const wp=gd(su,su.moduleSpecifier);wp&&ks(w.createExportDeclaration(void 0,su.isTypeOnly,void 0,w.createStringLiteral(Gn(wp,Ie))),0)}Nu?ks(w.createExportAssignment(void 0,!1,w.createIdentifier(Km(Mt,Ha))),0):Ed&&ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,Km(Mt,Ha),Ha)])),0)}function Ls(Mt){if(St(Mt.declarations,JE))return;C.assertIsDefined(ft[ft.length-1]),S_(ji(Mt.escapedName),Mt);const Cr=!!(Mt.flags&2097152)&&!St(Mt.declarations,pi=>!!zn(pi,Zl)||Ih(pi)||ru(pi)&&!xh(pi.moduleReference));ft[Cr?0:ft.length-1].set(Ta(Mt),Mt)}function Yc(Mt){return Zi(Mt)&&(zp(Mt)||rm(Mt))||ku(Mt)&&!R_(Mt)}function ks(Mt,Cr){if(km(Mt)){let pi=0;const Jr=Ie.enclosingDeclaration&&(im(Ie.enclosingDeclaration)?jn(Ie.enclosingDeclaration):Ie.enclosingDeclaration);Cr&32&&Jr&&(Yc(Jr)||Ql(Jr))&&Ik(Mt)&&(pi|=32),Ht&&!(pi&32)&&(!Jr||!(Jr.flags&33554432))&&(D0(Mt)||kl(Mt)||xc(Mt)||Rc(Mt)||Ql(Mt))&&(pi|=128),Cr&2048&&(Rc(Mt)||hd(Mt)||xc(Mt))&&(pi|=2048),pi&&(Mt=w.replaceModifiers(Mt,pi|pd(Mt)))}Vr.push(Mt)}function Qf(Mt,Cr,pi){var Jr;const li=f8e(Mt),as=Xi(Mt).typeParameters,da=Ot(as,Nu=>vt(Nu,Ie)),jo=(Jr=Mt.declarations)==null?void 0:Jr.find(im),Vs=fL(jo?jo.comment||jo.parent.comment:void 0),hs=Ie.flags;Ie.flags|=8388608;const Ha=Ie.enclosingDeclaration;Ie.enclosingDeclaration=jo;const Cu=jo&&jo.typeExpression&&f1(jo.typeExpression)&&zl(Ie,jo.typeExpression.type,Ls,Mn)||d(li,Ie);ks(R0(w.createTypeAliasDeclaration(void 0,Km(Mt,Cr),da,Cu),Vs?[{kind:3,text:"*\n * "+Vs.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),pi),Ie.flags=hs,Ie.enclosingDeclaration=Ha}function tt(Mt,Cr,pi){const Jr=qf(Mt),li=wr(Mt),as=Ot(li,Ed=>vt(Ed,Ie)),da=dp(Jr),jo=Le(da)?Ea(da):void 0,Vs=Pi(bs(Jr),Ed=>Lc(Ed,jo)),hs=Xh(0,Jr,jo,179),Ha=Xh(1,Jr,jo,180),Cu=Iv(Jr,jo),Nu=Le(da)?[w.createHeritageClause(96,Hi(da,Ed=>fA(Ed,111551)))]:void 0;ks(w.createInterfaceDeclaration(void 0,Km(Mt,Cr),as,Nu,[...Cu,...Ha,...hs,...Vs]),pi)}function Et(Mt){let Cr=Wo(Mp(Mt).values());const pi=ss(Mt);if(pi!==Mt){const Jr=new Set(Cr);for(const li of Mp(pi).values())Iu(Hl(li))&111551||Jr.add(li);Cr=Wo(Jr)}return rr(Cr,Jr=>Fi(Jr)&&tf(Jr.escapedName,99))}function rn(Mt){return Yn(Et(Mt),Cr=>!(Iu(Hl(Cr))&111551))}function Xn(Mt,Cr,pi){const Jr=Et(Mt),li=FM(Jr,jo=>jo.parent&&jo.parent===Mt?"real":"merged"),as=li.get("real")||et,da=li.get("merged")||et;if(Le(as)){const jo=Km(Mt,Cr);jr(as,jo,pi,!!(Mt.flags&67108880))}if(Le(da)){const jo=jn(Ie.enclosingDeclaration),Vs=Km(Mt,Cr),hs=w.createModuleBlock([w.createExportDeclaration(void 0,!1,w.createNamedExports(Hi(rr(da,Ha=>Ha.escapedName!=="export="),Ha=>{var Cu,Nu;const Ed=ji(Ha.escapedName),Yl=Km(Ha,Ed),Pu=Ha.declarations&&zm(Ha);if(jo&&(Pu?jo!==jn(Pu):!St(Ha.declarations,wp=>jn(wp)===jo))){(Nu=(Cu=Ie.tracker)==null?void 0:Cu.reportNonlocalAugmentation)==null||Nu.call(Cu,jo,Mt,Ha);return}const $d=Pu&&Hp(Pu,!0);Ls($d||Ha);const su=$d?Km($d,ji($d.escapedName)):Yl;return w.createExportSpecifier(!1,Ed===su?void 0:su,Ed)})))]);ks(w.createModuleDeclaration(void 0,w.createIdentifier(Vs),hs,32),0)}}function Dr(Mt,Cr,pi){ks(w.createEnumDeclaration(w.createModifiersFromModifierFlags(sbe(Mt)?4096:0),Km(Mt,Cr),Ot(rr(bs(dr(Mt)),Jr=>!!(Jr.flags&8)),Jr=>{const li=Jr.declarations&&Jr.declarations[0]&&p1(Jr.declarations[0])?Wbe(Jr.declarations[0]):void 0;return w.createEnumMember(ji(Jr.escapedName),li===void 0?void 0:typeof li=="string"?w.createStringLiteral(li):w.createNumericLiteral(li))})),pi)}function In(Mt,Cr,pi,Jr){const li=Ko(Mt,0);for(const as of li){const da=Se(as,262,Ie,{name:w.createIdentifier(pi),privateSymbolVisitor:Ls,bundledImports:Mn});ks(ut(da,yr(as)),Jr)}if(!(Cr.flags&1536&&Cr.exports&&Cr.exports.size)){const as=rr(bs(Mt),Fi);jr(as,pi,Jr,!0)}}function yr(Mt){if(Mt.declaration&&Mt.declaration.parent){if(mr(Mt.declaration.parent)&&Vl(Mt.declaration.parent)===5)return Mt.declaration.parent;if(ki(Mt.declaration.parent)&&Mt.declaration.parent.parent)return Mt.declaration.parent.parent}return Mt.declaration}function jr(Mt,Cr,pi,Jr){if(Le(Mt)){const as=FM(Mt,Yl=>!Le(Yl.declarations)||St(Yl.declarations,Pu=>jn(Pu)===jn(Ie.enclosingDeclaration))?"local":"remote").get("local")||et;let da=Rh.createModuleDeclaration(void 0,w.createIdentifier(Cr),w.createModuleBlock([]),32);Ya(da,xi),da.locals=ua(Mt),da.symbol=Mt[0].parent;const jo=Vr;Vr=[];const Vs=Ht;Ht=!1;const hs={...Ie,enclosingDeclaration:da},Ha=Ie;Ie=hs,$o(ua(as),Jr,!0),Ie=Ha,Ht=Vs;const Cu=Vr;Vr=jo;const Nu=Ot(Cu,Yl=>wl(Yl)&&!Yl.isExportEquals&&je(Yl.expression)?w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,Yl.expression,w.createIdentifier("default"))])):Yl),Ed=Yn(Nu,Yl=>$r(Yl,32))?Ot(Nu,Qi):Nu;da=w.updateModuleDeclaration(da,da.modifiers,da.name,w.createModuleBlock(Ed)),ks(da,pi)}}function Fi(Mt){return!!(Mt.flags&2887656)||!(Mt.flags&4194304||Mt.escapedName==="prototype"||Mt.valueDeclaration&&aa(Mt.valueDeclaration)&&ui(Mt.valueDeclaration.parent))}function Oo(Mt){const Cr=Hi(Mt,pi=>{const Jr=Ie.enclosingDeclaration;Ie.enclosingDeclaration=pi;let li=pi.expression;if(jl(li)){if(je(li)&&Tr(li)==="")return as(void 0);let da;if({introducesError:da,node:li}=wd(li,Ie,Ls),da)return as(void 0)}return as(w.createExpressionWithTypeArguments(li,Ot(pi.typeArguments,da=>zl(Ie,da,Ls,Mn)||d(Ti(da),Ie))));function as(da){return Ie.enclosingDeclaration=Jr,da}});if(Cr.length===Mt.length)return Cr}function ma(Mt,Cr,pi){var Jr,li;const as=(Jr=Mt.declarations)==null?void 0:Jr.find(ui),da=Ie.enclosingDeclaration;Ie.enclosingDeclaration=as||da;const jo=wr(Mt),Vs=Ot(jo,sh=>vt(sh,Ie)),hs=Kp(qf(Mt)),Ha=dp(hs),Cu=as&&IR(as),Nu=Cu&&Oo(Cu)||Hi(Q_(hs),hM),Ed=dr(Mt),Yl=!!((li=Ed.symbol)!=null&&li.valueDeclaration)&&ui(Ed.symbol.valueDeclaration),Pu=Yl?Hf(Ed):j,$d=[...Le(Ha)?[w.createHeritageClause(96,Ot(Ha,sh=>pA(sh,Pu,Cr)))]:[],...Le(Nu)?[w.createHeritageClause(119,Nu)]:[]],su=Nvt(hs,Ha,bs(hs)),wp=rr(su,sh=>{const gM=sh.valueDeclaration;return!!gM&&!(ld(gM)&&Ji(gM.name))}),ah=St(su,sh=>{const gM=sh.valueDeclaration;return!!gM&&ld(gM)&&Ji(gM.name)})?[w.createPropertyDeclaration(void 0,w.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:et,Qb=Pi(wp,sh=>di(sh,!1,Ha[0])),Zb=Pi(rr(bs(Ed),sh=>!(sh.flags&4194304)&&sh.escapedName!=="prototype"&&!Fi(sh)),sh=>di(sh,!0,Pu)),Jbt=!Yl&&!!Mt.valueDeclaration&&sr(Mt.valueDeclaration)&&!St(Ko(Ed,1))?[w.createConstructorDeclaration(w.createModifiersFromModifierFlags(2),[],void 0)]:Xh(1,Ed,Pu,176),Kbt=Iv(hs,Ha[0]);Ie.enclosingDeclaration=da,ks(ut(w.createClassDeclaration(void 0,Cr,Vs,$d,[...Kbt,...Zb,...Jbt,...Qb,...ah]),Mt.declarations&&rr(Mt.declarations,sh=>Rc(sh)||tu(sh))[0]),pi)}function _a(Mt){return qt(Mt,Cr=>{if(np(Cr)||Ku(Cr))return Tr(Cr.propertyName||Cr.name);if(mr(Cr)||wl(Cr)){const pi=wl(Cr)?Cr.expression:Cr.right;if(Fr(pi))return Tr(pi.name)}if(Eb(Cr)){const pi=Po(Cr);if(pi&&je(pi))return Tr(pi)}})}function Ei(Mt,Cr,pi){var Jr,li,as,da,jo,Vs;const hs=zm(Mt);if(!hs)return C.fail();const Ha=ss(Hp(hs,!0));if(!Ha)return;let Cu=EN(Ha)&&_a(Mt.declarations)||ji(Ha.escapedName);Cu==="export="&&Q&&(Cu="default");const Nu=Km(Ha,Cu);switch(Ls(Ha),hs.kind){case 208:if(((li=(Jr=hs.parent)==null?void 0:Jr.parent)==null?void 0:li.kind)===260){const Pu=Gn(Ha.parent||Ha,Ie),{propertyName:$d}=hs;ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamedImports([w.createImportSpecifier(!1,$d&&je($d)?w.createIdentifier(Tr($d)):void 0,w.createIdentifier(Cr))])),w.createStringLiteral(Pu),void 0),0);break}C.failBadSyntaxKind(((as=hs.parent)==null?void 0:as.parent)||hs,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((jo=(da=hs.parent)==null?void 0:da.parent)==null?void 0:jo.kind)===226&&Lo(ji(Mt.escapedName),Nu);break;case 260:if(Fr(hs.initializer)){const Pu=hs.initializer,$d=w.createUniqueName(Cr),su=Gn(Ha.parent||Ha,Ie);ks(w.createImportEqualsDeclaration(void 0,!1,$d,w.createExternalModuleReference(w.createStringLiteral(su))),0),ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Cr),w.createQualifiedName($d,Pu.name)),pi);break}case 271:if(Ha.escapedName==="export="&&St(Ha.declarations,Pu=>Zi(Pu)&&rm(Pu))){Da(Mt);break}const Ed=!(Ha.flags&512)&&!ki(hs);ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Cr),Ed?vo(Ha,Ie,-1,!1):w.createExternalModuleReference(w.createStringLiteral(Gn(Ha,Ie)))),Ed?pi:0);break;case 270:ks(w.createNamespaceExportDeclaration(Tr(hs.name)),0);break;case 273:{const Pu=Gn(Ha.parent||Ha,Ie),$d=Mn?w.createStringLiteral(Pu):hs.parent.moduleSpecifier;ks(w.createImportDeclaration(void 0,w.createImportClause(!1,w.createIdentifier(Cr),void 0),$d,hs.parent.attributes),0);break}case 274:{const Pu=Gn(Ha.parent||Ha,Ie),$d=Mn?w.createStringLiteral(Pu):hs.parent.parent.moduleSpecifier;ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamespaceImport(w.createIdentifier(Cr))),$d,hs.parent.attributes),0);break}case 280:ks(w.createExportDeclaration(void 0,!1,w.createNamespaceExport(w.createIdentifier(Cr)),w.createStringLiteral(Gn(Ha,Ie))),0);break;case 276:{const Pu=Gn(Ha.parent||Ha,Ie),$d=Mn?w.createStringLiteral(Pu):hs.parent.parent.parent.moduleSpecifier;ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamedImports([w.createImportSpecifier(!1,Cr!==Cu?w.createIdentifier(Cu):void 0,w.createIdentifier(Cr))])),$d,hs.parent.parent.parent.attributes),0);break}case 281:const Yl=hs.parent.parent.moduleSpecifier;Yl&&((Vs=hs.propertyName)==null?void 0:Vs.escapedText)==="default"&&(Cu="default"),Lo(ji(Mt.escapedName),Yl?Cu:Nu,Yl&&ds(Yl)?w.createStringLiteral(Yl.text):void 0);break;case 277:Da(Mt);break;case 226:case 211:case 212:Mt.escapedName==="default"||Mt.escapedName==="export="?Da(Mt):Lo(Cr,Nu);break;default:return C.failBadSyntaxKind(hs,"Unhandled alias declaration kind in symbol serializer!")}}function Lo(Mt,Cr,pi){ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,Mt!==Cr?Cr:void 0,Mt)]),pi),0)}function Da(Mt){var Cr;if(Mt.flags&4194304)return!1;const pi=ji(Mt.escapedName),Jr=pi==="export=",as=Jr||pi==="default",da=Mt.declarations&&zm(Mt),jo=da&&Hp(da,!0);if(jo&&Le(jo.declarations)&&St(jo.declarations,Vs=>jn(Vs)===jn(xi))){const Vs=da&&(wl(da)||mr(da)?tU(da):eoe(da)),hs=Vs&&jl(Vs)?Uvt(Vs):void 0,Ha=hs&&qs(hs,-1,!0,!0,xi);(Ha||jo)&&Ls(Ha||jo);const Cu=Ie.tracker.disableTrackSymbol;if(Ie.tracker.disableTrackSymbol=!0,as)Vr.push(w.createExportAssignment(void 0,Jr,Mc(jo,Ie,-1)));else if(hs===Vs&&hs)Lo(pi,Tr(hs));else if(Vs&&tu(Vs))Lo(pi,Km(jo,El(jo)));else{const Nu=S_(pi,Mt);ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Nu),vo(jo,Ie,-1,!1)),0),Lo(pi,Nu)}return Ie.tracker.disableTrackSymbol=Cu,!0}else{const Vs=S_(pi,Mt),hs=Xp(dr(ss(Mt)));if(ws(hs,Mt))In(hs,Mt,Vs,as?0:32);else{const Ha=((Cr=Ie.enclosingDeclaration)==null?void 0:Cr.kind)===267&&(!(Mt.flags&98304)||Mt.flags&65536)?1:2,Cu=w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(Vs,void 0,xs(Ie,hs,Mt,xi,Ls,Mn))],Ha));ks(Cu,jo&&jo.flags&4&&jo.escapedName==="export="?128:pi===Vs?32:0)}return as?(Vr.push(w.createExportAssignment(void 0,Jr,w.createIdentifier(Vs))),!0):pi!==Vs?(Lo(pi,Vs),!0):!1}}function ws(Mt,Cr){const pi=jn(Ie.enclosingDeclaration);return Wr(Mt)&48&&!Le(vd(Mt))&&!j1(Mt)&&!!(Le(rr(bs(Mt),Fi))||Le(Ko(Mt,0)))&&!Le(Ko(Mt,1))&&!Sr(Cr,xi)&&!(Mt.symbol&&St(Mt.symbol.declarations,Jr=>jn(Jr)!==pi))&&!St(bs(Mt),Jr=>x8(Jr.escapedName))&&!St(bs(Mt),Jr=>St(Jr.declarations,li=>jn(li)!==pi))&&Yn(bs(Mt),Jr=>tf(El(Jr),se)?Jr.flags&98304?Ob(Jr)===U1(Jr):!0:!1)}function _s(Mt,Cr,pi){return function(li,as,da){var jo,Vs,hs,Ha,Cu;const Nu=Df(li),Ed=!!(Nu&2);if(as&&li.flags&2887656)return[];if(li.flags&4194304||li.escapedName==="constructor"||da&&ba(da,li.escapedName)&&E_(ba(da,li.escapedName))===E_(li)&&(li.flags&16777216)===(ba(da,li.escapedName).flags&16777216)&&yv(dr(li),Ke(da,li.escapedName)))return[];const Yl=Nu&-1025|(as?256:0),Pu=On(li,Ie),$d=(jo=li.declarations)==null?void 0:jo.find(Qm(Uo,Oy,ki,Ep,mr,Fr));if(li.flags&98304&&pi){const su=[];if(li.flags&65536){const wp=li.declarations&&He(li.declarations,ah=>{if(ah.kind===178)return ah;if(sa(ah)&&DS(ah))return He(ah.arguments[2].properties,Qb=>{const Zb=Po(Qb);if(Zb&&je(Zb)&&Tr(Zb)==="set")return Qb})});C.assert(!!wp);const Cx=js(wp)?gm(wp).parameters[0]:void 0;su.push(ut(w.createSetAccessorDeclaration(w.createModifiersFromModifierFlags(Yl),Pu,[w.createParameterDeclaration(void 0,void 0,Cx?sn(Cx,xt(Cx),Ie):"value",void 0,Ed?void 0:xs(Ie,dr(li),li,xi,Ls,Mn))],void 0),((Vs=li.declarations)==null?void 0:Vs.find(zv))||$d))}if(li.flags&32768){const wp=Nu&2;su.push(ut(w.createGetAccessorDeclaration(w.createModifiersFromModifierFlags(Yl),Pu,[],wp?void 0:xs(Ie,dr(li),li,xi,Ls,Mn),void 0),((hs=li.declarations)==null?void 0:hs.find(Fy))||$d))}return su}else if(li.flags&98311)return ut(Mt(w.createModifiersFromModifierFlags((E_(li)?8:0)|Yl),Pu,li.flags&16777216?w.createToken(58):void 0,Ed?void 0:xs(Ie,U1(li),li,xi,Ls,Mn),void 0),((Ha=li.declarations)==null?void 0:Ha.find(Qm(Uo,ki)))||$d);if(li.flags&8208){const su=dr(li),wp=Ko(su,0);if(Yl&2)return ut(Mt(w.createModifiersFromModifierFlags((E_(li)?8:0)|Yl),Pu,li.flags&16777216?w.createToken(58):void 0,void 0,void 0),((Cu=li.declarations)==null?void 0:Cu.find(js))||wp[0]&&wp[0].declaration||li.declarations&&li.declarations[0]);const Cx=[];for(const ah of wp){const Qb=Se(ah,Cr,Ie,{name:Pu,questionToken:li.flags&16777216?w.createToken(58):void 0,modifiers:Yl?w.createModifiersFromModifierFlags(Yl):void 0}),Zb=ah.declaration&&XL(ah.declaration.parent)?ah.declaration.parent:ah.declaration;Cx.push(ut(Qb,Zb))}return Cx}return C.fail("Unhandled class member kind! ".concat(li.__debugFlags||li.flags))}}function Lc(Mt,Cr){return Ii(Mt,!1,Cr)}function Xh(Mt,Cr,pi,Jr){const li=Ko(Cr,Mt);if(Mt===1){if(!pi&&Yn(li,jo=>Le(jo.parameters)===0))return[];if(pi){const jo=Ko(pi,1);if(!Le(jo)&&Yn(li,Vs=>Le(Vs.parameters)===0))return[];if(jo.length===li.length){let Vs=!1;for(let hs=0;hs<jo.length;hs++)if(!B9(li[hs],jo[hs],!1,!1,!0,z8)){Vs=!0;break}if(!Vs)return[]}}let da=0;for(const jo of li)jo.declaration&&(da|=jA(jo.declaration,6));if(da)return[ut(w.createConstructorDeclaration(w.createModifiersFromModifierFlags(da),[],void 0),li[0].declaration)]}const as=[];for(const da of li){const jo=Se(da,Jr,Ie);as.push(ut(jo,da.declaration))}return as}function Iv(Mt,Cr){const pi=[];for(const Jr of vd(Mt)){if(Cr){const li=Cg(Cr,Jr.keyType);if(li&&yv(Jr.type,li.type))continue}pi.push(ne(Jr,Ie,void 0))}return pi}function pA(Mt,Cr,pi){const Jr=fA(Mt,111551);if(Jr)return Jr;const li=S_("".concat(pi,"_base")),as=w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(li,void 0,d(Cr,Ie))],2));return ks(as,0),w.createExpressionWithTypeArguments(w.createIdentifier(li),void 0)}function fA(Mt,Cr){let pi,Jr;if(Mt.target&&ln(Mt.target.symbol,xi,Cr)?(pi=Ot(Js(Mt),li=>d(li,Ie)),Jr=Mc(Mt.target.symbol,Ie,788968)):Mt.symbol&&ln(Mt.symbol,xi,Cr)&&(Jr=Mc(Mt.symbol,Ie,788968)),Jr)return w.createExpressionWithTypeArguments(Jr,pi)}function hM(Mt){const Cr=fA(Mt,788968);if(Cr)return Cr;if(Mt.symbol)return w.createExpressionWithTypeArguments(Mc(Mt.symbol,Ie,788968),void 0)}function S_(Mt,Cr){var pi,Jr;const li=Cr?Ta(Cr):void 0;if(li&&Ie.remappedSymbolNames.has(li))return Ie.remappedSymbolNames.get(li);Cr&&(Mt=Dx(Cr,Mt));let as=0;const da=Mt;for(;(pi=Ie.usedSymbolNames)!=null&&pi.has(Mt);)as++,Mt="".concat(da,"_").concat(as);return(Jr=Ie.usedSymbolNames)==null||Jr.add(Mt),li&&Ie.remappedSymbolNames.set(li,Mt),Mt}function Dx(Mt,Cr){if(Cr==="default"||Cr==="__class"||Cr==="__function"){const pi=Ie.flags;Ie.flags|=16777216;const Jr=aE(Mt,Ie);Ie.flags=pi,Cr=Jr.length>0&&VL(Jr.charCodeAt(0))?am(Jr):Jr}return Cr==="default"?Cr="_default":Cr==="export="&&(Cr="_exports"),Cr=tf(Cr,se)&&!GA(Cr)?Cr:"_"+Cr.replace(/[^a-zA-Z0-9]/g,"_"),Cr}function Km(Mt,Cr){const pi=Ta(Mt);return Ie.remappedSymbolNames.has(pi)?Ie.remappedSymbolNames.get(pi):(Cr=Dx(Mt,Cr),Ie.remappedSymbolNames.set(pi,Cr),Cr)}}}function Bh(n,a,c=16384,d){return d?_(d).getText():yN(_);function _(y){const x=w.createTypePredicateNode(n.kind===2||n.kind===3?w.createToken(131):void 0,n.kind===1||n.kind===3?w.createIdentifier(n.parameterName):w.createThisTypeNode(),n.type&&At.typeToTypeNode(n.type,a,BT(c)|70221824|512)),k=y1(),z=a&&jn(a);return k.writeNode(4,x,z,y),y}}function vC(n){const a=[];let c=0;for(let d=0;d<n.length;d++){const _=n[d];if(c|=_.flags,!(_.flags&98304)){if(_.flags&1568){const y=_.flags&512?ai:HZ(_);if(y.flags&1048576){const x=y.types.length;if(d+x<=n.length&&bd(n[d+x-1])===bd(y.types[x-1])){a.push(y),d+=x-1;continue}}}a.push(_)}}return c&65536&&a.push(fe),c&32768&&a.push(We),a||n}function GT(n){return n===2?"private":n===4?"protected":"public"}function d9(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){const a=nk(n.symbol.declarations[0].parent);if(Lm(a))return xr(a)}}function Pb(n){return n&&n.parent&&n.parent.kind===268&&zE(n.parent.parent)}function S8(n){return n.kind===312||ku(n)}function T8(n,a){const c=Xi(n).nameType;if(c){if(c.flags&384){const d=""+c.value;return!tf(d,ls(V))&&!pg(d)?'"'.concat(lg(d,34),'"'):pg(d)&&po(d,"-")?"[".concat(d,"]"):d}if(c.flags&8192)return"[".concat(aE(c.symbol,a),"]")}}function aE(n,a){var c;if((c=a==null?void 0:a.remappedSymbolReferences)!=null&&c.has(Ta(n))&&(n=a.remappedSymbolReferences.get(Ta(n))),a&&n.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!n.declarations||a.enclosingDeclaration&&zn(n.declarations[0],S8)!==zn(a.enclosingDeclaration,S8)))return"default";if(n.declarations&&n.declarations.length){let _=qt(n.declarations,x=>Po(x)?x:void 0);const y=_&&Po(_);if(_&&y){if(sa(_)&&DS(_))return El(n);if(rs(y)&&!(xl(n)&4096)){const x=Xi(n).nameType;if(x&&x.flags&384){const k=T8(n,a);if(k!==void 0)return k}}return Ns(y)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return Ns(_.parent.name);switch(_.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),_.kind===231?"(Anonymous class)":"(Anonymous function)"}}const d=T8(n,a);return d!==void 0?d:El(n)}function f_(n){if(n){const c=Qr(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Zi(n.parent.parent.parent));case 208:return f_(n.parent.parent);case 260:if(Zo(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(zE(n))return!0;const c=$(n);return!(Wte(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?wh(c):f_(c);case 172:case 171:case 177:case 178:case 174:case 173:if(yp(n,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return f_(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function O2(n,a){let c;n.parent&&n.parent.kind===277?c=yl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=eE(n.parent,2998271));let d,_;return c&&(_=new Set,_.add(Ta(c)),y(c.declarations)),d;function y(x){He(x,k=>{const z=xT(k)||k;if(a?Qr(k).isVisible=!0:(d=d||[],Tf(d,z)),gR(k)){const J=k.moduleReference,ne=Vp(J),Se=yl(k,ne.escapedText,901119,void 0,void 0,!1);Se&&_&&Dv(_,Ta(Se))&&y(Se.declarations)}})}}function Gh(n,a){const c=mx(n,a);if(c>=0){const{length:d}=_u;for(let _=c;_<d;_++)rv[_]=!1;return!1}return _u.push(n),rv.push(!0),H0.push(a),!0}function mx(n,a){for(let c=_u.length-1;c>=JI;c--){if(A8(_u[c],H0[c]))return-1;if(_u[c]===n&&H0[c]===a)return c}return-1}function A8(n,a){switch(a){case 0:return!!Xi(n).type;case 5:return!!Qr(n).resolvedEnumType;case 2:return!!Xi(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!Xi(n).writeType;case 9:return Qr(n).parameterInitializerContainsUndefined!==void 0}return C.assertNever(a)}function Y_(){return _u.pop(),H0.pop(),rv.pop()}function $(n){return zn(N_(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function xe(n){const a=Zs(Pd(n));return a.typeParameters?hy(a,Ot(a.typeParameters,c=>j)):a}function Ke(n,a){const c=ba(n,a);return c?dr(c):void 0}function Rt(n,a){var c;let d;return Ke(n,a)||(d=(c=vx(n,a))==null?void 0:c.type)&&up(d,!0,!0)}function Ct(n){return n&&(n.flags&1)!==0}function Kt(n){return n===_t||!!(n.flags&1&&n.aliasSymbol)}function zr(n,a){if(a!==0)return VT(n,!1,a);const c=xr(n);return c&&Xi(c).type||VT(n,!1,a)}function Oi(n,a,c){if(n=_c(n,z=>!(z.flags&98304)),n.flags&131072)return ka;if(n.flags&1048576)return dl(n,z=>Oi(z,a,c));let d=Zr(Ot(a,vy));const _=[],y=[];for(const z of bs(n)){const J=CC(z,8576);!Sa(J,d)&&!(Df(z)&6)&&cee(z)?_.push(z):y.push(J)}if($T(n)||QT(d)){if(y.length&&(d=Zr([d,...y])),d.flags&131072)return n;const z=Qct();return z?RC(z,[n,d]):_t}const x=ua();for(const z of _)x.set(z.escapedName,bve(z,!1));const k=Fs(c,x,et,et,vd(n));return k.objectFlags|=4194304,k}function Ci(n){return!!(n.flags&465829888)&&Pl(Gu(n)||dn,32768)}function mi(n){const a=qm(n,Ci)?dl(n,c=>c.flags&465829888?hv(c):c):n;return bm(a,524288)}function Yi(n,a){const c=fs(n);return c?Yb(c,a):a}function fs(n){const a=Ps(n);if(a&&ZL(a)&&a.flowNode){const c=is(n);if(c){const d=ut(Rh.createStringLiteral(c),n),_=ep(a)?a:Rh.createParenthesizedExpression(a),y=ut(Rh.createElementAccessExpression(_,d),n);return Ya(d,y),Ya(y,n),_!==a&&Ya(_,y),y.flowNode=a.flowNode,y}}}function Ps(n){const a=n.parent.parent;switch(a.kind){case 208:case 303:return fs(a);case 209:return fs(n.parent);case 260:return a.initializer;case 226:return a.right}}function is(n){const a=n.parent;return n.kind===208&&a.kind===206?Uf(n.propertyName||n.name):n.kind===303||n.kind===304?Uf(n.name):""+a.elements.indexOf(n)}function Uf(n){const a=vy(n);return a.flags&384?""+a.value:void 0}function $_(n){const a=n.dotDotDotToken?32:0,c=zr(n.parent.parent,a);return c&&jm(n,c,!1)}function jm(n,a,c){if(Ct(a))return a;const d=n.parent;Y&&n.flags&33554432&&JE(n)?a=Sv(a):Y&&d.parent.initializer&&!ym(X4e(d.parent.initializer),65536)&&(a=bm(a,524288));let _;if(d.kind===206)if(n.dotDotDotToken){if(a=g_(a),a.flags&2||!tB(a))return Xe(n,m.Rest_types_may_only_be_created_from_object_types),_t;const y=[];for(const x of d.elements)x.dotDotDotToken||y.push(x.propertyName||x.name);_=Oi(a,y,n.symbol)}else{const y=n.propertyName||n.name,x=vy(y),k=Lp(a,x,32,y);_=Yi(n,k)}else{const y=Sy(65|(n.dotDotDotToken?0:128),a,We,d),x=d.elements.indexOf(n);if(n.dotDotDotToken){const k=dl(a,z=>z.flags&58982400?hv(z):z);_=pp(k,ja)?dl(k,z=>J2(z,x)):Vu(y)}else if(by(a)){const k=v_(x),z=32|(c||iM(n)?16:0),J=Vb(a,k,z,n.name)||_t;_=Yi(n,J)}else _=y}return n.initializer?bu(Qx(n))?Y&&!ym(aM(n,0),16777216)?mi(_):_:mte(n,Zr([mi(_),aM(n,0)],2)):_}function pv(n){const a=m0(n);if(a)return Ti(a)}function fv(n){const a=vs(n,!0);return a.kind===106||a.kind===80&&Hm(a)===Ue}function Mb(n){const a=vs(n,!0);return a.kind===209&&a.elements.length===0}function up(n,a=!1,c=!0){return Y&&c?Kb(n,a):n}function VT(n,a,c){if(ki(n)&&n.parent.parent.kind===249){const x=eh(kye(go(n.parent.parent.expression,c)));return x.flags&4456448?M6e(x):ke}if(ki(n)&&n.parent.parent.kind===250){const x=n.parent.parent;return RB(x)||j}if(Zo(n.parent))return $_(n);const d=Uo(n)&&!P_(n)||Ep(n)||ise(n),_=a&&aP(n),y=$i(n);if(Ij(n))return y?Ct(y)||y===dn?y:_t:ge?dn:j;if(y)return up(y,d,_);if((de||sr(n))&&ki(n)&&!Zo(n.name)&&!(Wte(n)&32)&&!(n.flags&33554432)){if(!(aS(n)&6)&&(!n.initializer||fv(n.initializer)))return ot;if(n.initializer&&Mb(n.initializer))return Kc}if(Io(n)){const x=n.parent;if(x.kind===178&&TC(x)){const J=fl(xr(n.parent),177);if(J){const ne=gm(J),Se=jbe(x);return Se&&n===Se?(C.assert(!Se.type),dr(ne.thisParameter)):ms(ne)}}const k=Act(x,n);if(k)return k;const z=n.symbol.escapedName==="this"?v3e(x):y3e(n);if(z)return up(z,!1,_)}if(ES(n)&&n.initializer){if(sr(n)&&!Io(n)){const k=Ka(n,xr(n),UL(n));if(k)return k}const x=mte(n,aM(n,c));return up(x,d,_)}if(Uo(n)&&(de||sr(n)))if(vc(n)){const x=rr(n.parent.members,Rl),k=x.length?mv(n.symbol,x):pd(n)&128?See(n.symbol):void 0;return k&&up(k,!0,_)}else{const x=uv(n.parent),k=x?Lb(n.symbol,x):pd(n)&128?See(n.symbol):void 0;return k&&up(k,!0,_)}if(F_(n))return nr;if(Zo(n.name))return P(n.name,!1,!0)}function yC(n){if(n.valueDeclaration&&mr(n.valueDeclaration)){const a=Xi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!F2(n)&&Yn(n.declarations,c=>mr(c)&&Jee(c)&&(c.left.kind!==212||nf(c.left.argumentExpression))&&!mc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function W2(n){const a=n.valueDeclaration;return a&&Uo(a)&&!bu(a)&&!a.initializer&&(de||sr(a))}function F2(n){if(n.declarations)for(const a of n.declarations){const c=Fd(a,!1,!1);if(c&&(c.kind===176||ih(c)))return c}}function sE(n){const a=jn(n.declarations[0]),c=ji(n.escapedName),d=n.declarations.every(y=>sr(y)&&zs(y)&&ag(y.expression)),_=d?w.createPropertyAccessExpression(w.createPropertyAccessExpression(w.createIdentifier("module"),w.createIdentifier("exports")),c):w.createPropertyAccessExpression(w.createIdentifier("exports"),c);return d&&Ya(_.expression.expression,_.expression),Ya(_.expression,_),Ya(_,a),_.flowNode=a.endFlowNode,Yb(_,ot,We)}function mv(n,a){const c=po(n.escapedName,"__#")?w.createPrivateIdentifier(n.escapedName.split("@")[1]):ji(n.escapedName);for(const d of a){const _=w.createPropertyAccessExpression(w.createThis(),c);Ya(_.expression,_),Ya(_,d),_.flowNode=d.returnFlowNode;const y=bC(_,n);if(de&&(y===ot||y===Kc)&&Xe(n.valueDeclaration,m.Member_0_implicitly_has_an_1_type,Si(n),Un(y)),!pp(y,oB))return c6(y)}}function Lb(n,a){const c=po(n.escapedName,"__#")?w.createPrivateIdentifier(n.escapedName.split("@")[1]):ji(n.escapedName),d=w.createPropertyAccessExpression(w.createThis(),c);Ya(d.expression,d),Ya(d,a),d.flowNode=a.returnFlowNode;const _=bC(d,n);return de&&(_===ot||_===Kc)&&Xe(n.valueDeclaration,m.Member_0_implicitly_has_an_1_type,Si(n),Un(_)),pp(_,oB)?void 0:c6(_)}function bC(n,a){const c=(a==null?void 0:a.valueDeclaration)&&(!W2(a)||pd(a.valueDeclaration)&128)&&See(a)||We;return Yb(n,ot,c)}function Jp(n,a){const c=OA(n.valueDeclaration);if(c){const k=sr(c)?f0(c):void 0;return k&&k.typeExpression?Ti(k.typeExpression):n.valueDeclaration&&Ka(n.valueDeclaration,n,c)||Q1(ac(c))}let d,_=!1,y=!1;if(yC(n)&&(d=Lb(n,F2(n))),!d){let k;if(n.declarations){let z;for(const J of n.declarations){const ne=mr(J)||sa(J)?J:zs(J)?mr(J.parent)?J.parent:J:void 0;if(!ne)continue;const Se=zs(ne)?KL(ne):Vl(ne);(Se===4||mr(ne)&&Jee(ne,Se))&&(z2(ne)?_=!0:y=!0),sa(ne)||(z=mc(z,ne,n,J)),z||(k||(k=[])).push(mr(ne)||sa(ne)?lE(n,a,ne,Se):Hr)}d=z}if(!d){if(!Le(k))return _t;let z=_&&n.declarations?kb(k,n.declarations):void 0;if(y){const ne=See(n);ne&&((z||(z=[])).push(ne),_=!0)}const J=St(z,ne=>!!(ne.flags&-98305))?z:k;d=Zr(J)}}const x=Xp(up(d,!1,y&&!_));return n.valueDeclaration&&sr(n.valueDeclaration)&&_c(x,k=>!!(k.flags&-98305))===Hr?(yE(n.valueDeclaration,j),j):x}function Ka(n,a,c){var d,_;if(!sr(n)||!c||!Wa(c)||c.properties.length)return;const y=ua();for(;mr(n)||Fr(n);){const z=gf(n);(d=z==null?void 0:z.exports)!=null&&d.size&&d_(y,z.exports),n=mr(n)?n.parent:n.parent.parent}const x=gf(n);(_=x==null?void 0:x.exports)!=null&&_.size&&d_(y,x.exports);const k=Fs(a,y,et,et,et);return k.objectFlags|=4096,k}function mc(n,a,c,d){var _;const y=bu(a.parent);if(y){const x=Xp(Ti(y));if(n)!Kt(n)&&!Kt(x)&&!yv(n,x)&&TFe(void 0,n,d,x);else return x}if((_=c.parent)!=null&&_.valueDeclaration){const x=F1(c.parent);if(x.valueDeclaration){const k=bu(x.valueDeclaration);if(k){const z=ba(Ti(k),c.escapedName);if(z)return Ob(z)}}}return n}function lE(n,a,c,d){if(sa(c)){if(a)return dr(a);const x=ac(c.arguments[2]),k=Ke(x,"value");if(k)return k;const z=Ke(x,"get");if(z){const ne=cA(z);if(ne)return ms(ne)}const J=Ke(x,"set");if(J){const ne=cA(J);if(ne)return tbe(ne)}return j}if(_x(c.left,c.right))return j;const _=d===1&&(Fr(c.left)||$s(c.left))&&(ag(c.left.expression)||je(c.left.expression)&&RS(c.left.expression)),y=a?dr(a):_?bd(ac(c.right)):Q1(ac(c.right));if(y.flags&524288&&d===2&&n.escapedName==="export="){const x=h_(y),k=ua();F4(x.members,k);const z=k.size;a&&!a.exports&&(a.exports=ua()),(a||n).exports.forEach((ne,Se)=>{var ve;const Ge=k.get(Se);if(Ge&&Ge!==ne&&!(ne.flags&2097152))if(ne.flags&111551&&Ge.flags&111551){if(ne.valueDeclaration&&Ge.valueDeclaration&&jn(ne.valueDeclaration)!==jn(Ge.valueDeclaration)){const xt=ji(ne.escapedName),cn=((ve=ti(Ge.valueDeclaration,ld))==null?void 0:ve.name)||Ge.valueDeclaration;Oa(Xe(ne.valueDeclaration,m.Duplicate_identifier_0,xt),Or(cn,m._0_was_also_declared_here,xt)),Oa(Xe(cn,m.Duplicate_identifier_0,xt),Or(ne.valueDeclaration,m._0_was_also_declared_here,xt))}const vt=Za(ne.flags|Ge.flags,Se);vt.links.type=Zr([dr(ne),dr(Ge)]),vt.valueDeclaration=Ge.valueDeclaration,vt.declarations=To(Ge.declarations,ne.declarations),k.set(Se,vt)}else k.set(Se,mm(ne,Ge));else k.set(Se,ne)});const J=Fs(z!==k.size?void 0:x.symbol,k,x.callSignatures,x.constructSignatures,x.indexInfos);if(z===k.size&&(y.aliasSymbol&&(J.aliasSymbol=y.aliasSymbol,J.aliasTypeArguments=y.aliasTypeArguments),Wr(y)&4)){J.aliasSymbol=y.symbol;const ne=Js(y);J.aliasTypeArguments=Le(ne)?ne:void 0}return J.objectFlags|=Wr(y)&4096,J.symbol&&J.symbol.flags&32&&y===qf(J.symbol)&&(J.objectFlags|=16777216),J}return Aee(y)?(yE(c,ic),ic):y}function _x(n,a){return Fr(n)&&n.expression.kind===110&&NP(a,c=>xu(n,c))}function z2(n){const a=Fd(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!XL(a.parent)}function kb(n,a){return C.assert(n.length===a.length),n.filter((c,d)=>{const _=a[d],y=mr(_)?_:mr(_.parent)?_.parent:void 0;return y&&z2(y)})}function B2(n,a,c){if(n.initializer){const d=Zo(n.name)?P(n.name,!0,!1):dn;return up(mte(n,aM(n,c?0:1,d)))}return Zo(n.name)?P(n.name,a,c):(c&&!Er(n)&&yE(n,j),a?gn:j)}function or(n,a,c){const d=ua();let _,y=131200;He(n.elements,k=>{const z=k.propertyName||k.name;if(k.dotDotDotToken){_=Hh(ke,j,!1);return}const J=vy(z);if(!lm(J)){y|=512;return}const ne=cm(J),Se=4|(k.initializer?16777216:0),ve=Za(Se,ne);ve.links.type=B2(k,a,c),ve.links.bindingElement=k,d.set(ve.escapedName,ve)});const x=Fs(void 0,d,et,et,_?[_]:et);return x.objectFlags|=y,a&&(x.pattern=n,x.objectFlags|=131072),x}function E(n,a,c){const d=n.elements,_=el(d),y=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(d.length===0||d.length===1&&y)return se>=2?h6e(j):ic;const x=Ot(d,ne=>Hc(ne)?j:B2(ne,a,c)),k=zi(d,ne=>!(ne===y||Hc(ne)||iM(ne)),d.length-1)+1,z=Ot(d,(ne,Se)=>ne===y?4:Se>=k?2:1);let J=qh(x,z);return a&&(J=$8e(J),J.pattern=n,J.objectFlags|=131072),J}function P(n,a=!1,c=!1){return n.kind===206?or(n,a,c):E(n,a,c)}function B(n,a){return Yt(VT(n,!0,0),n,a)}function ce(n){const a=Qr(n);if(!a.resolvedType){const c=Za(4096,"__importAttributes"),d=ua();He(n.elements,y=>{const x=Za(4,cW(y));x.parent=c,x.links.type=Hvt(y),x.links.target=x,d.set(x.escapedName,x)});const _=Fs(c,d,et,et,et);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function $e(n){const a=gf(n),c=Bct(!1);return c&&a&&a===c}function Yt(n,a,c){return n?(n.flags&4096&&$e(a.parent)&&(n=Eve(a)),c&&Mee(a,n),n.flags&8192&&(ns(a)||!a.type)&&n.symbol!==xr(a)&&(n=si),Xp(n)):(n=Io(a)&&a.dotDotDotToken?ic:j,c&&(Er(a)||yE(a,n)),n)}function Er(n){const a=N_(n),c=a.kind===169?a.parent:a;return SB(c)}function $i(n){const a=bu(n);if(a)return Ti(a)}function Ms(n){let a=n.valueDeclaration;return a?(ns(a)&&(a=Qx(a)),Io(a)?_ee(a.parent):!1):!1}function m_(n,a){const c=Xi(n);if(!c.type){const d=wb(n,a);return!c.type&&!Ms(n)&&!a&&(c.type=d),d}return c.type}function wb(n,a){if(n.flags&4194304)return xe(n);if(n===gt)return j;if(n.flags&134217728&&n.valueDeclaration){const _=xr(jn(n.valueDeclaration)),y=Za(_.flags,"exports");y.declarations=_.declarations?_.declarations.slice():[],y.parent=n,y.links.target=_,_.valueDeclaration&&(y.valueDeclaration=_.valueDeclaration),_.members&&(y.members=new Map(_.members)),_.exports&&(y.exports=new Map(_.exports));const x=ua();return x.set("exports",y),Fs(n,x,et,et,et)}C.assertIsDefined(n.valueDeclaration);const c=n.valueDeclaration;if(Zi(c)&&rm(c))return c.statements.length?Xp(Q1(go(c.statements[0].expression))):ka;if(Oy(c))return uE(n);if(!Gh(n,0))return n.flags&512&&!(n.flags&67108864)?G2(n):ns(c)&&a===1?_t:EC(n);let d;if(c.kind===277)d=Yt($i(c)||ac(c.expression),c);else if(mr(c)||sr(c)&&(sa(c)||(Fr(c)||m3(c))&&mr(c.parent)))d=Jp(n);else if(Fr(c)||$s(c)||je(c)||ds(c)||bp(c)||Rc(c)||xc(c)||Kl(c)&&!Nm(c)||Sh(c)||Zi(c)){if(n.flags&9136)return G2(n);d=mr(c.parent)?Jp(n):$i(c)||j}else if(bc(c))d=$i(c)||XWe(c);else if(F_(c))d=$i(c)||P3e(c);else if(rp(c))d=$i(c)||lM(c.name,0);else if(Nm(c))d=$i(c)||YWe(c,0);else if(Io(c)||Uo(c)||Ep(c)||ki(c)||ns(c)||fN(c))d=B(c,!0);else if(D0(c))d=G2(n);else if(p1(c))d=VZ(n);else return C.fail("Unhandled declaration kind! "+C.formatSyntaxKind(c.kind)+" for "+C.formatSymbol(n));return Y_()?d:n.flags&512&&!(n.flags&67108864)?G2(n):ns(c)&&a===1?d:EC(n)}function Um(n){if(n)switch(n.kind){case 177:return sm(n);case 178:return uoe(n);case 172:return C.assert(P_(n)),bu(n)}}function cE(n){const a=Um(n);return a&&Ti(a)}function BZ(n){const a=jbe(n);return a&&a.symbol}function vge(n){return mE(gm(n))}function uE(n){const a=Xi(n);if(!a.type){if(!Gh(n,0))return _t;const c=fl(n,177),d=fl(n,178),_=ti(fl(n,172),Wd);let y=c&&sr(c)&&pv(c)||cE(c)||cE(d)||cE(_)||c&&c.body&&dte(c)||_&&_.initializer&&B(_,!0);y||(d&&!SB(d)?hu(de,d,m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Si(n)):c&&!SB(c)?hu(de,c,m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Si(n)):_&&!SB(_)&&hu(de,_,m.Member_0_implicitly_has_an_1_type,Si(n),"any"),y=j),Y_()||(Um(c)?Xe(c,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):Um(d)||Um(_)?Xe(d,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):c&&de&&Xe(c,m._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,Si(n)),y=j),a.type=y}return a.type}function p9(n){var c;const a=Xi(n);if(!a.writeType){if(!Gh(n,8))return _t;const d=(c=fl(n,178))!=null?c:ti(fl(n,172),Wd);let _=cE(d);Y_()||(Um(d)&&Xe(d,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),_=j),a.writeType=_||uE(n)}return a.writeType}function GZ(n){const a=Hf(qf(n));return a.flags&8650752?a:a.flags&2097152?Tn(a.types,c=>!!(c.flags&8650752)):void 0}function G2(n){let a=Xi(n);const c=a;if(!a.type){const d=n.valueDeclaration&&cte(n.valueDeclaration,!1);if(d){const _=Xye(n,d);_&&(n=_,a=_.links)}c.type=a.type=f9(n)}return a.type}function f9(n){const a=n.valueDeclaration;if(n.flags&1536&&EN(n))return j;if(a&&(a.kind===226||zs(a)&&a.parent.kind===226))return Jp(n);if(n.flags&512&&a&&Zi(a)&&a.commonJsModuleIndicator){const d=Pp(n);if(d!==n){if(!Gh(n,0))return _t;const _=ss(n.exports.get("export=")),y=Jp(_,_===d?void 0:d);return Y_()?y:EC(n)}}const c=Vf(16,n);if(n.flags&32){const d=GZ(n);return d?Ea([c,d]):c}else return Y&&n.flags&16777216?Kb(c,!0):c}function VZ(n){const a=Xi(n);return a.type||(a.type=h8e(n))}function jZ(n){const a=Xi(n);if(!a.type){if(!Gh(n,0))return _t;const c=Bc(n),d=n.declarations&&Hp(zm(n),!0),_=qt(d==null?void 0:d.declarations,y=>wl(y)?$i(y):void 0);if(a.type=d!=null&&d.declarations&&Dte(d.declarations)&&n.declarations.length?sE(d):Dte(n.declarations)?ot:_||(Iu(c)&111551?dr(c):_t),!Y_())return EC(d!=null?d:n),a.type=_t}return a.type}function yge(n){const a=Xi(n);return a.type||(a.type=co(dr(a.target),a.mapper))}function bge(n){const a=Xi(n);return a.writeType||(a.writeType=co(U1(a.target),a.mapper))}function EC(n){const a=n.valueDeclaration;if(a){if(bu(a))return Xe(n.valueDeclaration,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),_t;de&&(a.kind!==169||a.initializer)&&Xe(n.valueDeclaration,m._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Si(n))}else if(n.flags&2097152){const c=zm(n);c&&Xe(c,m.Circular_definition_of_import_alias_0,Si(n))}return j}function UZ(n){const a=Xi(n);return a.type||(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?Zr(a.deferralConstituents):Ea(a.deferralConstituents)),a.type}function m9(n){const a=Xi(n);return!a.writeType&&a.deferralWriteConstituents&&(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?Zr(a.deferralWriteConstituents):Ea(a.deferralWriteConstituents)),a.writeType}function U1(n){const a=xl(n);return n.flags&4?a&2?a&65536?m9(n)||UZ(n):n.links.writeType||n.links.type:Xb(dr(n),!!(n.flags&16777216)):n.flags&98304?a&1?bge(n):p9(n):dr(n)}function dr(n,a){const c=xl(n);return c&65536?UZ(n):c&1?yge(n):c&262144?oct(n):c&8192?ypt(n):n.flags&7?m_(n,a):n.flags&9136?G2(n):n.flags&8?VZ(n):n.flags&98304?uE(n):n.flags&2097152?jZ(n):_t}function Ob(n){return Xb(dr(n),!!(n.flags&16777216))}function Wb(n,a){return n!==void 0&&a!==void 0&&(Wr(n)&4)!==0&&n.target===a}function my(n){return Wr(n)&4?n.target:n}function SC(n,a){return c(n);function c(d){if(Wr(d)&7){const _=my(d);return _===a||St(dp(_),c)}else if(d.flags&2097152)return St(d.types,c);return!1}}function dE(n,a){for(const c of a)n=wg(n,jT(xr(c)));return n}function Nn(n,a){for(;;){if(n=n.parent,n&&mr(n)){const c=Vl(n);if(c===6||c===3){const d=xr(n.left);d&&d.parent&&!zn(d.parent.valueDeclaration,_=>n===_)&&(n=d.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const d=Nn(n,a);if(n.kind===200)return Rn(d,jT(xr(n.typeParameter)));if(n.kind===194)return To(d,j6e(n));const _=dE(d,ky(n)),y=a&&(n.kind===263||n.kind===231||n.kind===264||ih(n))&&qf(xr(n)).thisType;return y?Rn(_,y):_}case 348:const c=tk(n);c&&(n=c.valueDeclaration);break;case 327:{const d=Nn(n,a);return n.tags?dE(d,Pi(n.tags,_=>pm(_)?_.typeParameters:void 0)):d}}}}function Gr(n){var a;const c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(d=>{if(d.kind===264)return!0;if(d.kind!==260)return!1;const _=d.initializer;return!!_&&(_.kind===218||_.kind===219)});return C.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Nn(c)}function wr(n){if(!n.declarations)return;let a;for(const c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||ih(c)||QL(c))&&(a=dE(a,ky(c)));return a}function Wi(n){return To(Gr(n),wr(n))}function Mi(n){const a=Ko(n,1);if(a.length===1){const c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Yu(c)){const d=fB(c.parameters[0]);return Ct(d)||V9(d)===j}}return!1}function Va(n){if(Ko(n,1).length>0)return!0;if(n.flags&8650752){const a=Gu(n);return!!a&&Mi(a)}return!1}function Ds(n){const a=Hg(n.symbol);return a&&D_(a)}function td(n,a,c){const d=Le(a),_=sr(c);return rr(Ko(n,1),y=>(_||d>=Uh(y.typeParameters))&&d<=Le(y.typeParameters))}function Vh(n,a,c){const d=td(n,a,c),_=Ot(a,Ti);return no(d,y=>St(y.typeParameters)?N8(y,_,sr(c)):y)}function Hf(n){if(!n.resolvedBaseConstructorType){const a=Hg(n.symbol),c=a&&D_(a),d=Ds(n);if(!d)return n.resolvedBaseConstructorType=We;if(!Gh(n,1))return _t;const _=go(d.expression);if(c&&d!==c&&(C.assert(!c.typeArguments),go(c.expression)),_.flags&2621440&&h_(_),!Y_())return Xe(n.symbol.valueDeclaration,m._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Si(n.symbol)),n.resolvedBaseConstructorType=_t;if(!(_.flags&1)&&_!==Ve&&!Va(_)){const y=Xe(d.expression,m.Type_0_is_not_a_constructor_function_type,Un(_));if(_.flags&262144){const x=U2(_);let k=dn;if(x){const z=Ko(x,1);z[0]&&(k=ms(z[0]))}_.symbol.declarations&&Oa(y,Or(_.symbol.declarations[0],m.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Si(_.symbol),Un(k)))}return n.resolvedBaseConstructorType=_t}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function Q_(n){let a=et;if(n.symbol.declarations)for(const c of n.symbol.declarations){const d=IR(c);if(d)for(const _ of d){const y=Ti(_);Kt(y)||(a===et?a=[y]:a.push(y))}}return a}function Z_(n,a){Xe(n,m.Type_0_recursively_references_itself_as_a_base_type,Un(a,void 0,2))}function dp(n){if(!n.baseTypesResolved){if(Gh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[I8(n)]:n.symbol.flags&96?(n.symbol.flags&32&&hx(n),n.symbol.flags&64&&klt(n)):C.fail("type must be class or interface"),!Y_()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===263||a.kind===264)&&Z_(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function I8(n){const a=no(n.typeParameters,(c,d)=>n.elementFlags[d]&8?Lp(c,Tt):c);return Vu(Zr(a||et),n.readonly)}function hx(n){n.resolvedBaseTypes=uW;const a=kd(Hf(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=et;const c=Ds(n);let d;const _=a.symbol?Zs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Ege(_))d=Q8e(c,a.symbol);else if(a.flags&1)d=a;else{const x=Vh(a,c.typeArguments,c);if(!x.length)return Xe(c.expression,m.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=et;d=ms(x[0])}if(Kt(d))return n.resolvedBaseTypes=et;const y=g_(d);if(!_9(y)){const x=wge(void 0,d),k=Bo(x,m.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Un(y));return os.add(Gg(jn(c.expression),c.expression,k)),n.resolvedBaseTypes=et}return n===y||SC(y,n)?(Xe(n.symbol.valueDeclaration,m.Type_0_recursively_references_itself_as_a_base_type,Un(n,void 0,2)),n.resolvedBaseTypes=et):(n.resolvedBaseTypes===uW&&(n.members=void 0),n.resolvedBaseTypes=[y])}function Ege(n){const a=n.outerTypeParameters;if(a){const c=a.length-1,d=Js(n);return a[c].symbol!==d[c].symbol}return!0}function _9(n){if(n.flags&262144){const a=Gu(n);if(a)return _9(a)}return!!(n.flags&67633153&&!Kd(n)||n.flags&2097152&&Yn(n.types,_9))}function klt(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||et,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===264&&PN(a))for(const c of PN(a)){const d=g_(Ti(c));Kt(d)||(_9(d)?n!==d&&!SC(d,n)?n.resolvedBaseTypes===et?n.resolvedBaseTypes=[d]:n.resolvedBaseTypes.push(d):Z_(a,n):Xe(c,m.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function wlt(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;const c=PN(a);if(c){for(const d of c)if(jl(d.expression)){const _=qs(d.expression,788968,!0);if(!_||!(_.flags&64)||qf(_).thisType)return!1}}}return!0}function qf(n){let a=Xi(n);const c=a;if(!a.declaredType){const d=n.flags&32?1:2,_=Xye(n,n.valueDeclaration&&T_t(n.valueDeclaration));_&&(n=_,a=_.links);const y=c.declaredType=a.declaredType=Vf(d,n),x=Gr(n),k=wr(n);(x||k||d===1||!wlt(n))&&(y.objectFlags|=4,y.typeParameters=To(x,k),y.outerTypeParameters=x,y.localTypeParameters=k,y.instantiations=new Map,y.instantiations.set(vm(y.typeParameters),y),y.target=y,y.resolvedTypeArguments=y.typeParameters,y.thisType=yf(n),y.thisType.isThisType=!0,y.thisType.constraint=y)}return a.declaredType}function f8e(n){var a;const c=Xi(n);if(!c.declaredType){if(!Gh(n,2))return _t;const d=C.checkDefined((a=n.declarations)==null?void 0:a.find(QL),"Type alias symbol with no valid declaration found"),_=im(d)?d.typeExpression:d.type;let y=_?Ti(_):_t;if(Y_()){const x=wr(n);x&&(c.typeParameters=x,c.instantiations=new Map,c.instantiations.set(vm(x),y))}else y=_t,d.kind===347?Xe(d.typeExpression.type,m.Type_alias_0_circularly_references_itself,Si(n)):Xe(ld(d)&&d.name||d,m.Type_alias_0_circularly_references_itself,Si(n));c.declaredType=y}return c.declaredType}function HZ(n){return n.flags&1056&&n.symbol.flags&8?Zs(Pd(n.symbol)):n}function m8e(n){const a=Xi(n);if(!a.declaredType){const c=[];if(n.declarations){for(const _ of n.declarations)if(_.kind===266){for(const y of _.members)if(TC(y)){const x=xr(y),k=jC(y),z=Sx(k!==void 0?edt(k,Ta(n),x):_8e(x));Xi(x).declaredType=z,c.push(bd(z))}}}const d=c.length?Zr(c,1,n,void 0):_8e(n);d.flags&1048576&&(d.flags|=1024,d.symbol=n),a.declaredType=d}return a.declaredType}function _8e(n){const a=Rg(32,n),c=Rg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function h8e(n){const a=Xi(n);if(!a.declaredType){const c=m8e(Pd(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function jT(n){const a=Xi(n);return a.declaredType||(a.declaredType=yf(n))}function Olt(n){const a=Xi(n);return a.declaredType||(a.declaredType=Zs(Bc(n)))}function Zs(n){return g8e(n)||_t}function g8e(n){if(n.flags&96)return qf(n);if(n.flags&524288)return f8e(n);if(n.flags&262144)return jT(n);if(n.flags&384)return m8e(n);if(n.flags&8)return h8e(n);if(n.flags&2097152)return Olt(n)}function h9(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return h9(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(h9)}return!1}function Wlt(n){const a=eR(n);return!a||h9(a)}function v8e(n){const a=bu(n);return a?h9(a):!zy(n)}function Flt(n){const a=sm(n),c=ky(n);return(n.kind===176||!!a&&h9(a))&&n.parameters.every(v8e)&&c.every(Wlt)}function zlt(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return v8e(a);case 174:case 173:case 176:case 177:case 178:return Flt(a)}}return!1}function y8e(n,a,c){const d=ua();for(const _ of n)d.set(_.escapedName,c&&zlt(_)?_:Ave(_,a));return d}function b8e(n,a){for(const c of a){if(E8e(c))continue;const d=n.get(c.escapedName);(!d||d.valueDeclaration&&mr(d.valueDeclaration)&&!yC(d)&&!zie(d.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function E8e(n){return!!n.valueDeclaration&&cd(n.valueDeclaration)&&aa(n.valueDeclaration)}function Sge(n){if(!n.declaredProperties){const a=n.symbol,c=Fb(a);n.declaredProperties=iE(c),n.declaredCallSignatures=et,n.declaredConstructSignatures=et,n.declaredIndexInfos=et,n.declaredCallSignatures=H1(c.get("__call")),n.declaredConstructSignatures=H1(c.get("__new")),n.declaredIndexInfos=K8e(a)}return n}function Tge(n){if(!rs(n)&&!$s(n))return!1;const a=rs(n)?n.expression:n.argumentExpression;return jl(a)&&lm(rs(n)?Ng(n):ac(a))}function x8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function g9(n){const a=Po(n);return!!a&&Tge(a)}function TC(n){return!jy(n)||g9(n)}function Blt(n){return E3(n)&&!Tge(n)}function Glt(n,a,c){C.assert(!!(xl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,Xi(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function S8e(n,a,c,d){C.assert(!!d.symbol,"The member is expected to have a symbol.");const _=Qr(d);if(!_.resolvedSymbol){_.resolvedSymbol=d.symbol;const y=mr(d)?d.left:d.name,x=$s(y)?ac(y.argumentExpression):Ng(y);if(lm(x)){const k=cm(x),z=d.symbol.flags;let J=c.get(k);J||c.set(k,J=Za(0,k,4096));const ne=a&&a.get(k);if(!(n.flags&32)&&(J.flags&ST(z)||ne)){const Se=ne?To(ne.declarations,J.declarations):J.declarations,ve=!(x.flags&8192)&&ji(k)||Ns(y);He(Se,Ge=>Xe(Po(Ge)||Ge,m.Property_0_was_also_declared_here,ve)),Xe(y||d,m.Duplicate_property_0,ve),J=Za(0,k,4096)}return J.links.nameType=x,Glt(J,d,z),J.parent?C.assert(J.parent===n,"Existing symbol parent should match new one"):J.parent=n,_.resolvedSymbol=J}}return _.resolvedSymbol}function Age(n,a){const c=Xi(n);if(!c[a]){const d=a==="resolvedExports",_=d?n.flags&1536?WT(n).exports:n.exports:n.members;c[a]=_||K;const y=ua();for(const z of n.declarations||et){const J=Pie(z);if(J)for(const ne of J)d===vc(ne)&&g9(ne)&&S8e(n,_,y,ne)}const x=F1(n).assignmentDeclarationMembers;if(x){const z=Wo(x.values());for(const J of z){const ne=Vl(J),Se=ne===3||mr(J)&&Jee(J,ne)||ne===9||ne===6;d===!Se&&g9(J)&&S8e(n,_,y,J)}}let k=ix(_,y);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(const z of n.declarations){const J=Xi(z.symbol)[a];if(!k){k=J;continue}J&&J.forEach((ne,Se)=>{const ve=k.get(Se);if(!ve)k.set(Se,ne);else{if(ve===ne)return;k.set(Se,mm(ve,ne))}})}c[a]=k||K}return c[a]}function Fb(n){return n.flags&6256?Age(n,"resolvedMembers"):n.members||K}function qZ(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=Xi(n);if(!a.lateSymbol&&St(n.declarations,g9)){const c=ss(n.parent);St(n.declarations,vc)?Mp(c):Fb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Kp(n,a,c){if(Wr(n)&4){const d=n.target,_=Js(n);return Le(d.typeParameters)===Le(_)?hy(d,To(_,[a||d.thisType])):n}else if(n.flags&2097152){const d=no(n.types,_=>Kp(_,a,c));return d!==n.types?Ea(d):n}return c?kd(n):n}function T8e(n,a,c,d){let _,y,x,k,z;mG(c,d,0,c.length)?(y=a.symbol?Fb(a.symbol):ua(a.declaredProperties),x=a.declaredCallSignatures,k=a.declaredConstructSignatures,z=a.declaredIndexInfos):(_=kp(c,d),y=y8e(a.declaredProperties,_,c.length===1),x=fee(a.declaredCallSignatures,_),k=fee(a.declaredConstructSignatures,_),z=X6e(a.declaredIndexInfos,_));const J=dp(a);if(J.length){if(a.symbol&&y===Fb(a.symbol)){const Se=ua(a.declaredProperties),ve=jge(a.symbol);ve&&Se.set("__index",ve),y=Se}bf(n,y,x,k,z);const ne=el(d);for(const Se of J){const ve=ne?Kp(co(Se,_),ne):Se;b8e(y,bs(ve)),x=To(x,Ko(ve,0)),k=To(k,Ko(ve,1));const Ge=ve!==j?vd(ve):[Hh(ke,j,!1)];z=To(z,rr(Ge,vt=>!Oge(z,vt.keyType)))}}bf(n,y,x,k,z)}function Vlt(n){T8e(n,Sge(n),et,et)}function jlt(n){const a=Sge(n.target),c=To(a.typeParameters,[a.thisType]),d=Js(n),_=d.length===c.length?d:To(d,[n]);T8e(n,a,c,_)}function Dg(n,a,c,d,_,y,x,k){const z=new h(tn,k);return z.declaration=n,z.typeParameters=a,z.parameters=d,z.thisParameter=c,z.resolvedReturnType=_,z.resolvedTypePredicate=y,z.minArgumentCount=x,z.resolvedMinArgumentCount=void 0,z.target=void 0,z.mapper=void 0,z.compositeSignatures=void 0,z.compositeKind=void 0,z}function R8(n){const a=Dg(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function A8e(n,a){const c=R8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Ult(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=Hlt(n,a))}function Hlt(n,a){C.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const c=R8(n);return c.flags|=a,c}function I8e(n,a){if(Yu(n)){const _=n.parameters.length-1,y=n.parameters[_].escapedName,x=dr(n.parameters[_]);if(ja(x))return[c(x,_,y)];if(!a&&x.flags&1048576&&Yn(x.types,ja))return Ot(x.types,k=>c(k,_,y))}return[n.parameters];function c(_,y,x){const k=Js(_),z=d(_,x),J=Ot(k,(ne,Se)=>{const ve=z&&z[Se]?z[Se]:oM(n,y+Se,_),Ge=_.target.elementFlags[Se],vt=Ge&12?32768:Ge&2?16384:0,xt=Za(1,ve,vt);return xt.links.type=Ge&4?Vu(ne):ne,xt});return To(n.parameters.slice(0,y),J)}function d(_,y){const x=new Map;return Ot(_.target.labeledElementDeclarations,(k,z)=>{const J=ebe(k,z,y),ne=x.get(J);return ne===void 0?(x.set(J,1),J):(x.set(J,ne+1),"".concat(J,"_").concat(ne))})}}function qlt(n){const a=Hf(n),c=Ko(a,1),d=Hg(n.symbol),_=!!d&&$r(d,64);if(c.length===0)return[Dg(void 0,n.localTypeParameters,void 0,et,n,void 0,0,_?4:0)];const y=Ds(n),x=sr(y),k=I9(y),z=Le(k),J=[];for(const ne of c){const Se=Uh(ne.typeParameters),ve=Le(ne.typeParameters);if(x||z>=Se&&z<=ve){const Ge=ve?$Z(ne,Bb(k,ne.typeParameters,Se,x)):R8(ne);Ge.typeParameters=n.localTypeParameters,Ge.resolvedReturnType=n,Ge.flags=_?Ge.flags|4:Ge.flags&-5,J.push(Ge)}}return J}function JZ(n,a,c,d,_){for(const y of n)if(B9(y,a,c,d,_,c?ydt:z8))return y}function Jlt(n,a,c){if(a.typeParameters){if(c>0)return;for(let _=1;_<n.length;_++)if(!JZ(n[_],a,!1,!1,!1))return;return[a]}let d;for(let _=0;_<n.length;_++){const y=_===c?a:JZ(n[_],a,!1,!1,!0)||JZ(n[_],a,!0,!1,!0);if(!y)return;d=wg(d,y)}return d}function Ige(n){let a,c;for(let d=0;d<n.length;d++){if(n[d].length===0)return et;n[d].length>1&&(c=c===void 0?d:-1);for(const _ of n[d])if(!a||!JZ(a,_,!1,!1,!0)){const y=Jlt(n,_,d);if(y){let x=_;if(y.length>1){let k=_.thisParameter;const z=He(y,J=>J.thisParameter);if(z){const J=Ea(Hi(y,ne=>ne.thisParameter&&dr(ne.thisParameter)));k=tA(z,J)}x=A8e(_,y),x.thisParameter=k}(a||(a=[])).push(x)}}}if(!Le(a)&&c!==-1){const d=n[c!==void 0?c:0];let _=d.slice();for(const y of n)if(y!==d){const x=y[0];if(C.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=x.typeParameters&&St(_,k=>!!k.typeParameters&&!x8e(x.typeParameters,k.typeParameters))?void 0:Ot(_,k=>Ylt(k,x)),!_)break}a=_}return a||et}function x8e(n,a){if(Le(n)!==Le(a))return!1;if(!n||!a)return!0;const c=kp(a,n);for(let d=0;d<n.length;d++){const _=n[d],y=a[d];if(_!==y&&!yv(U2(_)||dn,co(U2(y)||dn,c)))return!1}return!0}function Klt(n,a,c){if(!n||!a)return n||a;const d=Ea([dr(n),co(dr(a),c)]);return tA(n,d)}function Xlt(n,a,c){const d=Yp(n),_=Yp(a),y=d>=_?n:a,x=y===n?a:n,k=y===n?d:_,z=Kh(n)||Kh(a),J=z&&!Kh(y),ne=new Array(k+(J?1:0));for(let Se=0;Se<k;Se++){let ve=nS(y,Se);y===a&&(ve=co(ve,c));let Ge=nS(x,Se)||dn;x===a&&(Ge=co(Ge,c));const vt=Ea([ve,Ge]),xt=z&&!J&&Se===k-1,cn=Se>=oh(y)&&Se>=oh(x),sn=Se>=d?void 0:oM(n,Se),er=Se>=_?void 0:oM(a,Se),Wn=sn===er?sn:sn?er?void 0:sn:er,mn=Za(1|(cn&&!xt?16777216:0),Wn||"arg".concat(Se),xt?32768:cn?16384:0);mn.links.type=xt?Vu(vt):vt,ne[Se]=mn}if(J){const Se=Za(1,"args",32768);Se.links.type=Vu(b_(x,k)),x===a&&(Se.links.type=co(Se.links.type,c)),ne[k]=Se}return ne}function Ylt(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=kp(a.typeParameters,n.typeParameters));const _=n.declaration,y=Xlt(n,a,d),x=Klt(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),z=Dg(_,c,x,y,void 0,void 0,k,(n.flags|a.flags)&167);return z.compositeKind=1048576,z.compositeSignatures=To(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),d?z.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?$1(n.mapper,d):d:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(z.mapper=n.mapper),z}function R8e(n){const a=vd(n[0]);if(a){const c=[];for(const d of a){const _=d.keyType;Yn(n,y=>!!Cg(y,_))&&c.push(Hh(_,Zr(Ot(n,y=>fE(y,_))),St(n,y=>Cg(y,_).isReadonly)))}return c}return et}function $lt(n){const a=Ige(Ot(n.types,_=>_===Wt?[pn]:Ko(_,0))),c=Ige(Ot(n.types,_=>Ko(_,1))),d=R8e(n.types);bf(n,K,a,c,d)}function v9(n,a){return n?a?Ea([n,a]):n:a}function D8e(n){const a=lu(n,d=>Ko(d,1).length>0),c=Ot(n,Mi);if(a>0&&a===lu(c,d=>d)){const d=c.indexOf(!0);c[d]=!1}return c}function Qlt(n,a,c,d){const _=[];for(let y=0;y<a.length;y++)y===d?_.push(n):c[y]&&_.push(ms(Ko(a[y],1)[0]));return Ea(_)}function Zlt(n){let a,c,d;const _=n.types,y=D8e(_),x=lu(y,k=>k);for(let k=0;k<_.length;k++){const z=n.types[k];if(!y[k]){let J=Ko(z,1);J.length&&x>0&&(J=Ot(J,ne=>{const Se=R8(ne);return Se.resolvedReturnType=Qlt(ms(ne),_,y,k),Se})),c=C8e(c,J)}a=C8e(a,Ko(z,0)),d=od(vd(z),(J,ne)=>N8e(J,ne,!1),d)}bf(n,K,a||et,c||et,d||et)}function C8e(n,a){for(const c of a)(!n||Yn(n,d=>!B9(d,c,!1,!1,!1,z8)))&&(n=Rn(n,c));return n}function N8e(n,a,c){if(n)for(let d=0;d<n.length;d++){const _=n[d];if(_.keyType===a.keyType)return n[d]=Hh(_.keyType,c?Zr([_.type,a.type]):Ea([_.type,a.type]),c?_.isReadonly||a.isReadonly:_.isReadonly&&a.isReadonly),n}return Rn(n,a)}function ect(n){if(n.target){bf(n,K,et,et,et);const x=y8e(zb(n.target),n.mapper,!1),k=fee(Ko(n.target,0),n.mapper),z=fee(Ko(n.target,1),n.mapper),J=X6e(vd(n.target),n.mapper);bf(n,x,k,z,J);return}const a=ss(n.symbol);if(a.flags&2048){bf(n,K,et,et,et);const x=Fb(a),k=H1(x.get("__call")),z=H1(x.get("__new")),J=K8e(a);bf(n,x,k,z,J);return}let c=Mp(a),d;if(a===it){const x=new Map;c.forEach(k=>{var z;!(k.flags&418)&&!(k.flags&512&&((z=k.declarations)!=null&&z.length)&&Yn(k.declarations,ku))&&x.set(k.escapedName,k)}),c=x}let _;if(bf(n,c,et,et,et),a.flags&32){const x=qf(a),k=Hf(x);k.flags&11272192?(c=ua(zT(c)),b8e(c,bs(k))):k===j&&(_=Hh(ke,j,!1))}const y=QZ(c);if(y?d=Uge(y):(_&&(d=Rn(d,_)),a.flags&384&&(Zs(a).flags&32||St(n.properties,x=>!!(dr(x).flags&296)))&&(d=Rn(d,qr))),bf(n,c,et,et,d||et),a.flags&8208&&(n.callSignatures=H1(a)),a.flags&32){const x=qf(a);let k=a.members?H1(a.members.get("__constructor")):et;a.flags&16&&(k=Ur(k.slice(),Hi(n.callSignatures,z=>ih(z.declaration)?Dg(z.declaration,z.typeParameters,z.thisParameter,z.parameters,x,void 0,z.minArgumentCount,z.flags&167):void 0))),k.length||(k=qlt(x)),n.constructSignatures=k}}function tct(n,a,c){return co(n,kp([a.indexType,a.objectType],[v_(0),qh([c])]))}function nct(n){const a=Ef(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;const c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;const d=Ea(c.types.filter(_=>_!==n.constraintType));return d!==Hr?d:void 0}function rct(n){const a=Cg(n.source,ke),c=jh(n.mappedType),d=!(c&1),_=c&4?0:16777216,y=a?[Hh(ke,kee(a.type,n.mappedType,n.constraintType),d&&a.isReadonly)]:et,x=ua(),k=nct(n);for(const z of bs(n.source)){if(k){const Se=CC(z,8576);if(!Sa(Se,k))continue}const J=8192|(d&&E_(z)?8:0),ne=Za(4|z.flags&_,z.escapedName,J);if(ne.declarations=z.declarations,ne.links.nameType=Xi(z).nameType,ne.links.propertyType=dr(z),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const Se=n.constraintType.type.objectType,ve=tct(n.mappedType,n.constraintType.type,Se);ne.links.mappedType=ve,ne.links.constraintType=eh(Se)}else ne.links.mappedType=n.mappedType,ne.links.constraintType=n.constraintType;x.set(z.escapedName,ne)}bf(n,x,et,et,y)}function y9(n){if(n.flags&4194304){const a=kd(n.type);return Jb(a)?b6e(a):eh(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,c=y9(a);if(c!==a)return xve(n,ZT(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return dl(n,y9,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===pc?n:Ea(no(n.types,y9))}return n}function xge(n){return xl(n)&4096}function Rge(n,a,c,d){for(const _ of bs(n))d(CC(_,a));if(n.flags&1)d(ke);else for(const _ of vd(n))(!c||_.keyType.flags&134217732)&&d(_.keyType)}function ict(n){const a=ua();let c;bf(n,K,et,et,et);const d=__(n),_=Ef(n),y=n.target||n,x=_y(y),k=KZ(y)!==2,z=_v(y),J=kd(UT(n)),ne=jh(n),Se=Ne?128:8576;AC(n)?Rge(J,Se,Ne,ve):oA(y9(_),ve),bf(n,a,et,et,c||et);function ve(vt){const xt=x?co(x,O8(n.mapper,d,vt)):vt;oA(xt,cn=>Ge(vt,cn))}function Ge(vt,xt){if(lm(xt)){const cn=cm(xt),sn=a.get(cn);if(sn)sn.links.nameType=Zr([sn.links.nameType,xt]),sn.links.keyType=Zr([sn.links.keyType,vt]);else{const er=lm(vt)?ba(J,cm(vt)):void 0,Wn=!!(ne&4||!(ne&8)&&er&&er.flags&16777216),mn=!!(ne&1||!(ne&2)&&er&&E_(er)),Fn=Y&&!Wn&&er&&er.flags&16777216,Pn=er?xge(er):0,Vn=Za(4|(Wn?16777216:0),cn,Pn|262144|(mn?8:0)|(Fn?524288:0));Vn.links.mappedType=n,Vn.links.nameType=xt,Vn.links.keyType=vt,er&&(Vn.links.syntheticOrigin=er,Vn.declarations=k?er.declarations:void 0),a.set(cn,Vn)}}else if(ZZ(xt)||xt.flags&33){const cn=xt.flags&5?ke:xt.flags&40?Tt:xt,sn=co(z,O8(n.mapper,d,vt)),er=D8(J,xt),Wn=!!(ne&1||!(ne&2)&&(er!=null&&er.isReadonly)),mn=Hh(cn,sn,Wn);c=N8e(c,mn,!0)}}}function oct(n){if(!n.links.type){const a=n.links.mappedType;if(!Gh(n,0))return a.containsError=!0,_t;const c=_v(a.target||a),d=O8(a.mapper,__(a),n.links.keyType),_=co(c,d);let y=Y&&n.flags&16777216&&!Pl(_,49152)?Kb(_,!0):n.links.checkFlags&524288?Cee(_):_;Y_()||(Xe(N,m.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Si(n),Un(a)),y=_t),n.links.type=y}return n.links.type}function __(n){return n.typeParameter||(n.typeParameter=jT(xr(n.declaration.typeParameter)))}function Ef(n){return n.constraintType||(n.constraintType=Ld(__(n))||_t)}function _y(n){return n.declaration.nameType?n.nameType||(n.nameType=co(Ti(n.declaration.nameType),n.mapper)):void 0}function _v(n){return n.templateType||(n.templateType=n.declaration.type?co(up(Ti(n.declaration.type),!0,!!(jh(n)&4)),n.mapper):_t)}function P8e(n){return eR(n.declaration.typeParameter)}function AC(n){const a=P8e(n);return a.kind===198&&a.operator===143}function UT(n){if(!n.modifiersType)if(AC(n))n.modifiersType=co(Ti(P8e(n).type),n.mapper);else{const a=hve(n.declaration),c=Ef(a),d=c&&c.flags&262144?Ld(c):c;n.modifiersType=d&&d.flags&4194304?co(d.type,n.mapper):dn}return n.modifiersType}function jh(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function M8e(n){const a=jh(n);return a&8?-1:a&4?1:0}function Dge(n){const a=M8e(n),c=UT(n);return a||(Kd(c)?M8e(c):0)}function act(n){return!!(Wr(n)&32&&jh(n)&4)}function Kd(n){if(Wr(n)&32){const a=Ef(n);if(QT(a))return!0;const c=_y(n);if(c&&QT(co(c,Y1(__(n),a))))return!0}return!1}function KZ(n){const a=_y(n);return a?Sa(a,__(n))?1:2:0}function h_(n){return n.members||(n.flags&524288?n.objectFlags&4?jlt(n):n.objectFlags&3?Vlt(n):n.objectFlags&1024?rct(n):n.objectFlags&16?ect(n):n.objectFlags&32?ict(n):C.fail("Unhandled object type "+C.formatObjectFlags(n.objectFlags)):n.flags&1048576?$lt(n):n.flags&2097152?Zlt(n):C.fail("Unhandled type "+C.formatTypeFlags(n.flags))),n}function zb(n){return n.flags&524288?h_(n).properties:et}function pE(n,a){if(n.flags&524288){const d=h_(n).members.get(a);if(d&&Vm(d))return d}}function b9(n){if(!n.resolvedProperties){const a=ua();for(const c of n.types){for(const d of bs(c))if(!a.has(d.escapedName)){const _=S9(n,d.escapedName,!!(n.flags&2097152));_&&a.set(d.escapedName,_)}if(n.flags&1048576&&vd(c).length===0)break}n.resolvedProperties=iE(a)}return n.resolvedProperties}function bs(n){return n=V2(n),n.flags&3145728?b9(n):zb(n)}function sct(n,a){n=V2(n),n.flags&3670016&&h_(n).members.forEach((c,d)=>{px(c,d)&&a(c,d)})}function lct(n,a){return a.properties.some(d=>{const _=d.name&&(r_(d.name)?Xd(Dk(d.name)):vy(d.name)),y=_&&lm(_)?cm(_):void 0,x=y===void 0?void 0:Ke(n,y);return!!x&&V8(x)&&!Sa(xx(d),x)})}function cct(n){const a=Zr(n);if(!(a.flags&1048576))return Obe(a);const c=ua();for(const d of n)for(const{escapedName:_}of Obe(d))if(!c.has(_)){const y=z8e(a,_);y&&c.set(_,y)}return Wo(c.values())}function HT(n){return n.flags&262144?Ld(n):n.flags&8388608?dct(n):n.flags&16777216?w8e(n):Gu(n)}function Ld(n){return E9(n)?U2(n):void 0}function uct(n,a){const c=W8(n);return!!c&&qT(c,a)}function qT(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&St((c=n.symbol)==null?void 0:c.declarations,d=>$r(d,4096))||n.flags&3145728&&St(n.types,d=>qT(d,a))||n.flags&8388608&&qT(n.objectType,a+1)||n.flags&16777216&&qT(w8e(n),a+1)||n.flags&33554432&&qT(n.baseType,a)||Wr(n)&32&&uct(n,a)||Jb(n)&&Br(J1(n),(d,_)=>!!(n.target.elementFlags[_]&8)&&qT(d,a))>=0))}function dct(n){return E9(n)?pct(n):void 0}function Cge(n){const a=vv(n,!1);return a!==n?a:HT(n)}function pct(n){if(Lge(n))return see(n.objectType,n.indexType);const a=Cge(n.indexType);if(a&&a!==n.indexType){const d=Vb(n.objectType,a,n.accessFlags);if(d)return d}const c=Cge(n.objectType);if(c&&c!==n.objectType)return Vb(c,n.indexType,n.accessFlags)}function Nge(n){if(!n.resolvedDefaultConstraint){const a=Kut(n),c=hE(n);n.resolvedDefaultConstraint=Ct(a)?c:Ct(c)?a:Zr([a,c])}return n.resolvedDefaultConstraint}function L8e(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=vv(n.checkType,!1),c=a===n.checkType?HT(a):a;if(c&&c!==n.checkType){const d=xve(n,ZT(n.root.checkType,c,n.mapper),!0);if(!(d.flags&131072))return n.resolvedConstraintOfDistributive=d,d}}n.resolvedConstraintOfDistributive=!1}function k8e(n){return L8e(n)||Nge(n)}function w8e(n){return E9(n)?k8e(n):void 0}function fct(n,a){let c,d=!1;for(const _ of n)if(_.flags&465829888){let y=HT(_);for(;y&&y.flags&21233664;)y=HT(y);y&&(c=Rn(c,y),a&&(c=Rn(c,_)))}else(_.flags&469892092||Jh(_))&&(d=!0);if(c&&(a||d)){if(d)for(const _ of n)(_.flags&469892092||Jh(_))&&(c=Rn(c,_));return W9(Ea(c),!1)}}function Gu(n){if(n.flags&464781312||Jb(n)){const a=Pge(n);return a!==Hs&&a!==iu?a:void 0}return n.flags&4194304?va:void 0}function hv(n){return Gu(n)||n}function E9(n){return Pge(n)!==iu}function Pge(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=c(n);function c(y){if(!y.immediateBaseConstraint){if(!Gh(y,4))return iu;let x;const k=Tee(y);if((a.length<10||a.length<50&&!Nr(a,k))&&(a.push(k),x=_(vv(y,!1)),a.pop()),!Y_()){if(y.flags&262144){const z=Hge(y);if(z){const J=Xe(z,m.Type_parameter_0_has_a_circular_constraint,Un(y));N&&!HE(z,N)&&!HE(N,z)&&Oa(J,Or(N,m.Circularity_originates_in_type_at_this_location))}}x=iu}y.immediateBaseConstraint=x||Hs}return y.immediateBaseConstraint}function d(y){const x=c(y);return x!==Hs&&x!==iu?x:void 0}function _(y){if(y.flags&262144){const x=U2(y);return y.isThisType||!x?x:d(x)}if(y.flags&3145728){const x=y.types,k=[];let z=!1;for(const J of x){const ne=d(J);ne?(ne!==J&&(z=!0),k.push(ne)):z=!0}return z?y.flags&1048576&&k.length===x.length?Zr(k):y.flags&2097152&&k.length?Ea(k):void 0:y}if(y.flags&4194304)return va;if(y.flags&134217728){const x=y.types,k=Hi(x,d);return k.length===x.length?XT(y.texts,k):ke}if(y.flags&268435456){const x=d(y.type);return x&&x!==y.type?bx(y.symbol,x):ke}if(y.flags&8388608){if(Lge(y))return d(see(y.objectType,y.indexType));const x=d(y.objectType),k=d(y.indexType),z=x&&k&&Vb(x,k,y.accessFlags);return z&&d(z)}if(y.flags&16777216){const x=k8e(y);return x&&d(x)}if(y.flags&33554432)return d(Yge(y));if(Jb(y)){const x=Ot(J1(y),(k,z)=>{const J=k.flags&262144&&y.target.elementFlags[z]&8&&d(k)||k;return J!==k&&pp(J,ne=>vE(ne)&&!Jb(ne))?J:k});return qh(x,y.target.elementFlags,y.target.readonly,y.target.labeledElementDeclarations)}return y}}function mct(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Kp(n,a,!0))}function Mge(n){if(n.default)n.default===fu&&(n.default=iu);else if(n.target){const a=Mge(n.target);n.default=a?co(a,n.mapper):Hs}else{n.default=fu;const a=n.symbol&&He(n.symbol.declarations,d=>gl(d)&&d.default),c=a?Ti(a):Hs;n.default===fu&&(n.default=c)}return n.default}function JT(n){const a=Mge(n);return a!==Hs&&a!==iu?a:void 0}function _ct(n){return Mge(n)!==iu}function O8e(n){return!!(n.symbol&&He(n.symbol.declarations,a=>gl(a)&&a.default))}function W8e(n){return n.resolvedApparentType||(n.resolvedApparentType=hct(n))}function hct(n){var d;const a=(d=n.target)!=null?d:n,c=W8(a);if(c&&!a.declaration.nameType){const _=UT(n),y=Kd(_)?W8e(_):Gu(_);if(y&&pp(y,x=>vE(x)||F8e(x)))return co(a,ZT(c,y,n.mapper))}return n}function F8e(n){return!!(n.flags&2097152)&&Yn(n.types,vE)}function Lge(n){let a;return!!(n.flags&8388608&&Wr(a=n.objectType)&32&&!Kd(a)&&QT(n.indexType)&&!(jh(a)&8)&&!a.declaration.nameType)}function kd(n){const a=n.flags&465829888?Gu(n)||dn:n,c=Wr(a);return c&32?W8e(a):c&4&&a!==n?Kp(a,n):a.flags&2097152?mct(a,n):a.flags&402653316?rc:a.flags&296?Sc:a.flags&2112?Zct():a.flags&528?ul:a.flags&12288?d6e():a.flags&67108864?ka:a.flags&4194304?va:a.flags&2&&!Y?ka:a}function V2(n){return g_(kd(g_(n)))}function z8e(n,a,c){var d,_,y;let x,k,z;const J=n.flags&1048576;let ne,Se=4,ve=J?0:8,Ge=!1;for(const Vn of n.types){const Gn=kd(Vn);if(!(Kt(Gn)||Gn.flags&131072)){const tr=ba(Gn,a,c),mo=tr?Df(tr):0;if(tr){if(tr.flags&106500&&(ne!=null||(ne=J?0:16777216),J?ne|=tr.flags&16777216:ne&=tr.flags),!x)x=tr;else if(tr!==x)if((GC(tr)||tr)===(GC(x)||x)&&Ove(x,tr,(Fo,vo)=>Fo===vo?-1:0)===-1)Ge=!!x.parent&&!!Le(wr(x.parent));else{k||(k=new Map,k.set(Ta(x),x));const Fo=Ta(tr);k.has(Fo)||k.set(Fo,tr)}J&&E_(tr)?ve|=8:!J&&!E_(tr)&&(ve&=-9),ve|=(mo&6?0:256)|(mo&4?512:0)|(mo&2?1024:0)|(mo&256?2048:0),Mye(tr)||(Se=2)}else if(J){const _o=!x8(a)&&vx(Gn,a);_o?(ve|=32|(_o.isReadonly?8:0),z=Rn(z,ja(Gn)?xee(Gn)||We:_o.type)):EE(Gn)&&!(Wr(Gn)&2097152)?(ve|=32,z=Rn(z,We)):ve|=16}}}if(!x||J&&(k||ve&48)&&ve&1536&&!(k&&gct(k.values())))return;if(!k&&!(ve&16)&&!z)if(Ge){const Vn=(d=ti(x,hh))==null?void 0:d.links,Gn=tA(x,Vn==null?void 0:Vn.type);return Gn.parent=(y=(_=x.valueDeclaration)==null?void 0:_.symbol)==null?void 0:y.parent,Gn.links.containingType=n,Gn.links.mapper=Vn==null?void 0:Vn.mapper,Gn.links.writeType=U1(x),Gn}else return x;const vt=k?Wo(k.values()):[x];let xt,cn,sn;const er=[];let Wn,mn,Fn=!1;for(const Vn of vt){mn?Vn.valueDeclaration&&Vn.valueDeclaration!==mn&&(Fn=!0):mn=Vn.valueDeclaration,xt=Ur(xt,Vn.declarations);const Gn=dr(Vn);cn||(cn=Gn,sn=Xi(Vn).nameType);const tr=U1(Vn);(Wn||tr!==Gn)&&(Wn=Rn(Wn||er.slice(),tr)),Gn!==cn&&(ve|=64),(V8(Gn)||YT(Gn))&&(ve|=128),Gn.flags&131072&&Gn!==tc&&(ve|=131072),er.push(Gn)}Ur(er,z);const Pn=Za(4|(ne!=null?ne:0),a,Se|ve);return Pn.links.containingType=n,!Fn&&mn&&(Pn.valueDeclaration=mn,mn.symbol.parent&&(Pn.parent=mn.symbol.parent)),Pn.declarations=xt,Pn.links.nameType=sn,er.length>2?(Pn.links.checkFlags|=65536,Pn.links.deferralParent=n,Pn.links.deferralConstituents=er,Pn.links.deferralWriteConstituents=Wn):(Pn.links.type=J?Zr(er):Ea(er),Wn&&(Pn.links.writeType=J?Zr(Wn):Ea(Wn))),Pn}function B8e(n,a,c){var d,_,y;let x=c?(d=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:d.get(a):(_=n.propertyCache)==null?void 0:_.get(a);return x||(x=z8e(n,a,c),x&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=ua()):n.propertyCache||(n.propertyCache=ua())).set(a,x),c&&!(xl(x)&48)&&!((y=n.propertyCache)!=null&&y.get(a))&&(n.propertyCache||(n.propertyCache=ua())).set(a,x))),x}function gct(n){let a;for(const c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(d=>{Nr(c.declarations,d)||a.delete(d)}),a.size===0)return}return a}function S9(n,a,c){const d=B8e(n,a,c);return d&&!(xl(d)&16)?d:void 0}function g_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=vct(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(St(b9(n),yct)?33554432:0)),n.objectFlags&33554432?Hr:n):n}function vct(n){const a=no(n.types,g_);if(a===n.types)return n;const c=Zr(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function yct(n){return G8e(n)||V8e(n)}function G8e(n){return!(n.flags&16777216)&&(xl(n)&131264)===192&&!!(dr(n).flags&131072)}function V8e(n){return!n.valueDeclaration&&!!(xl(n)&1024)}function kge(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&St(n.types,kge)||n.flags&2097152&&bct(n))}function bct(n){const a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=co(n,ao));return g_(a)!==a}function wge(n,a){if(a.flags&2097152&&Wr(a)&33554432){const c=Tn(b9(a),G8e);if(c)return Bo(n,m.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Un(a,void 0,536870912),Si(c));const d=Tn(b9(a),V8e);if(d)return Bo(n,m.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Un(a,void 0,536870912),Si(d))}return n}function ba(n,a,c,d){var _,y;if(n=V2(n),n.flags&524288){const x=h_(n),k=x.members.get(a);if(k&&!d&&((_=n.symbol)==null?void 0:_.flags)&512&&((y=Xi(n.symbol).typeOnlyExportStarMap)!=null&&y.has(a)))return;if(k&&Vm(k,d))return k;if(c)return;const z=x===an?Wt:x.callSignatures.length?qn:x.constructSignatures.length?Eo:void 0;if(z){const J=pE(z,a);if(J)return J}return pE(Pe,a)}if(n.flags&2097152){const x=S9(n,a,!0);return x||(c?void 0:S9(n,a,c))}if(n.flags&1048576)return S9(n,a,c)}function T9(n,a){if(n.flags&3670016){const c=h_(n);return a===0?c.callSignatures:c.constructSignatures}return et}function Ko(n,a){const c=T9(V2(n),a);if(a===0&&!Le(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let d;if(pp(n,_=>{var y;return!!((y=_.symbol)!=null&&y.parent)&&Ect(_.symbol.parent)&&(d?d===_.symbol.escapedName:(d=_.symbol.escapedName,!0))})){const _=dl(n,x=>Ub((j8e(x.symbol.parent)?ea:Xo).typeParameters[0],x.mapper)),y=Vu(_,qm(n,x=>j8e(x.symbol.parent)));return n.arrayFallbackSignatures=Ko(Ke(y,d),a)}n.arrayFallbackSignatures=c}return c}function Ect(n){return!n||!Xo.symbol||!ea.symbol?!1:!!p_(n,Xo.symbol)||!!p_(n,ea.symbol)}function j8e(n){return!n||!ea.symbol?!1:!!p_(n,ea.symbol)}function Oge(n,a){return Tn(n,c=>c.keyType===a)}function Wge(n,a){let c,d,_;for(const y of n)y.keyType===ke?c=y:gx(a,y.keyType)&&(d?(_||(_=[d])).push(y):d=y);return _?Hh(dn,Ea(Ot(_,y=>y.type)),od(_,(y,x)=>y&&x.isReadonly,!0)):d||(c&&gx(a,ke)?c:void 0)}function gx(n,a){return Sa(n,a)||a===ke&&Sa(n,Tt)||a===Tt&&(n===za||!!(n.flags&128)&&pg(n.value))}function Fge(n){return n.flags&3670016?h_(n).indexInfos:et}function vd(n){return Fge(V2(n))}function Cg(n,a){return Oge(vd(n),a)}function fE(n,a){var c;return(c=Cg(n,a))==null?void 0:c.type}function zge(n,a){return vd(n).filter(c=>gx(a,c.keyType))}function D8(n,a){return Wge(vd(n),a)}function vx(n,a){return D8(n,x8(a)?si:Xd(ji(a)))}function U8e(n){var a;let c;for(const d of ky(n))c=wg(c,jT(d.symbol));return c!=null&&c.length?c:xc(n)?(a=j2(n))==null?void 0:a.typeParameters:void 0}function Bge(n){const a=[];return n.forEach((c,d)=>{B1(d)||a.push(c)}),a}function XZ(n,a){if(Qc(n))return;const c=Jd(be,'"'+n+'"',512);return c&&a?ss(c):c}function C8(n){if(FA(n)||xk(n)||Rk(n))return!0;if(n.initializer){const c=gm(n.parent),d=n.parent.parameters.indexOf(n);return C.assert(d>=0),d>=oh(c,3)}const a=xS(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=ste(a).length:!1}function Sct(n){return Uo(n)&&!P_(n)&&n.questionToken}function A9(n,a,c,d){return{kind:n,parameterName:a,parameterIndex:c,type:d}}function Uh(n){let a=0;if(n)for(let c=0;c<n.length;c++)O8e(n[c])||(a=c+1);return a}function Bb(n,a,c,d){const _=Le(a);if(!_)return[];const y=Le(n);if(d||y>=c&&y<=_){const x=n?n.slice():[];for(let z=y;z<_;z++)x[z]=_t;const k=tye(d);for(let z=y;z<_;z++){let J=JT(a[z]);d&&J&&(yv(J,dn)||yv(J,ka))&&(J=j),x[z]=J?co(J,kp(a,x)):k}return x.length=a.length,x}return n&&n.slice()}function gm(n){const a=Qr(n);if(!a.resolvedSignature){const c=[];let d=0,_=0,y,x=sr(n)?E4(n):void 0,k=!1;const z=xS(n),J=SR(n);!z&&sr(n)&&$ie(n)&&!Nre(n)&&!m0(n)&&(d|=32);for(let vt=J?1:0;vt<n.parameters.length;vt++){const xt=n.parameters[vt];if(sr(xt)&&qH(xt)){x=xt;continue}let cn=xt.symbol;const sn=o_(xt)?xt.typeExpression&&xt.typeExpression.type:xt.type;cn&&cn.flags&4&&!Zo(xt.name)&&(cn=yl(xt,cn.escapedName,111551,void 0,void 0,!1)),vt===0&&cn.escapedName==="this"?(k=!0,y=xt.symbol):c.push(cn),sn&&sn.kind===201&&(d|=2),xk(xt)||xt.initializer||xt.questionToken||ng(xt)||z&&c.length>z.arguments.length&&!sn||Rk(xt)||(_=c.length)}if((n.kind===177||n.kind===178)&&TC(n)&&(!k||!y)){const vt=n.kind===177?178:177,xt=fl(xr(n),vt);xt&&(y=BZ(xt))}x&&x.typeExpression&&(y=tA(Za(1,"this"),Ti(x.typeExpression)));const Se=N0(n)?E0(n):n,ve=Se&&Ll(Se)?qf(ss(Se.parent.symbol)):void 0,Ge=ve?ve.localTypeParameters:U8e(n);(hj(n)||sr(n)&&Tct(n,c))&&(d|=1),(qR(n)&&$r(n,64)||Ll(n)&&$r(n.parent,64))&&(d|=4),a.resolvedSignature=Dg(n,Ge,y,c,void 0,void 0,_,d)}return a.resolvedSignature}function Tct(n,a){if(N0(n)||!Gge(n))return!1;const c=el(n.parameters),d=c?Zx(c):_0(n).filter(o_),_=qt(d,x=>x.typeExpression&&lF(x.typeExpression.type)?x.typeExpression.type:void 0),y=Za(3,"args",32768);return _?y.links.type=Vu(Ti(_.type)):(y.links.checkFlags|=65536,y.links.deferralParent=Hr,y.links.deferralConstituents=[ic],y.links.deferralWriteConstituents=[ic]),_&&a.pop(),a.push(y),!0}function j2(n){if(!(sr(n)&&js(n)))return;const a=f0(n);return(a==null?void 0:a.typeExpression)&&cA(Ti(a.typeExpression))}function Act(n,a){const c=j2(n);if(!c)return;const d=n.parameters.indexOf(a);return a.dotDotDotToken?mB(c,d):b_(c,d)}function Ict(n){const a=j2(n);return a&&ms(a)}function Gge(n){const a=Qr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(d){if(!d)return!1;switch(d.kind){case 80:return d.escapedText===Ft.escapedName&&d6(d)===Ft;case 172:case 174:case 177:case 178:return d.name.kind===167&&c(d.name);case 211:case 212:return c(d.expression);case 303:return c(d.initializer);default:return!sU(d)&&!ig(d)&&!!Vo(d,c)}}}function H1(n){if(!n||!n.declarations)return et;const a=[];for(let c=0;c<n.declarations.length;c++){const d=n.declarations[c];if(Qo(d)){if(c>0&&d.body){const _=n.declarations[c-1];if(d.parent===_.parent&&d.kind===_.kind&&d.pos===_.end)continue}if(sr(d)&&d.jsDoc){const _=$j(d);if(Le(_)){for(const y of _){const x=y.typeExpression;x.type===void 0&&!Ll(d)&&yE(x,j),a.push(gm(x))}continue}}a.push(!e1(d)&&!Nm(d)&&j2(d)||gm(d))}}return a}function H8e(n){const a=gd(n,n);if(a){const c=Pp(a);if(c)return dr(c)}return j}function mE(n){if(n.thisParameter)return dr(n.thisParameter)}function Jf(n){if(!n.resolvedTypePredicate){if(n.target){const a=Jf(n.target);n.resolvedTypePredicate=a?cdt(a,n.mapper):we}else if(n.compositeSignatures)n.resolvedTypePredicate=Aut(n.compositeSignatures,n.compositeKind)||we;else{const a=n.declaration&&sm(n.declaration);let c;if(!a){const d=j2(n.declaration);d&&n!==d&&(c=Jf(d))}n.resolvedTypePredicate=a&&Kk(a)?xct(a,n):c||we}C.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===we?void 0:n.resolvedTypePredicate}function xct(n,a){const c=n.parameterName,d=n.type&&Ti(n.type);return c.kind===197?A9(n.assertsModifier?2:0,void 0,void 0,d):A9(n.assertsModifier?3:1,c.escapedText,Br(a.parameters,_=>_.escapedName===c.escapedText),d)}function q8e(n,a,c){return a!==2097152?Zr(n,c):Ea(n)}function ms(n){if(!n.resolvedReturnType){if(!Gh(n,3))return _t;let a=n.target?co(ms(n.target),n.mapper):n.compositeSignatures?co(q8e(Ot(n.compositeSignatures,ms),n.compositeKind,2),n.mapper):IC(n.declaration)||(Gl(n.declaration.body)?j:dte(n.declaration));if(n.flags&8?a=x4e(a):n.flags&16&&(a=Kb(a)),!Y_()){if(n.declaration){const c=sm(n.declaration);if(c)Xe(c,m.Return_type_annotation_circularly_references_itself);else if(de){const d=n.declaration,_=Po(d);_?Xe(_,m._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,Ns(_)):Xe(d,m.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)}}a=j}n.resolvedReturnType=a}return n.resolvedReturnType}function IC(n){if(n.kind===176)return qf(ss(n.parent.symbol));const a=sm(n);if(N0(n)){const c=TR(n);if(c&&Ll(c.parent)&&!a)return qf(ss(c.parent.parent.symbol))}if(SR(n))return Ti(n.parameters[0].type);if(a)return Ti(a);if(n.kind===177&&TC(n)){const c=sr(n)&&pv(n);if(c)return c;const d=fl(xr(n),178),_=cE(d);if(_)return _}return Ict(n)}function YZ(n){return n.compositeSignatures&&St(n.compositeSignatures,YZ)||!n.resolvedReturnType&&mx(n,3)>=0}function Rct(n){return J8e(n)||j}function J8e(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]),c=ja(a)?xee(a):a;return c&&fE(c,Tt)}}function N8(n,a,c,d){const _=Vge(n,Bb(a,n.typeParameters,Uh(n.typeParameters),c));if(d){const y=oWe(ms(_));if(y){const x=R8(y);x.typeParameters=d;const k=R8(_);return k.resolvedReturnType=KT(x),k}}return _}function Vge(n,a){const c=n.instantiations||(n.instantiations=new Map),d=vm(a);let _=c.get(d);return _||c.set(d,_=$Z(n,a)),_}function $Z(n,a){return MC(n,Dct(n,a),!0)}function Dct(n,a){return kp(n.typeParameters,a)}function P8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Cct(n)):n}function Cct(n){return MC(n,Y6e(n.typeParameters),!0)}function Nct(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Pct(n)):n}function Pct(n){return N8(n,Ot(n.typeParameters,a=>a.target&&!Ld(a.target)?a.target:a),sr(n.declaration))}function Mct(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const c=Y6e(a),d=kp(a,Ot(a,y=>Ld(y)||dn));let _=Ot(a,y=>co(y,d)||dn);for(let y=0;y<a.length-1;y++)_=yy(_,d);return _=yy(_,c),n.baseSignatureCache=MC(n,kp(a,_),!0)}return n}function KT(n){var a;if(!n.isolatedSignatureType){const c=(a=n.declaration)==null?void 0:a.kind,d=c===void 0||c===176||c===180||c===185,_=Vf(16);_.members=K,_.properties=et,_.callSignatures=d?et:[n],_.constructSignatures=d?[n]:et,_.indexInfos=et,n.isolatedSignatureType=_}return n.isolatedSignatureType}function jge(n){return n.members?QZ(n.members):void 0}function QZ(n){return n.get("__index")}function Hh(n,a,c,d){return{keyType:n,type:a,isReadonly:c,declaration:d}}function K8e(n){const a=jge(n);return a?Uge(a):et}function Uge(n){if(n.declarations){const a=[];for(const c of n.declarations)if(c.parameters.length===1){const d=c.parameters[0];d.type&&oA(Ti(d.type),_=>{ZZ(_)&&!Oge(a,_)&&a.push(Hh(_,c.type?Ti(c.type):j,yp(c,8),c))})}return a}return et}function ZZ(n){return!!(n.flags&4108)||YT(n)||!!(n.flags&2097152)&&!NC(n)&&St(n.types,ZZ)}function Hge(n){return Hi(rr(n.symbol&&n.symbol.declarations,gl),eR)[0]}function X8e(n,a){var c;let d;if((c=n.symbol)!=null&&c.declarations){for(const _ of n.symbol.declarations)if(_.parent.kind===195){const[y=_.parent,x]=Qie(_.parent.parent);if(x.kind===183&&!a){const k=x,z=_be(k);if(z){const J=k.typeArguments.indexOf(y);if(J<z.length){const ne=Ld(z[J]);if(ne){const Se=Sve(z,z.map((Ge,vt)=>()=>Jht(k,z,vt))),ve=co(ne,Se);ve!==n&&(d=Rn(d,ve))}}}}else if(x.kind===169&&x.dotDotDotToken||x.kind===191||x.kind===202&&x.dotDotDotToken)d=Rn(d,Vu(dn));else if(x.kind===204)d=Rn(d,ke);else if(x.kind===168&&x.parent.kind===200)d=Rn(d,va);else if(x.kind===200&&x.type&&vs(x.type)===_.parent&&x.parent.kind===194&&x.parent.extendsType===x&&x.parent.checkType.kind===200&&x.parent.checkType.type){const k=x.parent.checkType,z=Ti(k.type);d=Rn(d,co(z,Y1(jT(xr(k.typeParameter)),k.typeParameter.constraint?Ti(k.typeParameter.constraint):va)))}}}return d&&Ea(d)}function U2(n){if(!n.constraint)if(n.target){const a=Ld(n.target);n.constraint=a?co(a,n.mapper):Hs}else{const a=Hge(n);if(!a)n.constraint=X8e(n)||Hs;else{let c=Ti(a);c.flags&1&&!Kt(c)&&(c=a.parent.parent.kind===200?va:dn),n.constraint=c}}return n.constraint===Hs?void 0:n.constraint}function Y8e(n){const a=fl(n.symbol,168),c=pm(a.parent)?g3(a.parent):a.parent;return c&&gf(c)}function vm(n){let a="";if(n){const c=n.length;let d=0;for(;d<c;){const _=n[d].id;let y=1;for(;d+y<c&&n[d+y].id===_+y;)y++;a.length&&(a+=","),a+=_,y>1&&(a+=":"+y),d+=y}}return a}function yx(n,a){return n?"@".concat(Ta(n))+(a?":".concat(vm(a)):""):""}function eee(n,a){let c=0;for(const d of n)(a===void 0||!(d.flags&a))&&(c|=Wr(d));return c&458752}function xC(n,a){return St(a)&&n===Mo?dn:hy(n,a)}function hy(n,a){const c=vm(a);let d=n.instantiations.get(c);return d||(d=Vf(4,n.symbol),n.instantiations.set(c,d),d.objectFlags|=a?eee(a):0,d.target=n,d.resolvedTypeArguments=a),d}function $8e(n){const a=Rg(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function qge(n,a,c,d,_){if(!d){d=Ex(a);const x=PC(d);_=c?yy(x,c):x}const y=Vf(4,n.symbol);return y.target=n,y.node=a,y.mapper=c,y.aliasSymbol=d,y.aliasTypeArguments=_,y}function Js(n){var a,c;if(!n.resolvedTypeArguments){if(!Gh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>_t))||et;const d=n.node,_=d?d.kind===183?To(n.target.outerTypeParameters,hte(d,n.target.localTypeParameters)):d.kind===188?[Ti(d.elementType)]:Ot(d.elements,Ti):et;Y_()?n.resolvedTypeArguments=n.mapper?yy(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>_t))||et,Xe(n.node||N,n.target.symbol?m.Type_arguments_for_0_circularly_reference_themselves:m.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Si(n.target.symbol)))}return n.resolvedTypeArguments}function gy(n){return Le(n.target.typeParameters)}function Q8e(n,a){const c=Zs(ss(a)),d=c.localTypeParameters;if(d){const _=Le(n.typeArguments),y=Uh(d),x=sr(n);if(!(!de&&x)&&(_<y||_>d.length)){const J=x&&Xv(n)&&!vI(n.parent),ne=y===d.length?J?m.Expected_0_type_arguments_provide_these_with_an_extends_tag:m.Generic_type_0_requires_1_type_argument_s:J?m.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:m.Generic_type_0_requires_between_1_and_2_type_arguments,Se=Un(c,void 0,2);if(Xe(n,ne,Se,y,d.length),!x)return _t}if(n.kind===183&&v6e(n,Le(n.typeArguments)!==d.length))return qge(c,n,void 0);const z=To(c.outerTypeParameters,Bb(I9(n),d,y,x));return hy(c,z)}return q1(n,a)?c:_t}function RC(n,a,c,d){const _=Zs(n);if(_===hn){const J=QF.get(n.escapedName);if(J!==void 0&&a&&a.length===1)return J===4?Jge(a[0]):bx(n,a[0])}const y=Xi(n),x=y.typeParameters,k=vm(a)+yx(c,d);let z=y.instantiations.get(k);return z||y.instantiations.set(k,z=Z6e(_,kp(x,Bb(a,x,Uh(x),sr(n.valueDeclaration))),c,d)),z}function Lct(n,a){if(xl(a)&1048576){const _=I9(n),y=yx(a,_);let x=Fe.get(y);return x||(x=fc(1,"error",void 0,"alias ".concat(y)),x.aliasSymbol=a,x.aliasTypeArguments=_,Fe.set(y,x)),x}const c=Zs(a),d=Xi(a).typeParameters;if(d){const _=Le(n.typeArguments),y=Uh(d);if(_<y||_>d.length)return Xe(n,y===d.length?m.Generic_type_0_requires_1_type_argument_s:m.Generic_type_0_requires_between_1_and_2_type_arguments,Si(a),y,d.length),_t;const x=Ex(n);let k=x&&(Z8e(a)||!Z8e(x))?x:void 0,z;if(k)z=PC(k);else if(O4(n)){const J=DC(n,2097152,!0);if(J&&J!==pt){const ne=Bc(J);ne&&ne.flags&524288&&(k=ne,z=I9(n)||(d?[]:void 0))}}return RC(a,I9(n),k,z)}return q1(n,a)?c:_t}function Z8e(n){var a;const c=(a=n.declarations)==null?void 0:a.find(QL);return!!(c&&Gp(c))}function kct(n){switch(n.kind){case 183:return n.typeName;case 233:const a=n.expression;if(jl(a))return a}}function e6e(n){return n.parent?"".concat(e6e(n.parent),".").concat(n.escapedName):n.escapedName}function tee(n){const c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){const d=n.kind===166?tee(n.left):n.kind===211?tee(n.expression):void 0,_=d?"".concat(e6e(d),".").concat(c):c;let y=le.get(_);return y||(le.set(_,y=Za(524288,c,1048576)),y.parent=d,y.links.declaredType=Gt),y}return pt}function DC(n,a,c){const d=kct(n);if(!d)return pt;const _=qs(d,a,c);return _&&_!==pt?_:c?pt:tee(d)}function nee(n,a){if(a===pt)return _t;if(a=w2(a)||a,a.flags&96)return Q8e(n,a);if(a.flags&524288)return Lct(n,a);const c=g8e(a);if(c)return q1(n,a)?bd(c):_t;if(a.flags&111551&&ree(n)){const d=wct(n,a);return d||(DC(n,788968),dr(a))}return _t}function wct(n,a){const c=Qr(n);if(!c.resolvedJSDocType){const d=dr(a);let _=d;if(a.valueDeclaration){const y=n.kind===205&&n.qualifier;d.symbol&&d.symbol!==a&&y&&(_=nee(n,d.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function Jge(n){return Kge(n)?t6e(n,dn):n}function Kge(n){return!!(n.flags&3145728&&St(n.types,Kge)||n.flags&33554432&&!H2(n)&&Kge(n.baseType)||n.flags&524288&&!Jh(n)||n.flags&432275456&&!YT(n))}function H2(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function Xge(n,a){return a.flags&3||a===n||n.flags&1?n:t6e(n,a)}function t6e(n,a){const c="".concat(yd(n),">").concat(yd(a)),d=Ro.get(c);if(d)return d;const _=xg(33554432);return _.baseType=n,_.constraint=a,Ro.set(c,_),_}function Yge(n){return H2(n)?n.baseType:Ea([n.constraint,n.baseType])}function n6e(n){return n.kind===189&&n.elements.length===1}function r6e(n,a,c){return n6e(a)&&n6e(c)?r6e(n,a.elements[0],c.elements[0]):jb(Ti(a))===jb(n)?Ti(c):void 0}function Oct(n,a){let c,d=!0;for(;a&&!qi(a)&&a.kind!==327;){const _=a.parent;if(_.kind===169&&(d=!d),(d||n.flags&8650752)&&_.kind===194&&a===_.trueType){const y=r6e(n,_.checkType,_.extendsType);y&&(c=Rn(c,y))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){const y=Ti(_);if(__(y)===jb(n)){const x=W8(y);if(x){const k=Ld(x);k&&pp(k,vE)&&(c=Rn(c,Zr([Tt,za])))}}}a=_}return c?Xge(n,Ea(c)):n}function ree(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function q1(n,a){return n.typeArguments?(Xe(n,m.Type_0_is_not_generic,a?Si(a):n.typeName?Ns(n.typeName):KF),!1):!0}function i6e(n){if(je(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return q1(n),ke;case"Number":return q1(n),Tt;case"Boolean":return q1(n),ai;case"Void":return q1(n),Kn;case"Undefined":return q1(n),We;case"Null":return q1(n),fe;case"Function":case"function":return q1(n),Wt;case"array":return(!a||!a.length)&&!de?ic:void 0;case"promise":return(!a||!a.length)&&!de?hB(j):void 0;case"Object":if(a&&a.length===2){if(u3(n)){const c=Ti(a[0]),d=Ti(a[1]),_=c===ke||c===Tt?[Hh(c,d,!1)]:et;return Fs(void 0,K,et,et,_)}return j}return q1(n),de?void 0:j}}}function Wct(n){const a=Ti(n.type);return Y?j9(a,65536):a}function $ge(n){const a=Qr(n);if(!a.resolvedType){if(zg(n)&&bS(n.parent))return a.resolvedSymbol=pt,a.resolvedType=ac(n.parent.expression);let c,d;const _=788968;ree(n)&&(d=i6e(n),d||(c=DC(n,_,!0),c===pt?c=DC(n,_|111551):DC(n,_),d=nee(n,c))),d||(c=DC(n,_),d=nee(n,c)),a.resolvedSymbol=c,a.resolvedType=d}return a.resolvedType}function I9(n){return Ot(n.typeArguments,Ti)}function o6e(n){const a=Qr(n);if(!a.resolvedType){const c=IWe(n);a.resolvedType=bd(Xp(c))}return a.resolvedType}function a6e(n,a){function c(_){const y=_.declarations;if(y)for(const x of y)switch(x.kind){case 263:case 264:case 266:return x}}if(!n)return a?Mo:ka;const d=Zs(n);return d.flags&524288?Le(d.typeParameters)!==a?(Xe(c(n),m.Global_type_0_must_have_1_type_parameter_s,El(n),a),a?Mo:ka):d:(Xe(c(n),m.Global_type_0_must_be_a_class_or_interface_type,El(n)),a?Mo:ka)}function Qge(n,a){return q2(n,111551,a?m.Cannot_find_global_value_0:void 0)}function Zge(n,a){return q2(n,788968,a?m.Cannot_find_global_type_0:void 0)}function iee(n,a,c){const d=q2(n,788968,c?m.Cannot_find_global_type_0:void 0);if(d&&(Zs(d),Le(Xi(d).typeParameters)!==a)){const _=d.declarations&&Tn(d.declarations,Lm);Xe(_,m.Global_type_0_must_have_1_type_parameter_s,El(d),a);return}return d}function q2(n,a,c){return yl(void 0,n,a,c,n,!1,!1,!1)}function oc(n,a,c){const d=Zge(n,c);return d||c?a6e(d,a):void 0}function Fct(){return Mh||(Mh=oc("TypedPropertyDescriptor",1,!0)||Mo)}function zct(){return ir||(ir=oc("TemplateStringsArray",0,!0)||ka)}function s6e(){return ni||(ni=oc("ImportMeta",0,!0)||ka)}function l6e(){if(!Xr){const n=Za(0,"ImportMetaExpression"),a=s6e(),c=Za(4,"meta",8);c.parent=n,c.links.type=a;const d=ua([c]);n.members=d,Xr=Fs(n,d,et,et,et)}return Xr}function c6e(n){return so||(so=oc("ImportCallOptions",0,n))||ka}function eve(n){return Ba||(Ba=oc("ImportAttributes",0,n))||ka}function u6e(n){return Nd||(Nd=Qge("Symbol",n))}function Bct(n){return Of||(Of=Zge("SymbolConstructor",n))}function d6e(){return U_||(U_=oc("Symbol",0,!1))||ka}function x9(n){return ev||(ev=oc("Promise",1,n))||Mo}function p6e(n){return Bu||(Bu=oc("PromiseLike",1,n))||Mo}function tve(n){return tv||(tv=Qge("Promise",n))}function Gct(n){return Dp||(Dp=oc("PromiseConstructorLike",0,n))||ka}function oee(n){return F||(F=oc("AsyncIterable",1,n))||Mo}function Vct(n){return De||(De=oc("AsyncIterator",3,n))||Mo}function jct(n){return st||(st=oc("AsyncIterableIterator",1,n))||Mo}function Uct(n){return Vt||(Vt=oc("AsyncGenerator",3,n))||Mo}function nve(n){return vg||(vg=oc("Iterable",1,n))||Mo}function Hct(n){return Ud||(Ud=oc("Iterator",3,n))||Mo}function qct(n){return te||(te=oc("IterableIterator",1,n))||Mo}function Jct(n){return lt||(lt=oc("Generator",3,n))||Mo}function Kct(n){return zt||(zt=oc("IteratorYieldResult",1,n))||Mo}function Xct(n){return Jt||(Jt=oc("IteratorReturnResult",1,n))||Mo}function f6e(n){return Ga||(Ga=oc("Disposable",0,n))||ka}function Yct(n){return Fl||(Fl=oc("AsyncDisposable",0,n))||ka}function m6e(n,a=0){const c=q2(n,788968,void 0);return c&&a6e(c,a)}function $ct(){return mu||(mu=iee("Extract",2,!0)||pt),mu===pt?void 0:mu}function Qct(){return Nc||(Nc=iee("Omit",2,!0)||pt),Nc===pt?void 0:Nc}function rve(n){return Cp||(Cp=iee("Awaited",1,n)||(n?pt:void 0)),Cp===pt?void 0:Cp}function Zct(){return Hd||(Hd=oc("BigInt",0,!1))||ka}function eut(n){var a;return(a=Wf!=null?Wf:Wf=oc("ClassDecoratorContext",1,n))!=null?a:Mo}function tut(n){var a;return(a=Ff!=null?Ff:Ff=oc("ClassMethodDecoratorContext",2,n))!=null?a:Mo}function nut(n){var a;return(a=Vi!=null?Vi:Vi=oc("ClassGetterDecoratorContext",2,n))!=null?a:Mo}function rut(n){var a;return(a=Lh!=null?Lh:Lh=oc("ClassSetterDecoratorContext",2,n))!=null?a:Mo}function iut(n){var a;return(a=yg!=null?yg:yg=oc("ClassAccessorDecoratorContext",2,n))!=null?a:Mo}function out(n){var a;return(a=zf!=null?zf:zf=oc("ClassAccessorDecoratorTarget",2,n))!=null?a:Mo}function aut(n){var a;return(a=fb!=null?fb:fb=oc("ClassAccessorDecoratorResult",2,n))!=null?a:Mo}function sut(n){var a;return(a=mb!=null?mb:mb=oc("ClassFieldDecoratorContext",2,n))!=null?a:Mo}function lut(){return pb||(pb=Qge("NaN",!1))}function cut(){return ps||(ps=iee("Record",2,!0)||pt),ps===pt?void 0:ps}function M8(n,a){return n!==Mo?hy(n,a):ka}function _6e(n){return M8(Fct(),[n])}function h6e(n){return M8(nve(!0),[n])}function Vu(n,a){return M8(a?ea:Xo,[n])}function ive(n){switch(n.kind){case 190:return 2;case 191:return g6e(n);case 202:return n.questionToken?2:n.dotDotDotToken?g6e(n):1;default:return 1}}function g6e(n){return P9(n.type)?4:8}function uut(n){const a=fut(n.parent);if(P9(n))return a?ea:Xo;const d=Ot(n.elements,ive);return ove(d,a,Ot(n.elements,dut))}function dut(n){return JR(n)||Io(n)?n:void 0}function v6e(n,a){return!!Ex(n)||y6e(n)&&(n.kind===188?Gb(n.elementType):n.kind===189?St(n.elements,Gb):a||St(n.typeArguments,Gb))}function y6e(n){const a=n.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return y6e(a);case 265:return!0}return!1}function Gb(n){switch(n.kind){case 183:return ree(n)||!!(DC(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Gb(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Gb(n.type);case 191:return n.type.kind!==188||Gb(n.type.elementType);case 192:case 193:return St(n.types,Gb);case 199:return Gb(n.objectType)||Gb(n.indexType);case 194:return Gb(n.checkType)||Gb(n.extendsType)||Gb(n.trueType)||Gb(n.falseType)}return!1}function put(n){const a=Qr(n);if(!a.resolvedType){const c=uut(n);if(c===Mo)a.resolvedType=ka;else if(!(n.kind===189&&St(n.elements,d=>!!(ive(d)&8)))&&v6e(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:qge(c,n,void 0);else{const d=n.kind===188?[Ti(n.elementType)]:Ot(n.elements,Ti);a.resolvedType=ave(c,d)}}return a.resolvedType}function fut(n){return VS(n)&&n.operator===148}function qh(n,a,c=!1,d=[]){const _=ove(a||Ot(n,y=>1),c,d);return _===Mo?ka:n.length?ave(_,n):_}function ove(n,a,c){if(n.length===1&&n[0]&4)return a?ea:Xo;const d=Ot(n,y=>y&1?"#":y&2?"?":y&4?".":"*").join()+(a?"R":"")+(St(c,y=>!!y)?","+Ot(c,y=>y?cs(y):"_").join(","):"");let _=xo.get(d);return _||xo.set(d,_=mut(n,a,c)),_}function mut(n,a,c){const d=n.length,_=lu(n,Se=>!!(Se&9));let y;const x=[];let k=0;if(d){y=new Array(d);for(let Se=0;Se<d;Se++){const ve=y[Se]=yf(),Ge=n[Se];if(k|=Ge,!(k&12)){const vt=Za(4|(Ge&2?16777216:0),""+Se,a?8:0);vt.links.tupleLabelDeclaration=c==null?void 0:c[Se],vt.links.type=ve,x.push(vt)}}}const z=x.length,J=Za(4,"length",a?8:0);if(k&12)J.links.type=Tt;else{const Se=[];for(let ve=_;ve<=d;ve++)Se.push(v_(ve));J.links.type=Zr(Se)}x.push(J);const ne=Vf(12);return ne.typeParameters=y,ne.outerTypeParameters=void 0,ne.localTypeParameters=y,ne.instantiations=new Map,ne.instantiations.set(vm(ne.typeParameters),ne),ne.target=ne,ne.resolvedTypeArguments=ne.typeParameters,ne.thisType=yf(),ne.thisType.isThisType=!0,ne.thisType.constraint=ne,ne.declaredProperties=x,ne.declaredCallSignatures=et,ne.declaredConstructSignatures=et,ne.declaredIndexInfos=et,ne.elementFlags=n,ne.minLength=_,ne.fixedLength=z,ne.hasRestElement=!!(k&12),ne.combinedFlags=k,ne.readonly=a,ne.labeledElementDeclarations=c,ne}function ave(n,a){return n.objectFlags&8?sve(n,a):hy(n,a)}function sve(n,a){var c,d,_,y;if(!(n.combinedFlags&14))return hy(n,a);if(n.combinedFlags&8){const vt=Br(a,(xt,cn)=>!!(n.elementFlags[cn]&8&&xt.flags&1179648));if(vt>=0)return D9(Ot(a,(xt,cn)=>n.elementFlags[cn]&8?xt:dn))?dl(a[vt],xt=>sve(n,gG(a,vt,xt))):_t}const x=[],k=[],z=[];let J=-1,ne=-1,Se=-1;for(let vt=0;vt<a.length;vt++){const xt=a[vt],cn=n.elementFlags[vt];if(cn&8)if(xt.flags&1)Ge(xt,4,(c=n.labeledElementDeclarations)==null?void 0:c[vt]);else if(xt.flags&58982400||Kd(xt))Ge(xt,8,(d=n.labeledElementDeclarations)==null?void 0:d[vt]);else if(ja(xt)){const sn=J1(xt);if(sn.length+x.length>=1e4)return Xe(N,ig(N)?m.Type_produces_a_tuple_type_that_is_too_large_to_represent:m.Expression_produces_a_tuple_type_that_is_too_large_to_represent),_t;He(sn,(er,Wn)=>{var mn;return Ge(er,xt.target.elementFlags[Wn],(mn=xt.target.labeledElementDeclarations)==null?void 0:mn[Wn])})}else Ge(by(xt)&&fE(xt,Tt)||_t,4,(_=n.labeledElementDeclarations)==null?void 0:_[vt]);else Ge(xt,cn,(y=n.labeledElementDeclarations)==null?void 0:y[vt])}for(let vt=0;vt<J;vt++)k[vt]&2&&(k[vt]=1);ne>=0&&ne<Se&&(x[ne]=Zr(no(x.slice(ne,Se+1),(vt,xt)=>k[ne+xt]&8?Lp(vt,Tt):vt)),x.splice(ne+1,Se-ne),k.splice(ne+1,Se-ne),z.splice(ne+1,Se-ne));const ve=ove(k,n.readonly,z);return ve===Mo?ka:k.length?hy(ve,x):ve;function Ge(vt,xt,cn){xt&1&&(J=k.length),xt&4&&ne<0&&(ne=k.length),xt&6&&(Se=k.length),x.push(xt&2?up(vt,!0):vt),k.push(xt),z.push(cn)}}function J2(n,a,c=0){const d=n.target,_=gy(n)-c;return a>d.fixedLength?ept(n)||qh(et):qh(Js(n).slice(a,_),d.elementFlags.slice(a,_),!1,d.labeledElementDeclarations&&d.labeledElementDeclarations.slice(a,_))}function b6e(n){return Zr(Rn(Pne(n.target.fixedLength,a=>Xd(""+a)),eh(n.target.readonly?ea:Xo)))}function _ut(n,a){const c=Br(n.elementFlags,d=>!(d&a));return c>=0?c:n.elementFlags.length}function L8(n,a){return n.elementFlags.length-zi(n.elementFlags,c=>!(c&a))-1}function lve(n){return n.fixedLength+L8(n,3)}function J1(n){const a=Js(n),c=gy(n);return a.length===c?a:a.slice(0,c)}function hut(n){return up(Ti(n.type),!0)}function yd(n){return n.id}function gv(n,a){return Nv(n,a,yd,nl)>=0}function R9(n,a){const c=Nv(n,a,yd,nl);return c<0?(n.splice(~c,0,a),!0):!1}function gut(n,a,c){const d=c.flags;if(!(d&131072))if(a|=d&473694207,d&465829888&&(a|=33554432),d&2097152&&Wr(c)&67108864&&(a|=536870912),c===Dt&&(a|=8388608),!Y&&d&98304)Wr(c)&65536||(a|=4194304);else{const _=n.length,y=_&&c.id>n[_-1].id?~_:Nv(n,c,yd,nl);y<0&&n.splice(~y,0,c)}return a}function E6e(n,a,c){let d;for(const _ of c)_!==d&&(a=_.flags&1048576?E6e(n,a|(Tut(_)?1048576:0),_.types):gut(n,a,_),d=_);return a}function vut(n,a){var c;if(n.length<2)return n;const d=vm(n),_=fa.get(d);if(_)return _;const y=a&&St(n,J=>!!(J.flags&524288)&&!Kd(J)&&Nve(h_(J))),x=n.length;let k=x,z=0;for(;k>0;){k--;const J=n[k];if(y||J.flags&469499904){if(J.flags&262144&&hv(J).flags&1048576){th(J,Zr(Ot(n,ve=>ve===J?Hr:ve)),Bf)&&Dy(n,k);continue}const ne=J.flags&61603840?Tn(bs(J),ve=>y_(dr(ve))):void 0,Se=ne&&bd(dr(ne));for(const ve of n)if(J!==ve){if(z===1e5&&z/(x-k)*x>1e6){(c=ar)==null||c.instant(ar.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(vt=>vt.id)}),Xe(N,m.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(z++,ne&&ve.flags&61603840){const Ge=Ke(ve,ne.escapedName);if(Ge&&y_(Ge)&&bd(Ge)!==Se)continue}if(th(J,ve,Bf)&&(!(Wr(my(J))&1)||!(Wr(my(ve))&1)||gE(J,ve))){Dy(n,k);break}}}}return fa.set(d,n),n}function yut(n,a,c){let d=n.length;for(;d>0;){d--;const _=n[d],y=_.flags;(y&402653312&&a&4||y&256&&a&8||y&2048&&a&64||y&8192&&a&4096||c&&y&32768&&a&16384||X1(_)&&gv(n,_.regularType))&&Dy(n,d)}}function but(n){const a=rr(n,YT);if(a.length){let c=n.length;for(;c>0;){c--;const d=n[c];d.flags&128&&St(a,_=>Eut(d,_))&&Dy(n,c)}}}function Eut(n,a){return a.flags&134217728?Oee(n,a):wee(n,a)}function Sut(n){const a=[];for(const c of n)if(c.flags&2097152&&Wr(c)&67108864){const d=c.types[0].flags&8650752?0:1;Tf(a,c.types[d])}for(const c of a){const d=[];for(const y of n)if(y.flags&2097152&&Wr(y)&67108864){const x=y.types[0].flags&8650752?0:1;y.types[x]===c&&R9(d,y.types[1-x])}const _=Gu(c);if(pp(_,y=>gv(d,y))){let y=n.length;for(;y>0;){y--;const x=n[y];if(x.flags&2097152&&Wr(x)&67108864){const k=x.types[0].flags&8650752?0:1;x.types[k]===c&&gv(d,x.types[1-k])&&Dy(n,y)}}R9(n,c)}}}function Tut(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function S6e(n,a){for(const c of a)if(c.flags&1048576){const d=c.origin;c.aliasSymbol||d&&!(d.flags&1048576)?Tf(n,c):d&&d.flags&1048576&&S6e(n,d.types)}}function cve(n,a){const c=dx(n);return c.types=a,c}function Zr(n,a=1,c,d,_){if(n.length===0)return Hr;if(n.length===1)return n[0];if(n.length===2&&!_&&(n[0].flags&1048576||n[1].flags&1048576)){const y=a===0?"N":a===2?"S":"L",x=n[0].id<n[1].id?0:1,k=n[x].id+y+n[1-x].id+yx(c,d);let z=Di.get(k);return z||(z=T6e(n,a,c,d,void 0),Di.set(k,z)),z}return T6e(n,a,c,d,_)}function T6e(n,a,c,d,_){let y=[];const x=E6e(y,0,n);if(a!==0){if(x&3)return x&1?x&8388608?Dt:j:x&65536||gv(y,dn)?dn:H;if(x&32768&&y.length>=2&&y[0]===We&&y[1]===L&&Dy(y,1),(x&402664352||x&16384&&x&32768)&&yut(y,x,!!(a&2)),x&128&&x&402653184&&but(y),x&536870912&&Sut(y),a===2&&(y=vut(y,!!(x&524288)),!y))return _t;if(y.length===0)return x&65536?x&4194304?fe:Ve:x&32768?x&4194304?We:Lt:Hr}if(!_&&x&1048576){const z=[];S6e(z,n);const J=[];for(const Se of y)St(z,ve=>gv(ve.types,Se))||J.push(Se);if(!c&&z.length===1&&J.length===0)return z[0];if(od(z,(Se,ve)=>Se+ve.types.length,0)+J.length===y.length){for(const Se of z)R9(J,Se);_=cve(1048576,J)}}const k=(x&36323331?0:32768)|(x&2097152?16777216:0);return dve(y,k,c,d,_)}function Aut(n,a){let c;const d=[];for(const y of n){const x=Jf(y);if(x){if(x.kind!==0&&x.kind!==1||c&&!uve(c,x))return;c=x,d.push(x.type)}else{const k=a!==2097152?ms(y):void 0;if(k!==nn&&k!==En)return}}if(!c)return;const _=q8e(d,a);return A9(c.kind,c.parameterName,c.parameterIndex,_)}function uve(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function dve(n,a,c,d,_){if(n.length===0)return Hr;if(n.length===1)return n[0];const x=(_?_.flags&1048576?"|".concat(vm(_.types)):_.flags&2097152?"&".concat(vm(_.types)):"#".concat(_.type.id,"|").concat(vm(n)):vm(n))+yx(c,d);let k=Qn.get(x);return k||(k=xg(1048576),k.objectFlags=a|eee(n,98304),k.types=n,k.origin=_,k.aliasSymbol=c,k.aliasTypeArguments=d,n.length===2&&n[0].flags&512&&n[1].flags&512&&(k.flags|=16,k.intrinsicName="boolean"),Qn.set(x,k)),k}function Iut(n){const a=Qr(n);if(!a.resolvedType){const c=Ex(n);a.resolvedType=Zr(Ot(n.types,Ti),1,c,PC(c))}return a.resolvedType}function xut(n,a,c){const d=c.flags;return d&2097152?A6e(n,a,c.types):(Jh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(d&3?c===Dt&&(a|=8388608):(Y||!(d&98304))&&(c===L&&(a|=262144,c=We),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=d&473694207),a)}function A6e(n,a,c){for(const d of c)a=xut(n,a,bd(d));return a}function Rut(n,a){let c=n.length;for(;c>0;){c--;const d=n[c];(d.flags&4&&a&402653312||d.flags&8&&a&256||d.flags&64&&a&2048||d.flags&4096&&a&8192||d.flags&16384&&a&32768||Jh(d)&&a&470302716)&&Dy(n,c)}}function Dut(n,a){for(const c of n)if(!gv(c.types,a)){const d=a.flags&128?ke:a.flags&288?Tt:a.flags&2048?kt:a.flags&8192?si:void 0;if(!d||!gv(c.types,d))return!1}return!0}function Cut(n){let a=n.length;const c=rr(n,d=>!!(d.flags&128));for(;a>0;){a--;const d=n[a];if(d.flags&402653184){for(const _ of c)if(Hb(_,d)){Dy(n,a);break}else if(YT(d))return!0}}return!1}function I6e(n,a){for(let c=0;c<n.length;c++)n[c]=_c(n[c],d=>!(d.flags&a))}function Nut(n){let a;const c=Br(n,x=>!!(Wr(x)&32768));if(c<0)return!1;let d=c+1;for(;d<n.length;){const x=n[d];Wr(x)&32768?((a||(a=[n[c]])).push(x),Dy(n,d)):d++}if(!a)return!1;const _=[],y=[];for(const x of a)for(const k of x.types)R9(_,k)&&Dut(a,k)&&R9(y,k);return n[c]=dve(y,32768),!0}function Put(n,a,c,d){const _=xg(2097152);return _.objectFlags=a|eee(n,98304),_.types=n,_.aliasSymbol=c,_.aliasTypeArguments=d,_}function Ea(n,a,c,d){const _=new Map,y=A6e(_,0,n),x=Wo(_.values());let k=0;if(y&131072)return Nr(x,bo)?bo:Hr;if(Y&&y&98304&&y&84410368||y&67108864&&y&402783228||y&402653316&&y&67238776||y&296&&y&469891796||y&2112&&y&469889980||y&12288&&y&469879804||y&49152&&y&469842940||y&402653184&&y&128&&Cut(x))return Hr;if(y&1)return y&8388608?Dt:j;if(!Y&&y&98304)return y&16777216?Hr:y&32768?We:fe;if((y&4&&y&402653312||y&8&&y&256||y&64&&y&2048||y&4096&&y&8192||y&16384&&y&32768||y&16777216&&y&470302716)&&(d||Rut(x,y)),y&262144&&(x[x.indexOf(We)]=L),x.length===0)return dn;if(x.length===1)return x[0];if(x.length===2){const ne=x[0].flags&8650752?0:1,Se=x[ne],ve=x[1-ne];if(Se.flags&8650752&&(ve.flags&469893116&&!O6e(ve)||y&16777216)){const Ge=Gu(Se);if(Ge&&pp(Ge,vt=>!!(vt.flags&469893116)||Jh(vt))){if(k9(Ge,ve))return Se;if(!(Ge.flags&1048576&&qm(Ge,vt=>k9(vt,ve)))&&!k9(ve,Ge))return Hr;k=67108864}}}const z=vm(x)+yx(a,c);let J=Ir.get(z);if(!J){if(y&1048576)if(Nut(x))J=Ea(x,a,c);else if(Yn(x,ne=>!!(ne.flags&1048576&&ne.types[0].flags&32768))){const ne=St(x,U8)?L:We;I6e(x,32768),J=Zr([Ea(x),ne],1,a,c)}else if(Yn(x,ne=>!!(ne.flags&1048576&&(ne.types[0].flags&65536||ne.types[1].flags&65536))))I6e(x,65536),J=Zr([Ea(x),fe],1,a,c);else if(x.length>=4){const ne=Math.floor(x.length/2);J=Ea([Ea(x.slice(0,ne)),Ea(x.slice(ne))],a,c)}else{if(!D9(x))return _t;const ne=Mut(x),Se=St(ne,ve=>!!(ve.flags&2097152))&&pve(ne)>pve(x)?cve(2097152,x):void 0;J=Zr(ne,1,a,c,Se)}else J=Put(x,k,a,c);Ir.set(z,J)}return J}function x6e(n){return od(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function D9(n){var a;const c=x6e(n);return c>=1e5?((a=ar)==null||a.instant(ar.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(d=>d.id),size:c}),Xe(N,m.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Mut(n){const a=x6e(n),c=[];for(let d=0;d<a;d++){const _=n.slice();let y=d;for(let k=n.length-1;k>=0;k--)if(n[k].flags&1048576){const z=n[k].types,J=z.length;_[k]=z[y%J],y=Math.floor(y/J)}const x=Ea(_);x.flags&131072||c.push(x)}return c}function R6e(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?R6e(n.origin):pve(n.types)}function pve(n){return od(n,(a,c)=>a+R6e(c),0)}function Lut(n){const a=Qr(n);if(!a.resolvedType){const c=Ex(n),d=Ot(n.types,Ti),_=d.length===2?d.indexOf(pc):-1,y=_>=0?d[1-_]:dn,x=!!(y.flags&76||y.flags&134217728&&YT(y));a.resolvedType=Ea(d,c,PC(c),x)}return a.resolvedType}function D6e(n,a){const c=xg(4194304);return c.type=n,c.indexFlags=a,c}function kut(n){const a=dx(4194304);return a.type=n,a}function C6e(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=D6e(n,1)):n.resolvedIndexType||(n.resolvedIndexType=D6e(n,0))}function N6e(n,a){const c=__(n),d=Ef(n),_=_y(n.target||n);if(!_&&!(a&2))return d;const y=[];if(QT(d)){if(AC(n))return C6e(n,a);oA(d,k)}else if(AC(n)){const z=kd(UT(n));Rge(z,8576,!!(a&1),k)}else oA(y9(d),k);const x=a&2?_c(Zr(y),z=>!(z.flags&5)):Zr(y);if(x.flags&1048576&&d.flags&1048576&&vm(x.types)===vm(d.types))return d;return x;function k(z){const J=_?co(_,O8(n.mapper,c,z)):z;y.push(J===ke?Ja:J)}}function wut(n){const a=__(n);return c(_y(n)||a);function c(d){return d.flags&470810623?!0:d.flags&16777216?d.root.isDistributive&&d.checkType===a:d.flags&137363456?Yn(d.types,c):d.flags&8388608?c(d.objectType)&&c(d.indexType):d.flags&33554432?c(d.baseType)&&c(d.constraint):d.flags&268435456?c(d.type):!1}}function vy(n){if(Ji(n))return Hr;if(bp(n))return bd(go(n));if(rs(n))return bd(Ng(n));const a=PS(n);return a!==void 0?Xd(ji(a)):bt(n)?bd(go(n)):Hr}function CC(n,a,c){if(c||!(Df(n)&6)){let d=Xi(qZ(n)).nameType;if(!d){const _=Po(n.valueDeclaration);d=n.escapedName==="default"?Xd("default"):_&&vy(_)||(lk(n)?void 0:Xd(El(n)))}if(d&&d.flags&a)return d}return Hr}function P6e(n,a){return!!(n.flags&a||n.flags&2097152&&St(n.types,c=>P6e(c,a)))}function Out(n,a,c){const d=c&&(Wr(n)&7||n.aliasSymbol)?kut(n):void 0,_=Ot(bs(n),x=>CC(x,a)),y=Ot(vd(n),x=>x!==qr&&P6e(x.keyType,a)?x.keyType===ke&&a&8?Ja:x.keyType:Hr);return Zr(To(_,y),1,void 0,void 0,d)}function fve(n,a=0){return!!(n.flags&58982400||Jb(n)||Kd(n)&&(!wut(n)||KZ(n)===2)||n.flags&1048576&&!(a&4)&&kge(n)||n.flags&2097152&&Pl(n,465829888)&&St(n.types,Jh))}function eh(n,a=qe){return n=g_(n),H2(n)?Jge(eh(n.baseType,a)):fve(n,a)?C6e(n,a):n.flags&1048576?Ea(Ot(n.types,c=>eh(c,a))):n.flags&2097152?Zr(Ot(n.types,c=>eh(c,a))):Wr(n)&32?N6e(n,a):n===Dt?Dt:n.flags&2?Hr:n.flags&131073?va:Out(n,(a&2?128:402653316)|(a&1?0:12584),a===qe)}function M6e(n){if(Ne)return n;const a=$ct();return a?RC(a,[n,ke]):ke}function Wut(n){const a=M6e(eh(n));return a.flags&131072?ke:a}function Fut(n){const a=Qr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=eh(Ti(n.type));break;case 158:a.resolvedType=n.type.kind===155?Eve(nk(n.parent)):_t;break;case 148:a.resolvedType=Ti(n.type);break;default:C.assertNever(n.operator)}return a.resolvedType}function zut(n){const a=Qr(n);return a.resolvedType||(a.resolvedType=XT([n.head.text,...Ot(n.templateSpans,c=>c.literal.text)],Ot(n.templateSpans,c=>Ti(c.type)))),a.resolvedType}function XT(n,a){const c=Br(a,J=>!!(J.flags&1179648));if(c>=0)return D9(a)?dl(a[c],J=>XT(n,gG(a,c,J))):_t;if(Nr(a,Dt))return Dt;const d=[],_=[];let y=n[0];if(!z(n,a))return ke;if(d.length===0)return Xd(y);if(_.push(y),Yn(_,J=>J==="")){if(Yn(d,J=>!!(J.flags&4)))return ke;if(d.length===1&&YT(d[0]))return d[0]}const x="".concat(vm(d),"|").concat(Ot(_,J=>J.length).join(","),"|").concat(_.join(""));let k=yi.get(x);return k||yi.set(x,k=Gut(_,d)),k;function z(J,ne){for(let Se=0;Se<ne.length;Se++){const ve=ne[Se];if(ve.flags&101248)y+=But(ve)||"",y+=J[Se+1];else if(ve.flags&134217728){if(y+=ve.texts[0],!z(ve.texts,ve.types))return!1;y+=J[Se+1]}else if(QT(ve)||C9(ve))d.push(ve),_.push(y),y=J[Se+1];else return!1}return!0}}function But(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?ZE(n.value):n.flags&98816?n.intrinsicName:void 0}function Gut(n,a){const c=xg(134217728);return c.texts=n,c.types=a,c}function bx(n,a){return a.flags&1179648?dl(a,c=>bx(n,c)):a.flags&128?Xd(L6e(n,a.value)):a.flags&134217728?XT(...Vut(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||QT(a)?k6e(n,a):C9(a)?k6e(n,XT(["",""],[a])):a}function L6e(n,a){switch(QF.get(n.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function Vut(n,a,c){switch(QF.get(n.escapedName)){case 0:return[a.map(d=>d.toUpperCase()),c.map(d=>bx(n,d))];case 1:return[a.map(d=>d.toLowerCase()),c.map(d=>bx(n,d))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[bx(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[bx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function k6e(n,a){const c="".concat(Ta(n),",").concat(yd(a));let d=eo.get(c);return d||eo.set(c,d=jut(n,a)),d}function jut(n,a){const c=Rg(268435456,n);return c.type=a,c}function Uut(n,a,c,d,_){const y=xg(8388608);return y.objectType=n,y.indexType=a,y.accessFlags=c,y.aliasSymbol=d,y.aliasTypeArguments=_,y}function k8(n){if(de)return!1;if(Wr(n)&4096)return!0;if(n.flags&1048576)return Yn(n.types,k8);if(n.flags&2097152)return St(n.types,k8);if(n.flags&465829888){const a=Pge(n);return a!==n&&k8(a)}return!1}function aee(n,a){return lm(n)?cm(n):a&&cc(a)?PS(a):void 0}function mve(n,a){if(a.flags&8208){const c=zn(n.parent,d=>!zs(d))||n.parent;return WE(c)?I_(c)&&je(n)&&j4e(c,n):Yn(a.declarations,d=>!Qo(d)||cy(d))}return!0}function w6e(n,a,c,d,_,y){var J;const x=_&&_.kind===212?_:void 0,k=_&&Ji(_)?void 0:aee(c,_);if(k!==void 0){if(y&256)return SE(a,k)||j;const ne=ba(a,k);if(ne){if(y&64&&_&&ne.declarations&&vb(ne)&&mve(_,ne)){const ve=(J=x==null?void 0:x.argumentExpression)!=null?J:jS(_)?_.indexType:_;uy(ve,ne.declarations,k)}if(x){if(sB(ne,x,Z3e(x.expression,a.symbol)),VWe(x,ne,BA(x))){Xe(x.argumentExpression,m.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(ne));return}if(y&8&&(Qr(_).resolvedSymbol=ne),q3e(x,ne))return ot}const Se=y&4?U1(ne):dr(ne);return x&&BA(x)!==1?Yb(x,Se):_&&jS(_)&&U8(Se)?Zr([Se,We]):Se}if(pp(a,ja)&&pg(k)){const Se=+k;if(_&&pp(a,ve=>!ve.target.hasRestElement)&&!(y&16)){const ve=_ve(_);if(ja(a)){if(Se<0)return Xe(ve,m.A_tuple_type_cannot_be_indexed_with_a_negative_value),We;Xe(ve,m.Tuple_type_0_of_length_1_has_no_element_at_index_2,Un(a),gy(a),ji(k))}else Xe(ve,m.Property_0_does_not_exist_on_type_1,ji(k),Un(a))}if(Se>=0)return z(Cg(a,Tt)),T4e(a,Se,y&1?L:void 0)}}if(!(c.flags&98304)&&Ru(c,402665900)){if(a.flags&131073)return a;const ne=D8(a,c)||Cg(a,ke);if(ne){if(y&2&&ne.keyType!==Tt){x&&(y&4?Xe(x,m.Type_0_is_generic_and_can_only_be_indexed_for_reading,Un(n)):Xe(x,m.Type_0_cannot_be_used_to_index_type_1,Un(c),Un(n)));return}if(_&&ne.keyType===ke&&!Ru(c,12)){const Se=_ve(_);return Xe(Se,m.Type_0_cannot_be_used_as_an_index_type,Un(c)),y&1?Zr([ne.type,L]):ne.type}return z(ne),y&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Pd(c.symbol)===a.symbol)?Zr([ne.type,L]):ne.type}if(c.flags&131072)return Hr;if(k8(a))return j;if(x&&!fte(a)){if(EE(a)){if(de&&c.flags&384)return os.add(Or(x,m.Property_0_does_not_exist_on_type_1,c.value,Un(a))),We;if(c.flags&12){const Se=Ot(a.properties,ve=>dr(ve));return Zr(Rn(Se,We))}}if(a.symbol===it&&k!==void 0&&it.exports.has(k)&&it.exports.get(k).flags&418)Xe(x,m.Property_0_does_not_exist_on_type_1,ji(k),Un(a));else if(de&&!V.suppressImplicitAnyIndexErrors&&!(y&128))if(k!==void 0&&Y3e(k,a)){const Se=Un(a);Xe(x,m.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,k,Se,Se+"["+gc(x.argumentExpression)+"]")}else if(fE(a,Tt))Xe(x.argumentExpression,m.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Se;if(k!==void 0&&(Se=zye(k,a)))Se!==void 0&&Xe(x.argumentExpression,m.Property_0_does_not_exist_on_type_1_Did_you_mean_2,k,Un(a),Se);else{const ve=Vmt(a,x,c);if(ve!==void 0)Xe(x,m.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Un(a),ve);else{let Ge;if(c.flags&1024)Ge=Bo(void 0,m.Property_0_does_not_exist_on_type_1,"["+Un(c)+"]",Un(a));else if(c.flags&8192){const vt=qp(c.symbol,x);Ge=Bo(void 0,m.Property_0_does_not_exist_on_type_1,"["+vt+"]",Un(a))}else c.flags&128||c.flags&256?Ge=Bo(void 0,m.Property_0_does_not_exist_on_type_1,c.value,Un(a)):c.flags&12&&(Ge=Bo(void 0,m.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Un(c),Un(a)));Ge=Bo(Ge,m.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Un(d),Un(a)),os.add(Gg(jn(x),x,Ge))}}}return}}if(k8(a))return j;if(_){const ne=_ve(_);c.flags&384?Xe(ne,m.Property_0_does_not_exist_on_type_1,""+c.value,Un(a)):c.flags&12?Xe(ne,m.Type_0_has_no_matching_index_signature_for_type_1,Un(a),Un(c)):Xe(ne,m.Type_0_cannot_be_used_as_an_index_type,Un(c))}if(Ct(c))return c;return;function z(ne){ne&&ne.isReadonly&&x&&(sg(x)||Zj(x))&&Xe(x,m.Index_signature_in_type_0_only_permits_reading,Un(a))}}function _ve(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function C9(n){if(n.flags&2097152){let a=!1;for(const c of n.types)if(c.flags&101248||C9(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||YT(n)}function YT(n){return!!(n.flags&134217728)&&Yn(n.types,C9)||!!(n.flags&268435456)&&C9(n.type)}function O6e(n){return!!(n.flags&402653184)&&!YT(n)}function NC(n){return!!w8(n)}function $T(n){return!!(w8(n)&4194304)}function QT(n){return!!(w8(n)&8388608)}function w8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|od(n.types,(a,c)=>a|w8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|w8(n.baseType)|w8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Kd(n)||Jb(n)?4194304:0)|(n.flags&63176704||O6e(n)?8388608:0)}function vv(n,a){return n.flags&8388608?qut(n,a):n.flags&16777216?Jut(n,a):n}function W6e(n,a,c){if(n.flags&1048576||n.flags&2097152&&!fve(n)){const d=Ot(n.types,_=>vv(Lp(_,a),c));return n.flags&2097152||c?Ea(d):Zr(d)}}function Hut(n,a,c){if(a.flags&1048576){const d=Ot(a.types,_=>vv(Lp(n,_),c));return c?Ea(d):Zr(d)}}function qut(n,a){const c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===iu?n:n[c];n[c]=iu;const d=vv(n.objectType,a),_=vv(n.indexType,a),y=Hut(d,_,a);if(y)return n[c]=y;if(!(_.flags&465829888)){const x=W6e(d,_,a);if(x)return n[c]=x}if(Jb(d)&&_.flags&296){const x=Q2(d,_.flags&8?0:d.target.fixedLength,0,a);if(x)return n[c]=x}return Kd(d)&&KZ(d)!==2?n[c]=dl(see(d,n.indexType),x=>vv(x,a)):n[c]=n}function Jut(n,a){const c=n.checkType,d=n.extendsType,_=_E(n),y=hE(n);if(y.flags&131072&&jb(_)===jb(c)){if(c.flags&1||Sa(eA(c),eA(d)))return vv(_,a);if(F6e(c,d))return Hr}else if(_.flags&131072&&jb(y)===jb(c)){if(!(c.flags&1)&&Sa(eA(c),eA(d)))return Hr;if(c.flags&1||F6e(c,d))return vv(y,a)}return n}function F6e(n,a){return!!(Zr([v9(n,a),Hr]).flags&131072)}function see(n,a){const c=kp([__(n)],[a]),d=$1(n.mapper,c);return co(_v(n.target||n),d)}function Lp(n,a,c=0,d,_,y){return Vb(n,a,c,d,_,y)||(d?_t:dn)}function z6e(n,a){return pp(n,c=>{if(c.flags&384){const d=cm(c);if(pg(d)){const _=+d;return _>=0&&_<a}}return!1})}function Vb(n,a,c=0,d,_,y){if(n===Dt||a===Dt)return Dt;if(n=g_(n),l4e(n)&&!(a.flags&98304)&&Ru(a,12)&&(a=ke),V.noUncheckedIndexedAccess&&c&32&&(c|=1),QT(a)||(d&&d.kind!==199?Jb(n)&&!z6e(a,lve(n.target)):$T(n)&&!(ja(n)&&z6e(a,lve(n.target)))||kge(n))){if(n.flags&3)return n;const k=c&1,z=n.id+","+a.id+","+k+yx(_,y);let J=oi.get(z);return J||oi.set(z,J=Uut(n,a,k,_,y)),J}const x=V2(n);if(a.flags&1048576&&!(a.flags&16)){const k=[];let z=!1;for(const J of a.types){const ne=w6e(n,x,J,a,d,c|(z?128:0));if(ne)k.push(ne);else if(d)z=!0;else return}return z?void 0:c&4?Ea(k,_,y):Zr(k,1,_,y)}return w6e(n,x,a,a,d,c|8|64)}function B6e(n){const a=Qr(n);if(!a.resolvedType){const c=Ti(n.objectType),d=Ti(n.indexType),_=Ex(n);a.resolvedType=Lp(c,d,0,n,_,PC(_))}return a.resolvedType}function hve(n){const a=Qr(n);if(!a.resolvedType){const c=Vf(32,n.symbol);c.declaration=n,c.aliasSymbol=Ex(n),c.aliasTypeArguments=PC(c.aliasSymbol),a.resolvedType=c,Ef(c)}return a.resolvedType}function jb(n){return n.flags&33554432?jb(n.baseType):n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?Lp(jb(n.objectType),jb(n.indexType)):n}function G6e(n){return cI(n)&&Le(n.elements)>0&&!St(n.elements,a=>tF(a)||nF(a)||JR(a)&&!!(a.questionToken||a.dotDotDotToken))}function V6e(n,a){return NC(n)||a&&ja(n)&&St(J1(n),NC)}function gve(n,a,c,d,_){let y,x,k=0;for(;;){if(k===1e3)return Xe(N,m.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;const J=co(jb(n.checkType),a),ne=co(n.extendsType,a);if(J===_t||ne===_t)return _t;if(J===Dt||ne===Dt)return Dt;const Se=rk(n.node.checkType),ve=rk(n.node.extendsType),Ge=G6e(Se)&&G6e(ve)&&Le(Se.elements)===Le(ve.elements),vt=V6e(J,Ge);let xt;if(n.inferTypeParameters){const sn=q8(n.inferTypeParameters,void 0,0);a&&(sn.nonFixingMapper=$1(sn.nonFixingMapper,a)),vt||Tv(sn.inferences,J,ne,1536),xt=a?$1(sn.mapper,a):sn.mapper}const cn=xt?co(n.extendsType,xt):ne;if(!vt&&!V6e(cn,Ge)){if(!(cn.flags&3)&&(J.flags&1||!Sa(F8(J),F8(cn)))){(J.flags&1||c&&!(cn.flags&131072)&&qm(F8(cn),er=>Sa(er,F8(J))))&&(x||(x=[])).push(co(Ti(n.node.trueType),xt||a));const sn=Ti(n.node.falseType);if(sn.flags&16777216){const er=sn.root;if(er.node.parent===n.node&&(!er.isDistributive||er.checkType===n.checkType)){n=er;continue}if(z(sn,a))continue}y=co(sn,a);break}if(cn.flags&3||Sa(eA(J),eA(cn))){const sn=Ti(n.node.trueType),er=xt||a;if(z(sn,er))continue;y=co(sn,er);break}}y=xg(16777216),y.root=n,y.checkType=co(n.checkType,a),y.extendsType=co(n.extendsType,a),y.mapper=a,y.combinedMapper=xt,y.aliasSymbol=d||n.aliasSymbol,y.aliasTypeArguments=d?_:yy(n.aliasTypeArguments,a);break}return x?Zr(Rn(x,y)):y;function z(J,ne){if(J.flags&16777216&&ne){const Se=J.root;if(Se.outerTypeParameters){const ve=$1(J.mapper,ne),Ge=Ot(Se.outerTypeParameters,cn=>Ub(cn,ve)),vt=kp(Se.outerTypeParameters,Ge),xt=Se.isDistributive?Ub(Se.checkType,vt):void 0;if(!xt||xt===Se.checkType||!(xt.flags&1179648))return n=Se,a=vt,d=void 0,_=void 0,Se.aliasSymbol&&k++,!0}}return!1}}function _E(n){return n.resolvedTrueType||(n.resolvedTrueType=co(Ti(n.root.node.trueType),n.mapper))}function hE(n){return n.resolvedFalseType||(n.resolvedFalseType=co(Ti(n.root.node.falseType),n.mapper))}function Kut(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?co(Ti(n.root.node.trueType),n.combinedMapper):_E(n))}function j6e(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Rn(a,Zs(c)))}),a}function Xut(n){return n.isDistributive&&(L9(n.checkType,n.node.trueType)||L9(n.checkType,n.node.falseType))}function Yut(n){const a=Qr(n);if(!a.resolvedType){const c=Ti(n.checkType),d=Ex(n),_=PC(d),y=Nn(n,!0),x=_?y:rr(y,z=>L9(z,n)),k={node:n,checkType:c,extendsType:Ti(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:j6e(n),outerTypeParameters:x,instantiations:void 0,aliasSymbol:d,aliasTypeArguments:_};a.resolvedType=gve(k,void 0,!1),x&&(k.instantiations=new Map,k.instantiations.set(vm(x),a.resolvedType))}return a.resolvedType}function $ut(n){const a=Qr(n);return a.resolvedType||(a.resolvedType=jT(xr(n.typeParameter))),a.resolvedType}function U6e(n){return je(n)?[n]:Rn(U6e(n.left),n.right)}function Qut(n){var a;const c=Qr(n);if(!c.resolvedType){if(!Vy(n))return Xe(n.argument,m.String_literal_expected),c.resolvedSymbol=pt,c.resolvedType=_t;const d=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=gd(n,n.argument.literal);if(!_)return c.resolvedSymbol=pt,c.resolvedType=_t;const y=!!((a=_.exports)!=null&&a.get("export=")),x=Pp(_,!1);if(Gl(n.qualifier))if(x.flags&d)c.resolvedType=H6e(n,c,x,d);else{const k=d===111551?m.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:m.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Xe(n,k,n.argument.literal.text),c.resolvedSymbol=pt,c.resolvedType=_t}else{const k=U6e(n.qualifier);let z=x,J;for(;J=k.shift();){const ne=k.length?1920:d,Se=ss(Hl(z)),ve=n.isTypeOf||sr(n)&&y?ba(dr(Se),J.escapedText,!1,!0):void 0,Ge=n.isTypeOf?void 0:Jd(Mp(Se),J.escapedText,ne),vt=Ge!=null?Ge:ve;if(!vt)return Xe(J,m.Namespace_0_has_no_exported_member_1,qp(z),Ns(J)),c.resolvedType=_t;Qr(J).resolvedSymbol=vt,Qr(J.parent).resolvedSymbol=vt,z=vt}c.resolvedType=H6e(n,c,z,d)}}return c.resolvedType}function H6e(n,a,c,d){const _=Hl(c);return a.resolvedSymbol=_,d===111551?xWe(dr(c),n):nee(n,_)}function q6e(n){const a=Qr(n);if(!a.resolvedType){const c=Ex(n);if(Fb(n.symbol).size===0&&!c)a.resolvedType=pc;else{let d=Vf(16,n.symbol);d.aliasSymbol=c,d.aliasTypeArguments=PC(c),XS(n)&&n.isArrayType&&(d=Vu(d)),a.resolvedType=d}}return a.resolvedType}function Ex(n){let a=n.parent;for(;GS(a)||f1(a)||VS(a)&&a.operator===148;)a=a.parent;return QL(a)?xr(a):void 0}function PC(n){return n?wr(n):void 0}function lee(n){return!!(n.flags&524288)&&!Kd(n)}function vve(n){return bv(n)||!!(n.flags&474058748)}function yve(n,a){if(!(n.flags&1048576))return n;if(Yn(n.types,vve))return Tn(n.types,bv)||ka;const c=Tn(n.types,y=>!vve(y));if(!c||Tn(n.types,y=>y!==c&&!vve(y)))return n;return _(c);function _(y){const x=ua();for(const z of bs(y))if(!(Df(z)&6)){if(cee(z)){const J=z.flags&65536&&!(z.flags&32768),Se=Za(16777220,z.escapedName,xge(z)|(a?8:0));Se.links.type=J?We:up(dr(z),!0),Se.declarations=z.declarations,Se.links.nameType=Xi(z).nameType,Se.links.syntheticOrigin=z,x.set(z.escapedName,Se)}}const k=Fs(y.symbol,x,et,et,vd(y));return k.objectFlags|=131200,k}}function K1(n,a,c,d,_){if(n.flags&1||a.flags&1)return j;if(n.flags&2||a.flags&2)return dn;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=yve(n,_),n.flags&1048576)return D9([n,a])?dl(n,J=>K1(J,a,c,d,_)):_t;if(a=yve(a,_),a.flags&1048576)return D9([n,a])?dl(a,J=>K1(n,J,c,d,_)):_t;if(a.flags&473960444)return n;if($T(n)||$T(a)){if(bv(n))return a;if(n.flags&2097152){const J=n.types,ne=J[J.length-1];if(lee(ne)&&lee(a))return Ea(To(J.slice(0,J.length-1),[K1(ne,a,c,d,_)]))}return Ea([n,a])}const y=ua(),x=new Set,k=n===ka?vd(a):R8e([n,a]);for(const J of bs(a))Df(J)&6?x.add(J.escapedName):cee(J)&&y.set(J.escapedName,bve(J,_));for(const J of bs(n))if(!(x.has(J.escapedName)||!cee(J)))if(y.has(J.escapedName)){const ne=y.get(J.escapedName),Se=dr(ne);if(ne.flags&16777216){const ve=To(J.declarations,ne.declarations),Ge=4|J.flags&16777216,vt=Za(Ge,J.escapedName),xt=dr(J),cn=Cee(xt),sn=Cee(Se);vt.links.type=cn===sn?xt:Zr([xt,sn],2),vt.links.leftSpread=J,vt.links.rightSpread=ne,vt.declarations=ve,vt.links.nameType=Xi(J).nameType,y.set(J.escapedName,vt)}}else y.set(J.escapedName,bve(J,_));const z=Fs(c,y,et,et,no(k,J=>Zut(J,_)));return z.objectFlags|=2228352|d,z}function cee(n){var a;return!St(n.declarations,cd)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>ui(c.parent))))}function bve(n,a){const c=n.flags&65536&&!(n.flags&32768);if(!c&&a===E_(n))return n;const d=4|n.flags&16777216,_=Za(d,n.escapedName,xge(n)|(a?8:0));return _.links.type=c?We:dr(n),_.declarations=n.declarations,_.links.nameType=Xi(n).nameType,_.links.syntheticOrigin=n,_}function Zut(n,a){return n.isReadonly!==a?Hh(n.keyType,n.type,a,n.declaration):n}function N9(n,a,c,d){const _=Rg(n,c);return _.value=a,_.regularType=d||_,_}function Sx(n){if(n.flags&2976){if(!n.freshType){const a=N9(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function bd(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=dl(n,bd)):n}function X1(n){return!!(n.flags&2976)&&n.freshType===n}function Xd(n){let a;return Xt.get(n)||(Xt.set(n,a=N9(128,n)),a)}function v_(n){let a;return nt.get(n)||(nt.set(n,a=N9(256,n)),a)}function uee(n){let a;const c=ZE(n);return Bt.get(c)||(Bt.set(c,a=N9(2048,n)),a)}function edt(n,a,c){let d;const _="".concat(a).concat(typeof n=="string"?"@":"#").concat(n),y=1024|(typeof n=="string"?128:256);return Dn.get(_)||(Dn.set(_,d=N9(y,n,c)),d)}function tdt(n){if(n.literal.kind===106)return fe;const a=Qr(n);return a.resolvedType||(a.resolvedType=bd(go(n.literal))),a.resolvedType}function ndt(n){const a=Rg(8192,n);return a.escapedName="__@".concat(a.symbol.escapedName,"@").concat(Ta(a.symbol)),a}function Eve(n){if(sr(n)&&f1(n)){const a=NS(n);a&&(n=zA(a)||a)}if(kie(n)){const a=Q4(n)?gf(n.left):gf(n);if(a){const c=Xi(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=ndt(a))}}return si}function rdt(n){const a=Fd(n,!1,!1),c=a&&a.parent;if(c&&(ui(c)||c.kind===264)&&!aa(a)&&(!Ll(a)||HE(n,a.body)))return qf(xr(c)).thisType;if(c&&Wa(c)&&mr(c.parent)&&Vl(c.parent)===6)return qf(gf(c.parent.left).parent).thisType;const d=n.flags&16777216?b0(n):void 0;return d&&Bs(d)&&mr(d.parent)&&Vl(d.parent)===3?qf(gf(d.parent.left).parent).thisType:ih(a)&&HE(n,a.body)?qf(xr(a)).thisType:(Xe(n,m.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),_t)}function dee(n){const a=Qr(n);return a.resolvedType||(a.resolvedType=rdt(n)),a.resolvedType}function J6e(n){return Ti(P9(n.type)||n.type)}function P9(n){switch(n.kind){case 196:return P9(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return P9(n.type);break;case 188:return n.elementType}}function idt(n){const a=Qr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?J6e(n):up(Ti(n.type),!0,!!n.questionToken))}function Ti(n){return Oct(K6e(n),n)}function K6e(n){switch(n.kind){case 133:case 319:case 320:return j;case 159:return dn;case 154:return ke;case 150:return Tt;case 163:return kt;case 136:return ai;case 155:return si;case 116:return Kn;case 157:return We;case 106:return fe;case 146:return Hr;case 151:return n.flags&524288&&!de?j:ga;case 141:return hn;case 197:case 110:return dee(n);case 201:return tdt(n);case 183:return $ge(n);case 182:return n.assertsModifier?Kn:ai;case 233:return $ge(n);case 186:return o6e(n);case 188:case 189:return put(n);case 190:return hut(n);case 192:return Iut(n);case 193:return Lut(n);case 321:return Wct(n);case 323:return up(Ti(n.type));case 202:return idt(n);case 196:case 322:case 316:return Ti(n.type);case 191:return J6e(n);case 325:return ayt(n);case 184:case 185:case 187:case 329:case 324:case 330:return q6e(n);case 198:return Fut(n);case 199:return B6e(n);case 200:return hve(n);case 194:return Yut(n);case 195:return $ut(n);case 203:return zut(n);case 205:return Qut(n);case 80:case 166:case 211:const a=Jm(n);return a?Zs(a):_t;default:return _t}}function pee(n,a,c){if(n&&n.length)for(let d=0;d<n.length;d++){const _=n[d],y=c(_,a);if(_!==y){const x=d===0?[]:n.slice(0,d);for(x.push(y),d++;d<n.length;d++)x.push(c(n[d],a));return x}}return n}function yy(n,a){return pee(n,a,co)}function fee(n,a){return pee(n,a,MC)}function X6e(n,a){return pee(n,a,gdt)}function kp(n,a){return n.length===1?Y1(n[0],a?a[0]:j):odt(n,a)}function Ub(n,a){switch(a.kind){case 0:return n===a.source?a.target:n;case 1:{const d=a.sources,_=a.targets;for(let y=0;y<d.length;y++)if(n===d[y])return _?_[y]:j;return n}case 2:{const d=a.sources,_=a.targets;for(let y=0;y<d.length;y++)if(n===d[y])return _[y]();return n}case 3:return a.func(n);case 4:case 5:const c=Ub(n,a.mapper1);return c!==n&&a.kind===4?co(c,a.mapper2):Ub(c,a.mapper2)}}function Y1(n,a){return C.attachDebugPrototypeIfDebug({kind:0,source:n,target:a})}function odt(n,a){return C.attachDebugPrototypeIfDebug({kind:1,sources:n,targets:a})}function M9(n,a){return C.attachDebugPrototypeIfDebug({kind:3,func:n,debugInfo:C.isDebugging?a:void 0})}function Sve(n,a){return C.attachDebugPrototypeIfDebug({kind:2,sources:n,targets:a})}function mee(n,a,c){return C.attachDebugPrototypeIfDebug({kind:n,mapper1:a,mapper2:c})}function Y6e(n){return kp(n,void 0)}function adt(n,a){const c=n.inferences.slice(a);return kp(Ot(c,d=>d.typeParameter),Ot(c,()=>dn))}function $1(n,a){return n?mee(4,n,a):a}function sdt(n,a){return n?mee(5,n,a):a}function ZT(n,a,c){return c?mee(5,Y1(n,a),c):Y1(n,a)}function O8(n,a,c){return n?mee(5,n,Y1(a,c)):Y1(a,c)}function ldt(n){return!n.constraint&&!Hge(n)||n.constraint===Hs?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=yf(n.symbol),n.restrictiveInstantiation.constraint=Hs,n.restrictiveInstantiation)}function Tve(n){const a=yf(n.symbol);return a.target=n,a}function cdt(n,a){return A9(n.kind,n.parameterName,n.parameterIndex,co(n.type,a))}function MC(n,a,c){let d;if(n.typeParameters&&!c){d=Ot(n.typeParameters,Tve),a=$1(kp(n.typeParameters,d),a);for(const y of d)y.mapper=a}const _=Dg(n.declaration,d,n.thisParameter&&Ave(n.thisParameter,a),pee(n.parameters,a,Ave),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function Ave(n,a){const c=Xi(n);if(c.type&&!bE(c.type)&&(!(n.flags&65536)||c.writeType&&!bE(c.writeType)))return n;xl(n)&1&&(n=c.target,a=$1(c.mapper,a));const d=Za(n.flags,n.escapedName,1|xl(n)&53256);return d.declarations=n.declarations,d.parent=n.parent,d.links.target=n,d.links.mapper=a,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),c.nameType&&(d.links.nameType=c.nameType),d}function udt(n,a,c,d){const _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],y=Qr(_),x=n.objectFlags&4?y.resolvedType:n.objectFlags&64?n.target:n;let k=y.outerTypeParameters;if(!k){let z=Nn(_,!0);if(ih(_)){const ne=U8e(_);z=Ur(z,ne)}k=z||et;const J=n.objectFlags&8388612?[_]:n.symbol.declarations;k=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?rr(k,ne=>St(J,Se=>L9(ne,Se))):k,y.outerTypeParameters=k}if(k.length){const z=$1(n.mapper,a),J=Ot(k,vt=>Ub(vt,z)),ne=c||n.aliasSymbol,Se=c?d:yy(n.aliasTypeArguments,a),ve=vm(J)+yx(ne,Se);x.instantiations||(x.instantiations=new Map,x.instantiations.set(vm(k)+yx(x.aliasSymbol,x.aliasTypeArguments),x));let Ge=x.instantiations.get(ve);if(!Ge){const vt=kp(k,J);Ge=x.objectFlags&4?qge(n.target,n.node,vt,ne,Se):x.objectFlags&32?pdt(x,vt,ne,Se):Ive(x,vt,ne,Se),x.instantiations.set(ve,Ge);const xt=Wr(Ge);if(Ge.flags&3899393&&!(xt&524288)){const cn=St(J,bE);Wr(Ge)&524288||(xt&52?Ge.objectFlags|=524288|(cn?1048576:0):Ge.objectFlags|=cn?0:524288)}}return Ge}return n}function ddt(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function L9(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const d=n.symbol.declarations[0].parent;for(let _=a;_!==d;_=_.parent)if(!_||_.kind===241||_.kind===194&&Vo(_.extendsType,c))return!0;return c(a)}return!0;function c(d){switch(d.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&ig(d)&&ddt(d)&&K6e(d)===n;case 186:const _=d.exprName,y=Vp(_);if(!YE(y)){const x=Hm(y),k=n.symbol.declarations[0],z=k.kind===168?k.parent:n.isThisType?k:void 0;if(x.declarations&&z)return St(x.declarations,J=>HE(J,z))||St(d.typeArguments,c)}return!0;case 174:case 173:return!d.type&&!!d.body||St(d.typeParameters,c)||St(d.parameters,c)||!!d.type&&c(d.type)}return!!Vo(d,c)}}function W8(n){const a=Ef(n);if(a.flags&4194304){const c=jb(a.type);if(c.flags&262144)return c}}function pdt(n,a,c,d){const _=W8(n);if(_){const x=co(_,a);if(_!==x)return Z4e(g_(x),y,c,d)}return co(Ef(n),a)===Dt?Dt:Ive(n,a,c,d);function y(x){if(x.flags&61603843&&x!==Dt&&!Kt(x)){if(!n.declaration.nameType){let k;if(Yf(x)||x.flags&1&&mx(_,4)<0&&(k=Ld(_))&&pp(k,vE))return mdt(x,n,ZT(_,x,a));if(ja(x))return fdt(x,n,_,a);if(F8e(x))return Ea(Ot(x.types,y))}return Ive(n,ZT(_,x,a))}return x}}function $6e(n,a){return a&1?!0:a&2?!1:n}function fdt(n,a,c,d){const _=n.target.elementFlags,y=n.target.fixedLength,x=y?ZT(c,n,d):d,k=Ot(J1(n),(Se,ve)=>{var vt;const Ge=_[ve];return ve<y?Q6e(a,Xd(""+ve),!!(Ge&2),x):Ge&8?co(a,ZT(c,Se,d)):(vt=V9(co(a,ZT(c,Vu(Se),d))))!=null?vt:dn}),z=jh(a),J=z&4?Ot(_,Se=>Se&1?2:Se):z&8?Ot(_,Se=>Se&2?1:Se):_,ne=$6e(n.target.readonly,jh(a));return Nr(k,_t)?_t:qh(k,J,ne,n.target.labeledElementDeclarations)}function mdt(n,a,c){const d=Q6e(a,Tt,!0,c);return Kt(d)?_t:Vu(d,$6e(Y2(n),jh(a)))}function Q6e(n,a,c,d){const _=O8(d,__(n),a),y=co(_v(n.target||n),_),x=jh(n);return Y&&x&4&&!Pl(y,49152)?Kb(y,!0):Y&&x&8&&c?bm(y,524288):y}function Ive(n,a,c,d){C.assert(n.symbol,"anonymous type must have symbol to be instantiated");const _=Vf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;const y=__(n),x=Tve(y);_.typeParameter=x,a=$1(Y1(y,x),a),x.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?d:yy(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?eee(_.aliasTypeArguments):0,_}function xve(n,a,c,d,_){const y=n.root;if(y.outerTypeParameters){const x=Ot(y.outerTypeParameters,J=>Ub(J,a)),k=(c?"C":"")+vm(x)+yx(d,_);let z=y.instantiations.get(k);if(!z){const J=kp(y.outerTypeParameters,x),ne=y.checkType,Se=y.isDistributive?g_(Ub(ne,J)):void 0;z=Se&&ne!==Se&&Se.flags&1179648?Z4e(Se,ve=>gve(y,ZT(ne,ve,J),c),d,_):gve(y,J,c,d,_),y.instantiations.set(k,z)}return z}return n}function co(n,a){return n&&a?Z6e(n,a,void 0,void 0):n}function Z6e(n,a,c,d){var _;if(!bE(n))return n;if(R===100||I>=5e6)return(_=ar)==null||_.instant(ar.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:R,instantiationCount:I}),Xe(N,m.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;A++,I++,R++;const y=_dt(n,a,c,d);return R--,y}function _dt(n,a,c,d){const _=n.flags;if(_&262144)return Ub(n,a);if(_&524288){const y=n.objectFlags;if(y&52){if(y&4&&!n.node){const x=n.resolvedTypeArguments,k=yy(x,a);return k!==x?ave(n.target,k):n}return y&1024?hdt(n,a):udt(n,a,c,d)}return n}if(_&3145728){const y=n.flags&1048576?n.origin:void 0,x=y&&y.flags&3145728?y.types:n.types,k=yy(x,a);if(k===x&&c===n.aliasSymbol)return n;const z=c||n.aliasSymbol,J=c?d:yy(n.aliasTypeArguments,a);return _&2097152||y&&y.flags&2097152?Ea(k,z,J):Zr(k,1,z,J)}if(_&4194304)return eh(co(n.type,a));if(_&134217728)return XT(n.texts,yy(n.types,a));if(_&268435456)return bx(n.symbol,co(n.type,a));if(_&8388608){const y=c||n.aliasSymbol,x=c?d:yy(n.aliasTypeArguments,a);return Lp(co(n.objectType,a),co(n.indexType,a),n.accessFlags,void 0,y,x)}if(_&16777216)return xve(n,$1(n.mapper,a),!1,c,d);if(_&33554432){const y=co(n.baseType,a);if(H2(n))return Jge(y);const x=co(n.constraint,a);return y.flags&8650752&&NC(x)?Xge(y,x):x.flags&3||Sa(eA(y),eA(x))?y:y.flags&8650752?Xge(y,x):Ea([x,y])}return n}function hdt(n,a){const c=co(n.mappedType,a);if(!(Wr(c)&32))return n;const d=co(n.constraintType,a);if(!(d.flags&4194304))return n;const _=P4e(co(n.source,a),c,d);return _||n}function F8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=co(n,ys))}function eA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=co(n,La),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function gdt(n,a){return Hh(n.keyType,co(n.type,a),n.isReadonly,n.declaration)}function Kf(n){switch(C.assert(n.kind!==174||Nm(n)),n.kind){case 218:case 219:case 174:case 262:return e4e(n);case 210:return St(n.properties,Kf);case 209:return St(n.elements,Kf);case 227:return Kf(n.whenTrue)||Kf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Kf(n.left)||Kf(n.right));case 303:return Kf(n.initializer);case 217:return Kf(n.expression);case 292:return St(n.properties,Kf)||W_(n.parent)&&St(n.parent.parent.children,Kf);case 291:{const{initializer:a}=n;return!!a&&Kf(a)}case 294:{const{expression:a}=n;return!!a&&Kf(a)}}return!1}function e4e(n){return iW(n)||vdt(n)}function vdt(n){return n.typeParameters||sm(n)||!n.body?!1:n.body.kind!==241?Kf(n.body):!!GE(n.body,a=>!!a.expression&&Kf(a.expression))}function _ee(n){return(e1(n)||Nm(n))&&e4e(n)}function t4e(n){if(n.flags&524288){const a=h_(n);if(a.constructSignatures.length||a.callSignatures.length){const c=Vf(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=et,c.constructSignatures=et,c.indexInfos=et,c}}else if(n.flags&2097152)return Ea(Ot(n.types,t4e));return n}function yv(n,a){return th(n,a,sp)}function z8(n,a){return th(n,a,sp)?-1:0}function Rve(n,a){return th(n,a,qd)?-1:0}function ydt(n,a){return th(n,a,kh)?-1:0}function Hb(n,a){return th(n,a,kh)}function k9(n,a){return th(n,a,Bf)}function Sa(n,a){return th(n,a,qd)}function gE(n,a){return n.flags&1048576?Yn(n.types,c=>gE(c,a)):a.flags&1048576?St(a.types,c=>gE(n,c)):n.flags&2097152?St(n.types,c=>gE(c,a)):n.flags&58982400?gE(Gu(n)||dn,a):Jh(a)?!!(n.flags&67633152):a===Pe?!!(n.flags&67633152)&&!Jh(n):a===Wt?!!(n.flags&524288)&&aye(n):SC(n,my(a))||Yf(a)&&!Y2(a)&&gE(n,ea)}function hee(n,a){return th(n,a,Np)}function w9(n,a){return hee(n,a)||hee(a,n)}function nd(n,a,c,d,_,y){return Xf(n,a,qd,c,d,_,y)}function qb(n,a,c,d,_,y){return Dve(n,a,qd,c,d,_,y,void 0)}function Dve(n,a,c,d,_,y,x,k){return th(n,a,c)?!0:!d||!B8(_,n,a,c,y,x,k)?Xf(n,a,c,d,y,x,k):!1}function n4e(n){return!!(n.flags&16777216||n.flags&2097152&&St(n.types,n4e))}function B8(n,a,c,d,_,y,x){if(!n||n4e(c))return!1;if(!Xf(a,c,d,void 0)&&bdt(n,a,c,d,_,y,x))return!0;switch(n.kind){case 234:if(!yb(n))break;case 294:case 217:return B8(n.expression,a,c,d,_,y,x);case 226:switch(n.operatorToken.kind){case 64:case 28:return B8(n.right,a,c,d,_,y,x)}break;case 210:return Ddt(n,a,c,d,y,x);case 209:return xdt(n,a,c,d,y,x);case 292:return Idt(n,a,c,d,y,x);case 219:return Edt(n,a,c,d,y,x)}return!1}function bdt(n,a,c,d,_,y,x){const k=Ko(a,0),z=Ko(a,1);for(const J of[z,k])if(St(J,ne=>{const Se=ms(ne);return!(Se.flags&131073)&&Xf(Se,c,d,void 0)})){const ne=x||{};nd(a,c,n,_,y,ne);const Se=ne.errors[ne.errors.length-1];return Oa(Se,Or(n,J===z?m.Did_you_mean_to_use_new_with_this_expression:m.Did_you_mean_to_call_this_expression)),!0}return!1}function Edt(n,a,c,d,_,y){if(Jo(n.body)||St(n.parameters,w4))return!1;const x=cA(a);if(!x)return!1;const k=Ko(c,0);if(!Le(k))return!1;const z=n.body,J=ms(x),ne=Zr(Ot(k,ms));if(!Xf(J,ne,d,void 0)){const Se=z&&B8(z,J,ne,d,void 0,_,y);if(Se)return Se;const ve=y||{};if(Xf(J,ne,d,z,void 0,_,ve),ve.errors)return c.symbol&&Le(c.symbol.declarations)&&Oa(ve.errors[ve.errors.length-1],Or(c.symbol.declarations[0],m.The_expected_type_comes_from_the_return_type_of_this_signature)),(Uc(n)&2)===0&&!Ke(J,"then")&&Xf(hB(J),ne,d,void 0)&&Oa(ve.errors[ve.errors.length-1],Or(n,m.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function r4e(n,a,c){const d=Vb(a,c);if(d)return d;if(a.flags&1048576){const _=d4e(n,a);if(_)return Vb(_,c)}}function i4e(n,a){eB(n,a,!1);const c=lM(n,1);return Y8(),c}function O9(n,a,c,d,_,y){let x=!1;for(const k of n){const{errorNode:z,innerExpression:J,nameType:ne,errorMessage:Se}=k;let ve=r4e(a,c,ne);if(!ve||ve.flags&8388608)continue;let Ge=Vb(a,ne);if(!Ge)continue;const vt=aee(ne,void 0);if(!Xf(Ge,ve,d,void 0)){const xt=J&&B8(J,Ge,ve,d,void 0,_,y);if(x=!0,!xt){const cn=y||{},sn=J?i4e(J,Ge):Ge;if(Me&&vee(sn,ve)){const er=Or(z,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Un(sn),Un(ve));os.add(er),cn.errors=[er]}else{const er=!!(vt&&(ba(c,vt)||pt).flags&16777216),Wn=!!(vt&&(ba(a,vt)||pt).flags&16777216);ve=Xb(ve,er),Ge=Xb(Ge,er&&Wn),Xf(sn,ve,d,z,Se,_,cn)&&sn!==Ge&&Xf(Ge,ve,d,z,Se,_,cn)}if(cn.errors){const er=cn.errors[cn.errors.length-1],Wn=lm(ne)?cm(ne):void 0,mn=Wn!==void 0?ba(c,Wn):void 0;let Fn=!1;if(!mn){const Pn=D8(c,ne);Pn&&Pn.declaration&&!jn(Pn.declaration).hasNoDefaultLib&&(Fn=!0,Oa(er,Or(Pn.declaration,m.The_expected_type_comes_from_this_index_signature)))}if(!Fn&&(mn&&Le(mn.declarations)||c.symbol&&Le(c.symbol.declarations))){const Pn=mn&&Le(mn.declarations)?mn.declarations[0]:c.symbol.declarations[0];jn(Pn).hasNoDefaultLib||Oa(er,Or(Pn,m.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Wn&&!(ne.flags&8192)?ji(Wn):Un(ne),Un(c)))}}}}}return x}function Sdt(n,a,c,d,_,y){const x=_c(c,Iee),k=_c(c,ne=>!Iee(ne)),z=k!==Hr?Abe(13,0,k,void 0):void 0;let J=!1;for(let ne=n.next();!ne.done;ne=n.next()){const{errorNode:Se,innerExpression:ve,nameType:Ge,errorMessage:vt}=ne.value;let xt=z;const cn=x!==Hr?r4e(a,x,Ge):void 0;if(cn&&!(cn.flags&8388608)&&(xt=z?Zr([z,cn]):cn),!xt)continue;let sn=Vb(a,Ge);if(!sn)continue;const er=aee(Ge,void 0);if(!Xf(sn,xt,d,void 0)){const Wn=ve&&B8(ve,sn,xt,d,void 0,_,y);if(J=!0,!Wn){const mn=y||{},Fn=ve?i4e(ve,sn):sn;if(Me&&vee(Fn,xt)){const Pn=Or(Se,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Un(Fn),Un(xt));os.add(Pn),mn.errors=[Pn]}else{const Pn=!!(er&&(ba(x,er)||pt).flags&16777216),Vn=!!(er&&(ba(a,er)||pt).flags&16777216);xt=Xb(xt,Pn),sn=Xb(sn,Pn&&Vn),Xf(Fn,xt,d,Se,vt,_,mn)&&Fn!==sn&&Xf(sn,xt,d,Se,vt,_,mn)}}}}return J}function*Tdt(n){if(Le(n.properties))for(const a of n.properties)gI(a)||Rye(Dk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Xd(Dk(a.name))})}function*Adt(n,a){if(!Le(n.children))return;let c=0;for(let d=0;d<n.children.length;d++){const _=n.children[d],y=v_(d-c),x=o4e(_,y,a);x?yield x:c++}}function o4e(n,a,c){switch(n.kind){case 294:return{errorNode:n,innerExpression:n.expression,nameType:a};case 12:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:a,errorMessage:c()};case 284:case 285:case 288:return{errorNode:n,innerExpression:n,nameType:a};default:return C.assertNever(n,"Found invalid jsx child")}}function Idt(n,a,c,d,_,y){let x=O9(Tdt(n),a,c,d,_,y),k;if(W_(n.parent)&&mg(n.parent.parent)){const J=n.parent.parent,ne=nB(sA(n)),Se=ne===void 0?"children":ji(ne),ve=Xd(Se),Ge=Lp(c,ve),vt=RR(J.children);if(!Le(vt))return x;const xt=Le(vt)>1;let cn,sn;if(nve(!1)!==Mo){const Wn=h6e(j);cn=_c(Ge,mn=>Sa(mn,Wn)),sn=_c(Ge,mn=>!Sa(mn,Wn))}else cn=_c(Ge,Iee),sn=_c(Ge,Wn=>!Iee(Wn));if(xt){if(cn!==Hr){const Wn=qh($ee(J,0)),mn=Adt(J,z);x=Sdt(mn,Wn,cn,d,_,y)||x}else if(!th(Lp(a,ve),Ge,d)){x=!0;const Wn=Xe(J.openingElement.tagName,m.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Se,Un(Ge));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(Wn)}}else if(sn!==Hr){const Wn=vt[0],mn=o4e(Wn,ve,z);mn&&(x=O9(function*(){yield mn}(),a,c,d,_,y)||x)}else if(!th(Lp(a,ve),Ge,d)){x=!0;const Wn=Xe(J.openingElement.tagName,m.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Se,Un(Ge));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(Wn)}}return x;function z(){if(!k){const J=gc(n.parent.tagName),ne=nB(sA(n)),Se=ne===void 0?"children":ji(ne),ve=Lp(c,Xd(Se)),Ge=m._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;k={...Ge,key:"!!ALREADY FORMATTED!!",message:kU(Ge,J,Se,Un(ve))}}return k}}function*a4e(n,a){const c=Le(n.elements);if(c)for(let d=0;d<c;d++){if($2(a)&&!ba(a,""+d))continue;const _=n.elements[d];if(Hc(_))continue;const y=v_(d),x=ate(_);yield{errorNode:x,innerExpression:x,nameType:y}}}function xdt(n,a,c,d,_,y){if(c.flags&402915324)return!1;if($2(a))return O9(a4e(n,c),a,c,d,_,y);eB(n,c,!1);const x=D3e(n,1,!0);return Y8(),$2(x)?O9(a4e(n,c),x,c,d,_,y):!1}function*Rdt(n){if(Le(n.properties))for(const a of n.properties){if(Yv(a))continue;const c=CC(xr(a),8576);if(!(!c||c.flags&131072))switch(a.kind){case 178:case 177:case 174:case 304:yield{errorNode:a.name,innerExpression:void 0,nameType:c};break;case 303:yield{errorNode:a.name,innerExpression:a.initializer,nameType:c,errorMessage:PL(a.name)?m.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:C.assertNever(a)}}}function Ddt(n,a,c,d,_,y){return c.flags&402915324?!1:O9(Rdt(n),a,c,d,_,y)}function s4e(n,a,c,d,_){return Xf(n,a,Np,c,d,_)}function Cdt(n,a,c){return Cve(n,a,4,!1,void 0,void 0,Rve,void 0)!==0}function gee(n){if(!n.typeParameters&&(!n.thisParameter||Ct(fB(n.thisParameter)))&&n.parameters.length===1&&Yu(n)){const a=fB(n.parameters[0]);return!!((Yf(a)?Js(a)[0]:a).flags&131073&&ms(n).flags&3)}return!1}function Cve(n,a,c,d,_,y,x,k){if(n===a||!(c&16&&gee(n))&&gee(a))return-1;if(c&16&&gee(n)&&!gee(a))return 0;const z=Yp(a);if(!Kh(a)&&(c&8?Kh(n)||Yp(n)>z:oh(n)>z))return d&&!(c&8)&&_(m.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,oh(n),z),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Nct(a),n=aWe(n,a,void 0,x));const ne=Yp(n),Se=e6(n),ve=e6(a);(Se||ve)&&co(Se||ve,k);const Ge=a.declaration?a.declaration.kind:0,vt=!(c&3)&&oe&&Ge!==174&&Ge!==173&&Ge!==176;let xt=-1;const cn=mE(n);if(cn&&cn!==Kn){const Wn=mE(a);if(Wn){const mn=!vt&&x(cn,Wn,!1)||x(Wn,cn,d);if(!mn)return d&&_(m.The_this_types_of_each_signature_are_incompatible),0;xt&=mn}}const sn=Se||ve?Math.min(ne,z):Math.max(ne,z),er=Se||ve?sn-1:-1;for(let Wn=0;Wn<sn;Wn++){const mn=Wn===er?NWe(n,Wn):nS(n,Wn),Fn=Wn===er?NWe(a,Wn):nS(a,Wn);if(mn&&Fn){const Pn=c&3||iWe(n,Wn)?void 0:cA(Sv(mn)),Vn=c&3||iWe(a,Wn)?void 0:cA(Sv(Fn));let tr=Pn&&Vn&&!Jf(Pn)&&!Jf(Vn)&&eM(mn,50331648)===eM(Fn,50331648)?Cve(Vn,Pn,c&8|(vt?2:1),d,_,y,x,k):!(c&3)&&!vt&&x(mn,Fn,!1)||x(Fn,mn,d);if(tr&&c&8&&Wn>=oh(n)&&Wn<oh(a)&&x(mn,Fn,!1)&&(tr=0),!tr)return d&&_(m.Types_of_parameters_0_and_1_are_incompatible,ji(oM(n,Wn)),ji(oM(a,Wn))),0;xt&=tr}}if(!(c&4)){const Wn=YZ(a)?j:a.declaration&&ih(a.declaration)?qf(ss(a.declaration.symbol)):ms(a);if(Wn===Kn||Wn===j)return xt;const mn=YZ(n)?j:n.declaration&&ih(n.declaration)?qf(ss(n.declaration.symbol)):ms(n),Fn=Jf(a);if(Fn){const Pn=Jf(n);if(Pn)xt&=Ndt(Pn,Fn,d,_,x);else if(Oie(Fn))return d&&_(m.Signature_0_must_be_a_type_predicate,zh(n)),0}else xt&=c&1&&x(Wn,mn,!1)||x(mn,Wn,d),!xt&&d&&y&&y(mn,Wn)}return xt}function Ndt(n,a,c,d,_){if(n.kind!==a.kind)return c&&(d(m.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),d(m.Type_predicate_0_is_not_assignable_to_1,Bh(n),Bh(a))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==a.parameterIndex)return c&&(d(m.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,a.parameterName),d(m.Type_predicate_0_is_not_assignable_to_1,Bh(n),Bh(a))),0;const y=n.type===a.type?-1:n.type&&a.type?_(n.type,a.type,c):0;return y===0&&c&&d(m.Type_predicate_0_is_not_assignable_to_1,Bh(n),Bh(a)),y}function Pdt(n,a){const c=P8(n),d=P8(a),_=ms(c),y=ms(d);return y===Kn||th(y,_,qd)||th(_,y,qd)?Cdt(c,d):!1}function Nve(n){return n!==an&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function bv(n){return n.flags&524288?!Kd(n)&&Nve(h_(n)):n.flags&67108864?!0:n.flags&1048576?St(n.types,bv):n.flags&2097152?Yn(n.types,bv):!1}function Jh(n){return!!(Wr(n)&16&&(n.members&&Nve(n)||n.symbol&&n.symbol.flags&2048&&Fb(n.symbol).size===0))}function Mdt(n){if(Y&&n.flags&1048576){if(!(n.objectFlags&33554432)){const a=n.types;n.objectFlags|=33554432|(a.length>=3&&a[0].flags&32768&&a[1].flags&65536&&St(a,Jh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function K2(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function l4e(n){return n.flags&524288&&!Kd(n)&&bs(n).length===0&&vd(n).length===1&&!!Cg(n,ke)||n.flags&3145728&&Yn(n.types,l4e)||!1}function Pve(n,a,c){const d=n.flags&8?Pd(n):n,_=a.flags&8?Pd(a):a;if(d===_)return!0;if(d.escapedName!==_.escapedName||!(d.flags&256)||!(_.flags&256))return!1;const y=Ta(d)+","+Ta(_),x=sy.get(y);if(x!==void 0&&!(!(x&4)&&x&2&&c))return!!(x&1);const k=dr(_);for(const z of bs(dr(d)))if(z.flags&8){const J=ba(k,z.escapedName);if(!J||!(J.flags&8))return c?(c(m.Property_0_is_missing_in_type_1,El(z),Un(Zs(_),void 0,64)),sy.set(y,6)):sy.set(y,2),!1;const ne=jC(fl(z,306)),Se=jC(fl(J,306));if(ne!==Se){const ve=typeof ne=="string",Ge=typeof Se=="string";if(ne!==void 0&&Se!==void 0){if(!c)sy.set(y,2);else{const vt=ve?'"'.concat(lg(ne),'"'):ne,xt=Ge?'"'.concat(lg(Se),'"'):Se;c(m.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,El(_),El(J),xt,vt),sy.set(y,6)}return!1}if(ve||Ge){if(!c)sy.set(y,2);else{const vt=ne!=null?ne:Se;C.assert(typeof vt=="string");const xt='"'.concat(lg(vt),'"');c(m.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,El(_),El(J),xt),sy.set(y,6)}return!1}}}return sy.set(y,1),!0}function G8(n,a,c,d){const _=n.flags,y=a.flags;return y&1||_&131072||n===Dt||y&2&&!(c===Bf&&_&1)?!0:y&131072?!1:!!(_&402653316&&y&4||_&128&&_&1024&&y&128&&!(y&1024)&&n.value===a.value||_&296&&y&8||_&256&&_&1024&&y&256&&!(y&1024)&&n.value===a.value||_&2112&&y&64||_&528&&y&16||_&12288&&y&4096||_&32&&y&32&&n.symbol.escapedName===a.symbol.escapedName&&Pve(n.symbol,a.symbol,d)||_&1024&&y&1024&&(_&1048576&&y&1048576&&Pve(n.symbol,a.symbol,d)||_&2944&&y&2944&&n.value===a.value&&Pve(n.symbol,a.symbol,d))||_&32768&&(!Y&&!(y&3145728)||y&49152)||_&65536&&(!Y&&!(y&3145728)||y&65536)||_&524288&&y&67108864&&!(c===Bf&&Jh(n)&&!(Wr(n)&8192))||(c===qd||c===Np)&&(_&1||_&8&&(y&32||y&256&&y&1024)||_&256&&!(_&1024)&&(y&32||y&256&&y&1024&&n.value===a.value)||Mdt(a)))}function th(n,a,c){if(X1(n)&&(n=n.regularType),X1(a)&&(a=a.regularType),n===a)return!0;if(c!==sp){if(c===Np&&!(a.flags&131072)&&G8(a,n,c)||G8(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){const d=c.get(Eee(n,a,0,c,!1));if(d!==void 0)return!!(d&1)}return n.flags&469499904||a.flags&469499904?Xf(n,a,c,void 0):!1}function c4e(n,a){return Wr(n)&2048&&Rye(a.escapedName)}function W9(n,a){for(;;){const c=X1(n)?n.regularType:Jb(n)?kdt(n,a):Wr(n)&4?n.node?hy(n.target,Js(n)):Fve(n)||n:n.flags&3145728?Ldt(n,a):n.flags&33554432?a?n.baseType:Yge(n):n.flags&25165824?vv(n,a):n;if(c===n)return c;n=c}}function Ldt(n,a){const c=g_(n);if(c!==n)return c;if(n.flags&2097152&&St(n.types,Jh)){const d=no(n.types,_=>W9(_,a));if(d!==n.types)return Ea(d)}return n}function kdt(n,a){const c=J1(n),d=no(c,_=>_.flags&25165824?vv(_,a):_);return c!==d?sve(n.target,d):n}function Xf(n,a,c,d,_,y,x){var k;let z,J,ne,Se,ve,Ge,vt=0,xt=0,cn=0,sn=0,er=!1,Wn=0,mn=0,Fn,Pn,Vn=16e6-c.size>>3;C.assert(c!==sp||!d,"no error reporting in identity checking");const Gn=Sr(n,a,3,!!d,_);if(Pn&&Fo(),er){const tt=Eee(n,a,0,c,!1);c.set(tt,6),(k=ar)==null||k.instant(ar.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:xt,targetDepth:cn});const Et=Vn<=0?m.Excessive_complexity_comparing_types_0_and_1:m.Excessive_stack_depth_comparing_types_0_and_1,rn=Xe(d||N,Et,Un(n),Un(a));x&&(x.errors||(x.errors=[])).push(rn)}else if(z){if(y){const rn=y();rn&&(Voe(rn,z),z=rn)}let tt;if(_&&d&&!Gn&&n.symbol){const rn=Xi(n.symbol);if(rn.originatingImport&&!Bp(rn.originatingImport)&&Xf(dr(rn.target),a,c,void 0)){const Dr=Or(rn.originatingImport,m.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);tt=Rn(tt,Dr)}}const Et=Gg(jn(d),d,z,tt);J&&Oa(Et,...J),x&&(x.errors||(x.errors=[])).push(Et),(!x||!x.skipLogging)&&os.add(Et)}return d&&x&&x.skipLogging&&Gn===0&&C.assert(!!x.errors,"missed opportunity to interact with error."),Gn!==0;function tr(tt){z=tt.errorInfo,Fn=tt.lastSkippedInfo,Pn=tt.incompatibleStack,Wn=tt.overrideNextErrorInfo,mn=tt.skipParentCounter,J=tt.relatedInfo}function mo(){return{errorInfo:z,lastSkippedInfo:Fn,incompatibleStack:Pn==null?void 0:Pn.slice(),overrideNextErrorInfo:Wn,skipParentCounter:mn,relatedInfo:J==null?void 0:J.slice()}}function _o(tt,...Et){Wn++,Fn=void 0,(Pn||(Pn=[])).push([tt,...Et])}function Fo(){const tt=Pn||[];Pn=void 0;const Et=Fn;if(Fn=void 0,tt.length===1){vo(...tt[0]),Et&&fp(void 0,...Et);return}let rn="";const Xn=[];for(;tt.length;){const[Dr,...In]=tt.pop();switch(Dr.code){case m.Types_of_property_0_are_incompatible.code:{rn.indexOf("new ")===0&&(rn="(".concat(rn,")"));const yr=""+In[0];rn.length===0?rn="".concat(yr):tf(yr,ls(V))?rn="".concat(rn,".").concat(yr):yr[0]==="["&&yr[yr.length-1]==="]"?rn="".concat(rn).concat(yr):rn="".concat(rn,"[").concat(yr,"]");break}case m.Call_signature_return_types_0_and_1_are_incompatible.code:case m.Construct_signature_return_types_0_and_1_are_incompatible.code:case m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(rn.length===0){let yr=Dr;Dr.code===m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?yr=m.Call_signature_return_types_0_and_1_are_incompatible:Dr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(yr=m.Construct_signature_return_types_0_and_1_are_incompatible),Xn.unshift([yr,In[0],In[1]])}else{const yr=Dr.code===m.Construct_signature_return_types_0_and_1_are_incompatible.code||Dr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",jr=Dr.code===m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Dr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";rn="".concat(yr).concat(rn,"(").concat(jr,")")}break}case m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Xn.unshift([m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,In[0],In[1]]);break}case m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Xn.unshift([m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,In[0],In[1],In[2]]);break}default:return C.fail("Unhandled Diagnostic: ".concat(Dr.code))}}rn?vo(rn[rn.length-1]===")"?m.The_types_returned_by_0_are_incompatible_between_these_types:m.The_types_of_0_are_incompatible_between_these_types,rn):Xn.shift();for(const[Dr,...In]of Xn){const yr=Dr.elidedInCompatabilityPyramid;Dr.elidedInCompatabilityPyramid=!1,vo(Dr,...In),Dr.elidedInCompatabilityPyramid=yr}Et&&fp(void 0,...Et)}function vo(tt,...Et){C.assert(!!d),Pn&&Fo(),!tt.elidedInCompatabilityPyramid&&(mn===0?z=Bo(z,tt,...Et):mn--)}function Mc(tt,...Et){vo(tt,...Et),mn++}function $f(tt){C.assert(!!z),J?J.push(tt):J=[tt]}function fp(tt,Et,rn){Pn&&Fo();const[Xn,Dr]=fx(Et,rn);let In=Et,yr=Xn;if(V8(Et)&&!Mve(rn)&&(In=Ev(Et),C.assert(!Sa(In,rn),"generalized source shouldn't be assignable"),yr=Cb(In)),(rn.flags&8388608&&!(Et.flags&8388608)?rn.objectType.flags:rn.flags)&262144&&rn!==pe&&rn!==Z){const Fi=Gu(rn);let Oo;Fi&&(Sa(In,Fi)||(Oo=Sa(Et,Fi)))?vo(m._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Oo?Xn:yr,Dr,Un(Fi)):(z=void 0,vo(m._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Dr,yr))}if(tt)tt===m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Me&&u4e(Et,rn).length&&(tt=m.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(c===Np)tt=m.Type_0_is_not_comparable_to_type_1;else if(Xn===Dr)tt=m.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Me&&u4e(Et,rn).length)tt=m.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(Et.flags&128&&rn.flags&1048576){const Fi=jmt(Et,rn);if(Fi){vo(m.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,yr,Dr,Un(Fi));return}}tt=m.Type_0_is_not_assignable_to_type_1}vo(tt,yr,Dr)}function On(tt,Et){const rn=Nb(tt.symbol)?Un(tt,tt.symbol.valueDeclaration):Un(tt),Xn=Nb(Et.symbol)?Un(Et,Et.symbol.valueDeclaration):Un(Et);(rc===tt&&ke===Et||Sc===tt&&Tt===Et||ul===tt&&ai===Et||d6e()===tt&&si===Et)&&vo(m._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Xn,rn)}function Zn(tt,Et,rn){return ja(tt)?tt.target.readonly&&G9(Et)?(rn&&vo(m.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Un(tt),Un(Et)),!1):vE(Et):Y2(tt)&&G9(Et)?(rn&&vo(m.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Un(tt),Un(Et)),!1):ja(Et)?Yf(tt):!0}function lo(tt,Et,rn){return Sr(tt,Et,3,rn)}function Sr(tt,Et,rn=3,Xn=!1,Dr,In=0){if(tt===Et)return-1;if(tt.flags&524288&&Et.flags&402784252)return c===Np&&!(Et.flags&131072)&&G8(Et,tt,c)||G8(tt,Et,c,Xn?vo:void 0)?-1:(Xn&&Co(tt,Et,tt,Et,Dr),0);const yr=W9(tt,!1);let jr=W9(Et,!0);if(yr===jr)return-1;if(c===sp)return yr.flags!==jr.flags?0:yr.flags&67358815?-1:(us(yr,jr),Ii(yr,jr,!1,0,rn));if(yr.flags&262144&&HT(yr)===jr)return-1;if(yr.flags&470302716&&jr.flags&1048576){const Fi=jr.types,Oo=Fi.length===2&&Fi[0].flags&98304?Fi[1]:Fi.length===3&&Fi[0].flags&98304&&Fi[1].flags&98304?Fi[2]:void 0;if(Oo&&!(Oo.flags&98304)&&(jr=W9(Oo,!0),yr===jr))return-1}if(c===Np&&!(jr.flags&131072)&&G8(jr,yr,c)||G8(yr,jr,c,Xn?vo:void 0))return-1;if(yr.flags&469499904||jr.flags&469499904){if(!(In&2)&&EE(yr)&&Wr(yr)&8192&&ju(yr,jr,Xn))return Xn&&fp(Dr,yr,Et.aliasSymbol?Et:jr),0;const Oo=(c!==Np||y_(yr))&&!(In&2)&&yr.flags&405405692&&yr!==Pe&&jr.flags&2621440&&p4e(jr)&&(bs(yr).length>0||Pte(yr)),ma=!!(Wr(yr)&2048);if(Oo&&!Odt(yr,jr,ma)){if(Xn){const Lo=Un(tt.aliasSymbol?tt:yr),Da=Un(Et.aliasSymbol?Et:jr),ws=Ko(yr,0),_s=Ko(yr,1);ws.length>0&&Sr(ms(ws[0]),jr,1,!1)||_s.length>0&&Sr(ms(_s[0]),jr,1,!1)?vo(m.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Lo,Da):vo(m.Type_0_has_no_properties_in_common_with_type_1,Lo,Da)}return 0}us(yr,jr);const Ei=yr.flags&1048576&&yr.types.length<4&&!(jr.flags&1048576)||jr.flags&1048576&&jr.types.length<4&&!(yr.flags&469499904)?wd(yr,jr,Xn,In):Ii(yr,jr,Xn,In,rn);if(Ei)return Ei}return Xn&&Co(tt,Et,yr,jr,Dr),0}function Co(tt,Et,rn,Xn,Dr){var In,yr;const jr=!!Fve(tt),Fi=!!Fve(Et);rn=tt.aliasSymbol||jr?tt:rn,Xn=Et.aliasSymbol||Fi?Et:Xn;let Oo=Wn>0;if(Oo&&Wn--,rn.flags&524288&&Xn.flags&524288){const ma=z;Zn(rn,Xn,!0),z!==ma&&(Oo=!!z)}if(rn.flags&524288&&Xn.flags&402784252)On(rn,Xn);else if(rn.symbol&&rn.flags&524288&&Pe===rn)vo(m.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Wr(rn)&2048&&Xn.flags&2097152){const ma=Xn.types,_a=tS(sf.IntrinsicAttributes,d),Ei=tS(sf.IntrinsicClassAttributes,d);if(!Kt(_a)&&!Kt(Ei)&&(Nr(ma,_a)||Nr(ma,Ei)))return}else z=wge(z,Et);if(!Dr&&Oo){Fn=[rn,Xn];return}if(fp(Dr,rn,Xn),rn.flags&262144&&((yr=(In=rn.symbol)==null?void 0:In.declarations)!=null&&yr[0])&&!HT(rn)){const ma=Tve(rn);if(ma.constraint=co(Xn,Y1(rn,ma)),E9(ma)){const _a=Un(Xn,rn.symbol.declarations[0]);$f(Or(rn.symbol.declarations[0],m.This_type_parameter_might_need_an_extends_0_constraint,_a))}}}function us(tt,Et){if(ar&&tt.flags&3145728&&Et.flags&3145728){const rn=tt,Xn=Et;if(rn.objectFlags&Xn.objectFlags&32768)return;const Dr=rn.types.length,In=Xn.types.length;Dr*In>1e6&&ar.instant(ar.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:tt.id,sourceSize:Dr,targetId:Et.id,targetSize:In,pos:d==null?void 0:d.pos,end:d==null?void 0:d.end})}}function xs(tt,Et){return Zr(od(tt,(Xn,Dr)=>{var In;Dr=kd(Dr);const yr=Dr.flags&3145728?S9(Dr,Et):pE(Dr,Et),jr=yr&&dr(yr)||((In=vx(Dr,Et))==null?void 0:In.type)||We;return Rn(Xn,jr)},void 0)||et)}function ju(tt,Et,rn){var Xn;if(!iB(Et)||!de&&Wr(Et)&4096)return!1;const Dr=!!(Wr(tt)&2048);if((c===qd||c===Np)&&(tM(Pe,Et)||!Dr&&bv(Et)))return!1;let In=Et,yr;Et.flags&1048576&&(In=C7e(tt,Et,Sr)||qbt(Et),yr=In.flags&1048576?In.types:[In]);for(const jr of bs(tt))if(Ua(jr,tt.symbol)&&!c4e(tt,jr)){if(!Nye(In,jr.escapedName,Dr)){if(rn){const Fi=_c(In,iB);if(!d)return C.fail();if(u1(d)||ud(d)||ud(d.parent)){jr.valueDeclaration&&F_(jr.valueDeclaration)&&jn(d)===jn(jr.valueDeclaration.name)&&(d=jr.valueDeclaration.name);const Oo=Si(jr),ma=Q3e(Oo,Fi),_a=ma?Si(ma):void 0;_a?vo(m.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Oo,Un(Fi),_a):vo(m.Property_0_does_not_exist_on_type_1,Oo,Un(Fi))}else{const Oo=((Xn=tt.symbol)==null?void 0:Xn.declarations)&&$c(tt.symbol.declarations);let ma;if(jr.valueDeclaration&&zn(jr.valueDeclaration,_a=>_a===Oo)&&jn(Oo)===jn(d)){const _a=jr.valueDeclaration;C.assertNode(_a,Bg);const Ei=_a.name;d=Ei,je(Ei)&&(ma=zye(Ei,Fi))}ma!==void 0?Mc(m.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Si(jr),Un(Fi),ma):Mc(m.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(jr),Un(Fi))}}return!0}if(yr&&!Sr(dr(jr),xs(yr,jr.escapedName),3,rn))return rn&&_o(m.Types_of_property_0_are_incompatible,Si(jr)),!0}return!1}function Ua(tt,Et){return tt.valueDeclaration&&Et.valueDeclaration&&tt.valueDeclaration.parent===Et.valueDeclaration}function wd(tt,Et,rn,Xn){if(tt.flags&1048576){if(Et.flags&1048576){const Dr=tt.origin;if(Dr&&Dr.flags&2097152&&Et.aliasSymbol&&Nr(Dr.types,Et))return-1;const In=Et.origin;if(In&&In.flags&1048576&&tt.aliasSymbol&&Nr(In.types,tt))return-1}return c===Np?Ie(tt,Et,rn&&!(tt.flags&402784252),Xn):Lr(tt,Et,rn&&!(tt.flags&402784252),Xn)}if(Et.flags&1048576)return bl(H8(tt),Et,rn&&!(tt.flags&402784252)&&!(Et.flags&402784252),Xn);if(Et.flags&2097152)return ct(tt,Et,rn,2);if(c===Np&&Et.flags&402784252){const Dr=no(tt.types,In=>In.flags&465829888?Gu(In)||dn:In);if(Dr!==tt.types){if(tt=Ea(Dr),tt.flags&131072)return 0;if(!(tt.flags&2097152))return Sr(tt,Et,1,!1)||Sr(Et,tt,1,!1)}}return Ie(tt,Et,!1,1)}function zl(tt,Et){let rn=-1;const Xn=tt.types;for(const Dr of Xn){const In=bl(Dr,Et,!1,0);if(!In)return 0;rn&=In}return rn}function bl(tt,Et,rn,Xn){const Dr=Et.types;if(Et.flags&1048576){if(gv(Dr,tt))return-1;if(c!==Np&&Wr(Et)&32768&&!(tt.flags&1024)&&(tt.flags&2688||(c===kh||c===Bf)&&tt.flags&256)){const yr=tt===tt.regularType?tt.freshType:tt.regularType,jr=tt.flags&128?ke:tt.flags&256?Tt:tt.flags&2048?kt:void 0;return jr&&gv(Dr,jr)||yr&&gv(Dr,yr)?-1:0}const In=G4e(Et,tt);if(In){const yr=Sr(tt,In,2,!1,void 0,Xn);if(yr)return yr}}for(const In of Dr){const yr=Sr(tt,In,2,!1,void 0,Xn);if(yr)return yr}if(rn){const In=d4e(tt,Et,Sr);In&&Sr(tt,In,2,!0,void 0,Xn)}return 0}function ct(tt,Et,rn,Xn){let Dr=-1;const In=Et.types;for(const yr of In){const jr=Sr(tt,yr,2,rn,void 0,Xn);if(!jr)return 0;Dr&=jr}return Dr}function Ie(tt,Et,rn,Xn){const Dr=tt.types;if(tt.flags&1048576&&gv(Dr,Et))return-1;const In=Dr.length;for(let yr=0;yr<In;yr++){const jr=Sr(Dr[yr],Et,1,rn&&yr===In-1,void 0,Xn);if(jr)return jr}return 0}function Mn(tt,Et){return tt.flags&1048576&&Et.flags&1048576&&!(tt.types[0].flags&32768)&&Et.types[0].flags&32768?nM(Et,-32769):Et}function Lr(tt,Et,rn,Xn){let Dr=-1;const In=tt.types,yr=Mn(tt,Et);for(let jr=0;jr<In.length;jr++){const Fi=In[jr];if(yr.flags&1048576&&In.length>=yr.types.length&&In.length%yr.types.length===0){const ma=Sr(Fi,yr.types[jr%yr.types.length],3,!1,void 0,Xn);if(ma){Dr&=ma;continue}}const Oo=Sr(Fi,Et,1,rn,void 0,Xn);if(!Oo)return 0;Dr&=Oo}return Dr}function di(tt=et,Et=et,rn=et,Xn,Dr){if(tt.length!==Et.length&&c===sp)return 0;const In=tt.length<=Et.length?tt.length:Et.length;let yr=-1;for(let jr=0;jr<In;jr++){const Fi=jr<rn.length?rn[jr]:1,Oo=Fi&7;if(Oo!==4){const ma=tt[jr],_a=Et[jr];let Ei=-1;if(Fi&8?Ei=c===sp?Sr(ma,_a,3,!1):z8(ma,_a):Oo===1?Ei=Sr(ma,_a,3,Xn,void 0,Dr):Oo===2?Ei=Sr(_a,ma,3,Xn,void 0,Dr):Oo===3?(Ei=Sr(_a,ma,3,!1),Ei||(Ei=Sr(ma,_a,3,Xn,void 0,Dr))):(Ei=Sr(ma,_a,3,Xn,void 0,Dr),Ei&&(Ei&=Sr(_a,ma,3,Xn,void 0,Dr))),!Ei)return 0;yr&=Ei}}return yr}function Ii(tt,Et,rn,Xn,Dr){var In,yr,jr;if(er)return 0;const Fi=Eee(tt,Et,Xn,c,!1),Oo=c.get(Fi);if(Oo!==void 0&&!(rn&&Oo&2&&!(Oo&4))){if(ca){const _s=Oo&24;_s&8&&co(tt,Rs),_s&16&&co(tt,pu)}return Oo&1?-1:0}if(Vn<=0)return er=!0,0;if(!ne)ne=[],Se=new Set,ve=[],Ge=[];else{if(Se.has(Fi))return 3;const _s=Fi.startsWith("*")?Eee(tt,Et,Xn,c,!0):void 0;if(_s&&Se.has(_s))return 3;if(xt===100||cn===100)return er=!0,0}const ma=vt;ne[vt]=Fi,Se.add(Fi),vt++;const _a=sn;Dr&1&&(ve[xt]=tt,xt++,!(sn&1)&&X2(tt,ve,xt)&&(sn|=1)),Dr&2&&(Ge[cn]=Et,cn++,!(sn&2)&&X2(Et,Ge,cn)&&(sn|=2));let Ei,Lo=0;ca&&(Ei=ca,ca=_s=>(Lo|=_s?16:8,Ei(_s)));let Da;return sn===3?((In=ar)==null||In.instant(ar.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:tt.id,sourceIdStack:ve.map(_s=>_s.id),targetId:Et.id,targetIdStack:Ge.map(_s=>_s.id),depth:xt,targetDepth:cn}),Da=3):((yr=ar)==null||yr.push(ar.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:tt.id,targetId:Et.id}),Da=xi(tt,Et,rn,Xn),(jr=ar)==null||jr.pop()),ca&&(ca=Ei),Dr&1&&xt--,Dr&2&&cn--,sn=_a,Da?(Da===-1||xt===0&&cn===0)&&ws(Da===-1||Da===3):(c.set(Fi,(rn?4:0)|2|Lo),Vn--,ws(!1)),Da;function ws(_s){for(let Lc=ma;Lc<vt;Lc++)Se.delete(ne[Lc]),_s&&(c.set(ne[Lc],1|Lo),Vn--);vt=ma}}function xi(tt,Et,rn,Xn){const Dr=mo();let In=Rr(tt,Et,rn,Xn,Dr);if(c!==sp){if(!In&&(tt.flags&2097152||tt.flags&262144&&Et.flags&1048576)){const yr=fct(tt.flags&2097152?tt.types:[tt],!!(Et.flags&1048576));yr&&pp(yr,jr=>jr!==tt)&&(In=Sr(yr,Et,1,!1,void 0,Xn))}In&&!(Xn&2)&&Et.flags&2097152&&!$T(Et)&&tt.flags&2621440?(In&=Li(tt,Et,rn,void 0,!1,0),In&&EE(tt)&&Wr(tt)&8192&&(In&=Ls(tt,Et,!1,rn,0))):In&&lee(Et)&&!vE(Et)&&tt.flags&2097152&&kd(tt).flags&3670016&&!St(tt.types,yr=>yr===Et||!!(Wr(yr)&262144))&&(In&=Li(tt,Et,rn,void 0,!0,Xn))}return In&&tr(Dr),In}function Vr(tt,Et){const rn=kd(UT(Et)),Xn=[];return Rge(rn,8576,!1,Dr=>void Xn.push(co(tt,O8(Et.mapper,__(Et),Dr)))),Zr(Xn)}function Rr(tt,Et,rn,Xn,Dr){let In,yr,jr=!1,Fi=tt.flags;const Oo=Et.flags;if(c===sp){if(Fi&3145728){let Ei=zl(tt,Et);return Ei&&(Ei&=zl(Et,tt)),Ei}if(Fi&4194304)return Sr(tt.type,Et.type,3,!1);if(Fi&8388608&&(In=Sr(tt.objectType,Et.objectType,3,!1))&&(In&=Sr(tt.indexType,Et.indexType,3,!1))||Fi&16777216&&tt.root.isDistributive===Et.root.isDistributive&&(In=Sr(tt.checkType,Et.checkType,3,!1))&&(In&=Sr(tt.extendsType,Et.extendsType,3,!1))&&(In&=Sr(_E(tt),_E(Et),3,!1))&&(In&=Sr(hE(tt),hE(Et),3,!1))||Fi&33554432&&(In=Sr(tt.baseType,Et.baseType,3,!1))&&(In&=Sr(tt.constraint,Et.constraint,3,!1)))return In;if(!(Fi&524288))return 0}else if(Fi&3145728||Oo&3145728){if(In=wd(tt,Et,rn,Xn))return In;if(!(Fi&465829888||Fi&524288&&Oo&1048576||Fi&2097152&&Oo&467402752))return 0}if(Fi&17301504&&tt.aliasSymbol&&tt.aliasTypeArguments&&tt.aliasSymbol===Et.aliasSymbol&&!(yee(tt)||yee(Et))){const Ei=f4e(tt.aliasSymbol);if(Ei===et)return 1;const Lo=Xi(tt.aliasSymbol).typeParameters,Da=Uh(Lo),ws=Bb(tt.aliasTypeArguments,Lo,Da,sr(tt.aliasSymbol.valueDeclaration)),_s=Bb(Et.aliasTypeArguments,Lo,Da,sr(tt.aliasSymbol.valueDeclaration)),Lc=_a(ws,_s,Ei,Xn);if(Lc!==void 0)return Lc}if(S4e(tt)&&!tt.target.readonly&&(In=Sr(Js(tt)[0],Et,1))||S4e(Et)&&(Et.target.readonly||G9(Gu(tt)||tt))&&(In=Sr(tt,Js(Et)[0],2)))return In;if(Oo&262144){if(Wr(tt)&32&&!tt.declaration.nameType&&Sr(eh(Et),Ef(tt),3)&&!(jh(tt)&4)){const Ei=_v(tt),Lo=Lp(Et,__(tt));if(In=Sr(Ei,Lo,3,rn))return In}if(c===Np&&Fi&262144){let Ei=Ld(tt);if(Ei)for(;Ei&&qm(Ei,Lo=>!!(Lo.flags&262144));){if(In=Sr(Ei,Et,1,!1))return In;Ei=Ld(Ei)}return 0}}else if(Oo&4194304){const Ei=Et.type;if(Fi&4194304&&(In=Sr(Ei,tt.type,3,!1)))return In;if(ja(Ei)){if(In=Sr(tt,b6e(Ei),2,rn))return In}else{const Lo=Cge(Ei);if(Lo){if(Sr(tt,eh(Lo,Et.indexFlags|4),2,rn)===-1)return-1}else if(Kd(Ei)){const Da=_y(Ei),ws=Ef(Ei);let _s;if(Da&&AC(Ei)){const Lc=Vr(Da,Ei);_s=Zr([Lc,Da])}else _s=Da||ws;if(Sr(tt,_s,2,rn)===-1)return-1}}}else if(Oo&8388608){if(Fi&8388608){if((In=Sr(tt.objectType,Et.objectType,3,rn))&&(In&=Sr(tt.indexType,Et.indexType,3,rn)),In)return In;rn&&(yr=z)}if(c===qd||c===Np){const Ei=Et.objectType,Lo=Et.indexType,Da=Gu(Ei)||Ei,ws=Gu(Lo)||Lo;if(!$T(Da)&&!QT(ws)){const _s=4|(Da!==Ei?2:0),Lc=Vb(Da,ws,_s);if(Lc){if(rn&&yr&&tr(Dr),In=Sr(tt,Lc,2,rn,void 0,Xn))return In;rn&&yr&&z&&(z=ma([yr])<=ma([z])?yr:z)}}}rn&&(yr=void 0)}else if(Kd(Et)&&c!==sp){const Ei=!!Et.declaration.nameType,Lo=_v(Et),Da=jh(Et);if(!(Da&8)){if(!Ei&&Lo.flags&8388608&&Lo.objectType===tt&&Lo.indexType===__(Et))return-1;if(!Kd(tt)){const ws=Ei?_y(Et):Ef(Et),_s=eh(tt,2),Lc=Da&4,Xh=Lc?v9(ws,_s):void 0;if(Lc?!(Xh.flags&131072):Sr(ws,_s,3)){const Iv=_v(Et),pA=__(Et),fA=nM(Iv,-98305);if(!Ei&&fA.flags&8388608&&fA.indexType===pA){if(In=Sr(tt,fA.objectType,2,rn))return In}else{const hM=Ei?Xh||ws:Xh?Ea([Xh,pA]):pA,S_=Lp(tt,hM);if(In=Sr(S_,Iv,3,rn))return In}}yr=z,tr(Dr)}}}else if(Oo&16777216){if(X2(Et,Ge,cn,10))return 3;const Ei=Et;if(!Ei.root.inferTypeParameters&&!Xut(Ei.root)&&!(tt.flags&16777216&&tt.root===Ei.root)){const Lo=!Sa(F8(Ei.checkType),F8(Ei.extendsType)),Da=!Lo&&Sa(eA(Ei.checkType),eA(Ei.extendsType));if((In=Lo?-1:Sr(tt,_E(Ei),2,!1,void 0,Xn))&&(In&=Da?-1:Sr(tt,hE(Ei),2,!1,void 0,Xn),In))return In}}else if(Oo&134217728){if(Fi&134217728){if(c===Np)return Spt(tt,Et)?0:-1;co(tt,pu)}if(Oee(tt,Et))return-1}else if(Et.flags&268435456&&!(tt.flags&268435456)&&wee(tt,Et))return-1;if(Fi&8650752){if(!(Fi&8388608&&Oo&8388608)){const Ei=HT(tt)||dn;if(In=Sr(Ei,Et,1,!1,void 0,Xn))return In;if(In=Sr(Kp(Ei,tt),Et,1,rn&&Ei!==dn&&!(Oo&Fi&262144),void 0,Xn))return In;if(Lge(tt)){const Lo=HT(tt.indexType);if(Lo&&(In=Sr(Lp(tt.objectType,Lo),Et,1,rn)))return In}}}else if(Fi&4194304){const Ei=fve(tt.type,tt.indexFlags)&&Wr(tt.type)&32;if(In=Sr(va,Et,1,rn&&!Ei))return In;if(Ei){const Lo=tt.type,Da=_y(Lo),ws=Da&&AC(Lo)?Vr(Da,Lo):Da||Ef(Lo);if(In=Sr(ws,Et,1,rn))return In}}else if(Fi&134217728&&!(Oo&524288)){if(!(Oo&134217728)){const Ei=Gu(tt);if(Ei&&Ei!==tt&&(In=Sr(Ei,Et,1,rn)))return In}}else if(Fi&268435456)if(Oo&268435456){if(tt.symbol!==Et.symbol)return 0;if(In=Sr(tt.type,Et.type,3,rn))return In}else{const Ei=Gu(tt);if(Ei&&(In=Sr(Ei,Et,1,rn)))return In}else if(Fi&16777216){if(X2(tt,ve,xt,10))return 3;if(Oo&16777216){const Da=tt.root.inferTypeParameters;let ws=tt.extendsType,_s;if(Da){const Lc=q8(Da,void 0,0,lo);Tv(Lc.inferences,Et.extendsType,ws,1536),ws=co(ws,Lc.mapper),_s=Lc.mapper}if(yv(ws,Et.extendsType)&&(Sr(tt.checkType,Et.checkType,3)||Sr(Et.checkType,tt.checkType,3))&&((In=Sr(co(_E(tt),_s),_E(Et),3,rn))&&(In&=Sr(hE(tt),hE(Et),3,rn)),In))return In}const Ei=Nge(tt);if(Ei&&(In=Sr(Ei,Et,1,rn)))return In;const Lo=!(Oo&16777216)&&E9(tt)?L8e(tt):void 0;if(Lo&&(tr(Dr),In=Sr(Lo,Et,1,rn)))return In}else{if(c!==kh&&c!==Bf&&act(Et)&&bv(tt))return-1;if(Kd(Et))return Kd(tt)&&(In=ft(tt,Et,rn))?In:0;const Ei=!!(Fi&402784252);if(c!==sp)tt=kd(tt),Fi=tt.flags;else if(Kd(tt))return 0;if(Wr(tt)&4&&Wr(Et)&4&&tt.target===Et.target&&!ja(tt)&&!(yee(tt)||yee(Et))){if(Aee(tt))return-1;const Lo=kve(tt.target);if(Lo===et)return 1;const Da=_a(Js(tt),Js(Et),Lo,Xn);if(Da!==void 0)return Da}else{if(Y2(Et)?pp(tt,vE):Yf(Et)&&pp(tt,Lo=>ja(Lo)&&!Lo.target.readonly))return c!==sp?Sr(fE(tt,Tt)||j,fE(Et,Tt)||j,3,rn):0;if(Jb(tt)&&ja(Et)&&!Jb(Et)){const Lo=hv(tt);if(Lo!==tt)return Sr(Lo,Et,1,rn)}else if((c===kh||c===Bf)&&bv(Et)&&Wr(Et)&8192&&!bv(tt))return 0}if(Fi&2621440&&Oo&524288){const Lo=rn&&z===Dr.errorInfo&&!Ei;if(In=Li(tt,Et,Lo,void 0,!1,Xn),In&&(In&=na(tt,Et,0,Lo,Xn),In&&(In&=na(tt,Et,1,Lo,Xn),In&&(In&=Ls(tt,Et,Ei,Lo,Xn)))),jr&&In)z=yr||z||Dr.errorInfo;else if(In)return In}if(Fi&2621440&&Oo&1048576){const Lo=nM(Et,36175872);if(Lo.flags&1048576){const Da=wt(tt,Lo);if(Da)return Da}}}return 0;function ma(Ei){return Ei?od(Ei,(Lo,Da)=>Lo+1+ma(Da.next),0):0}function _a(Ei,Lo,Da,ws){if(In=di(Ei,Lo,Da,rn,ws))return In;if(St(Da,Lc=>!!(Lc&24))){yr=void 0,tr(Dr);return}const _s=Lo&&Wdt(Lo,Da);if(jr=!_s,Da!==et&&!_s){if(jr&&!(rn&&St(Da,Lc=>(Lc&7)===0)))return 0;yr=z,tr(Dr)}}}function ft(tt,Et,rn){if(c===Np||(c===sp?jh(tt)===jh(Et):Dge(tt)<=Dge(Et))){let Dr;const In=Ef(Et),yr=co(Ef(tt),Dge(tt)<0?Rs:pu);if(Dr=Sr(In,yr,3,rn)){const jr=kp([__(tt)],[__(Et)]);if(co(_y(tt),jr)===co(_y(Et),jr))return Dr&Sr(co(_v(tt),jr),_v(Et),3,rn)}}return 0}function wt(tt,Et){var rn;const Xn=bs(tt),Dr=B4e(Xn,Et);if(!Dr)return 0;let In=1;for(const _a of Dr)if(In*=Ypt(Ob(_a)),In>25)return(rn=ar)==null||rn.instant(ar.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:tt.id,targetId:Et.id,numCombinations:In}),0;const yr=new Array(Dr.length),jr=new Set;for(let _a=0;_a<Dr.length;_a++){const Ei=Dr[_a],Lo=Ob(Ei);yr[_a]=Lo.flags&1048576?Lo.types:[Lo],jr.add(Ei.escapedName)}const Fi=jne(yr),Oo=[];for(const _a of Fi){let Ei=!1;e:for(const Lo of Et.types){for(let Da=0;Da<Dr.length;Da++){const ws=Dr[Da],_s=ba(Lo,ws.escapedName);if(!_s)continue e;if(ws===_s)continue;if(!_n(tt,Et,ws,_s,Xh=>_a[Da],!1,0,Y||c===Np))continue e}Tf(Oo,Lo,Lv),Ei=!0}if(!Ei)return 0}let ma=-1;for(const _a of Oo)if(ma&=Li(tt,_a,!1,jr,!1,0),ma&&(ma&=na(tt,_a,0,!1,0),ma&&(ma&=na(tt,_a,1,!1,0),ma&&!(ja(tt)&&ja(_a))&&(ma&=Ls(tt,_a,!1,!1,0)))),!ma)return ma;return ma}function un(tt,Et){if(!Et||tt.length===0)return tt;let rn;for(let Xn=0;Xn<tt.length;Xn++)Et.has(tt[Xn].escapedName)?rn||(rn=tt.slice(0,Xn)):rn&&rn.push(tt[Xn]);return rn||tt}function Ht(tt,Et,rn,Xn,Dr){const In=Y&&!!(xl(Et)&48),yr=up(Ob(Et),!1,In),jr=rn(tt);return Sr(jr,yr,3,Xn,void 0,Dr)}function _n(tt,Et,rn,Xn,Dr,In,yr,jr){const Fi=Df(rn),Oo=Df(Xn);if(Fi&2||Oo&2){if(rn.valueDeclaration!==Xn.valueDeclaration)return In&&(Fi&2&&Oo&2?vo(m.Types_have_separate_declarations_of_a_private_property_0,Si(Xn)):vo(m.Property_0_is_private_in_type_1_but_not_in_type_2,Si(Xn),Un(Fi&2?tt:Et),Un(Fi&2?Et:tt))),0}else if(Oo&4){if(!Vdt(rn,Xn))return In&&vo(m.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Si(Xn),Un(Tx(rn)||tt),Un(Tx(Xn)||Et)),0}else if(Fi&4)return In&&vo(m.Property_0_is_protected_in_type_1_but_public_in_type_2,Si(Xn),Un(tt),Un(Et)),0;if(c===Bf&&E_(rn)&&!E_(Xn))return 0;const ma=Ht(rn,Xn,Dr,In,yr);return ma?!jr&&rn.flags&16777216&&Xn.flags&106500&&!(Xn.flags&16777216)?(In&&vo(m.Property_0_is_optional_in_type_1_but_required_in_type_2,Si(Xn),Un(tt),Un(Et)),0):ma:(In&&_o(m.Types_of_property_0_are_incompatible,Si(Xn)),0)}function Ln(tt,Et,rn,Xn){let Dr=!1;if(rn.valueDeclaration&&ld(rn.valueDeclaration)&&Ji(rn.valueDeclaration.name)&&tt.symbol&&tt.symbol.flags&32){const yr=rn.valueDeclaration.name.escapedText,jr=sk(tt.symbol,yr);if(jr&&ba(tt,jr)){const Fi=w.getDeclarationName(tt.symbol.valueDeclaration),Oo=w.getDeclarationName(Et.symbol.valueDeclaration);vo(m.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Fm(yr),Fm(Fi.escapedText===""?KF:Fi),Fm(Oo.escapedText===""?KF:Oo));return}}const In=Wo(Yve(tt,Et,Xn,!1));if((!_||_.code!==m.Class_0_incorrectly_implements_interface_1.code&&_.code!==m.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(Dr=!0),In.length===1){const yr=Si(rn,void 0,0,20);vo(m.Property_0_is_missing_in_type_1_but_required_in_type_2,yr,...fx(tt,Et)),Le(rn.declarations)&&$f(Or(rn.declarations[0],m._0_is_declared_here,yr)),Dr&&z&&Wn++}else Zn(tt,Et,!1)&&(In.length>5?vo(m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Un(tt),Un(Et),Ot(In.slice(0,4),yr=>Si(yr)).join(", "),In.length-4):vo(m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Un(tt),Un(Et),Ot(In,yr=>Si(yr)).join(", ")),Dr&&z&&Wn++)}function Li(tt,Et,rn,Xn,Dr,In){if(c===sp)return _i(tt,Et,Xn);let yr=-1;if(ja(Et)){if(vE(tt)){if(!Et.target.readonly&&(Y2(tt)||ja(tt)&&tt.target.readonly))return 0;const _a=gy(tt),Ei=gy(Et),Lo=ja(tt)?tt.target.combinedFlags&4:4,Da=Et.target.combinedFlags&4,ws=ja(tt)?tt.target.minLength:0,_s=Et.target.minLength;if(!Lo&&_a<_s)return rn&&vo(m.Source_has_0_element_s_but_target_requires_1,_a,_s),0;if(!Da&&Ei<ws)return rn&&vo(m.Source_has_0_element_s_but_target_allows_only_1,ws,Ei),0;if(!Da&&(Lo||Ei<_a))return rn&&(ws<_s?vo(m.Target_requires_0_element_s_but_source_may_have_fewer,_s):vo(m.Target_allows_only_0_element_s_but_source_may_have_more,Ei)),0;const Lc=Js(tt),Xh=Js(Et),Iv=_ut(Et.target,11),pA=L8(Et.target,11),fA=Et.target.hasRestElement;let hM=!!Xn;for(let S_=0;S_<_a;S_++){const Dx=ja(tt)?tt.target.elementFlags[S_]:4,Km=_a-1-S_,Mt=fA&&S_>=Iv?Ei-1-Math.min(Km,pA):S_,Cr=Et.target.elementFlags[Mt];if(Cr&8&&!(Dx&8))return rn&&vo(m.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Mt),0;if(Dx&8&&!(Cr&12))return rn&&vo(m.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,S_,Mt),0;if(Cr&1&&!(Dx&1))return rn&&vo(m.Source_provides_no_match_for_required_element_at_position_0_in_target,Mt),0;if(hM&&((Dx&12||Cr&12)&&(hM=!1),hM&&(Xn!=null&&Xn.has(""+S_))))continue;const pi=Xb(Lc[S_],!!(Dx&Cr&2)),Jr=Xh[Mt],li=Dx&8&&Cr&4?Vu(Jr):Xb(Jr,!!(Cr&2)),as=Sr(pi,li,3,rn,void 0,In);if(!as)return rn&&(Ei>1||_a>1)&&(fA&&S_>=Iv&&Km>=pA&&Iv!==_a-pA-1?_o(m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Iv,_a-pA-1,Mt):_o(m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,S_,Mt)),0;yr&=as}return yr}if(Et.target.combinedFlags&12)return 0}const jr=(c===kh||c===Bf)&&!EE(tt)&&!Aee(tt)&&!ja(tt),Fi=$ve(tt,Et,jr,!1);if(Fi)return rn&&kn(tt,Et)&&Ln(tt,Et,Fi,jr),0;if(EE(Et)){for(const _a of un(bs(tt),Xn))if(!pE(Et,_a.escapedName)&&!(dr(_a).flags&32768))return rn&&vo(m.Property_0_does_not_exist_on_type_1,Si(_a),Un(Et)),0}const Oo=bs(Et),ma=ja(tt)&&ja(Et);for(const _a of un(Oo,Xn)){const Ei=_a.escapedName;if(!(_a.flags&4194304)&&(!ma||pg(Ei)||Ei==="length")&&(!Dr||_a.flags&16777216)){const Lo=ba(tt,Ei);if(Lo&&Lo!==_a){const Da=_n(tt,Et,Lo,_a,Ob,rn,In,c===Np);if(!Da)return 0;yr&=Da}}}return yr}function _i(tt,Et,rn){if(!(tt.flags&524288&&Et.flags&524288))return 0;const Xn=un(zb(tt),rn),Dr=un(zb(Et),rn);if(Xn.length!==Dr.length)return 0;let In=-1;for(const yr of Xn){const jr=pE(Et,yr.escapedName);if(!jr)return 0;const Fi=Ove(yr,jr,Sr);if(!Fi)return 0;In&=Fi}return In}function na(tt,Et,rn,Xn,Dr){var In,yr;if(c===sp)return $o(tt,Et,rn);if(Et===an||tt===an)return-1;const jr=tt.symbol&&ih(tt.symbol.valueDeclaration),Fi=Et.symbol&&ih(Et.symbol.valueDeclaration),Oo=Ko(tt,jr&&rn===1?0:rn),ma=Ko(Et,Fi&&rn===1?0:rn);if(rn===1&&Oo.length&&ma.length){const ws=!!(Oo[0].flags&4),_s=!!(ma[0].flags&4);if(ws&&!_s)return Xn&&vo(m.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Qf(Oo[0],ma[0],Xn))return 0}let _a=-1;const Ei=rn===1?Ai:ci,Lo=Wr(tt),Da=Wr(Et);if(Lo&64&&Da&64&&tt.symbol===Et.symbol||Lo&4&&Da&4&&tt.target===Et.target){C.assertEqual(Oo.length,ma.length);for(let ws=0;ws<ma.length;ws++){const _s=Qi(Oo[ws],ma[ws],!0,Xn,Dr,Ei(Oo[ws],ma[ws]));if(!_s)return 0;_a&=_s}}else if(Oo.length===1&&ma.length===1){const ws=c===Np||!!V.noStrictGenericChecks,_s=Xa(Oo),Lc=Xa(ma);if(_a=Qi(_s,Lc,ws,Xn,Dr,Ei(_s,Lc)),!_a&&Xn&&rn===1&&Lo&Da&&(((In=Lc.declaration)==null?void 0:In.kind)===176||((yr=_s.declaration)==null?void 0:yr.kind)===176)){const Xh=Iv=>zh(Iv,void 0,262144,rn);return vo(m.Type_0_is_not_assignable_to_type_1,Xh(_s),Xh(Lc)),vo(m.Types_of_construct_signatures_are_incompatible),_a}}else e:for(const ws of ma){const _s=mo();let Lc=Xn;for(const Xh of Oo){const Iv=Qi(Xh,ws,!0,Lc,Dr,Ei(Xh,ws));if(Iv){_a&=Iv,tr(_s);continue e}Lc=!1}return Lc&&vo(m.Type_0_provides_no_match_for_the_signature_1,Un(tt),zh(ws,void 0,void 0,rn)),0}return _a}function kn(tt,Et){const rn=T9(tt,0),Xn=T9(tt,1),Dr=zb(tt);return(rn.length||Xn.length)&&!Dr.length?!!(Ko(Et,0).length&&rn.length||Ko(Et,1).length&&Xn.length):!0}function ci(tt,Et){return tt.parameters.length===0&&Et.parameters.length===0?(rn,Xn)=>_o(m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Un(rn),Un(Xn)):(rn,Xn)=>_o(m.Call_signature_return_types_0_and_1_are_incompatible,Un(rn),Un(Xn))}function Ai(tt,Et){return tt.parameters.length===0&&Et.parameters.length===0?(rn,Xn)=>_o(m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Un(rn),Un(Xn)):(rn,Xn)=>_o(m.Construct_signature_return_types_0_and_1_are_incompatible,Un(rn),Un(Xn))}function Qi(tt,Et,rn,Xn,Dr,In){const yr=c===kh?16:c===Bf?24:0;return Cve(rn?P8(tt):tt,rn?P8(Et):Et,yr,Xn,vo,In,jr,pu);function jr(Fi,Oo,ma){return Sr(Fi,Oo,3,ma,void 0,Dr)}}function $o(tt,Et,rn){const Xn=Ko(tt,rn),Dr=Ko(Et,rn);if(Xn.length!==Dr.length)return 0;let In=-1;for(let yr=0;yr<Xn.length;yr++){const jr=B9(Xn[yr],Dr[yr],!1,!1,!1,Sr);if(!jr)return 0;In&=jr}return In}function Tl(tt,Et,rn,Xn){let Dr=-1;const In=Et.keyType,yr=tt.flags&2097152?b9(tt):zb(tt);for(const jr of yr)if(!c4e(tt,jr)&&gx(CC(jr,8576),In)){const Fi=Ob(jr),Oo=Me||Fi.flags&32768||In===Tt||!(jr.flags&16777216)?Fi:bm(Fi,524288),ma=Sr(Oo,Et.type,3,rn,void 0,Xn);if(!ma)return rn&&vo(m.Property_0_is_incompatible_with_index_signature,Si(jr)),0;Dr&=ma}for(const jr of vd(tt))if(gx(jr.keyType,In)){const Fi=pl(jr,Et,rn,Xn);if(!Fi)return 0;Dr&=Fi}return Dr}function pl(tt,Et,rn,Xn){const Dr=Sr(tt.type,Et.type,3,rn,void 0,Xn);return!Dr&&rn&&(tt.keyType===Et.keyType?vo(m._0_index_signatures_are_incompatible,Un(tt.keyType)):vo(m._0_and_1_index_signatures_are_incompatible,Un(tt.keyType),Un(Et.keyType))),Dr}function Ls(tt,Et,rn,Xn,Dr){if(c===sp)return ks(tt,Et);const In=vd(Et),yr=St(In,Fi=>Fi.keyType===ke);let jr=-1;for(const Fi of In){const Oo=c!==Bf&&!rn&&yr&&Fi.type.flags&1?-1:Kd(tt)&&yr?Sr(_v(tt),Fi.type,3,Xn):Yc(tt,Fi,Xn,Dr);if(!Oo)return 0;jr&=Oo}return jr}function Yc(tt,Et,rn,Xn){const Dr=D8(tt,Et.keyType);return Dr?pl(Dr,Et,rn,Xn):!(Xn&1)&&(c!==Bf||Wr(tt)&8192)&&Nee(tt)?Tl(tt,Et,rn,Xn):(rn&&vo(m.Index_signature_for_type_0_is_missing_in_type_1,Un(Et.keyType),Un(tt)),0)}function ks(tt,Et){const rn=vd(tt),Xn=vd(Et);if(rn.length!==Xn.length)return 0;for(const Dr of Xn){const In=Cg(tt,Dr.keyType);if(!(In&&Sr(In.type,Dr.type,3)&&In.isReadonly===Dr.isReadonly))return 0}return-1}function Qf(tt,Et,rn){if(!tt.declaration||!Et.declaration)return!0;const Xn=jA(tt.declaration,6),Dr=jA(Et.declaration,6);return Dr===2||Dr===4&&Xn!==2||Dr!==4&&!Xn?!0:(rn&&vo(m.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,GT(Xn),GT(Dr)),!1)}}function Mve(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!He(n.types,Mve);if(n.flags&465829888){const a=HT(n);if(a&&a!==n)return Mve(a)}return y_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function u4e(n,a){return ja(n)&&ja(a)?et:bs(a).filter(c=>vee(Ke(n,c.escapedName),dr(c)))}function vee(n,a){return!!n&&!!a&&Pl(n,32768)&&!!U8(a)}function wdt(n){return bs(n).filter(a=>U8(dr(a)))}function d4e(n,a,c=Rve){return C7e(n,a,c)||Vbt(n,a)||jbt(n,a)||Ubt(n,a)||Hbt(n,a)}function Lve(n,a,c){const d=n.types,_=d.map(x=>x.flags&402784252?0:-1);for(const[x,k]of a){let z=!1;for(let J=0;J<d.length;J++)if(_[J]){const ne=Rt(d[J],k);ne&&c(x(),ne)?z=!0:_[J]=3}for(let J=0;J<d.length;J++)_[J]===3&&(_[J]=z?0:-1)}const y=Nr(_,0)?Zr(d.filter((x,k)=>_[k]),0):n;return y.flags&131072?n:y}function p4e(n){if(n.flags&524288){const a=h_(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Yn(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?Yn(n.types,p4e):!1}function Odt(n,a,c){for(const d of bs(n))if(Nye(a,d.escapedName,c))return!0;return!1}function kve(n){return n===Xo||n===ea||n.objectFlags&8?ee:m4e(n.symbol,n.typeParameters)}function f4e(n){return m4e(n,Xi(n).typeParameters)}function m4e(n,a=et){var c,d;const _=Xi(n);if(!_.variances){(c=ar)==null||c.push(ar.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:yd(Zs(n))});const y=q0;q0||(q0=!0,JI=_u.length),_.variances=et;const x=[];for(const k of a){const z=wve(k);let J=z&16384?z&8192?0:1:z&8192?2:void 0;if(J===void 0){let ne=!1,Se=!1;const ve=ca;ca=xt=>xt?Se=!0:ne=!0;const Ge=F9(n,k,Rp),vt=F9(n,k,Ws);J=(Sa(vt,Ge)?1:0)|(Sa(Ge,vt)?2:0),J===3&&Sa(F9(n,k,Cc),Ge)&&(J=4),ca=ve,(ne||Se)&&(ne&&(J|=8),Se&&(J|=16))}x.push(J)}y||(q0=!1,JI=0),_.variances=x,(d=ar)==null||d.pop({variances:x.map(C.formatVariance)})}return _.variances}function F9(n,a,c){const d=Y1(a,c),_=Zs(n);if(Kt(_))return _;const y=n.flags&524288?RC(n,yy(Xi(n).typeParameters,d)):hy(_,yy(_.typeParameters,d));return mt.add(yd(y)),y}function yee(n){return mt.has(yd(n))}function wve(n){var a;return od((a=n.symbol)==null?void 0:a.declarations,(c,d)=>c|pd(d),0)&28672}function Wdt(n,a){for(let c=0;c<a.length;c++)if((a[c]&7)===1&&n[c].flags&16384)return!0;return!1}function Fdt(n){return n.flags&262144&&!Ld(n)}function zdt(n){return!!(Wr(n)&4)&&!n.node}function bee(n){return zdt(n)&&St(Js(n),a=>!!(a.flags&262144)||bee(a))}function Bdt(n,a,c,d){const _=[];let y="";const x=z(n,0),k=z(a,0);return"".concat(y).concat(x,",").concat(k).concat(c);function z(J,ne=0){let Se=""+J.target.id;for(const ve of Js(J)){if(ve.flags&262144){if(d||Fdt(ve)){let Ge=_.indexOf(ve);Ge<0&&(Ge=_.length,_.push(ve)),Se+="="+Ge;continue}y="*"}else if(ne<4&&bee(ve)){Se+="<"+z(ve,ne+1)+">";continue}Se+="-"+ve.id}return Se}}function Eee(n,a,c,d,_){if(d===sp&&n.id>a.id){const x=n;n=a,a=x}const y=c?":"+c:"";return bee(n)&&bee(a)?Bdt(n,a,y,_):"".concat(n.id,",").concat(a.id).concat(y)}function z9(n,a){if(xl(n)&6){for(const c of n.links.containingType.types){const d=ba(c,n.escapedName),_=d&&z9(d,a);if(_)return _}return}return a(n)}function Tx(n){return n.parent&&n.parent.flags&32?Zs(Pd(n)):void 0}function See(n){const a=Tx(n),c=a&&dp(a)[0];return c&&Ke(c,n.escapedName)}function Gdt(n,a){return z9(n,c=>{const d=Tx(c);return d?SC(d,a):!1})}function Vdt(n,a){return!z9(a,c=>Df(c)&4?!Gdt(n,Tx(c)):!1)}function _4e(n,a,c){return z9(a,d=>Df(d,c)&4?!SC(n,Tx(d)):!1)?void 0:n}function X2(n,a,c,d=3){if(c>=d){if((Wr(n)&96)===96&&(n=h4e(n)),n.flags&2097152)return St(n.types,k=>X2(k,a,c,d));const _=Tee(n);let y=0,x=0;for(let k=0;k<c;k++){const z=a[k];if(g4e(z,_)){if(z.id>=x&&(y++,y>=d))return!0;x=z.id}}}return!1}function h4e(n){let a;for(;(Wr(n)&96)===96&&(a=UT(n))&&(a.symbol||a.flags&2097152&&St(a.types,c=>!!c.symbol));)n=a;return n}function g4e(n,a){return(Wr(n)&96)===96&&(n=h4e(n)),n.flags&2097152?St(n.types,c=>g4e(c,a)):Tee(n)===a}function Tee(n){if(n.flags&524288&&!Zve(n)){if(Wr(n)&4&&n.node)return n.node;if(n.symbol&&!(Wr(n)&16&&n.symbol.flags&32))return n.symbol;if(ja(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function jdt(n,a){return Ove(n,a,z8)!==0}function Ove(n,a,c){if(n===a)return-1;const d=Df(n)&6,_=Df(a)&6;if(d!==_)return 0;if(d){if(GC(n)!==GC(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return E_(n)!==E_(a)?0:c(dr(n),dr(a))}function Udt(n,a,c){const d=Yp(n),_=Yp(a),y=oh(n),x=oh(a),k=Kh(n),z=Kh(a);return!!(d===_&&y===x&&k===z||c&&y<=x)}function B9(n,a,c,d,_,y){if(n===a)return-1;if(!Udt(n,a,c)||Le(n.typeParameters)!==Le(a.typeParameters))return 0;if(a.typeParameters){const z=kp(n.typeParameters,a.typeParameters);for(let J=0;J<a.typeParameters.length;J++){const ne=n.typeParameters[J],Se=a.typeParameters[J];if(!(ne===Se||y(co(U2(ne),z)||dn,U2(Se)||dn)&&y(co(JT(ne),z)||dn,JT(Se)||dn)))return 0}n=MC(n,z,!0)}let x=-1;if(!d){const z=mE(n);if(z){const J=mE(a);if(J){const ne=y(z,J);if(!ne)return 0;x&=ne}}}const k=Yp(a);for(let z=0;z<k;z++){const J=b_(n,z),ne=b_(a,z),Se=y(ne,J);if(!Se)return 0;x&=Se}if(!_){const z=Jf(n),J=Jf(a);x&=z||J?Hdt(z,J,y):y(ms(n),ms(a))}return x}function Hdt(n,a,c){return n&&a&&uve(n,a)?n.type===a.type?-1:n.type&&a.type?c(n.type,a.type):0:0}function qdt(n){let a;for(const c of n)if(!(c.flags&131072)){const d=Ev(c);if(a!=null||(a=d),d===c||d!==a)return!1}return!0}function v4e(n){return od(n,(a,c)=>a|(c.flags&1048576?v4e(c.types):c.flags),0)}function Jdt(n){if(n.length===1)return n[0];const a=Y?no(n,d=>_c(d,_=>!(_.flags&98304))):n,c=qdt(a)?Zr(a):od(a,(d,_)=>Hb(d,_)?_:d);return a===n?c:j9(c,v4e(n)&98304)}function Kdt(n){return od(n,(a,c)=>Hb(c,a)?c:a)}function Yf(n){return!!(Wr(n)&4)&&(n.target===Xo||n.target===ea)}function Y2(n){return!!(Wr(n)&4)&&n.target===ea}function vE(n){return Yf(n)||ja(n)}function G9(n){return Yf(n)&&!Y2(n)||ja(n)&&!n.target.readonly}function V9(n){return Yf(n)?Js(n)[0]:void 0}function by(n){return Yf(n)||!(n.flags&98304)&&Sa(n,ff)}function Wve(n){return G9(n)||!(n.flags&98305)&&Sa(n,ic)}function Fve(n){if(!(Wr(n)&4)||!(Wr(n.target)&3))return;if(Wr(n)&33554432)return Wr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(Wr(a)&1){const _=Ds(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}const c=dp(a);if(c.length!==1||Fb(n.symbol).size)return;let d=Le(a.typeParameters)?co(c[0],kp(a.typeParameters,Js(n).slice(0,a.typeParameters.length))):c[0];return Le(Js(n))>Le(a.typeParameters)&&(d=Kp(d,es(Js(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=d}function y4e(n){return Y?n===wi:n===Lt}function Aee(n){const a=V9(n);return!!a&&y4e(a)}function $2(n){let a;return ja(n)||!!ba(n,"0")||by(n)&&!!(a=Ke(n,"length"))&&pp(a,c=>!!(c.flags&256))}function Iee(n){return by(n)||$2(n)}function Xdt(n,a){const c=Ke(n,""+a);if(c)return c;if(pp(n,ja))return T4e(n,a,V.noUncheckedIndexedAccess?We:void 0)}function Ydt(n){return!(n.flags&240544)}function y_(n){return!!(n.flags&109472)}function b4e(n){const a=hv(n);return a.flags&2097152?St(a.types,y_):y_(a)}function $dt(n){return n.flags&2097152&&Tn(n.types,y_)||n}function V8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Yn(n.types,y_):y_(n)}function Ev(n){return n.flags&1056?HZ(n):n.flags&402653312?ke:n.flags&256?Tt:n.flags&2048?kt:n.flags&512?ai:n.flags&1048576?Qdt(n):n}function Qdt(n){var c;const a="B".concat(yd(n));return(c=ex(a))!=null?c:gb(a,dl(n,Ev))}function zve(n){return n.flags&402653312?ke:n.flags&288?Tt:n.flags&2048?kt:n.flags&512?ai:n.flags&1048576?dl(n,zve):n}function Q1(n){return n.flags&1056&&X1(n)?HZ(n):n.flags&128&&X1(n)?ke:n.flags&256&&X1(n)?Tt:n.flags&2048&&X1(n)?kt:n.flags&512&&X1(n)?ai:n.flags&1048576?dl(n,Q1):n}function E4e(n){return n.flags&8192?si:n.flags&1048576?dl(n,E4e):n}function Bve(n,a){return _te(n,a)||(n=E4e(Q1(n))),bd(n)}function Zdt(n,a,c){if(n&&y_(n)){const d=a?c?i6(a):a:void 0;n=Bve(n,d)}return n}function Gve(n,a,c,d){if(n&&y_(n)){const _=a?rS(c,a,d):void 0;n=Bve(n,_)}return n}function ja(n){return!!(Wr(n)&4&&n.target.objectFlags&8)}function Jb(n){return ja(n)&&!!(n.target.combinedFlags&8)}function S4e(n){return Jb(n)&&n.target.elementFlags.length===1}function xee(n){return Q2(n,n.target.fixedLength)}function T4e(n,a,c){return dl(n,d=>{const _=d,y=xee(_);return y?c&&a>=lve(_.target)?Zr([y,c]):y:We})}function ept(n){const a=xee(n);return a&&Vu(a)}function Q2(n,a,c=0,d=!1,_=!1){const y=gy(n)-c;if(a<y){const x=Js(n),k=[];for(let z=a;z<y;z++){const J=x[z];k.push(n.target.elementFlags[z]&8?Lp(J,Tt):J)}return d?Ea(k):Zr(k,_?0:1)}}function tpt(n,a){return gy(n)===gy(a)&&Yn(n.target.elementFlags,(c,d)=>(c&12)===(a.target.elementFlags[d]&12))}function A4e({value:n}){return n.base10Value==="0"}function I4e(n){return _c(n,a=>ym(a,4194304))}function npt(n){return dl(n,rpt)}function rpt(n){return n.flags&4?Yo:n.flags&8?Qa:n.flags&64?Zu:n===En||n===nn||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&A4e(n)?n:Hr}function j9(n,a){const c=a&~n.flags&98304;return c===0?n:Zr(c===32768?[n,We]:c===65536?[n,fe]:[n,We,fe])}function Kb(n,a=!1){C.assert(Y);const c=a?me:We;return n===c||n.flags&1048576&&n.types[0]===c?n:Zr([n,c])}function ipt(n){return jd||(jd=q2("NonNullable",524288,void 0)||pt),jd!==pt?RC(jd,[n]):Ea([n,ka])}function Sv(n){return Y?iA(n,2097152):n}function x4e(n){return Y?Zr([n,q]):n}function Ree(n){return Y?zee(n,q):n}function Dee(n,a,c){return c?dN(a)?Kb(n):x4e(n):n}function j8(n,a){return I4(a)?Sv(n):qu(a)?Ree(n):n}function Xb(n,a){return Me&&a?zee(n,L):n}function U8(n){return n===L||!!(n.flags&1048576)&&n.types[0]===L}function Cee(n){return Me?zee(n,L):bm(n,524288)}function opt(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function Nee(n){const a=Wr(n);return n.flags&2097152?Yn(n.types,Nee):!!(n.symbol&&(n.symbol.flags&7040)!==0&&!(n.symbol.flags&32)&&!Pte(n))||!!(a&4194304)||!!(a&1024&&Nee(n.source))}function tA(n,a){const c=Za(n.flags,n.escapedName,xl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);const d=Xi(n).nameType;return d&&(c.links.nameType=d),c}function apt(n,a){const c=ua();for(const d of zb(n)){const _=dr(d),y=a(_);c.set(d.escapedName,y===_?d:tA(d,y))}return c}function H8(n){if(!(EE(n)&&Wr(n)&8192))return n;const a=n.regularType;if(a)return a;const c=n,d=apt(n,H8),_=Fs(c.symbol,d,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function R4e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function D4e(n){if(!n.siblings){const a=[];for(const c of D4e(n.parent))if(EE(c)){const d=pE(c,n.propertyName);d&&oA(dr(d),_=>{a.push(_)})}n.siblings=a}return n.siblings}function spt(n){if(!n.resolvedProperties){const a=new Map;for(const c of D4e(n))if(EE(c)&&!(Wr(c)&2097152))for(const d of bs(c))a.set(d.escapedName,d);n.resolvedProperties=Wo(a.values())}return n.resolvedProperties}function lpt(n,a){if(!(n.flags&4))return n;const c=dr(n),d=a&&R4e(a,n.escapedName,void 0),_=Vve(c,d);return _===c?n:tA(n,_)}function cpt(n){const a=Je.get(n.escapedName);if(a)return a;const c=tA(n,me);return c.flags|=16777216,Je.set(n.escapedName,c),c}function upt(n,a){const c=ua();for(const _ of zb(n))c.set(_.escapedName,lpt(_,a));if(a)for(const _ of spt(a))c.has(_.escapedName)||c.set(_.escapedName,cpt(_));const d=Fs(n.symbol,c,et,et,no(vd(n),_=>Hh(_.keyType,Xp(_.type),_.isReadonly)));return d.objectFlags|=Wr(n)&266240,d}function Xp(n){return Vve(n,void 0)}function Vve(n,a){if(Wr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=j;else if(EE(n))c=upt(n,a);else if(n.flags&1048576){const d=a||R4e(void 0,void 0,n.types),_=no(n.types,y=>y.flags&98304?y:Vve(y,d));c=Zr(_,St(_,bv)?2:1)}else n.flags&2097152?c=Ea(no(n.types,Xp)):vE(n)&&(c=hy(n.target,no(Js(n),Xp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function Pee(n){let a=!1;if(Wr(n)&65536){if(n.flags&1048576)if(St(n.types,bv))a=!0;else for(const c of n.types)Pee(c)&&(a=!0);if(vE(n))for(const c of Js(n))Pee(c)&&(a=!0);if(EE(n))for(const c of zb(n)){const d=dr(c);Wr(d)&65536&&(Pee(d)||Xe(c.valueDeclaration,m.Object_literal_s_property_0_implicitly_has_an_1_type,Si(c),Un(Xp(d))),a=!0)}}return a}function yE(n,a,c){const d=Un(Xp(a));if(sr(n)&&!Ak(jn(n),V))return;let _;switch(n.kind){case 226:case 172:case 171:_=de?m.Member_0_implicitly_has_an_1_type:m.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const y=n;if(je(y.name)){const x=p0(y.name);if((sI(y.parent)||Sh(y.parent)||Th(y.parent))&&y.parent.parameters.includes(y)&&(yl(y,y.name.escapedText,788968,void 0,y.name.escapedText,!0)||x&&MU(x))){const k="arg"+y.parent.parameters.indexOf(y),z=Ns(y.name)+(y.dotDotDotToken?"[]":"");hu(de,n,m.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,k,z);return}}_=n.dotDotDotToken?de?m.Rest_parameter_0_implicitly_has_an_any_type:m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:de?m.Parameter_0_implicitly_has_an_1_type:m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(_=m.Binding_element_0_implicitly_has_an_1_type,!de)return;break;case 324:Xe(n,m.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return;case 330:de&&eD(n.parent)&&Xe(n.parent.tagName,m.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,d);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(de&&!n.name){c===3?Xe(n,m.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,d):Xe(n,m.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return}_=de?c===3?m._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:m._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:de&&Xe(n,m.Mapped_object_type_implicitly_has_an_any_template_type);return;default:_=de?m.Variable_0_implicitly_has_an_1_type:m.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}hu(de,n,_,Ns(Po(n)),d)}function Mee(n,a,c){r(()=>{de&&Wr(a)&65536&&(!c||!Aye(n))&&(Pee(a)||yE(n,a,c))})}function jve(n,a,c){const d=Yp(n),_=Yp(a),y=Z8(n),x=Z8(a),k=x?_-1:_,z=y?k:Math.min(d,k),J=mE(n);if(J){const ne=mE(a);ne&&c(J,ne)}for(let ne=0;ne<z;ne++)c(b_(n,ne),b_(a,ne));x&&c(mB(n,z,qT(x)&&!qm(x,Wve)),x)}function Uve(n,a,c){const d=Jf(n),_=Jf(a);d&&_&&uve(d,_)&&d.type&&_.type?c(d.type,_.type):c(ms(n),ms(a))}function q8(n,a,c,d){return Hve(n.map(Jve),a,c,d||Rve)}function dpt(n,a=0){return n&&Hve(Ot(n.inferences,C4e),n.signature,n.flags|a,n.compareTypes)}function Hve(n,a,c,d){const _={inferences:n,signature:a,flags:c,compareTypes:d,mapper:Rs,nonFixingMapper:Rs};return _.mapper=ppt(_),_.nonFixingMapper=fpt(_),_}function ppt(n){return Sve(Ot(n.inferences,a=>a.typeParameter),Ot(n.inferences,(a,c)=>()=>(a.isFixed||(mpt(n),Lee(n.inferences),a.isFixed=!0),eye(n,c))))}function fpt(n){return Sve(Ot(n.inferences,a=>a.typeParameter),Ot(n.inferences,(a,c)=>()=>eye(n,c)))}function Lee(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function qve(n,a,c){var d;((d=n.intraExpressionInferenceSites)!=null?d:n.intraExpressionInferenceSites=[]).push({node:a,type:c})}function mpt(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:c}of n.intraExpressionInferenceSites){const d=a.kind===174?T3e(a,2):Yd(a,2);d&&Tv(n.inferences,c,d)}n.intraExpressionInferenceSites=void 0}}function Jve(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function C4e(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function _pt(n){const a=rr(n.inferences,zC);return a.length?Hve(Ot(a,C4e),n.signature,n.flags,n.compareTypes):void 0}function Kve(n){return n&&n.mapper}function bE(n){const a=Wr(n);if(a&524288)return!!(a&1048576);const c=!!(n.flags&465829888||n.flags&524288&&!N4e(n)&&(a&4&&(n.node||St(Js(n),bE))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!N4e(n)&&St(n.types,bE));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function N4e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=fl(n.aliasSymbol,265);return!!(a&&zn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function J8(n,a,c=0){return!!(n===a||n.flags&3145728&&St(n.types,d=>J8(d,a,c))||c<3&&n.flags&16777216&&(J8(_E(n),a,c+1)||J8(hE(n),a,c+1)))}function hpt(n,a){const c=Jf(n);return c?!!c.type&&J8(c.type,a):J8(ms(n),a)}function gpt(n){const a=ua();oA(n,d=>{if(!(d.flags&128))return;const _=hl(d.value),y=Za(4,_);y.links.type=j,d.symbol&&(y.declarations=d.symbol.declarations,y.valueDeclaration=d.symbol.valueDeclaration),a.set(_,y)});const c=n.flags&4?[Hh(ke,ka,!1)]:et;return Fs(void 0,a,et,et,c)}function P4e(n,a,c){const d=n.id+","+a.id+","+c.id;if(nc.has(d))return nc.get(d);const _=n.id+","+(a.target||a).id;if(Nr(op,_))return;op.push(_);const y=vpt(n,a,c);return op.pop(),nc.set(d,y),y}function Xve(n){return!(Wr(n)&262144)||EE(n)&&St(bs(n),a=>Xve(dr(a)))||ja(n)&&St(J1(n),Xve)}function vpt(n,a,c){if(!(Cg(n,ke)||bs(n).length!==0&&Xve(n)))return;if(Yf(n))return Vu(kee(Js(n)[0],a,c),Y2(n));if(ja(n)){const _=Ot(J1(n),x=>kee(x,a,c)),y=jh(a)&4?no(n.target.elementFlags,x=>x&2?1:x):n.target.elementFlags;return qh(_,y,n.target.readonly,n.target.labeledElementDeclarations)}const d=Vf(1040,void 0);return d.source=n,d.mappedType=a,d.constraintType=c,d}function ypt(n){const a=Xi(n);return a.type||(a.type=kee(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function kee(n,a,c){const d=Lp(c.type,__(a)),_=_v(a),y=Jve(d);return Tv([y],n,_),M4e(y)||dn}function*Yve(n,a,c,d){const _=bs(a);for(const y of _)if(!E8e(y)&&(c||!(y.flags&16777216||xl(y)&48))){const x=ba(n,y.escapedName);if(!x)yield y;else if(d){const k=dr(y);if(k.flags&109472){const z=dr(x);z.flags&1||bd(z)===bd(k)||(yield y)}}}}function $ve(n,a,c,d){return L6(Yve(n,a,c,d))}function bpt(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLength<n.target.fixedLength)}function Ept(n,a){return ja(n)&&ja(a)?bpt(n,a):!!$ve(n,a,!1,!0)&&!!$ve(a,n,!1,!1)}function M4e(n){return n.candidates?Zr(n.candidates,2):n.contraCandidates?Ea(n.contraCandidates):void 0}function Qve(n){return!!Qr(n).skipDirectInference}function L4e(n){return!!(n.symbol&&St(n.symbol.declarations,Qve))}function Spt(n,a){const c=n.texts[0],d=a.texts[0],_=n.texts[n.texts.length-1],y=a.texts[a.texts.length-1],x=Math.min(c.length,d.length),k=Math.min(_.length,y.length);return c.slice(0,x)!==d.slice(0,x)||_.slice(_.length-k)!==y.slice(y.length-k)}function k4e(n,a){if(n==="")return!1;const c=+n;return isFinite(c)&&(!a||""+c===n)}function Tpt(n){return uee(HU(n))}function wee(n,a){if(a.flags&1)return!0;if(a.flags&134217732)return Sa(n,a);if(a.flags&268435456){const c=[];for(;a.flags&268435456;)c.unshift(a.symbol),a=a.type;return od(c,(_,y)=>bx(y,_),n)===n&&wee(n,a)}return!1}function w4e(n,a){if(a.flags&2097152)return Yn(a.types,c=>c===pc||w4e(n,c));if(a.flags&4||Sa(n,a))return!0;if(n.flags&128){const c=n.value;return!!(a.flags&8&&k4e(c,!1)||a.flags&64&&rW(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&wee(Xd(c),a)||a.flags&134217728&&Oee(n,a))}if(n.flags&134217728){const c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&Sa(n.types[0],a)}return!1}function O4e(n,a){return n.flags&128?W4e([n.value],et,a):n.flags&134217728?Na(n.texts,a.texts)?Ot(n.types,Apt):W4e(n.texts,n.types,a):void 0}function Oee(n,a){const c=O4e(n,a);return!!c&&Yn(c,(d,_)=>w4e(d,a.types[_]))}function Apt(n){return n.flags&402653317?n:XT(["",""],[n])}function W4e(n,a,c){const d=n.length-1,_=n[0],y=n[d],x=c.texts,k=x.length-1,z=x[0],J=x[k];if(d===0&&_.length<z.length+J.length||!_.startsWith(z)||!y.endsWith(J))return;const ne=y.slice(0,y.length-J.length),Se=[];let ve=0,Ge=z.length;for(let cn=1;cn<k;cn++){const sn=x[cn];if(sn.length>0){let er=ve,Wn=Ge;for(;Wn=vt(er).indexOf(sn,Wn),!(Wn>=0);){if(er++,er===n.length)return;Wn=0}xt(er,Wn),Ge+=sn.length}else if(Ge<vt(ve).length)xt(ve,Ge+1);else if(ve<d)xt(ve+1,0);else return}return xt(d,vt(d).length),Se;function vt(cn){return cn<d?n[cn]:ne}function xt(cn,sn){const er=cn===ve?Xd(vt(cn).slice(Ge,sn)):XT([n[ve].slice(Ge),...n.slice(ve+1,cn),vt(cn).slice(0,sn)],a.slice(ve,cn));Se.push(er),ve=cn,Ge=sn}}function Tv(n,a,c,d=0,_=!1){let y=!1,x,k=2048,z,J,ne,Se=0;ve(a,c);function ve(On,Zn){if(!(!bE(Zn)||H2(Zn))){if(On===Dt||On===Ye){const lo=x;x=On,ve(Zn,Zn),x=lo;return}if(On.aliasSymbol&&On.aliasSymbol===Zn.aliasSymbol){if(On.aliasTypeArguments){const lo=Xi(On.aliasSymbol).typeParameters,Sr=Uh(lo),Co=Bb(On.aliasTypeArguments,lo,Sr,sr(On.aliasSymbol.valueDeclaration)),us=Bb(Zn.aliasTypeArguments,lo,Sr,sr(On.aliasSymbol.valueDeclaration));er(Co,us,f4e(On.aliasSymbol))}return}if(On===Zn&&On.flags&3145728){for(const lo of On.types)ve(lo,lo);return}if(Zn.flags&1048576){const[lo,Sr]=sn(On.flags&1048576?On.types:[On],Zn.types,Ipt),[Co,us]=sn(lo,Sr,xpt);if(us.length===0)return;if(Zn=Zr(us),Co.length===0){Ge(On,Zn,1);return}On=Zr(Co)}else if(Zn.flags&2097152&&!Yn(Zn.types,lee)&&!(On.flags&1048576)){const[lo,Sr]=sn(On.flags&2097152?On.types:[On],Zn.types,yv);if(lo.length===0||Sr.length===0)return;On=Ea(lo),Zn=Ea(Sr)}if(Zn.flags&41943040){if(H2(Zn))return;Zn=jb(Zn)}if(Zn.flags&8650752){if(L4e(On))return;const lo=Fn(Zn);if(lo){if(Wr(On)&262144||On===gn)return;if(!lo.isFixed){const Co=x||On;if(Co===Ye)return;(lo.priority===void 0||d<lo.priority)&&(lo.candidates=void 0,lo.contraCandidates=void 0,lo.topLevel=!0,lo.priority=d),d===lo.priority&&(_&&!y?Nr(lo.contraCandidates,Co)||(lo.contraCandidates=Rn(lo.contraCandidates,Co),Lee(n)):Nr(lo.candidates,Co)||(lo.candidates=Rn(lo.candidates,Co),Lee(n))),!(d&128)&&Zn.flags&262144&&lo.topLevel&&!J8(c,Zn)&&(lo.topLevel=!1,Lee(n))}k=Math.min(k,d);return}const Sr=vv(Zn,!1);if(Sr!==Zn)ve(On,Sr);else if(Zn.flags&8388608){const Co=vv(Zn.indexType,!1);if(Co.flags&465829888){const us=W6e(vv(Zn.objectType,!1),Co,!1);us&&us!==Zn&&ve(On,us)}}}if(Wr(On)&4&&Wr(Zn)&4&&(On.target===Zn.target||Yf(On)&&Yf(Zn))&&!(On.node&&Zn.node))er(Js(On),Js(Zn),kve(On.target));else if(On.flags&4194304&&Zn.flags&4194304)Wn(On.type,Zn.type);else if((V8(On)||On.flags&4)&&Zn.flags&4194304){const lo=gpt(On);vt(lo,Zn.type,256)}else if(On.flags&8388608&&Zn.flags&8388608)ve(On.objectType,Zn.objectType),ve(On.indexType,Zn.indexType);else if(On.flags&268435456&&Zn.flags&268435456)On.symbol===Zn.symbol&&ve(On.type,Zn.type);else if(On.flags&33554432)ve(On.baseType,Zn),Ge(Yge(On),Zn,4);else if(Zn.flags&16777216)cn(On,Zn,tr);else if(Zn.flags&3145728)Vn(On,Zn.types,Zn.flags);else if(On.flags&1048576){const lo=On.types;for(const Sr of lo)ve(Sr,Zn)}else if(Zn.flags&134217728)mo(On,Zn);else{if(On=g_(On),Kd(On)&&Kd(Zn)&&cn(On,Zn,_o),!(d&512&&On.flags&467927040)){const lo=kd(On);if(lo!==On&&!(lo.flags&2621440))return ve(lo,Zn);On=lo}On.flags&2621440&&cn(On,Zn,Fo)}}}function Ge(On,Zn,lo){const Sr=d;d|=lo,ve(On,Zn),d=Sr}function vt(On,Zn,lo){const Sr=d;d|=lo,Wn(On,Zn),d=Sr}function xt(On,Zn,lo,Sr){const Co=d;d|=Sr,Vn(On,Zn,lo),d=Co}function cn(On,Zn,lo){const Sr=On.id+","+Zn.id,Co=z&&z.get(Sr);if(Co!==void 0){k=Math.min(k,Co);return}(z||(z=new Map)).set(Sr,-1);const us=k;k=2048;const xs=Se;(J!=null?J:J=[]).push(On),(ne!=null?ne:ne=[]).push(Zn),X2(On,J,J.length,2)&&(Se|=1),X2(Zn,ne,ne.length,2)&&(Se|=2),Se!==3?lo(On,Zn):k=-1,ne.pop(),J.pop(),Se=xs,z.set(Sr,k),k=Math.min(k,us)}function sn(On,Zn,lo){let Sr,Co;for(const us of Zn)for(const xs of On)lo(xs,us)&&(ve(xs,us),Sr=wg(Sr,xs),Co=wg(Co,us));return[Sr?rr(On,us=>!Nr(Sr,us)):On,Co?rr(Zn,us=>!Nr(Co,us)):Zn]}function er(On,Zn,lo){const Sr=On.length<Zn.length?On.length:Zn.length;for(let Co=0;Co<Sr;Co++)Co<lo.length&&(lo[Co]&7)===2?Wn(On[Co],Zn[Co]):ve(On[Co],Zn[Co])}function Wn(On,Zn){_=!_,ve(On,Zn),_=!_}function mn(On,Zn){oe||d&1024?Wn(On,Zn):ve(On,Zn)}function Fn(On){if(On.flags&8650752){for(const Zn of n)if(On===Zn.typeParameter)return Zn}}function Pn(On){let Zn;for(const lo of On){const Sr=lo.flags&2097152&&Tn(lo.types,Co=>!!Fn(Co));if(!Sr||Zn&&Sr!==Zn)return;Zn=Sr}return Zn}function Vn(On,Zn,lo){let Sr=0;if(lo&1048576){let Co;const us=On.flags&1048576?On.types:[On],xs=new Array(us.length);let ju=!1;for(const Ua of Zn)if(Fn(Ua))Co=Ua,Sr++;else for(let wd=0;wd<us.length;wd++){const zl=k;k=2048,ve(us[wd],Ua),k===d&&(xs[wd]=!0),ju=ju||k===-1,k=Math.min(k,zl)}if(Sr===0){const Ua=Pn(Zn);Ua&&Ge(On,Ua,1);return}if(Sr===1&&!ju){const Ua=Pi(us,(wd,zl)=>xs[zl]?void 0:wd);if(Ua.length){ve(Zr(Ua),Co);return}}}else for(const Co of Zn)Fn(Co)?Sr++:ve(On,Co);if(lo&2097152?Sr===1:Sr>0)for(const Co of Zn)Fn(Co)&&Ge(On,Co,1)}function Gn(On,Zn,lo){if(lo.flags&1048576||lo.flags&2097152){let Sr=!1;for(const Co of lo.types)Sr=Gn(On,Zn,Co)||Sr;return Sr}if(lo.flags&4194304){const Sr=Fn(lo.type);if(Sr&&!Sr.isFixed&&!L4e(On)){const Co=P4e(On,Zn,lo);Co&&Ge(Co,Sr.typeParameter,Wr(On)&262144?16:8)}return!0}if(lo.flags&262144){Ge(eh(On,On.pattern?2:0),lo,32);const Sr=HT(lo);if(Sr&&Gn(On,Zn,Sr))return!0;const Co=Ot(bs(On),dr),us=Ot(vd(On),xs=>xs!==qr?xs.type:Hr);return ve(Zr(To(Co,us)),_v(Zn)),!0}return!1}function tr(On,Zn){if(On.flags&16777216)ve(On.checkType,Zn.checkType),ve(On.extendsType,Zn.extendsType),ve(_E(On),_E(Zn)),ve(hE(On),hE(Zn));else{const lo=[_E(Zn),hE(Zn)];xt(On,lo,Zn.flags,_?64:0)}}function mo(On,Zn){const lo=O4e(On,Zn),Sr=Zn.types;if(lo||Yn(Zn.texts,Co=>Co.length===0))for(let Co=0;Co<Sr.length;Co++){const us=lo?lo[Co]:Hr,xs=Sr[Co];if(us.flags&128&&xs.flags&8650752){const ju=Fn(xs),Ua=ju?Gu(ju.typeParameter):void 0;if(Ua&&!Ct(Ua)){const wd=Ua.flags&1048576?Ua.types:[Ua];let zl=od(wd,(bl,ct)=>bl|ct.flags,0);if(!(zl&4)){const bl=us.value;zl&296&&!k4e(bl,!0)&&(zl&=-297),zl&2112&&!rW(bl,!0)&&(zl&=-2113);const ct=od(wd,(Ie,Mn)=>Mn.flags&zl?Ie.flags&4?Ie:Mn.flags&4?us:Ie.flags&134217728?Ie:Mn.flags&134217728&&Oee(us,Mn)?us:Ie.flags&268435456?Ie:Mn.flags&268435456&&bl===L6e(Mn.symbol,bl)?us:Ie.flags&128?Ie:Mn.flags&128&&Mn.value===bl?Mn:Ie.flags&8?Ie:Mn.flags&8?v_(+bl):Ie.flags&32?Ie:Mn.flags&32?v_(+bl):Ie.flags&256?Ie:Mn.flags&256&&Mn.value===+bl?Mn:Ie.flags&64?Ie:Mn.flags&64?Tpt(bl):Ie.flags&2048?Ie:Mn.flags&2048&&ZE(Mn.value)===bl?Mn:Ie.flags&16?Ie:Mn.flags&16?bl==="true"?nr:bl==="false"?nn:ai:Ie.flags&512?Ie:Mn.flags&512&&Mn.intrinsicName===bl?Mn:Ie.flags&32768?Ie:Mn.flags&32768&&Mn.intrinsicName===bl?Mn:Ie.flags&65536?Ie:Mn.flags&65536&&Mn.intrinsicName===bl?Mn:Ie:Ie,Hr);if(!(ct.flags&131072)){ve(ct,xs);continue}}}}ve(us,xs)}}function _o(On,Zn){ve(Ef(On),Ef(Zn)),ve(_v(On),_v(Zn));const lo=_y(On),Sr=_y(Zn);lo&&Sr&&ve(lo,Sr)}function Fo(On,Zn){var lo,Sr;if(Wr(On)&4&&Wr(Zn)&4&&(On.target===Zn.target||Yf(On)&&Yf(Zn))){er(Js(On),Js(Zn),kve(On.target));return}if(Kd(On)&&Kd(Zn)&&_o(On,Zn),Wr(Zn)&32&&!Zn.declaration.nameType){const Co=Ef(Zn);if(Gn(On,Zn,Co))return}if(!Ept(On,Zn)){if(vE(On)){if(ja(Zn)){const Co=gy(On),us=gy(Zn),xs=Js(Zn),ju=Zn.target.elementFlags;if(ja(On)&&tpt(On,Zn)){for(let zl=0;zl<us;zl++)ve(Js(On)[zl],xs[zl]);return}const Ua=ja(On)?Math.min(On.target.fixedLength,Zn.target.fixedLength):0,wd=Math.min(ja(On)?L8(On.target,3):0,Zn.target.hasRestElement?L8(Zn.target,3):0);for(let zl=0;zl<Ua;zl++)ve(Js(On)[zl],xs[zl]);if(!ja(On)||Co-Ua-wd===1&&On.target.elementFlags[Ua]&4){const zl=Js(On)[Ua];for(let bl=Ua;bl<us-wd;bl++)ve(ju[bl]&8?Vu(zl):zl,xs[bl])}else{const zl=us-Ua-wd;if(zl===2){if(ju[Ua]&ju[Ua+1]&8){const bl=Fn(xs[Ua]);bl&&bl.impliedArity!==void 0&&(ve(J2(On,Ua,wd+Co-bl.impliedArity),xs[Ua]),ve(J2(On,Ua+bl.impliedArity,wd),xs[Ua+1]))}else if(ju[Ua]&8&&ju[Ua+1]&4){const bl=(lo=Fn(xs[Ua]))==null?void 0:lo.typeParameter,ct=bl&&Gu(bl);if(ct&&ja(ct)&&!ct.target.hasRestElement){const Ie=ct.target.fixedLength;ve(J2(On,Ua,Co-(Ua+Ie)),xs[Ua]),ve(Q2(On,Ua+Ie,wd),xs[Ua+1])}}else if(ju[Ua]&4&&ju[Ua+1]&8){const bl=(Sr=Fn(xs[Ua+1]))==null?void 0:Sr.typeParameter,ct=bl&&Gu(bl);if(ct&&ja(ct)&&!ct.target.hasRestElement){const Ie=ct.target.fixedLength,Mn=Co-L8(Zn.target,3),Lr=Mn-Ie,di=qh(Js(On).slice(Lr,Mn),On.target.elementFlags.slice(Lr,Mn),!1,On.target.labeledElementDeclarations&&On.target.labeledElementDeclarations.slice(Lr,Mn));ve(Q2(On,Ua,wd+Ie),xs[Ua]),ve(di,xs[Ua+1])}}}else if(zl===1&&ju[Ua]&8){const bl=Zn.target.elementFlags[us-1]&2,ct=J2(On,Ua,wd);Ge(ct,xs[Ua],bl?2:0)}else if(zl===1&&ju[Ua]&4){const bl=Q2(On,Ua,wd);bl&&ve(bl,xs[Ua])}}for(let zl=0;zl<wd;zl++)ve(Js(On)[Co-zl-1],xs[us-zl-1]);return}if(Yf(Zn)){fp(On,Zn);return}}vo(On,Zn),Mc(On,Zn,0),Mc(On,Zn,1),fp(On,Zn)}}function vo(On,Zn){const lo=zb(Zn);for(const Sr of lo){const Co=ba(On,Sr.escapedName);Co&&!St(Co.declarations,Qve)&&ve(dr(Co),dr(Sr))}}function Mc(On,Zn,lo){const Sr=Ko(On,lo),Co=Sr.length;if(Co>0){const us=Ko(Zn,lo),xs=us.length;for(let ju=0;ju<xs;ju++){const Ua=Math.max(Co-xs+ju,0);$f(Mct(Sr[Ua]),P8(us[ju]))}}}function $f(On,Zn){if(!(On.flags&64)){const lo=y,Sr=Zn.declaration?Zn.declaration.kind:0;y=y||Sr===174||Sr===173||Sr===176,jve(On,Zn,mn),y=lo}Uve(On,Zn,ve)}function fp(On,Zn){const lo=Wr(On)&Wr(Zn)&32?8:0,Sr=vd(Zn);if(Nee(On))for(const Co of Sr){const us=[];for(const xs of bs(On))if(gx(CC(xs,8576),Co.keyType)){const ju=dr(xs);us.push(xs.flags&16777216?Cee(ju):ju)}for(const xs of vd(On))gx(xs.keyType,Co.keyType)&&us.push(xs.type);us.length&&Ge(Zr(us),Co.type,lo)}for(const Co of Sr){const us=D8(On,Co.keyType);us&&Ge(us.type,Co.type,lo)}}}function Ipt(n,a){return a===L?n===a:yv(n,a)||!!(a.flags&4&&n.flags&128||a.flags&8&&n.flags&256)}function xpt(n,a){return!!(n.flags&524288&&a.flags&524288&&n.symbol&&n.symbol===a.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===a.aliasSymbol)}function Rpt(n){const a=Ld(n);return!!a&&Pl(a.flags&16777216?Nge(a):a,406978556)}function EE(n){return!!(Wr(n)&128)}function Zve(n){return!!(Wr(n)&16512)}function Dpt(n){if(n.length>1){const a=rr(n,Zve);if(a.length){const c=Zr(a,2);return To(rr(n,d=>!Zve(d)),[c])}}return n}function Cpt(n){return n.priority&416?Ea(n.contraCandidates):Kdt(n.contraCandidates)}function Npt(n,a){const c=Dpt(n.candidates),d=Rpt(n.typeParameter)||qT(n.typeParameter),_=!d&&n.topLevel&&(n.isFixed||!hpt(a,n.typeParameter)),y=d?no(c,bd):_?no(c,Q1):c,x=n.priority&416?Zr(y,2):Jdt(y);return Xp(x)}function eye(n,a){const c=n.inferences[a];if(!c.inferredType){let d,_;if(n.signature){const x=c.candidates?Npt(c,n.signature):void 0,k=c.contraCandidates?Cpt(c):void 0;if(x||k){const z=x&&(!k||!(x.flags&131072)&&St(c.contraCandidates,J=>Hb(x,J))&&Yn(n.inferences,J=>J!==c&&Ld(J.typeParameter)!==c.typeParameter||Yn(J.candidates,ne=>Hb(ne,x))));d=z?x:k,_=z?k:x}else if(n.flags&1)d=bo;else{const z=JT(c.typeParameter);z&&(d=co(z,sdt(adt(n,a),n.nonFixingMapper)))}}else d=M4e(c);c.inferredType=d||tye(!!(n.flags&2));const y=Ld(c.typeParameter);if(y){const x=co(y,n.nonFixingMapper);(!d||!n.compareTypes(d,Kp(x,d)))&&(c.inferredType=_&&n.compareTypes(_,Kp(x,_))?_:x)}}return c.inferredType}function tye(n){return n?j:dn}function nye(n){const a=[];for(let c=0;c<n.inferences.length;c++)a.push(eye(n,c));return a}function F4e(n){switch(n.escapedText){case"document":case"console":return m.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return V.types?m.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:m.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 V.types?m.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:m.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 V.types?m.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:m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return V.types?m.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:m.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 m.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(sa(n.parent))return m.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return n.parent.kind===304?m.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:m.Cannot_find_name_0}}function Hm(n){const a=Qr(n);return a.resolvedSymbol||(a.resolvedSymbol=!Gl(n)&&yl(n,n.escapedText,1160127,F4e(n),n,!F3(n),!1)||pt),a.resolvedSymbol}function rye(n){return!!(n.flags&33554432||zn(n,a=>hd(a)||Lm(a)||Tp(a)))}function Wee(n,a,c,d){switch(n.kind){case 80:if(!VA(n)){const x=Hm(n);return x!==pt?"".concat(d?cs(d):"-1","|").concat(yd(a),"|").concat(yd(c),"|").concat(Ta(x)):void 0}case 110:return"0|".concat(d?cs(d):"-1","|").concat(yd(a),"|").concat(yd(c));case 235:case 217:return Wee(n.expression,a,c,d);case 166:const _=Wee(n.left,a,c,d);return _&&_+"."+n.right.escapedText;case 211:case 212:const y=nA(n);if(y!==void 0){const x=Wee(n.expression,a,c,d);return x&&x+"."+y}break;case 206:case 207:case 262:case 218:case 219:case 174:return"".concat(cs(n),"#").concat(yd(a))}}function xu(n,a){switch(a.kind){case 217:case 235:return xu(n,a.expression);case 226:return wc(a)&&xu(n,a.left)||mr(a)&&a.operatorToken.kind===28&&xu(n,a.right)}switch(n.kind){case 236:return a.kind===236&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return VA(n)?a.kind===110:a.kind===80&&Hm(n)===Hm(a)||(ki(a)||ns(a))&&vf(Hm(n))===xr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return xu(n.expression,a);case 211:case 212:const c=nA(n),d=zs(a)?nA(a):void 0;return c!==void 0&&d!==void 0&&d===c&&xu(n.expression,a.expression);case 166:return zs(a)&&n.right.escapedText===nA(a)&&xu(n.left,a.expression);case 226:return mr(n)&&n.operatorToken.kind===28&&xu(n.right,a)}return!1}function nA(n){if(Fr(n))return n.name.escapedText;if($s(n))return Ppt(n);if(ns(n)){const a=is(n);return a?hl(a):void 0}if(Io(n))return""+n.parent.parameters.indexOf(n)}function iye(n){return n.flags&8192?n.escapedName:n.flags&384?hl(""+n.value):void 0}function Ppt(n){return nf(n.argumentExpression)?hl(n.argumentExpression.text):jl(n.argumentExpression)?Mpt(n.argumentExpression):void 0}function Mpt(n){const a=qs(n,111551,!0);if(!a||!(rM(a)||a.flags&8))return;const c=a.valueDeclaration;if(c===void 0)return;const d=$i(c);if(d){const _=iye(d);if(_!==void 0)return _}if(ES(c)&&av(c,n)){const _=jL(c);if(_){const y=Zo(c.parent)?$_(c):Du(_);return y&&iye(y)}if(p1(c))return cR(c.name)}}function z4e(n,a){for(;zs(n);)if(n=n.expression,xu(n,a))return!0;return!1}function rA(n,a){for(;qu(n);)if(n=n.expression,xu(n,a))return!0;return!1}function Z2(n,a){if(n&&n.flags&1048576){const c=B8e(n,a);if(c&&xl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!NC(dr(c))),!!c.links.isDiscriminantProperty}return!1}function B4e(n,a){let c;for(const d of n)if(Z2(a,d.escapedName)){if(c){c.push(d);continue}c=[d]}return c}function Lpt(n,a){const c=new Map;let d=0;for(const _ of n)if(_.flags&61603840){const y=Ke(_,a);if(y){if(!V8(y))return;let x=!1;oA(y,k=>{const z=yd(bd(k)),J=c.get(z);J?J!==dn&&(c.set(z,dn),x=!0):c.set(z,_)}),x||d++}}return d>=10&&d*2>=n.length?c:void 0}function U9(n){const a=n.types;if(!(a.length<10||Wr(n)&32768||lu(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){const c=He(a,_=>_.flags&59506688?He(bs(_),y=>y_(dr(y))?y.escapedName:void 0):void 0),d=c&&Lpt(a,c);n.keyPropertyName=d?c:"",n.constituentMap=d}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function H9(n,a){var c;const d=(c=n.constituentMap)==null?void 0:c.get(yd(bd(a)));return d!==dn?d:void 0}function G4e(n,a){const c=U9(n),d=c&&Ke(a,c);return d&&H9(n,d)}function kpt(n,a){const c=U9(n),d=c&&Tn(a.properties,y=>y.symbol&&y.kind===303&&y.symbol.escapedName===c&&Z9(y.initializer)),_=d&&EB(d.initializer);return _&&H9(n,_)}function V4e(n,a){return xu(n,a)||z4e(n,a)}function j4e(n,a){if(n.arguments){for(const c of n.arguments)if(V4e(a,c)||rA(c,a))return!0}return!!(n.expression.kind===211&&V4e(a,n.expression.expression))}function oye(n){return(!n.id||n.id<0)&&(n.id=Ale,Ale++),n.id}function wpt(n,a){if(!(n.flags&1048576))return Sa(n,a);for(const c of n.types)if(Sa(c,a))return!0;return!1}function Opt(n,a){var d;if(n===a)return n;if(a.flags&131072)return a;const c="A".concat(yd(n),",").concat(yd(a));return(d=ex(c))!=null?d:gb(c,Wpt(n,a))}function Wpt(n,a){const c=_c(n,_=>wpt(a,_)),d=a.flags&512&&X1(a)?dl(c,Sx):c;return Sa(a,d)?d:n}function aye(n){const a=h_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Hb(n,Wt))}function eM(n,a){return sye(n,a)&a}function ym(n,a){return eM(n,a)!==0}function sye(n,a){n.flags&467927040&&(n=Gu(n)||dn);const c=n.flags;if(c&268435460)return Y?16317953:16776705;if(c&134217856){const d=c&128&&n.value==="";return Y?d?12123649:7929345:d?12582401:16776705}if(c&40)return Y?16317698:16776450;if(c&256){const d=n.value===0;return Y?d?12123394:7929090:d?12582146:16776450}if(c&64)return Y?16317188:16775940;if(c&2048){const d=A4e(n);return Y?d?12122884:7928580:d?12581636:16775940}return c&16?Y?16316168:16774920:c&528?Y?n===nn||n===En?12121864:7927560:n===nn||n===En?12580616:16774920:c&524288?(a&(Y?83427327:83886079))===0?0:Wr(n)&16&&bv(n)?Y?83427327:83886079:aye(n)?Y?7880640:16728e3:Y?7888800:16736160:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?Y?7925520:16772880:c&67108864?Y?7888800:16736160:c&131072?0:c&1048576?od(n.types,(d,_)=>d|sye(_,a),0):c&2097152?Fpt(n,a):83886079}function Fpt(n,a){const c=Pl(n,402784252);let d=0,_=134217727;for(const y of n.types)if(!(c&&y.flags&524288)){const x=sye(y,a);d|=x,_&=x}return d&8256|_&134209471}function bm(n,a){return _c(n,c=>ym(c,a))}function iA(n,a){const c=U4e(bm(Y&&n.flags&2?cl:n,a));if(Y)switch(a){case 524288:return dl(c,d=>ym(d,65536)?Ea([d,ym(d,131072)&&!Pl(c,65536)?Zr([ka,fe]):ka]):d);case 1048576:return dl(c,d=>ym(d,131072)?Ea([d,ym(d,65536)&&!Pl(c,32768)?Zr([ka,We]):ka]):d);case 2097152:case 4194304:return dl(c,d=>ym(d,262144)?ipt(d):d)}return c}function U4e(n){return n===cl?dn:n}function lye(n,a){return a?Zr([mi(n),Du(a)]):n}function H4e(n,a){var c;const d=vy(a);if(!lm(d))return _t;const _=cm(d);return Ke(n,_)||K8((c=vx(n,_))==null?void 0:c.type)||_t}function q4e(n,a){return pp(n,$2)&&Xdt(n,a)||K8(Sy(65,n,We,void 0))||_t}function K8(n){return n&&(V.noUncheckedIndexedAccess?Zr([n,L]):n)}function J4e(n){return Vu(Sy(65,n,We,void 0)||_t)}function zpt(n){return n.parent.kind===209&&cye(n.parent)||n.parent.kind===303&&cye(n.parent.parent)?lye(q9(n),n.right):Du(n.right)}function cye(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function Bpt(n,a){return q4e(q9(n),n.elements.indexOf(a))}function Gpt(n){return J4e(q9(n.parent))}function K4e(n){return H4e(q9(n.parent),n.name)}function Vpt(n){return lye(K4e(n),n.objectAssignmentInitializer)}function q9(n){const{parent:a}=n;switch(a.kind){case 249:return ke;case 250:return RB(a)||_t;case 226:return zpt(a);case 220:return We;case 209:return Bpt(a,n);case 230:return Gpt(a);case 303:return K4e(a);case 304:return Vpt(a)}return _t}function jpt(n){const a=n.parent,c=Y4e(a.parent),d=a.kind===206?H4e(c,n.propertyName||n.name):n.dotDotDotToken?J4e(c):q4e(c,a.elements.indexOf(n));return lye(d,n.initializer)}function X4e(n){return Qr(n).resolvedType||Du(n)}function Upt(n){return n.initializer?X4e(n.initializer):n.parent.parent.kind===249?ke:n.parent.parent.kind===250&&RB(n.parent.parent)||_t}function Y4e(n){return n.kind===260?Upt(n):jpt(n)}function Hpt(n){return n.kind===260&&n.initializer&&Mb(n.initializer)||n.kind!==208&&n.parent.kind===226&&Mb(n.parent.right)}function Z1(n){switch(n.kind){case 217:return Z1(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return Z1(n.left);case 28:return Z1(n.right)}}return n}function $4e(n){const{parent:a}=n;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===n||a.kind===226&&a.operatorToken.kind===28&&a.right===n?$4e(a):n}function qpt(n){return n.kind===296?bd(Du(n.expression)):Hr}function Fee(n){const a=Qr(n);if(!a.switchTypes){a.switchTypes=[];for(const c of n.caseBlock.clauses)a.switchTypes.push(qpt(c))}return a.switchTypes}function Q4e(n){if(St(n.caseBlock.clauses,c=>c.kind===296&&!ds(c.expression)))return;const a=[];for(const c of n.caseBlock.clauses){const d=c.kind===296?c.expression.text:void 0;a.push(d&&!Nr(a,d)?d:void 0)}return a}function Jpt(n,a){return n.flags&1048576?!He(n.types,c=>!Nr(a,c)):Nr(a,n)}function tM(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&Kpt(n,a))}function Kpt(n,a){if(n.flags&1048576){for(const c of n.types)if(!gv(a.types,c))return!1;return!0}return n.flags&1056&&HZ(n)===a?!0:gv(a.types,n)}function oA(n,a){return n.flags&1048576?He(n.types,a):a(n)}function qm(n,a){return n.flags&1048576?St(n.types,a):a(n)}function pp(n,a){return n.flags&1048576?Yn(n.types,a):a(n)}function Xpt(n,a){return n.flags&3145728?Yn(n.types,a):a(n)}function _c(n,a){if(n.flags&1048576){const c=n.types,d=rr(c,a);if(d===c)return n;const _=n.origin;let y;if(_&&_.flags&1048576){const x=_.types,k=rr(x,z=>!!(z.flags&1048576)||a(z));if(x.length-k.length===c.length-d.length){if(k.length===1)return k[0];y=cve(1048576,k)}}return dve(d,n.objectFlags&16809984,void 0,void 0,y)}return n.flags&131072||a(n)?n:Hr}function zee(n,a){return _c(n,c=>c!==a)}function Ypt(n){return n.flags&1048576?n.types.length:1}function dl(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const d=n.origin,_=d&&d.flags&1048576?d.types:n.types;let y,x=!1;for(const k of _){const z=k.flags&1048576?dl(k,a,c):a(k);x||(x=k!==z),z&&(y?y.push(z):y=[z])}return x?y&&Zr(y,c?0:1):n}function Z4e(n,a,c,d){return n.flags&1048576&&c?Zr(Ot(n.types,a),1,c,d):dl(n,a)}function nM(n,a){return _c(n,c=>(c.flags&a)!==0)}function e3e(n,a){return Pl(n,134217804)&&Pl(a,402655616)?dl(n,c=>c.flags&4?nM(a,402653316):YT(c)&&!Pl(a,402653188)?nM(a,128):c.flags&8?nM(a,264):c.flags&64?nM(a,2112):c):n}function LC(n){return n.flags===0}function aA(n){return n.flags===0?n.type:n}function kC(n,a){return a?{flags:0,type:n.flags&131072?bo:n}:n}function $pt(n){const a=Vf(256);return a.elementType=n,a}function uye(n){return wn[n.id]||(wn[n.id]=$pt(n))}function t3e(n,a){const c=H8(Ev(EB(a)));return tM(c,n.elementType)?n:uye(Zr([n.elementType,c]))}function Qpt(n){return n.flags&131072?Kc:Vu(n.flags&1048576?Zr(n.types,2):n)}function Zpt(n){return n.finalArrayType||(n.finalArrayType=Qpt(n.elementType))}function J9(n){return Wr(n)&256?Zpt(n):n}function eft(n){return Wr(n)&256?n.elementType:Hr}function tft(n){let a=!1;for(const c of n)if(!(c.flags&131072)){if(!(Wr(c)&256))return!1;a=!0}return a}function n3e(n){const a=$4e(n),c=a.parent,d=Fr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&je(c.name)&&aU(c.name)),_=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!sg(c.parent)&&Ru(Du(c.argumentExpression),296);return d||_}function nft(n){return(ki(n)||Uo(n)||Ep(n)||Io(n))&&!!(bu(n)||sr(n)&&zy(n)&&n.initializer&&e1(n.initializer)&&sm(n.initializer))}function Bee(n,a){if(n=Hl(n),n.flags&8752)return dr(n);if(n.flags&7){if(xl(n)&262144){const d=n.links.syntheticOrigin;if(d&&Bee(d))return dr(n)}const c=n.valueDeclaration;if(c){if(nft(c))return dr(n);if(ki(c)&&c.parent.parent.kind===250){const d=c.parent.parent,_=K9(d.expression,void 0);if(_){const y=d.awaitModifier?15:13;return Sy(y,_,We,void 0)}}a&&Oa(a,Or(c,m._0_needs_an_explicit_type_annotation,Si(n)))}}}function K9(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:const c=vf(Hm(n));return Bee(c,a);case 110:return Tft(n);case 108:return gye(n);case 211:{const d=K9(n.expression,a);if(d){const _=n.name;let y;if(Ji(_)){if(!d.symbol)return;y=ba(d,sk(d.symbol,_.escapedText))}else y=ba(d,_.escapedText);return y&&Bee(y,a)}return}case 217:return K9(n.expression,a)}}function X9(n){const a=Qr(n);let c=a.effectsSignature;if(c===void 0){let d;if(mr(n)){const x=wC(n.right);d=lbe(x)}else n.parent.kind===244?d=K9(n.expression,void 0):n.expression.kind!==108&&(qu(n)?d=nh(j8(go(n.expression),n.expression),n.expression):d=wC(n.expression));const _=Ko(d&&kd(d)||dn,0),y=_.length===1&&!_[0].typeParameters?_[0]:St(_,r3e)?WC(n):void 0;c=a.effectsSignature=y&&r3e(y)?y:pn}return c===pn?void 0:c}function r3e(n){return!!(Jf(n)||n.declaration&&(IC(n.declaration)||dn).flags&131072)}function rft(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const c=vs(a.expression);return zs(c)?vs(c.expression):void 0}function ift(n){const a=zn(n,lj),c=jn(n),d=yh(c,a.statements.pos);os.add(eu(c,d.start,d.length,m.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Y9(n){const a=Gee(n,!1);return Nt=n,Ut=a,a}function $9(n){const a=vs(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&($9(a.left)||$9(a.right))||a.operatorToken.kind===57&&$9(a.left)&&$9(a.right))}function Gee(n,a){for(;;){if(n===Nt)return Ut;const c=n.flags;if(c&4096){if(!a){const d=oye(n),_=gT[d];return _!==void 0?_:gT[d]=Gee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){const d=X9(n.node);if(d){const _=Jf(d);if(_&&_.kind===3&&!_.type){const y=n.node.arguments[_.parameterIndex];if(y&&$9(y))return!1}if(ms(d).flags&131072)return!1}n=n.antecedent}else{if(c&4)return St(n.antecedents,d=>Gee(d,!1));if(c&8){const d=n.antecedents;if(d===void 0||d.length===0)return!1;n=d[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&FWe(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){Nt=void 0;const d=n.target,_=d.antecedents;d.antecedents=n.antecedents;const y=Gee(n.antecedent,!1);return d.antecedents=_,y}else return!(c&1)}}}function Vee(n,a){for(;;){const c=n.flags;if(c&4096){if(!a){const d=oye(n),_=ZI[d];return _!==void 0?_:ZI[d]=Vee(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return Yn(n.antecedents,d=>Vee(d,!1));if(c&8)n=n.antecedents[0];else if(c&1024){const d=n.target,_=d.antecedents;d.antecedents=n.antecedents;const y=Vee(n.antecedent,!1);return d.antecedents=_,y}else return!!(c&1)}}}function i3e(n){switch(n.kind){case 110:return!0;case 80:if(!VA(n)){const c=Hm(n);return rM(c)||Uee(c)&&!o3e(c)}break;case 211:case 212:return i3e(n.expression)&&E_(Qr(n).resolvedSymbol||pt);case 206:case 207:const a=N_(n.parent);return Io(a)||lae(a)?!dye(a):ki(a)&&LB(a)}return!1}function Yb(n,a,c=a,d,_=(y=>(y=ti(n,ZL))==null?void 0:y.flowNode)()){let y,x=!1,k=0;if(ze)return _t;if(!_)return a;Ze++;const z=nv,J=aA(ve(_));nv=z;const ne=Wr(J)&256&&n3e(n)?Kc:J9(J);if(ne===vi||n.parent&&n.parent.kind===235&&!(ne.flags&131072)&&bm(ne,2097152).flags&131072)return a;return ne===H?dn:ne;function Se(){return x?y:(x=!0,y=Wee(n,a,c,d))}function ve(ft){var wt;if(k===2e3)return(wt=ar)==null||wt.instant(ar.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:ft.id}),ze=!0,ift(n),_t;k++;let un;for(;;){const Ht=ft.flags;if(Ht&4096){for(let Ln=z;Ln<nv;Ln++)if($I[Ln]===ft)return k--,QI[Ln];un=ft}let _n;if(Ht&16){if(_n=vt(ft),!_n){ft=ft.antecedent;continue}}else if(Ht&512){if(_n=cn(ft),!_n){ft=ft.antecedent;continue}}else if(Ht&96)_n=er(ft);else if(Ht&128)_n=Wn(ft);else if(Ht&12){if(ft.antecedents.length===1){ft=ft.antecedents[0];continue}_n=Ht&4?mn(ft):Fn(ft)}else if(Ht&256){if(_n=sn(ft),!_n){ft=ft.antecedent;continue}}else if(Ht&1024){const Ln=ft.target,Li=Ln.antecedents;Ln.antecedents=ft.antecedents,_n=ve(ft.antecedent),Ln.antecedents=Li}else if(Ht&2){const Ln=ft.node;if(Ln&&Ln!==d&&n.kind!==211&&n.kind!==212&&!(n.kind===110&&Ln.kind!==219)){ft=Ln.flowNode;continue}_n=c}else _n=c6(a);return un&&($I[nv]=un,QI[nv]=_n,nv++),k--,_n}}function Ge(ft){const wt=ft.node;return pye(wt.kind===260||wt.kind===208?Y4e(wt):q9(wt),n)}function vt(ft){const wt=ft.node;if(xu(n,wt)){if(!Y9(ft))return vi;if(BA(wt)===2){const Ht=ve(ft.antecedent);return kC(Ev(aA(Ht)),LC(Ht))}if(a===ot||a===Kc){if(Hpt(wt))return uye(Hr);const Ht=Q1(Ge(ft));return Sa(Ht,a)?Ht:ic}const un=Qj(wt)?Ev(a):a;return un.flags&1048576?Opt(un,Ge(ft)):un}if(z4e(n,wt)){if(!Y9(ft))return vi;if(ki(wt)&&(sr(wt)||LB(wt))){const un=UL(wt);if(un&&(un.kind===218||un.kind===219))return ve(ft.antecedent)}return a}if(ki(wt)&&wt.parent.parent.kind===249&&(xu(n,wt.parent.parent.expression)||rA(wt.parent.parent.expression,n)))return kye(J9(aA(ve(ft.antecedent))))}function xt(ft,wt){const un=vs(wt,!0);if(un.kind===97)return vi;if(un.kind===226){if(un.operatorToken.kind===56)return xt(xt(ft,un.left),un.right);if(un.operatorToken.kind===57)return Zr([xt(ft,un.left),xt(ft,un.right)])}return Vr(ft,un,!0)}function cn(ft){const wt=X9(ft.node);if(wt){const un=Jf(wt);if(un&&(un.kind===2||un.kind===3)){const Ht=ve(ft.antecedent),_n=J9(aA(Ht)),Ln=un.type?xi(_n,un,ft.node,!0):un.kind===3&&un.parameterIndex>=0&&un.parameterIndex<ft.node.arguments.length?xt(_n,ft.node.arguments[un.parameterIndex]):_n;return Ln===_n?Ht:kC(Ln,LC(Ht))}if(ms(wt).flags&131072)return vi}}function sn(ft){if(a===ot||a===Kc){const wt=ft.node,un=wt.kind===213?wt.expression.expression:wt.left.expression;if(xu(n,Z1(un))){const Ht=ve(ft.antecedent),_n=aA(Ht);if(Wr(_n)&256){let Ln=_n;if(wt.kind===213)for(const Li of wt.arguments)Ln=t3e(Ln,Li);else{const Li=EB(wt.left.argumentExpression);Ru(Li,296)&&(Ln=t3e(Ln,wt.right))}return Ln===_n?Ht:kC(Ln,LC(Ht))}return Ht}}}function er(ft){const wt=ve(ft.antecedent),un=aA(wt);if(un.flags&131072)return wt;const Ht=(ft.flags&32)!==0,_n=J9(un),Ln=Vr(_n,ft.node,Ht);return Ln===_n?wt:kC(Ln,LC(wt))}function Wn(ft){const wt=vs(ft.switchStatement.expression),un=ve(ft.antecedent);let Ht=aA(un);if(xu(n,wt))Ht=xs(Ht,ft.switchStatement,ft.clauseStart,ft.clauseEnd);else if(wt.kind===221&&xu(n,wt.expression))Ht=wd(Ht,ft.switchStatement,ft.clauseStart,ft.clauseEnd);else if(wt.kind===112)Ht=zl(Ht,ft.switchStatement,ft.clauseStart,ft.clauseEnd);else{Y&&(rA(wt,n)?Ht=us(Ht,ft.switchStatement,ft.clauseStart,ft.clauseEnd,Ln=>!(Ln.flags&163840)):wt.kind===221&&rA(wt.expression,n)&&(Ht=us(Ht,ft.switchStatement,ft.clauseStart,ft.clauseEnd,Ln=>!(Ln.flags&131072||Ln.flags&128&&Ln.value==="undefined"))));const _n=Gn(wt,Ht);_n&&(Ht=_o(Ht,_n,ft.switchStatement,ft.clauseStart,ft.clauseEnd))}return kC(Ht,LC(un))}function mn(ft){const wt=[];let un=!1,Ht=!1,_n;for(const Ln of ft.antecedents){if(!_n&&Ln.flags&128&&Ln.clauseStart===Ln.clauseEnd){_n=Ln;continue}const Li=ve(Ln),_i=aA(Li);if(_i===a&&a===c)return _i;Tf(wt,_i),tM(_i,c)||(un=!0),LC(Li)&&(Ht=!0)}if(_n){const Ln=ve(_n),Li=aA(Ln);if(!(Li.flags&131072)&&!Nr(wt,Li)&&!FWe(_n.switchStatement)){if(Li===a&&a===c)return Li;wt.push(Li),tM(Li,c)||(un=!0),LC(Ln)&&(Ht=!0)}}return kC(Pn(wt,un?2:1),Ht)}function Fn(ft){const wt=oye(ft),un=KI[wt]||(KI[wt]=new Map),Ht=Se();if(!Ht)return a;const _n=un.get(Ht);if(_n)return _n;for(let kn=H_;kn<_f;kn++)if(nC[kn]===ft&&XI[kn]===Ht&&YI[kn].length)return kC(Pn(YI[kn],1),!0);const Ln=[];let Li=!1,_i;for(const kn of ft.antecedents){let ci;if(!_i)ci=_i=ve(kn);else{nC[_f]=ft,XI[_f]=Ht,YI[_f]=Ln,_f++;const Qi=vn;vn=void 0,ci=ve(kn),vn=Qi,_f--;const $o=un.get(Ht);if($o)return $o}const Ai=aA(ci);if(Tf(Ln,Ai),tM(Ai,c)||(Li=!0),Ai===a)break}const na=Pn(Ln,Li?2:1);return LC(_i)?kC(na,!0):(un.set(Ht,na),na)}function Pn(ft,wt){if(tft(ft))return uye(Zr(Ot(ft,eft)));const un=U4e(Zr(no(ft,J9),wt));return un!==a&&un.flags&a.flags&1048576&&Na(un.types,a.types)?a:un}function Vn(ft){if(Zo(n)||e1(n)||Nm(n)){if(je(ft)){const un=Hm(ft).valueDeclaration;if(un&&(ns(un)||Io(un))&&n===un.parent&&!un.initializer&&!un.dotDotDotToken)return un}}else if(zs(ft)){if(xu(n,ft.expression))return ft}else if(je(ft)){const wt=Hm(ft);if(rM(wt)){const un=wt.valueDeclaration;if(ki(un)&&!un.type&&un.initializer&&zs(un.initializer)&&xu(n,un.initializer.expression))return un.initializer;if(ns(un)&&!un.initializer){const Ht=un.parent.parent;if(ki(Ht)&&!Ht.type&&Ht.initializer&&(je(Ht.initializer)||zs(Ht.initializer))&&xu(n,Ht.initializer))return un}}}}function Gn(ft,wt){if(a.flags&1048576||wt.flags&1048576){const un=Vn(ft);if(un){const Ht=nA(un);if(Ht){const _n=a.flags&1048576&&tM(wt,a)?a:wt;if(Z2(_n,Ht))return un}}}}function tr(ft,wt,un){const Ht=nA(wt);if(Ht===void 0)return ft;const _n=qu(wt),Ln=Y&&(_n||uae(wt))&&Pl(ft,98304);let Li=Ke(Ln?bm(ft,2097152):ft,Ht);if(!Li)return ft;Li=Ln&&_n?Kb(Li):Li;const _i=un(Li);return _c(ft,na=>{const kn=Rt(na,Ht)||dn;return!(kn.flags&131072)&&!(_i.flags&131072)&&w9(_i,kn)})}function mo(ft,wt,un,Ht,_n){if((un===37||un===38)&&ft.flags&1048576){const Ln=U9(ft);if(Ln&&Ln===nA(wt)){const Li=H9(ft,Du(Ht));if(Li)return un===(_n?37:38)?Li:y_(Ke(Li,Ln)||dn)?zee(ft,Li):ft}}return tr(ft,wt,Ln=>lo(Ln,un,Ht,_n))}function _o(ft,wt,un,Ht,_n){if(Ht<_n&&ft.flags&1048576&&U9(ft)===nA(wt)){const Ln=Fee(un).slice(Ht,_n),Li=Zr(Ot(Ln,_i=>H9(ft,_i)||dn));if(Li!==dn)return Li}return tr(ft,wt,Ln=>xs(Ln,un,Ht,_n))}function Fo(ft,wt,un){if(xu(n,wt))return iA(ft,un?4194304:8388608);Y&&un&&rA(wt,n)&&(ft=iA(ft,2097152));const Ht=Gn(wt,ft);return Ht?tr(ft,Ht,_n=>bm(_n,un?4194304:8388608)):ft}function vo(ft,wt,un){const Ht=ba(ft,wt);return Ht?!!(Ht.flags&16777216||xl(Ht)&48)||un:!!vx(ft,wt)||!un}function Mc(ft,wt,un){const Ht=cm(wt);if(qm(ft,Ln=>vo(Ln,Ht,!0)))return _c(ft,Ln=>vo(Ln,Ht,un));if(un){const Ln=cut();if(Ln)return Ea([ft,RC(Ln,[wt,dn])])}return ft}function $f(ft,wt,un,Ht,_n){return _n=_n!==(un.kind===112)!=(Ht!==38&&Ht!==36),Vr(ft,wt,_n)}function fp(ft,wt,un){switch(wt.operatorToken.kind){case 64:case 76:case 77:case 78:return Fo(Vr(ft,wt.right,un),wt.left,un);case 35:case 36:case 37:case 38:const Ht=wt.operatorToken.kind,_n=Z1(wt.left),Ln=Z1(wt.right);if(_n.kind===221&&ds(Ln))return Sr(ft,_n,Ht,Ln,un);if(Ln.kind===221&&ds(_n))return Sr(ft,Ln,Ht,_n,un);if(xu(n,_n))return lo(ft,Ht,Ln,un);if(xu(n,Ln))return lo(ft,Ht,_n,un);Y&&(rA(_n,n)?ft=Zn(ft,Ht,Ln,un):rA(Ln,n)&&(ft=Zn(ft,Ht,_n,un)));const Li=Gn(_n,ft);if(Li)return mo(ft,Li,Ht,Ln,un);const _i=Gn(Ln,ft);if(_i)return mo(ft,_i,Ht,_n,un);if(bl(_n))return ct(ft,Ht,Ln,un);if(bl(Ln))return ct(ft,Ht,_n,un);if(hN(Ln)&&!zs(_n))return $f(ft,_n,Ln,Ht,un);if(hN(_n)&&!zs(Ln))return $f(ft,Ln,_n,Ht,un);break;case 104:return Ie(ft,wt,un);case 103:if(Ji(wt.left))return On(ft,wt,un);const na=Z1(wt.right);if(U8(ft)&&zs(n)&&xu(n.expression,na)){const kn=Du(wt.left);if(lm(kn)&&nA(n)===cm(kn))return bm(ft,un?524288:65536)}if(xu(n,na)){const kn=Du(wt.left);if(lm(kn))return Mc(ft,kn,un)}break;case 28:return Vr(ft,wt.right,un);case 56:return un?Vr(Vr(ft,wt.left,!0),wt.right,!0):Zr([Vr(ft,wt.left,!1),Vr(ft,wt.right,!1)]);case 57:return un?Zr([Vr(ft,wt.left,!0),Vr(ft,wt.right,!0)]):Vr(Vr(ft,wt.left,!1),wt.right,!1)}return ft}function On(ft,wt,un){const Ht=Z1(wt.right);if(!xu(n,Ht))return ft;C.assertNode(wt.left,Ji);const _n=tte(wt.left);if(_n===void 0)return ft;const Ln=_n.parent,Li=vc(C.checkDefined(_n.valueDeclaration,"should always have a declaration"))?dr(Ln):Zs(Ln);return Lr(ft,Li,un,!0)}function Zn(ft,wt,un,Ht){const _n=wt===35||wt===37,Ln=wt===35||wt===36?98304:32768,Li=Du(un);return _n!==Ht&&pp(Li,na=>!!(na.flags&Ln))||_n===Ht&&pp(Li,na=>!(na.flags&(3|Ln)))?iA(ft,2097152):ft}function lo(ft,wt,un,Ht){if(ft.flags&1)return ft;(wt===36||wt===38)&&(Ht=!Ht);const _n=Du(un),Ln=wt===35||wt===36;if(_n.flags&98304){if(!Y)return ft;const Li=Ln?Ht?262144:2097152:_n.flags&65536?Ht?131072:1048576:Ht?65536:524288;return iA(ft,Li)}if(Ht){if(!Ln&&(ft.flags&2||qm(ft,Jh))){if(_n.flags&469893116||Jh(_n))return _n;if(_n.flags&524288)return ga}const Li=_c(ft,_i=>w9(_i,_n)||Ln&&opt(_i,_n));return e3e(Li,_n)}return y_(_n)?_c(ft,Li=>!(b4e(Li)&&w9(Li,_n))):ft}function Sr(ft,wt,un,Ht,_n){(un===36||un===38)&&(_n=!_n);const Ln=Z1(wt.expression);if(!xu(n,Ln)){Y&&rA(Ln,n)&&_n===(Ht.text!=="undefined")&&(ft=iA(ft,2097152));const Li=Gn(Ln,ft);return Li?tr(ft,Li,_i=>Co(_i,Ht,_n)):ft}return Co(ft,Ht,_n)}function Co(ft,wt,un){return un?ju(ft,wt.text):iA(ft,Zq.get(wt.text)||32768)}function us(ft,wt,un,Ht,_n){return un!==Ht&&Yn(Fee(wt).slice(un,Ht),_n)?bm(ft,2097152):ft}function xs(ft,wt,un,Ht){const _n=Fee(wt);if(!_n.length)return ft;const Ln=_n.slice(un,Ht),Li=un===Ht||Nr(Ln,Hr);if(ft.flags&2&&!Li){let ci;for(let Ai=0;Ai<Ln.length;Ai+=1){const Qi=Ln[Ai];if(Qi.flags&469893116)ci!==void 0&&ci.push(Qi);else if(Qi.flags&524288)ci===void 0&&(ci=Ln.slice(0,Ai)),ci.push(ga);else return ft}return Zr(ci===void 0?Ln:ci)}const _i=Zr(Ln),na=_i.flags&131072?Hr:e3e(_c(ft,ci=>w9(_i,ci)),_i);if(!Li)return na;const kn=_c(ft,ci=>!(b4e(ci)&&Nr(_n,bd($dt(ci)))));return na.flags&131072?kn:Zr([na,kn])}function ju(ft,wt){switch(wt){case"string":return Ua(ft,ke,1);case"number":return Ua(ft,Tt,2);case"bigint":return Ua(ft,kt,4);case"boolean":return Ua(ft,ai,8);case"symbol":return Ua(ft,si,16);case"object":return ft.flags&1?ft:Zr([Ua(ft,ga,32),Ua(ft,fe,131072)]);case"function":return ft.flags&1?ft:Ua(ft,Wt,64);case"undefined":return Ua(ft,We,65536)}return Ua(ft,ga,128)}function Ua(ft,wt,un){return dl(ft,Ht=>th(Ht,wt,Bf)?ym(Ht,un)?Ht:Hr:Hb(wt,Ht)?wt:ym(Ht,un)?Ea([Ht,wt]):Hr)}function wd(ft,wt,un,Ht){const _n=Q4e(wt);if(!_n)return ft;const Ln=Br(wt.caseBlock.clauses,na=>na.kind===297);if(un===Ht||Ln>=un&&Ln<Ht){const na=WWe(un,Ht,_n);return _c(ft,kn=>eM(kn,na)===na)}const _i=_n.slice(un,Ht);return Zr(Ot(_i,na=>na?ju(ft,na):Hr))}function zl(ft,wt,un,Ht){const _n=Br(wt.caseBlock.clauses,_i=>_i.kind===297),Ln=un===Ht||_n>=un&&_n<Ht;for(let _i=0;_i<un;_i++){const na=wt.caseBlock.clauses[_i];na.kind===296&&(ft=Vr(ft,na.expression,!1))}if(Ln){for(let _i=Ht;_i<wt.caseBlock.clauses.length;_i++){const na=wt.caseBlock.clauses[_i];na.kind===296&&(ft=Vr(ft,na.expression,!1))}return ft}const Li=wt.caseBlock.clauses.slice(un,Ht);return Zr(Ot(Li,_i=>_i.kind===296?Vr(ft,_i.expression,!0):Hr))}function bl(ft){return(Fr(ft)&&Tr(ft.name)==="constructor"||$s(ft)&&ds(ft.argumentExpression)&&ft.argumentExpression.text==="constructor")&&xu(n,ft.expression)}function ct(ft,wt,un,Ht){if(Ht?wt!==35&&wt!==37:wt!==36&&wt!==38)return ft;const _n=Du(un);if(!Fbe(_n)&&!Va(_n))return ft;const Ln=ba(_n,"prototype");if(!Ln)return ft;const Li=dr(Ln),_i=Ct(Li)?void 0:Li;if(!_i||_i===Pe||_i===Wt)return ft;if(Ct(ft))return _i;return _c(ft,kn=>na(kn,_i));function na(kn,ci){return kn.flags&524288&&Wr(kn)&1||ci.flags&524288&&Wr(ci)&1?kn.symbol===ci.symbol:Hb(kn,ci)}}function Ie(ft,wt,un){const Ht=Z1(wt.left);if(!xu(n,Ht))return un&&Y&&rA(Ht,n)?iA(ft,2097152):ft;const _n=wt.right,Ln=Du(_n);if(!gE(Ln,Pe))return ft;const Li=X9(wt),_i=Li&&Jf(Li);if(_i&&_i.kind===1&&_i.parameterIndex===0)return Lr(ft,_i.type,un,!0);if(!gE(Ln,Wt))return ft;const na=dl(Ln,Mn);return Ct(ft)&&(na===Pe||na===Wt)||!un&&!(na.flags&524288&&!Jh(na))?ft:Lr(ft,na,un,!0)}function Mn(ft){const wt=Ke(ft,"prototype");if(wt&&!Ct(wt))return wt;const un=Ko(ft,1);return un.length?Zr(Ot(un,Ht=>ms(P8(Ht)))):ka}function Lr(ft,wt,un,Ht){var Ln;const _n=ft.flags&1048576?"N".concat(yd(ft),",").concat(yd(wt),",").concat((un?1:0)|(Ht?2:0)):void 0;return(Ln=ex(_n))!=null?Ln:gb(_n,di(ft,wt,un,Ht))}function di(ft,wt,un,Ht){if(!un){if(ft===wt)return Hr;if(Ht)return _c(ft,na=>!gE(na,wt));const _i=Lr(ft,wt,!0,!1);return _c(ft,na=>!tM(na,_i))}if(ft.flags&3||ft===wt)return wt;const _n=Ht?gE:Hb,Ln=ft.flags&1048576?U9(ft):void 0,Li=dl(wt,_i=>{const na=Ln&&Ke(_i,Ln),kn=na&&H9(ft,na),ci=dl(kn||ft,Ht?Ai=>gE(Ai,_i)?Ai:gE(_i,Ai)?_i:Hr:Ai=>k9(Ai,_i)?Ai:k9(_i,Ai)?_i:Hb(Ai,_i)?Ai:Hb(_i,Ai)?_i:Hr);return ci.flags&131072?dl(ft,Ai=>Pl(Ai,465829888)&&_n(_i,Gu(Ai)||dn)?Ea([Ai,_i]):Hr):ci});return Li.flags&131072?Hb(wt,ft)?wt:Sa(ft,wt)?ft:Sa(wt,ft)?wt:Ea([ft,wt]):Li}function Ii(ft,wt,un){if(j4e(wt,n)){const Ht=un||!hS(wt)?X9(wt):void 0,_n=Ht&&Jf(Ht);if(_n&&(_n.kind===0||_n.kind===1))return xi(ft,_n,wt,un)}if(U8(ft)&&zs(n)&&Fr(wt.expression)){const Ht=wt.expression;if(xu(n.expression,Z1(Ht.expression))&&je(Ht.name)&&Ht.name.escapedText==="hasOwnProperty"&&wt.arguments.length===1){const _n=wt.arguments[0];if(ds(_n)&&nA(n)===hl(_n.text))return bm(ft,un?524288:65536)}}return ft}function xi(ft,wt,un,Ht){if(wt.type&&!(Ct(ft)&&(wt.type===Pe||wt.type===Wt))){const _n=rft(wt,un);if(_n){if(xu(n,_n))return Lr(ft,wt.type,Ht,!1);Y&&rA(_n,n)&&(Ht&&!ym(wt.type,65536)||!Ht&&pp(wt.type,oB))&&(ft=iA(ft,2097152));const Ln=Gn(_n,ft);if(Ln)return tr(ft,Ln,Li=>Lr(Li,wt.type,Ht,!1))}}return ft}function Vr(ft,wt,un){if(I4(wt)||mr(wt.parent)&&(wt.parent.operatorToken.kind===61||wt.parent.operatorToken.kind===78)&&wt.parent.left===wt)return Rr(ft,wt,un);switch(wt.kind){case 80:if(!xu(n,wt)&&M<5){const Ht=Hm(wt);if(rM(Ht)){const _n=Ht.valueDeclaration;if(_n&&ki(_n)&&!_n.type&&_n.initializer&&i3e(n)){M++;const Ln=Vr(ft,_n.initializer,un);return M--,Ln}}}case 110:case 108:case 211:case 212:return Fo(ft,wt,un);case 213:return Ii(ft,wt,un);case 217:case 235:return Vr(ft,wt.expression,un);case 226:return fp(ft,wt,un);case 224:if(wt.operator===54)return Vr(ft,wt.operand,!un);break}return ft}function Rr(ft,wt,un){if(xu(n,wt))return iA(ft,un?2097152:262144);const Ht=Gn(wt,ft);return Ht?tr(ft,Ht,_n=>bm(_n,un?2097152:262144)):ft}}function oft(n,a){if(n=vf(n),(a.kind===80||a.kind===81)&&(VN(a)&&(a=a.parent),og(a)&&(!sg(a)||HA(a)))){const c=Ree(HA(a)&&a.kind===211?Zee(a,void 0,!0):Du(a));if(vf(Qr(a).resolvedSymbol)===n)return c}return jg(a)&&zv(a.parent)&&Um(a.parent)?p9(a.parent.symbol):AU(a)&&HA(a.parent)?U1(n):Ob(n)}function X8(n){return zn(n.parent,a=>Qo(a)&&!xS(a)||a.kind===268||a.kind===312||a.kind===172)}function o3e(n){return!a3e(n,void 0)}function a3e(n,a){const c=zn(n.valueDeclaration,jee);if(!c)return!1;const d=Qr(c);return d.flags&131072||(d.flags|=131072,aft(c)||l3e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPos<a.pos}function dye(n){return C.assert(ki(n)||Io(n)),s3e(n.name)}function s3e(n){return n.kind===80?o3e(xr(n.parent)):St(n.elements,a=>a.kind!==232&&s3e(a.name))}function aft(n){return!!zn(n.parent,a=>jee(a)&&!!(Qr(a).flags&131072))}function jee(n){return js(n)||Zi(n)}function l3e(n){switch(n.kind){case 80:if(sg(n)){const c=Hm(n);if(Uee(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){const d=zn(n,jee),_=zn(c.valueDeclaration,jee);c.lastAssignmentPos=d===_?sft(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:const a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){const c=qs(n.propertyName||n.name,111551,!0,!0);c&&Uee(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}Ui(n)||Vo(n,l3e)}function sft(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:c=n.end}n=n.parent}return c}function rM(n){return n.flags&3&&(Pye(n)&6)!==0}function Uee(n){const a=n.valueDeclaration&&N_(n.valueDeclaration);return!!a&&(Io(a)||ki(a)&&(d1(a.parent)||lft(a)))}function lft(n){return!!(n.parent.flags&1)&&!(d0(n)&32||n.parent.parent.kind===243&&wh(n.parent.parent.parent))}function cft(n){const a=Qr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Gh(n,9))return EC(n.symbol),!0;const c=!!ym(aM(n,0),16777216);if(!Y_())return EC(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function uft(n,a){return Y&&a.kind===169&&a.initializer&&ym(n,16777216)&&!cft(a)?bm(n,524288):n}function dft(n,a){const c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(qm(n,u3e)&&QT(Du(c.argumentExpression)))}function c3e(n){return n.flags&2097152?St(n.types,c3e):!!(n.flags&465829888&&hv(n).flags&1146880)}function u3e(n){return n.flags&2097152?St(n.types,u3e):!!(n.flags&465829888&&!Pl(hv(n),98304))}function pft(n,a){const c=(je(n)||Fr(n)||$s(n))&&!((W_(n.parent)||JS(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Yd(n,8):Yd(n,void 0));return c&&!NC(c)}function pye(n,a,c){return!(c&&c&2)&&qm(n,c3e)&&(dft(n,a)||pft(a,c))?dl(n,hv):n}function d3e(n){return!!zn(n,a=>{const c=a.parent;return c===void 0?"quit":wl(c)?c.expression===a&&jl(a):Ku(c)?c.name===a||c.propertyName===a:!1})}function Hee(n,a){if(It&&PT(n,111551)&&!kS(a)){const c=Bc(n);Iu(n,!0)&1160127&&(um(V)||n1(V)&&d3e(a)||!u6(vf(c))?Ib(n):au(n))}}function fft(n,a,c){var d;const _=dr(n,c),y=n.valueDeclaration;if(y){if(ns(y)&&!y.initializer&&!y.dotDotDotToken&&y.parent.elements.length>=2){const x=y.parent.parent,k=N_(x);if(k.kind===260&&aS(k)&6||k.kind===169){const z=Qr(x);if(!(z.flags&4194304)){z.flags|=4194304;const J=zr(x,0),ne=J&&dl(J,hv);if(z.flags&=-4194305,ne&&ne.flags&1048576&&!(k.kind===169&&dye(k))){const Se=y.parent,ve=Yb(Se,ne,ne,void 0,a.flowNode);return ve.flags&131072?Hr:jm(y,ve,!0)}}}}if(Io(y)&&!y.type&&!y.initializer&&!y.dotDotDotToken){const x=y.parent;if(x.parameters.length>=2&&_ee(x)){const k=$8(x);if(k&&k.parameters.length===1&&Yu(k)){const z=V2(co(dr(k.parameters[0]),(d=eS(x))==null?void 0:d.nonFixingMapper));if(z.flags&1048576&&pp(z,ja)&&!St(x.parameters,dye)){const J=Yb(x,z,z,void 0,a.flowNode),ne=x.parameters.indexOf(y)-(KE(x)?1:0);return Lp(J,v_(ne))}}}}}return _}function mft(n,a){if(VA(n))return Q9(n);const c=Hm(n);if(c===pt)return _t;if(c===Ft){if(K3e(n))return Xe(n,m.arguments_cannot_be_referenced_in_property_initializers),_t;let mn=Gp(n);if(mn)for(se<2&&(mn.kind===219?Xe(n,m.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):$r(mn,1024)&&Xe(n,m.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Qr(mn).flags|=512;mn&&Us(mn);)mn=Gp(mn),mn&&(Qr(mn).flags|=512);return dr(c)}hft(n)&&Hee(c,n);const d=vf(c),_=Mbe(d,n);vb(_)&&mve(n,_)&&_.declarations&&uy(n,_.declarations,n.escapedText);let y=d.valueDeclaration;if(y&&d.flags&32&&ui(y)&&y.name!==n){let mn=Fd(n,!1,!1);for(;mn.kind!==312&&mn.parent!==y;)mn=Fd(mn,!1,!1);mn.kind!==312&&(Qr(y).flags|=262144,Qr(mn).flags|=262144,Qr(n).flags|=536870912)}yft(n,c);let x=fft(d,n,a);const k=BA(n);if(k){if(!(d.flags&3)&&!(sr(n)&&d.flags&512)){const mn=d.flags&384?m.Cannot_assign_to_0_because_it_is_an_enum:d.flags&32?m.Cannot_assign_to_0_because_it_is_a_class:d.flags&1536?m.Cannot_assign_to_0_because_it_is_a_namespace:d.flags&16?m.Cannot_assign_to_0_because_it_is_a_function:d.flags&2097152?m.Cannot_assign_to_0_because_it_is_an_import:m.Cannot_assign_to_0_because_it_is_not_a_variable;return Xe(n,mn,Si(c)),_t}if(E_(d))return d.flags&3?Xe(n,m.Cannot_assign_to_0_because_it_is_a_constant,Si(c)):Xe(n,m.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(c)),_t}const z=d.flags&2097152;if(d.flags&3){if(k===1)return Qj(n)?Ev(x):x}else if(z)y=zm(c);else return x;if(!y)return x;x=pye(x,n,a);const J=N_(y).kind===169,ne=X8(y);let Se=X8(n);const ve=Se!==ne,Ge=n.parent&&n.parent.parent&&Yv(n.parent)&&cye(n.parent.parent),vt=c.flags&134217728,xt=x===ot||x===Kc,cn=xt&&n.parent.kind===235;for(;Se!==ne&&(Se.kind===218||Se.kind===219||Z4(Se))&&(rM(d)&&x!==Kc||Uee(d)&&a3e(d,n));)Se=X8(Se);const sn=J||z||ve||Ge||vt||_ft(n,y)||x!==ot&&x!==Kc&&(!Y||(x.flags&16387)!==0||kS(n)||rye(n)||n.parent.kind===281)||n.parent.kind===235||y.kind===260&&y.exclamationToken||y.flags&33554432,er=cn?We:sn?J?uft(x,y):x:xt?We:Kb(x),Wn=cn?Sv(Yb(n,x,er,Se)):Yb(n,x,er,Se);if(!n3e(n)&&(x===ot||x===Kc)){if(Wn===ot||Wn===Kc)return de&&(Xe(Po(y),m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Si(c),Un(Wn)),Xe(n,m.Variable_0_implicitly_has_an_1_type,Si(c),Un(Wn))),c6(Wn)}else if(!sn&&!K2(x)&&K2(Wn))return Xe(n,m.Variable_0_is_used_before_being_assigned,Si(c)),x;return k?Ev(Wn):Wn}function _ft(n,a){if(ns(a)){const c=zn(n,ns);return c&&N_(c)===N_(a)}}function hft(n){var a;const c=n.parent;if(c){if(Fr(c)&&c.expression===n||Ku(c)&&c.isTypeOnly)return!1;const d=(a=c.parent)==null?void 0:a.parent;if(d&&Zl(d)&&d.isTypeOnly)return!1}return!0}function gft(n,a){return!!zn(n,c=>c===a?"quit":Qo(c)||c.parent&&Uo(c.parent)&&!vc(c.parent)&&c.parent.initializer===c)}function vft(n,a){return zn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function fye(n){return zn(n,a=>!a||sU(a)?"quit":Wy(a,!1))}function yft(n,a){if(se>=2||(a.flags&34)===0||!a.valueDeclaration||Zi(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;const c=vh(a.valueDeclaration),d=gft(n,c),_=fye(c);if(_){if(d){let y=!0;if(HS(c)){const x=S0(a.valueDeclaration,261);if(x&&x.parent===c){const k=vft(n.parent,c);if(k){const z=Qr(k);z.flags|=8192;const J=z.capturedBlockScopeBindings||(z.capturedBlockScopeBindings=[]);Tf(J,a),k===c.initializer&&(y=!1)}}}y&&(Qr(_).flags|=4096)}if(HS(c)){const y=S0(a.valueDeclaration,261);y&&y.parent===c&&Eft(n,c)&&(Qr(a.valueDeclaration).flags|=65536)}Qr(a.valueDeclaration).flags|=32768}d&&(Qr(a.valueDeclaration).flags|=16384)}function bft(n,a){const c=Qr(n);return!!c&&Nr(c.capturedBlockScopeBindings,xr(a))}function Eft(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let d=!1;if(sg(c))d=!0;else if(c.parent.kind===224||c.parent.kind===225){const _=c.parent;d=_.operator===46||_.operator===47}return d?!!zn(c,_=>_===a?"quit":_===a.statement):!1}function mye(n,a){if(Qr(n).flags|=2,a.kind===172||a.kind===176){const c=a.parent;Qr(c).flags|=4}else Qr(a).flags|=4}function p3e(n){return IS(n)?n:Qo(n)?void 0:Vo(n,p3e)}function _ye(n){const a=xr(n),c=Zs(a);return Hf(c)===Ve}function f3e(n,a,c){const d=a.parent;qE(d)&&!_ye(d)&&ZL(n)&&n.flowNode&&!Vee(n.flowNode,!1)&&Xe(n,c)}function Sft(n,a){Uo(a)&&vc(a)&&re&&a.initializer&&sL(a.initializer,n.pos)&&If(a.parent)&&Xe(n,m.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Q9(n){const a=kS(n);let c=Fd(n,!0,!0),d=!1,_=!1;for(c.kind===176&&f3e(n,c,m.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=Fd(c,!1,!_),d=!0),c.kind===167){c=Fd(c,!d,!1),_=!0;continue}break}if(Sft(n,c),_)Xe(n,m.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:Xe(n,m.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Xe(n,m.this_cannot_be_referenced_in_current_location);break;case 176:m3e(n,c)&&Xe(n,m.this_cannot_be_referenced_in_constructor_arguments);break}!a&&d&&se<2&&mye(n,c);const y=hye(n,!0,c);if(ie){const x=dr(it);if(y===x&&d)Xe(n,m.The_containing_arrow_function_captures_the_global_value_of_this);else if(!y){const k=Xe(n,m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Zi(c)){const z=hye(c);z&&z!==x&&Oa(k,Or(c,m.An_outer_value_of_this_is_shadowed_by_this_container))}}}return y||j}function hye(n,a=!0,c=Fd(n,!1,!1)){const d=sr(n);if(Qo(c)&&(!yye(n)||KE(c))){let _=vge(c)||d&&Ift(c);if(!_){const y=Aft(c);if(d&&y){const x=go(y).symbol;x&&x.members&&x.flags&16&&(_=Zs(x).thisType)}else ih(c)&&(_=Zs(ss(c.symbol)).thisType);_||(_=v3e(c))}if(_)return Yb(n,_)}if(ui(c.parent)){const _=xr(c.parent),y=aa(c)?dr(_):Zs(_).thisType;return Yb(n,y)}if(Zi(c))if(c.commonJsModuleIndicator){const _=xr(c);return _&&dr(_)}else{if(c.externalModuleIndicator)return We;if(a)return dr(it)}}function Tft(n){const a=Fd(n,!1,!1);if(Qo(a)){const c=gm(a);if(c.thisParameter)return Bee(c.thisParameter)}if(ui(a.parent)){const c=xr(a.parent);return aa(a)?dr(c):Zs(c).thisType}}function Aft(n){if(n.kind===218&&mr(n.parent)&&Vl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&mr(n.parent.parent)&&Vl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&mr(n.parent.parent.parent)&&Vl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&bc(n.parent)&&je(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Wa(n.parent.parent)&&sa(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&Vl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Kl(n)&&je(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Wa(n.parent)&&sa(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&Vl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function Ift(n){const a=E4(n);if(a&&a.typeExpression)return Ti(a.typeExpression);const c=j2(n);if(c)return mE(c)}function m3e(n,a){return!!zn(n,c=>js(c)?"quit":c.kind===169&&c.parent===a)}function gye(n){const a=n.parent.kind===213&&n.parent.expression===n,c=WL(n,!0);let d=c,_=!1,y=!1;if(!a){for(;d&&d.kind===219;)$r(d,1024)&&(y=!0),d=WL(d,!0),_=se<2;d&&$r(d,1024)&&(y=!0)}let x=0;if(!d||!ne(d)){const Se=zn(n,ve=>ve===d?"quit":ve.kind===167);return Se&&Se.kind===167?Xe(n,m.super_cannot_be_referenced_in_a_computed_property_name):a?Xe(n,m.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!d||!d.parent||!(ui(d.parent)||d.parent.kind===210)?Xe(n,m.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Xe(n,m.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),_t}if(!a&&c.kind===176&&f3e(n,d,m.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),aa(d)||a?(x=32,!a&&se>=2&&se<=8&&(Uo(d)||Rl(d))&&Aie(n.parent,Se=>{(!Zi(Se)||zp(Se))&&(Qr(Se).flags|=2097152)})):x=16,Qr(n).flags|=x,d.kind===174&&y&&(zd(n.parent)&&sg(n.parent)?Qr(d).flags|=256:Qr(d).flags|=128),_&&mye(n.parent,d),d.parent.kind===210)return se<2?(Xe(n,m.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_t):j;const k=d.parent;if(!qE(k))return Xe(n,m.super_can_only_be_referenced_in_a_derived_class),_t;if(_ye(k))return a?_t:Ve;const z=Zs(xr(k)),J=z&&dp(z)[0];if(!J)return _t;if(d.kind===176&&m3e(n,d))return Xe(n,m.super_cannot_be_referenced_in_constructor_arguments),_t;return x===32?Hf(z):Kp(J,z.thisType);function ne(Se){return a?Se.kind===176:ui(Se.parent)||Se.parent.kind===210?aa(Se)?Se.kind===174||Se.kind===173||Se.kind===177||Se.kind===178||Se.kind===172||Se.kind===175:Se.kind===174||Se.kind===173||Se.kind===177||Se.kind===178||Se.kind===172||Se.kind===171||Se.kind===176:!1}}function _3e(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function h3e(n){return Wr(n)&4&&n.target===Ul?Js(n)[0]:void 0}function xft(n){return dl(n,a=>a.flags&2097152?He(a.types,h3e):h3e(a))}function g3e(n,a){let c=n,d=a;for(;d;){const _=xft(d);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,d=TE(c,void 0)}}function v3e(n){if(n.kind===219)return;if(_ee(n)){const c=$8(n);if(c){const d=c.thisParameter;if(d)return dr(d)}}const a=sr(n);if(ie||a){const c=_3e(n);if(c){const _=TE(c,void 0),y=g3e(c,_);return y?co(y,Kve(eS(c))):Xp(_?Sv(_):ac(c))}const d=Gv(n.parent);if(wc(d)){const _=d.left;if(zs(_)){const{expression:y}=_;if(a&&je(y)){const x=jn(d);if(x.commonJsModuleIndicator&&Hm(y)===x.symbol)return}return Xp(ac(y))}}}}function y3e(n){const a=n.parent;if(!_ee(a))return;const c=xS(a);if(c&&c.arguments){const _=ste(c),y=a.parameters.indexOf(n);if(n.dotDotDotToken)return Hye(_,y,_.length,j,void 0,0);const x=Qr(c),k=x.resolvedSignature;x.resolvedSignature=yt;const z=y<_.length?Q1(go(_[y])):n.initializer?void 0:Lt;return x.resolvedSignature=k,z}const d=$8(a);if(d){const _=a.parameters.indexOf(n)-(KE(a)?1:0);return n.dotDotDotToken&&el(a.parameters)===n?mB(d,_):nS(d,_)}}function vye(n,a){const c=bu(n)||(sr(n)?sW(n):void 0);if(c)return Ti(c);switch(n.kind){case 169:return y3e(n);case 208:return Rft(n,a);case 172:if(aa(n))return Dft(n,a)}}function Rft(n,a){const c=n.parent.parent,d=n.propertyName||n.name,_=vye(c,a)||c.kind!==208&&c.initializer&&aM(c,n.dotDotDotToken?32:0);if(!_||Zo(d)||PL(d))return;if(c.name.kind===207){const x=lR(n.parent.elements,n);return x<0?void 0:Sye(_,x)}const y=vy(d);if(lm(y)){const x=cm(y);return Ke(_,x)}}function Dft(n,a){const c=bt(n.parent)&&Yd(n.parent,a);if(c)return SE(c,xr(n).escapedName)}function Cft(n,a){const c=n.parent;if(zy(c)&&n===c.initializer){const d=vye(c,a);if(d)return d;if(!(a&8)&&Zo(c.name)&&c.name.elements.length>0)return P(c.name,!0,!1)}}function Nft(n,a){const c=Gp(n);if(c){let d=qee(c,a);if(d){const _=Uc(c);if(_&1){const y=(_&2)!==0;d.flags&1048576&&(d=_c(d,k=>!!rS(1,k,y)));const x=rS(1,d,(_&2)!==0);if(!x)return;d=x}if(_&2){const y=dl(d,Ey);return y&&Zr([y,kWe(y)])}return d}}}function Pft(n,a){const c=Yd(n,a);if(c){const d=Ey(c);return d&&Zr([d,kWe(d)])}}function Mft(n,a){const c=Gp(n);if(c){const d=Uc(c);let _=qee(c,a);if(_){const y=(d&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=_c(_,x=>!!rS(1,x,y))),n.asteriskToken?_:rS(0,_,y)}}}function yye(n){let a=!1;for(;n.parent&&!Qo(n.parent);){if(Io(n.parent)&&(a||n.parent.initializer===n))return!0;ns(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function b3e(n,a){const c=!!(Uc(a)&2),d=qee(a,void 0);if(d)return rS(n,d,c)||void 0}function qee(n,a){const c=IC(n);if(c)return c;const d=Aye(n);if(d&&!YZ(d)){const y=ms(d),x=Uc(n);return x&1?_c(y,k=>!!(k.flags&58998787)||pbe(k,x,void 0)):x&2?_c(y,k=>!!(k.flags&58998787)||!!cM(k)):y}const _=xS(n);if(_)return Yd(_,a)}function E3e(n,a){const d=ste(n).indexOf(a);return d===-1?void 0:bye(n,d)}function bye(n,a){if(Bp(n))return a===0?ke:a===1?c6e(!1):j;const c=Qr(n).resolvedSignature===gr?gr:WC(n);if(ud(n)&&a===0)return Yee(c,n);const d=c.parameters.length-1;return Yu(c)&&a>=d?Lp(dr(c.parameters[d]),v_(a-d),256):b_(c,a)}function Lft(n){const a=ibe(n);return a?KT(a):void 0}function kft(n,a){if(n.parent.kind===215)return E3e(n.parent,a)}function wft(n,a){const c=n.parent,{left:d,operatorToken:_,right:y}=c;switch(_.kind){case 64:case 77:case 76:case 78:return n===y?Wft(c):void 0;case 57:case 61:const x=Yd(c,a);return n===y&&(x&&x.pattern||!x&&!Hie(c))?Du(d):x;case 56:case 28:return n===y?Yd(c,a):void 0;default:return}}function Oft(n){if(x_(n)&&n.symbol)return n.symbol;if(je(n))return Hm(n);if(Fr(n)){const c=Du(n.expression);return Ji(n.name)?a(c,n.name):ba(c,n.name.escapedText)}if($s(n)){const c=ac(n.argumentExpression);if(!lm(c))return;const d=Du(n.expression);return ba(d,cm(c))}return;function a(c,d){const _=ete(d.escapedText,d);return _&&wye(c,_)}}function Wft(n){var a,c;const d=Vl(n);switch(d){case 0:case 4:const _=Oft(n.left),y=_&&_.valueDeclaration;if(y&&(Uo(y)||Ep(y))){const z=bu(y);return z&&co(Ti(z),Xi(_).mapper)||(Uo(y)?y.initializer&&Du(n.left):void 0)}return d===0?Du(n.left):S3e(n);case 5:if(Jee(n,d))return S3e(n);if(!x_(n.left)||!n.left.symbol)return Du(n.left);{const z=n.left.symbol.valueDeclaration;if(!z)return;const J=oa(n.left,zs),ne=bu(z);if(ne)return Ti(ne);if(je(J.expression)){const Se=J.expression,ve=yl(Se,Se.escapedText,111551,void 0,Se.escapedText,!0);if(ve){const Ge=ve.valueDeclaration&&bu(ve.valueDeclaration);if(Ge){const vt=Vg(J);if(vt!==void 0)return SE(Ti(Ge),vt)}return}}return sr(z)||z===n.left?void 0:Du(n.left)}case 1:case 6:case 3:case 2:let x;d!==2&&(x=x_(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(c=n.symbol)==null?void 0:c.valueDeclaration);const k=x&&bu(x);return k?Ti(k):void 0;case 7:case 8:case 9:return C.fail("Does not apply");default:return C.assertNever(d)}}function Jee(n,a=Vl(n)){if(a===4)return!0;if(!sr(n)||a!==5||!je(n.left.expression))return!1;const c=n.left.expression.escapedText,d=yl(n.left,c,111551,void 0,void 0,!0,!0);return i3(d==null?void 0:d.valueDeclaration)}function S3e(n){if(!n.symbol)return Du(n.left);if(n.symbol.valueDeclaration){const _=bu(n.symbol.valueDeclaration);if(_){const y=Ti(_);if(y)return y}}const a=oa(n.left,zs);if(!Nm(Fd(a.expression,!1,!1)))return;const c=Q9(a.expression),d=Vg(a);return d!==void 0&&SE(c,d)||void 0}function Fft(n){return!!(xl(n)&262144&&!n.links.type&&mx(n,0)>=0)}function SE(n,a,c){return dl(n,d=>{var _;if(Kd(d)&&!d.declaration.nameType){const y=Ef(d),x=Gu(y)||y,k=c||Xd(ji(a));if(Sa(k,x))return see(d,k)}else if(d.flags&3670016){const y=ba(d,a);if(y)return Fft(y)?void 0:Xb(dr(y),!!(y&&y.flags&16777216));if(ja(d)&&pg(a)&&+a>=0){const x=Q2(d,d.target.fixedLength,0,!1,!0);if(x)return x}return(_=Wge(Fge(d),c||Xd(ji(a))))==null?void 0:_.type}},!0)}function T3e(n,a){if(C.assert(Nm(n)),!(n.flags&67108864))return Eye(n,a)}function Eye(n,a){const c=n.parent,d=bc(n)&&vye(n,a);if(d)return d;const _=TE(c,a);if(_){if(TC(n)){const y=xr(n);return SE(_,y.escapedName,Xi(y).nameType)}if(jy(n)){const y=Po(n);if(y&&rs(y)){const x=go(y.expression),k=lm(x)&&SE(_,cm(x));if(k)return k}}if(n.name){const y=vy(n.name);return dl(_,x=>{var k;return(k=Wge(Fge(x),y))==null?void 0:k.type},!0)}}}function zft(n){let a,c;for(let d=0;d<n.length;d++)n_(n[d])&&(a!=null||(a=d),c=d);return{first:a,last:c}}function Sye(n,a,c,d,_){return n&&dl(n,y=>{if(ja(y)){if((d===void 0||a<d)&&a<y.target.fixedLength)return Xb(Js(y)[a],!!y.target.elementFlags[a]);const x=c!==void 0&&(_===void 0||a>_)?c-a:0,k=x>0&&y.target.hasRestElement?L8(y.target,3):0;return x>0&&x<=k?Js(y)[gy(y)-x]:Q2(y,d===void 0?y.target.fixedLength:Math.min(y.target.fixedLength,d),c===void 0||_===void 0?k:Math.min(k,c-_),!1,!0)}return(!d||a<d)&&SE(y,""+a)||Tbe(1,y,We,void 0,!1)},!0)}function Bft(n,a){const c=n.parent;return n===c.whenTrue||n===c.whenFalse?Yd(c,a):void 0}function Gft(n,a,c){const d=TE(n.openingElement.attributes,c),_=nB(sA(n));if(!(d&&!Ct(d)&&_&&_!==""))return;const y=RR(n.children),x=y.indexOf(a),k=SE(d,_);return k&&(y.length===1?k:dl(k,z=>by(z)?Lp(z,v_(x)):z,!0))}function Vft(n,a){const c=n.parent;return M4(c)?Yd(n,a):mg(c)?Gft(c,n,a):void 0}function A3e(n,a){if(F_(n)){const c=TE(n.parent,a);return!c||Ct(c)?void 0:SE(c,sP(n.name))}else return Yd(n.parent,a)}function Z9(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return Z9(n.expression);case 294:return!n.expression||Z9(n.expression)}return!1}function jft(n,a){return kpt(a,n)||Lve(a,To(Ot(rr(n.properties,c=>c.symbol?c.kind===303?Z9(c.initializer)&&Z2(a,c.symbol.escapedName):c.kind===304?Z2(a,c.symbol.escapedName):!1:!1),c=>[()=>EB(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),Ot(rr(bs(a),c=>{var d;return!!(c.flags&16777216)&&!!((d=n==null?void 0:n.symbol)!=null&&d.members)&&!n.symbol.members.has(c.escapedName)&&Z2(a,c.escapedName)}),c=>[()=>We,c.escapedName])),Sa)}function Uft(n,a){const c=nB(sA(n));return Lve(a,To(Ot(rr(n.properties,d=>!!d.symbol&&d.kind===291&&Z2(a,d.symbol.escapedName)&&(!d.initializer||Z9(d.initializer))),d=>[d.initializer?()=>EB(d.initializer):()=>nr,d.symbol.escapedName]),Ot(rr(bs(a),d=>{var _;if(!(d.flags&16777216)||!((_=n==null?void 0:n.symbol)!=null&&_.members))return!1;const y=n.parent.parent;return d.escapedName===c&&mg(y)&&RR(y.children).length?!1:!n.symbol.members.has(d.escapedName)&&Z2(a,d.escapedName)}),d=>[()=>We,d.escapedName])),Sa)}function TE(n,a){const c=Nm(n)?T3e(n,a):Yd(n,a),d=Kee(c,n,a);if(d&&!(a&&a&2&&d.flags&8650752)){const _=dl(d,y=>Wr(y)&32?y:kd(y),!0);return _.flags&1048576&&Wa(n)?jft(n,_):_.flags&1048576&&u1(n)?Uft(n,_):_}}function Kee(n,a,c){if(n&&Pl(n,465829888)){const d=eS(a);if(d&&c&1&&St(d.inferences,Rht))return Xee(n,d.nonFixingMapper);if(d!=null&&d.returnMapper){const _=Xee(n,d.returnMapper);return _.flags&1048576&&gv(_.types,En)&&gv(_.types,lr)?_c(_,y=>y!==En&&y!==lr):_}}return n}function Xee(n,a){return n.flags&465829888?co(n,a):n.flags&1048576?Zr(Ot(n.types,c=>Xee(c,a)),0):n.flags&2097152?Ea(Ot(n.types,c=>Xee(c,a))):n}function Yd(n,a){var y;var c;if(n.flags&67108864)return;const d=x3e(n,!a);if(d>=0)return bn[d];const{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Cft(n,a);case 219:case 253:return Nft(n,a);case 229:return Mft(_,a);case 223:return Pft(_,a);case 213:case 214:return E3e(_,n);case 170:return Lft(_);case 216:case 234:return zg(_.type)?Yd(_,a):Ti(_.type);case 226:return wft(n,a);case 303:case 304:return Eye(_,a);case 305:return Yd(_.parent,a);case 209:{const x=_,k=TE(x,a),z=lR(x.elements,n),J=(y=(c=Qr(x)).spreadIndices)!=null?y:c.spreadIndices=zft(x.elements);return Sye(k,z,x.elements.length,J.first,J.last)}case 227:return Bft(n,a);case 239:return C.assert(_.parent.kind===228),kft(_.parent,n);case 217:{if(sr(_)){if(KU(_))return Ti(XU(_));const x=f0(_);if(x&&!zg(x.typeExpression.type))return Ti(x.typeExpression.type)}return Yd(_,a)}case 235:return Yd(_,a);case 238:return Ti(_.type);case 277:return $i(_);case 294:return Vft(_,a);case 291:case 293:return A3e(_,a);case 286:case 285:return Kft(_,a);case 301:return Jft(_)}}function I3e(n){eB(n,Yd(n,void 0),!0)}function eB(n,a,c){Jn[fi]=n,bn[fi]=a,$n[fi]=c,fi++}function Y8(){fi--}function x3e(n,a){for(let c=fi-1;c>=0;c--)if(n===Jn[c]&&(a||!$n[c]))return c;return-1}function Hft(n,a){cr[fr]=n,ei[fr]=a,fr++}function qft(){fr--}function eS(n){for(let a=fr-1;a>=0;a--)if(HE(n,cr[a]))return ei[a]}function Jft(n){return SE(eve(!1),cW(n))}function Kft(n,a){if(W_(n)&&a!==4){const c=x3e(n.parent,!a);if(c>=0)return bn[c]}return bye(n,0)}function Yee(n,a){return cWe(a)!==0?Xft(n,a):Qft(n,a)}function Xft(n,a){let c=nbe(n,dn);c=R3e(a,sA(a),c);const d=tS(sf.IntrinsicAttributes,a);return Kt(d)||(c=v9(d,c)),c}function Yft(n,a){if(n.compositeSignatures){const d=[];for(const _ of n.compositeSignatures){const y=ms(_);if(Ct(y))return y;const x=Ke(y,a);if(!x)return;d.push(x)}return Ea(d)}const c=ms(n);return Ct(c)?c:Ke(c,a)}function $ft(n){if(Ax(n.tagName)){const c=O3e(n),d=lte(n,c);return KT(d)}const a=ac(n.tagName);if(a.flags&128){const c=w3e(a,n);if(!c)return _t;const d=lte(n,c);return KT(d)}return a}function R3e(n,a,c){const d=vmt(a);if(d){const _=$ft(n),y=z3e(d,sr(n),_,c);if(y)return y}return c}function Qft(n,a){const c=sA(a),d=bmt(c);let _=d===void 0?nbe(n,dn):d===""?ms(n):Yft(n,d);if(!_)return d&&Le(a.attributes.properties)&&Xe(a,m.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,ji(d)),dn;if(_=R3e(a,c,_),Ct(_))return _;{let y=_;const x=tS(sf.IntrinsicClassAttributes,a);if(!Kt(x)){const z=wr(x.symbol),J=ms(n);let ne;if(z){const Se=Bb([J],z,Uh(z),sr(a));ne=co(x,kp(z,Se))}else ne=x;y=v9(ne,y)}const k=tS(sf.IntrinsicAttributes,a);return Kt(k)||(y=v9(k,y)),y}}function Zft(n){return fd(V,"noImplicitAny")?od(n,(a,c)=>a===c||!a?a:x8e(a.typeParameters,c.typeParameters)?nmt(a,c):void 0):void 0}function emt(n,a,c){if(!n||!a)return n||a;const d=Zr([dr(n),co(dr(a),c)]);return tA(n,d)}function tmt(n,a,c){const d=Yp(n),_=Yp(a),y=d>=_?n:a,x=y===n?a:n,k=y===n?d:_,z=Kh(n)||Kh(a),J=z&&!Kh(y),ne=new Array(k+(J?1:0));for(let Se=0;Se<k;Se++){let ve=nS(y,Se);y===a&&(ve=co(ve,c));let Ge=nS(x,Se)||dn;x===a&&(Ge=co(Ge,c));const vt=Zr([ve,Ge]),xt=z&&!J&&Se===k-1,cn=Se>=oh(y)&&Se>=oh(x),sn=Se>=d?void 0:oM(n,Se),er=Se>=_?void 0:oM(a,Se),Wn=sn===er?sn:sn?er?void 0:sn:er,mn=Za(1|(cn&&!xt?16777216:0),Wn||"arg".concat(Se));mn.links.type=xt?Vu(vt):vt,ne[Se]=mn}if(J){const Se=Za(1,"args");Se.links.type=Vu(b_(x,k)),x===a&&(Se.links.type=co(Se.links.type,c)),ne[k]=Se}return ne}function nmt(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=kp(a.typeParameters,n.typeParameters));const _=n.declaration,y=tmt(n,a,d),x=emt(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),z=Dg(_,c,x,y,void 0,void 0,k,(n.flags|a.flags)&167);return z.compositeKind=2097152,z.compositeSignatures=To(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),d&&(z.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?$1(n.mapper,d):d),z}function Tye(n,a){const c=Ko(n,0),d=rr(c,_=>!rmt(_,a));return d.length===1?d[0]:Zft(d)}function rmt(n,a){let c=0;for(;c<a.parameters.length;c++){const d=a.parameters[c];if(d.initializer||d.questionToken||d.dotDotDotToken||Rk(d))break}return a.parameters.length&&XE(a.parameters[0])&&c--,!Kh(n)&&Yp(n)<c}function Aye(n){return e1(n)||Nm(n)?$8(n):void 0}function $8(n){C.assert(n.kind!==174||Nm(n));const a=j2(n);if(a)return a;const c=TE(n,1);if(!c)return;if(!(c.flags&1048576))return Tye(c,n);let d;const _=c.types;for(const y of _){const x=Tye(y,n);if(x)if(!d)d=[x];else if(B9(d[0],x,!1,!0,!0,z8))d.push(x);else return}if(d)return d.length===1?d[0]:A8e(d[0],d)}function imt(n,a){se<2&&Pc(n,V.downlevelIteration?1536:1024);const c=go(n.expression,a);return Sy(33,c,We,n.expression)}function omt(n){return n.isSpread?Lp(n.type,Tt):n.type}function iM(n){return n.kind===208&&!!n.initializer||n.kind===226&&n.operatorToken.kind===64}function amt(n){const a=Gv(n.parent);return n_(a)&&I_(a.parent)}function D3e(n,a,c){const d=n.elements,_=d.length,y=[],x=[];I3e(n);const k=sg(n),z=sM(n),J=TE(n,void 0),ne=amt(n)||!!J&&qm(J,ve=>$2(ve)||Kd(ve)&&!ve.nameType&&!!W8(ve.target||ve));let Se=!1;for(let ve=0;ve<_;ve++){const Ge=d[ve];if(Ge.kind===230){se<2&&Pc(Ge,V.downlevelIteration?1536:1024);const vt=go(Ge.expression,a,c);if(by(vt))y.push(vt),x.push(8);else if(k){const xt=fE(vt,Tt)||Tbe(65,vt,We,void 0,!1)||dn;y.push(xt),x.push(4)}else y.push(Sy(33,vt,We,Ge.expression)),x.push(4)}else if(Me&&Ge.kind===232)Se=!0,y.push(me),x.push(2);else{const vt=lM(Ge,a,c);if(y.push(up(vt,!0,Se)),x.push(Se?2:1),ne&&a&&a&2&&!(a&4)&&Kf(Ge)){const xt=eS(n);C.assert(xt),qve(xt,Ge,vt)}}}return Y8(),k?qh(y,x):C3e(c||z||ne?qh(y,x,z&&!(J&&qm(J,Wve))):Vu(y.length?Zr(no(y,(ve,Ge)=>x[Ge]&8?Vb(ve,Tt)||j:ve),2):Y?wi:Lt,z))}function C3e(n){if(!(Wr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=$8e(n),a.objectFlags|=147456),a}function smt(n){switch(n.kind){case 167:return lmt(n);case 80:return pg(n.escapedText);case 9:case 11:return pg(n.text);default:return!1}}function lmt(n){return Ru(Ng(n),296)}function Ng(n){const a=Qr(n.expression);if(!a.resolvedType){if((Tp(n.parent.parent)||ui(n.parent.parent)||hd(n.parent.parent))&&mr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=_t;if(a.resolvedType=go(n.expression),Uo(n.parent)&&!vc(n.parent)&&tu(n.parent.parent)){const c=vh(n.parent.parent),d=fye(c);d&&(Qr(d).flags|=4096,Qr(n).flags|=32768,Qr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Ru(a.resolvedType,402665900)&&!Sa(a.resolvedType,Qt))&&Xe(n,m.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function cmt(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return pg(n.escapedName)||c&&ld(c)&&smt(c.name)}function N3e(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return lk(n)||c&&ld(c)&&rs(c.name)&&Ru(Ng(c.name),4096)}function Iye(n,a,c,d){const _=[];for(let x=a;x<c.length;x++){const k=c[x];(d===ke&&!N3e(k)||d===Tt&&cmt(k)||d===si&&N3e(k))&&_.push(dr(c[x]))}const y=_.length?Zr(_,2):We;return Hh(d,y,sM(n))}function xye(n){C.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Xi(n);if(!a.immediateTarget){const c=zm(n);if(!c)return C.fail();a.immediateTarget=Hp(c,!0)}return a.immediateTarget}function umt(n,a=0){var c;const d=sg(n);hbt(n,d);const _=Y?ua():void 0;let y=ua(),x=[],k=ka;I3e(n);const z=TE(n,void 0),J=z&&z.pattern&&(z.pattern.kind===206||z.pattern.kind===210),ne=sM(n),Se=ne?8:0,ve=sr(n)&&!c3(n),Ge=ve?QV(n):void 0,vt=!z&&ve&&!Ge;let xt=Ee,cn=!1,sn=!1,er=!1,Wn=!1;for(const Pn of n.properties)Pn.name&&rs(Pn.name)&&Ng(Pn.name);let mn=0;for(const Pn of n.properties){let Vn=xr(Pn);const Gn=Pn.name&&Pn.name.kind===167?Ng(Pn.name):void 0;if(Pn.kind===303||Pn.kind===304||Nm(Pn)){let tr=Pn.kind===303?XWe(Pn,a):Pn.kind===304?lM(!d&&Pn.objectAssignmentInitializer?Pn.objectAssignmentInitializer:Pn.name,a):YWe(Pn,a);if(ve){const Fo=pv(Pn);Fo?(nd(tr,Fo,Pn),tr=Fo):Ge&&Ge.typeExpression&&nd(tr,Ti(Ge.typeExpression),Pn)}xt|=Wr(tr)&458752;const mo=Gn&&lm(Gn)?Gn:void 0,_o=mo?Za(4|Vn.flags,cm(mo),Se|4096):Za(4|Vn.flags,Vn.escapedName,Se);if(mo&&(_o.links.nameType=mo),d)(Pn.kind===303&&iM(Pn.initializer)||Pn.kind===304&&Pn.objectAssignmentInitializer)&&(_o.flags|=16777216);else if(J&&!(Wr(z)&512)){const Fo=ba(z,Vn.escapedName);Fo?_o.flags|=Fo.flags&16777216:!V.suppressExcessPropertyErrors&&!Cg(z,ke)&&Xe(Pn.name,m.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(Vn),Un(z))}if(_o.declarations=Vn.declarations,_o.parent=Vn.parent,Vn.valueDeclaration&&(_o.valueDeclaration=Vn.valueDeclaration),_o.links.type=tr,_o.links.target=Vn,Vn=_o,_==null||_.set(_o.escapedName,_o),z&&a&2&&!(a&4)&&(Pn.kind===303||Pn.kind===174)&&Kf(Pn)){const Fo=eS(n);C.assert(Fo);const vo=Pn.kind===303?Pn.initializer:Pn;qve(Fo,vo,tr)}}else if(Pn.kind===305){se<2&&Pc(Pn,2),x.length>0&&(k=K1(k,Fn(),n.symbol,xt,ne),x=[],y=ua(),sn=!1,er=!1,Wn=!1);const tr=g_(go(Pn.expression,a&2));if(tB(tr)){const mo=yve(tr,ne);if(_&&M3e(mo,_,Pn),mn=x.length,Kt(k))continue;k=K1(k,mo,n.symbol,xt,ne)}else Xe(Pn,m.Spread_types_may_only_be_created_from_object_types),k=_t;continue}else C.assert(Pn.kind===177||Pn.kind===178),Ix(Pn);Gn&&!(Gn.flags&8576)?Sa(Gn,Qt)&&(Sa(Gn,Tt)?er=!0:Sa(Gn,si)?Wn=!0:sn=!0,d&&(cn=!0)):y.set(Vn.escapedName,Vn),x.push(Vn)}if(Y8(),J){const Pn=zn(z.pattern.parent,Gn=>Gn.kind===260||Gn.kind===226||Gn.kind===169);if(zn(n,Gn=>Gn===Pn||Gn.kind===305).kind!==305)for(const Gn of bs(z))!y.get(Gn.escapedName)&&!ba(k,Gn.escapedName)&&(Gn.flags&16777216||Xe(Gn.valueDeclaration||((c=ti(Gn,hh))==null?void 0:c.links.bindingElement),m.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),y.set(Gn.escapedName,Gn),x.push(Gn))}if(Kt(k))return _t;if(k!==ka)return x.length>0&&(k=K1(k,Fn(),n.symbol,xt,ne),x=[],y=ua(),sn=!1,er=!1),dl(k,Pn=>Pn===ka?Fn():Pn);return Fn();function Fn(){const Pn=[];sn&&Pn.push(Iye(n,mn,x,ke)),er&&Pn.push(Iye(n,mn,x,Tt)),Wn&&Pn.push(Iye(n,mn,x,si));const Vn=Fs(n.symbol,y,et,et,Pn);return Vn.objectFlags|=xt|128|131072,vt&&(Vn.objectFlags|=4096),cn&&(Vn.objectFlags|=512),d&&(Vn.pattern=n),Vn}}function tB(n){const a=I4e(dl(n,hv));return!!(a.flags&126615553||a.flags&3145728&&Yn(a.types,tB))}function dmt(n){Cye(n)}function pmt(n,a){return Ix(n),rB(n)||j}function fmt(n){Cye(n.openingElement),Ax(n.closingElement.tagName)?Qee(n.closingElement):go(n.closingElement.tagName),$ee(n)}function mmt(n,a){return Ix(n),rB(n)||j}function _mt(n){Cye(n.openingFragment);const a=jn(n);return q3(V)&&(V.jsxFactory||a.pragmas.has("jsx"))&&!V.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Xe(n,V.jsxFactory?m.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:m.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),$ee(n),rB(n)||j}function Rye(n){return n.includes("-")}function Ax(n){return je(n)&&CR(n.escapedText)||r_(n)}function P3e(n,a){return n.initializer?lM(n.initializer,a):nr}function hmt(n,a=0){const c=n.attributes,d=Yd(c,0),_=Y?ua():void 0;let y=ua(),x=_l,k=!1,z,J=!1,ne=2048;const Se=nB(sA(n));for(const vt of c.properties){const xt=vt.symbol;if(F_(vt)){const cn=P3e(vt,a);ne|=Wr(cn)&458752;const sn=Za(4|xt.flags,xt.escapedName);if(sn.declarations=xt.declarations,sn.parent=xt.parent,xt.valueDeclaration&&(sn.valueDeclaration=xt.valueDeclaration),sn.links.type=cn,sn.links.target=xt,y.set(sn.escapedName,sn),_==null||_.set(sn.escapedName,sn),sP(vt.name)===Se&&(J=!0),d){const er=ba(d,xt.escapedName);er&&er.declarations&&vb(er)&&je(vt.name)&&uy(vt.name,er.declarations,vt.name.escapedText)}if(d&&a&2&&!(a&4)&&Kf(vt)){const er=eS(c);C.assert(er);const Wn=vt.initializer.expression;qve(er,Wn,cn)}}else{C.assert(vt.kind===293),y.size>0&&(x=K1(x,Ge(),c.symbol,ne,!1),y=ua());const cn=g_(go(vt.expression,a&2));Ct(cn)&&(k=!0),tB(cn)?(x=K1(x,cn,c.symbol,ne,!1),_&&M3e(cn,_,vt)):(Xe(vt.expression,m.Spread_types_may_only_be_created_from_object_types),z=z?Ea([z,cn]):cn)}}k||y.size>0&&(x=K1(x,Ge(),c.symbol,ne,!1));const ve=n.parent.kind===284?n.parent:void 0;if(ve&&ve.openingElement===n&&RR(ve.children).length>0){const vt=$ee(ve,a);if(!k&&Se&&Se!==""){J&&Xe(c,m._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,ji(Se));const xt=TE(n.attributes,void 0),cn=xt&&SE(xt,Se),sn=Za(4,Se);sn.links.type=vt.length===1?vt[0]:cn&&qm(cn,$2)?qh(vt):Vu(Zr(vt)),sn.valueDeclaration=w.createPropertySignature(void 0,ji(Se),void 0,void 0),Ya(sn.valueDeclaration,c),sn.valueDeclaration.symbol=sn;const er=ua();er.set(Se,sn),x=K1(x,Fs(c.symbol,er,et,et,et),c.symbol,ne,!1)}}if(k)return j;if(z&&x!==_l)return Ea([z,x]);return z||(x===_l?Ge():x);function Ge(){ne|=Ee;const vt=Fs(c.symbol,y,et,et,et);return vt.objectFlags|=ne|128|131072,vt}}function $ee(n,a){const c=[];for(const d of n.children)if(d.kind===12)d.containsOnlyTriviaWhiteSpaces||c.push(ke);else{if(d.kind===294&&!d.expression)continue;c.push(lM(d,a))}return c}function M3e(n,a,c){for(const d of bs(n))if(!(d.flags&16777216)){const _=a.get(d.escapedName);if(_){const y=Xe(_.valueDeclaration,m._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,ji(_.escapedName));Oa(y,Or(c,m.This_spread_always_overwrites_this_property))}}}function gmt(n,a){return hmt(n.parent,a)}function tS(n,a){const c=sA(a),d=c&&Mp(c),_=d&&Jd(d,n,788968);return _?Zs(_):_t}function Qee(n){const a=Qr(n);if(!a.resolvedSymbol){const c=tS(sf.IntrinsicElements,n);if(Kt(c))return de&&Xe(n,m.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,ji(sf.IntrinsicElements)),a.resolvedSymbol=pt;{if(!je(n.tagName)&&!r_(n.tagName))return C.fail();const d=r_(n.tagName)?YA(n.tagName):n.tagName.escapedText,_=ba(c,d);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;const y=a7e(c,Xd(ji(d)));return y?(a.jsxFlags|=2,a.resolvedSymbol=y):Rt(c,d)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(Xe(n,m.Property_0_does_not_exist_on_type_1,YU(n.tagName),"JSX."+sf.IntrinsicElements),a.resolvedSymbol=pt)}}return a.resolvedSymbol}function Dye(n){const a=n&&jn(n),c=a&&Qr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const d=K3(J3(V,a),V);if(!d)return;const y=md(V)===1?m.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:m.Cannot_find_module_0_or_its_corresponding_type_declarations,x=V.importHelpers?1:0,k=a==null?void 0:a.imports[x];k&&C.assert(Ys(k)&&k.text===d,"Expected sourceFile.imports[".concat(x,"] to be the synthesized JSX runtime import"));const z=K_(k||n,d,y,n),J=z&&z!==pt?ss(Hl(z)):void 0;return c&&(c.jsxImplicitImportContainer=J||!1),J}function sA(n){const a=n&&Qr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let d=Dye(n);if(!d||d===pt){const _=X0(n);d=yl(n,_,1920,void 0,_,!1)}if(d){const _=Hl(Jd(Mp(Hl(d)),sf.JSX,1920));if(_&&_!==pt)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}const c=Hl(q2(sf.JSX,1920,void 0));if(c!==pt)return c}function L3e(n,a){const c=a&&Jd(a.exports,n,788968),d=c&&Zs(c),_=d&&bs(d);if(_){if(_.length===0)return"";if(_.length===1)return _[0].escapedName;_.length>1&&c.declarations&&Xe(c.declarations[0],m.The_global_type_JSX_0_may_not_have_more_than_one_property,ji(n))}}function vmt(n){return n&&Jd(n.exports,sf.LibraryManagedAttributes,788968)}function ymt(n){return n&&Jd(n.exports,sf.ElementType,788968)}function bmt(n){return L3e(sf.ElementAttributesPropertyNameContainer,n)}function nB(n){return L3e(sf.ElementChildrenAttributeNameContainer,n)}function k3e(n,a){if(n.flags&4)return[yt];if(n.flags&128){const _=w3e(n,a);return _?[lte(a,_)]:(Xe(a,m.Property_0_does_not_exist_on_type_1,n.value,"JSX."+sf.IntrinsicElements),et)}const c=kd(n);let d=Ko(c,1);return d.length===0&&(d=Ko(c,0)),d.length===0&&c.flags&1048576&&(d=Ige(Ot(c.types,_=>k3e(_,a)))),d}function w3e(n,a){const c=tS(sf.IntrinsicElements,a);if(!Kt(c)){const d=n.value,_=ba(c,hl(d));if(_)return dr(_);const y=fE(c,ke);return y||void 0}return j}function Emt(n,a,c){if(n===1){const _=F3e(c);_&&Xf(a,_,qd,c.tagName,m.Its_return_type_0_is_not_a_valid_JSX_element,d)}else if(n===0){const _=W3e(c);_&&Xf(a,_,qd,c.tagName,m.Its_instance_type_0_is_not_a_valid_JSX_element,d)}else{const _=F3e(c),y=W3e(c);if(!_||!y)return;const x=Zr([_,y]);Xf(a,x,qd,c.tagName,m.Its_element_type_0_is_not_a_valid_JSX_element,d)}function d(){const _=gc(c.tagName);return Bo(void 0,m._0_cannot_be_used_as_a_JSX_component,_)}}function O3e(n){var a;C.assert(Ax(n.tagName));const c=Qr(n);if(!c.resolvedJsxElementAttributesType){const d=Qee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=dr(d)||_t;if(c.jsxFlags&2){const _=r_(n.tagName)?YA(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=vx(tS(sf.IntrinsicElements,n),_))==null?void 0:a.type)||_t}else return c.resolvedJsxElementAttributesType=_t}return c.resolvedJsxElementAttributesType}function W3e(n){const a=tS(sf.ElementClass,n);if(!Kt(a))return a}function rB(n){return tS(sf.Element,n)}function F3e(n){const a=rB(n);if(a)return Zr([a,fe])}function Smt(n){const a=sA(n);if(!a)return;const c=ymt(a);if(!c)return;const d=z3e(c,sr(n));if(!(!d||Kt(d)))return d}function z3e(n,a,...c){const d=Zs(n);if(n.flags&524288){const _=Xi(n).typeParameters;if(Le(_)>=c.length){const y=Bb(c,_,c.length,a);return Le(y)===0?d:RC(n,y)}}if(Le(d.typeParameters)>=c.length){const _=Bb(c,d.typeParameters,c.length,a);return hy(d,_)}}function Tmt(n){const a=tS(sf.IntrinsicElements,n);return a?bs(a):et}function Amt(n){(V.jsx||0)===0&&Xe(n,m.Cannot_use_JSX_unless_the_jsx_flag_is_provided),rB(n)===void 0&&de&&Xe(n,m.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Cye(n){const a=ud(n);if(a&&gbt(n),Amt(n),!Dye(n)){const c=os&&V.jsx===2?m.Cannot_find_name_0:void 0,d=X0(n),_=a?n.tagName:n;let y;if(hI(n)&&d==="null"||(y=yl(_,d,111551,c,d,!0)),y&&(y.isReferenced=-1,It&&y.flags&2097152&&!Gf(y)&&Ib(y)),hI(n)){const x=jn(n),k=tx(x);k&&yl(_,k,111551,c,k,!0)}}if(a){const c=n,d=WC(c);ute(d,n);const _=Smt(c);if(_!==void 0){const y=c.tagName,x=Ax(y)?Xd(YU(y)):go(y);Xf(x,_,qd,y,m.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const k=gc(y);return Bo(void 0,m._0_cannot_be_used_as_a_JSX_component,k)})}else Emt(cWe(c),ms(d),c)}}function Nye(n,a,c){if(n.flags&524288){if(pE(n,a)||vx(n,a)||x8(a)&&Cg(n,ke)||c&&Rye(a))return!0}else if(n.flags&3145728&&iB(n)){for(const d of n.types)if(Nye(d,a,c))return!0}return!1}function iB(n){return!!(n.flags&524288&&!(Wr(n)&512)||n.flags&67108864||n.flags&1048576&&St(n.types,iB)||n.flags&2097152&&Yn(n.types,iB))}function Imt(n,a){if(ybt(n),n.expression){const c=go(n.expression,a);return n.dotDotDotToken&&c!==j&&!Yf(c)&&Xe(n,m.JSX_spread_child_must_be_an_array_type),c}else return _t}function Pye(n){return n.valueDeclaration?aS(n.valueDeclaration):0}function Mye(n){if(n.flags&8192||xl(n)&4)return!0;if(sr(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&mr(a)&&Vl(a)===3}}function Lye(n,a,c,d,_,y=!0){const x=y?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return B3e(n,a,c,d,_,x)}function B3e(n,a,c,d,_,y){var x;const k=Df(_,c);if(a){if(se<2&&G3e(_))return y&&Xe(y,m.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(k&64)return y&&Xe(y,m.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Si(_),Un(Tx(_))),!1;if(!(k&256)&&((x=_.declarations)!=null&&x.some(Ure)))return y&&Xe(y,m.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Si(_)),!1}if(k&64&&G3e(_)&&(FL(n)||Vie(n)||dm(n.parent)&&i3(n.parent.parent))){const J=Hg(Pd(_));if(J&&hyt(n))return y&&Xe(y,m.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Si(_),om(J.name)),!1}if(!(k&6))return!0;if(k&2){const J=Hg(Pd(_));return wbe(n,J)?!0:(y&&Xe(y,m.Property_0_is_private_and_only_accessible_within_class_1,Si(_),Un(Tx(_))),!1)}if(a)return!0;let z=i7e(n,J=>{const ne=Zs(xr(J));return _4e(ne,_,c)});return!z&&(z=xmt(n),z=z&&_4e(z,_,c),k&256||!z)?(y&&Xe(y,m.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Si(_),Un(Tx(_)||d)),!1):k&256?!0:(d.flags&262144&&(d=d.isThisType?Ld(d):Gu(d)),!d||!SC(d,z)?(y&&Xe(y,m.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Si(_),Un(z),Un(d)),!1):!0)}function xmt(n){const a=Rmt(n);let c=(a==null?void 0:a.type)&&Ti(a.type);if(c&&c.flags&262144&&(c=Ld(c)),c&&Wr(c)&7)return my(c)}function Rmt(n){const a=Fd(n,!1,!1);return a&&Qo(a)?KE(a):void 0}function G3e(n){return!!z9(n,a=>!(a.flags&8192))}function wC(n){return nh(go(n),n)}function oB(n){return ym(n,50331648)}function kye(n){return oB(n)?Sv(n):n}function Dmt(n,a){const c=jl(n)?gp(n):void 0;if(n.kind===106){Xe(n,m.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(je(n)&&c==="undefined"){Xe(n,m.The_value_0_cannot_be_used_here,"undefined");return}Xe(n,a&16777216?a&33554432?m._0_is_possibly_null_or_undefined:m._0_is_possibly_undefined:m._0_is_possibly_null,c)}else Xe(n,a&16777216?a&33554432?m.Object_is_possibly_null_or_undefined:m.Object_is_possibly_undefined:m.Object_is_possibly_null)}function Cmt(n,a){Xe(n,a&16777216?a&33554432?m.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:m.Cannot_invoke_an_object_which_is_possibly_undefined:m.Cannot_invoke_an_object_which_is_possibly_null)}function V3e(n,a,c){if(Y&&n.flags&2){if(jl(a)){const _=gp(a);if(_.length<100)return Xe(a,m._0_is_of_type_unknown,_),_t}return Xe(a,m.Object_is_of_type_unknown),_t}const d=eM(n,50331648);if(d&50331648){c(a,d);const _=Sv(n);return _.flags&229376?_t:_}return n}function nh(n,a){return V3e(n,a,Dmt)}function j3e(n,a){const c=nh(n,a);if(c.flags&16384){if(jl(a)){const d=gp(a);if(je(a)&&d==="undefined")return Xe(a,m.The_value_0_cannot_be_used_here,d),c;if(d.length<100)return Xe(a,m._0_is_possibly_undefined,d),c}Xe(a,m.Object_is_possibly_undefined)}return c}function Zee(n,a,c){return n.flags&64?Nmt(n,a):Oye(n,n.expression,wC(n.expression),n.name,a,c)}function Nmt(n,a){const c=go(n.expression),d=j8(c,n.expression);return Dee(Oye(n,n.expression,nh(d,n.expression),n.name,a),n,d!==c)}function U3e(n,a){const c=l3(n)&&YE(n.left)?nh(Q9(n.left),n.left):wC(n.left);return Oye(n,n.left,c,n.right,a)}function H3e(n){for(;n.parent.kind===217;)n=n.parent;return I_(n.parent)&&n.parent.expression===n}function ete(n,a){for(let c=n3(a);c;c=cu(c)){const{symbol:d}=c,_=sk(d,n),y=d.members&&d.members.get(_)||d.exports&&d.exports.get(_);if(y)return y}}function Pmt(n){if(!cu(n))return Sn(n,m.Private_identifiers_are_not_allowed_outside_class_bodies);if(!aF(n.parent)){if(!og(n))return Sn(n,m.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 a=mr(n.parent)&&n.parent.operatorToken.kind===103;if(!tte(n)&&!a)return Sn(n,m.Cannot_find_name_0,Tr(n))}return!1}function Mmt(n){Pmt(n);const a=tte(n);return a&&sB(a,void 0,!1),j}function tte(n){if(!og(n))return;const a=Qr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=ete(n.escapedText,n)),a.resolvedSymbol}function wye(n,a){return ba(n,a.escapedName)}function Lmt(n,a,c){let d;const _=bs(n);_&&He(_,x=>{const k=x.valueDeclaration;if(k&&ld(k)&&Ji(k.name)&&k.name.escapedText===a.escapedText)return d=x,!0});const y=Fm(a);if(d){const x=C.checkDefined(d.valueDeclaration),k=C.checkDefined(cu(x));if(c!=null&&c.valueDeclaration){const z=c.valueDeclaration,J=cu(z);if(C.assert(!!J),zn(J,ne=>k===ne)){const ne=Xe(a,m.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,y,Un(n));return Oa(ne,Or(z,m.The_shadowing_declaration_of_0_is_defined_here,y),Or(x,m.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,y)),!0}}return Xe(a,m.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,y,Fm(k.name||KF)),!0}return!1}function q3e(n,a){return(yC(a)||FL(n)&&W2(a))&&Fd(n,!0,!1)===F2(a)}function Oye(n,a,c,d,_,y){const x=Qr(a).resolvedSymbol,k=BA(n),z=kd(k!==0||H3e(n)?Xp(c):c),J=Ct(z)||z===bo;let ne;if(Ji(d)){se<99&&(k!==0&&Pc(n,1048576),k!==1&&Pc(n,524288));const ve=ete(d.escapedText,d);if(k&&ve&&ve.valueDeclaration&&Kl(ve.valueDeclaration)&&Sn(d,m.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Tr(d)),J){if(ve)return Kt(z)?_t:z;if(n3(d)===void 0)return Sn(d,m.Private_identifiers_are_not_allowed_outside_class_bodies),j}if(ne=ve&&wye(c,ve),ne===void 0){if(Lmt(c,d,ve))return _t;const Ge=n3(d);Ge&&RL(jn(Ge),V.checkJs)&&Sn(d,m.Private_field_0_must_be_declared_in_an_enclosing_class,Tr(d))}else ne.flags&65536&&!(ne.flags&32768)&&k!==1&&Xe(n,m.Private_accessor_was_defined_without_a_getter)}else{if(J)return je(a)&&x&&Hee(x,n),Kt(z)?_t:z;ne=ba(z,d.escapedText,fte(z),n.kind===166)}je(a)&&x&&(um(V)||!(ne&&(u6(ne)||ne.flags&8&&n.parent.kind===306))||n1(V)&&d3e(n))&&Hee(x,n);let Se;if(ne){const ve=Mbe(ne,d);if(vb(ve)&&mve(n,ve)&&ve.declarations&&uy(d,ve.declarations,d.escapedText),kmt(ne,n,d),sB(ne,n,Z3e(a,x)),Qr(n).resolvedSymbol=ne,Lye(n,a.kind===108,HA(n),z,ne),VWe(n,ne,k))return Xe(d,m.Cannot_assign_to_0_because_it_is_a_read_only_property,Tr(d)),_t;Se=q3e(n,ne)?ot:y||F3(n)?U1(ne):dr(ne)}else{const ve=!Ji(d)&&(k===0||!$T(c)||oP(c))?vx(z,d.escapedText):void 0;if(!(ve&&ve.type)){const Ge=Wye(n,c.symbol,!0);return!Ge&&k8(c)?j:c.symbol===it?(it.exports.has(d.escapedText)&&it.exports.get(d.escapedText).flags&418?Xe(d,m.Property_0_does_not_exist_on_type_1,ji(d.escapedText),Un(c)):de&&Xe(d,m.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Un(c)),j):(d.escapedText&&!AT(n)&&X3e(d,oP(c)?z:c,Ge),_t)}ve.isReadonly&&(sg(n)||Zj(n))&&Xe(n,m.Index_signature_in_type_0_only_permits_reading,Un(z)),Se=V.noUncheckedIndexedAccess&&!sg(n)?Zr([ve.type,L]):ve.type,V.noPropertyAccessFromIndexSignature&&Fr(n)&&Xe(d,m.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,ji(d.escapedText)),ve.declaration&&cy(ve.declaration)&&uy(d,[ve.declaration],d.escapedText)}return J3e(n,ne,Se,d,_)}function Wye(n,a,c){var d;const _=jn(n);if(_&&V.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){const y=He(a==null?void 0:a.declarations,jn),x=!(a!=null&&a.valueDeclaration)||!ui(a.valueDeclaration)||((d=a.valueDeclaration.heritageClauses)==null?void 0:d.length)||Bv(!1,a.valueDeclaration);return!(_!==y&&y&&wh(y))&&!(c&&a&&a.flags&32&&x)&&!(n&&c&&Fr(n)&&n.expression.kind===110&&x)}return!1}function J3e(n,a,c,d,_){const y=BA(n);if(y===1)return Xb(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!Dte(a.declarations))return c;if(c===ot)return bC(n,a);c=pye(c,n,_);let x=!1;if(Y&&Ae&&zs(n)&&n.expression.kind===110){const z=a&&a.valueDeclaration;if(z&&HFe(z)&&!aa(z)){const J=X8(n);J.kind===176&&J.parent===z.parent&&!(z.flags&33554432)&&(x=!0)}}else Y&&a&&a.valueDeclaration&&Fr(a.valueDeclaration)&&KL(a.valueDeclaration)&&X8(n)===X8(a.valueDeclaration)&&(x=!0);const k=Yb(n,c,x?Kb(c):c);return x&&!K2(c)&&K2(k)?(Xe(d,m.Property_0_is_used_before_being_assigned,Si(a)),c):y?Ev(k):k}function kmt(n,a,c){const{valueDeclaration:d}=n;if(!d||jn(a).isDeclarationFile)return;let _;const y=Tr(c);K3e(a)&&!Sct(d)&&!(zs(a)&&zs(a.expression))&&!av(d,c)&&!(Kl(d)&&Wte(d)&256)&&(_e||!wmt(n))?_=Xe(c,m.Property_0_is_used_before_its_initialization,y):d.kind===263&&a.parent.kind!==183&&!(d.flags&33554432)&&!av(d,c)&&(_=Xe(c,m.Class_0_used_before_its_declaration,y)),_&&Oa(_,Or(d,m._0_is_declared_here,y))}function K3e(n){return!!zn(n,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Jo(a.parent)&&Rl(a.parent.parent)?!0:"quit";default:return og(a)?!1:"quit"}})}function wmt(n){if(!(n.parent.flags&32))return!1;let a=dr(n.parent);for(;;){if(a=a.symbol&&Omt(a),!a)return!1;const c=ba(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Omt(n){const a=dp(n);if(a.length!==0)return Ea(a)}function X3e(n,a,c){let d,_;if(!Ji(n)&&a.flags&1048576&&!(a.flags&402784252)){for(const x of a.types)if(!ba(x,n.escapedText)&&!vx(x,n.escapedText)){d=Bo(d,m.Property_0_does_not_exist_on_type_1,Ns(n),Un(x));break}}if(Y3e(n.escapedText,a)){const x=Ns(n),k=Un(a);d=Bo(d,m.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,k,k+"."+x)}else{const x=i6(a);if(x&&ba(x,n.escapedText))d=Bo(d,m.Property_0_does_not_exist_on_type_1,Ns(n),Un(a)),_=Or(n,m.Did_you_forget_to_use_await);else{const k=Ns(n),z=Un(a),J=zmt(k,a);if(J!==void 0)d=Bo(d,m.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,k,z,J);else{const ne=Fye(n,a);if(ne!==void 0){const Se=El(ne),ve=c?m.Property_0_may_not_exist_on_type_1_Did_you_mean_2:m.Property_0_does_not_exist_on_type_1_Did_you_mean_2;d=Bo(d,ve,k,z,Se),_=ne.valueDeclaration&&Or(ne.valueDeclaration,m._0_is_declared_here,Se)}else{const Se=Wmt(a)?m.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:m.Property_0_does_not_exist_on_type_1;d=Bo(wge(d,a),Se,k,z)}}}}const y=Gg(jn(n),n,d);_&&Oa(y,_),c_(!c||d.code!==m.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,y)}function Wmt(n){return V.lib&&!V.lib.includes("dom")&&Xpt(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(ji(a.symbol.escapedName)))&&bv(n)}function Y3e(n,a){const c=a.symbol&&ba(dr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&aa(c.valueDeclaration)}function Fmt(n){const a=Fm(n),d=pW().get(a);return d&&_G(d.keys())}function zmt(n,a){const c=kd(a).symbol;if(!c)return;const d=El(c),y=pW().get(d);if(y){for(const[x,k]of y)if(Nr(k,n))return x}}function $3e(n,a){return aB(n,bs(a),106500)}function Fye(n,a){let c=bs(a);if(typeof n!="string"){const d=n.parent;Fr(d)&&(c=rr(c,_=>eWe(d,a,_))),n=Tr(n)}return aB(n,c,111551)}function Q3e(n,a){const c=No(n)?n:Tr(n),d=bs(a),_=c==="for"?Tn(d,y=>El(y)==="htmlFor"):c==="class"?Tn(d,y=>El(y)==="className"):void 0;return _!=null?_:aB(c,d,111551)}function zye(n,a){const c=Fye(n,a);return c&&El(c)}function Bye(n,a,c){return C.assert(a!==void 0,"outername should always be defined"),Up(n,a,c,void 0,a,!1,!1,!0,(_,y,x)=>{C.assertEqual(a,y,"name should equal outerName");const k=Jd(_,y,x);if(k)return k;let z;return _===be?z=Hi(["string","number","boolean","object","bigint","symbol"],ne=>_.has(ne.charAt(0).toUpperCase()+ne.slice(1))?Za(524288,ne):void 0).concat(Wo(_.values())):z=Wo(_.values()),aB(ji(y),z,x)})}function Bmt(n,a,c){const d=Bye(n,a,c);return d&&El(d)}function nte(n,a){return a.exports&&aB(Tr(n),wT(a),2623475)}function Gmt(n,a){const c=nte(n,a);return c&&El(c)}function Vmt(n,a,c){function d(x){const k=pE(n,x);if(k){const z=cA(dr(k));return!!z&&oh(z)>=1&&Sa(c,b_(z,0))}return!1}const _=sg(a)?"set":"get";if(!d(_))return;let y=hk(a.expression);return y===void 0?y=_:y+="."+_,y}function jmt(n,a){const c=a.types.filter(d=>!!(d.flags&128));return $C(n.value,c,d=>d.value)}function aB(n,a,c){return $C(n,a,d);function d(_){const y=El(_);if(!po(y,'"')){if(_.flags&c)return y;if(_.flags&2097152){const x=MT(_);if(x&&x.flags&c)return y}}}}function sB(n,a,c){const d=n&&n.flags&106500&&n.valueDeclaration;if(!d)return;const _=yp(d,2),y=n.valueDeclaration&&ld(n.valueDeclaration)&&Ji(n.valueDeclaration.name);if(!(!_&&!y)&&!(a&&F3(a)&&!(n.flags&65536))){if(c){const x=zn(a,js);if(x&&x.symbol===n)return}(xl(n)&1?Xi(n).target:n).isReferenced=-1}}function Z3e(n,a){return n.kind===110||!!a&&jl(n)&&a===Hm(Vp(n))}function Umt(n,a){switch(n.kind){case 211:return Gye(n,n.expression.kind===108,a,Xp(go(n.expression)));case 166:return Gye(n,!1,a,Xp(go(n.left)));case 205:return Gye(n,!1,a,Ti(n))}}function eWe(n,a,c){return Vye(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function Gye(n,a,c,d){if(Ct(d))return!0;const _=ba(d,c);return!!_&&Vye(n,a,!1,d,_)}function Vye(n,a,c,d,_){if(Ct(d))return!0;if(_.valueDeclaration&&cd(_.valueDeclaration)){const y=cu(_.valueDeclaration);return!qu(n)&&!!zn(n,x=>x===y)}return B3e(n,a,c,d,_)}function Hmt(n){const a=n.initializer;if(a.kind===261){const c=a.declarations[0];if(c&&!Zo(c.name))return xr(c)}else if(a.kind===80)return Hm(a)}function qmt(n){return vd(n).length===1&&!!Cg(n,Tt)}function Jmt(n){const a=vs(n);if(a.kind===80){const c=Hm(a);if(c.flags&3){let d=n,_=n.parent;for(;_;){if(_.kind===249&&d===_.statement&&Hmt(_)===c&&qmt(Du(_.expression)))return!0;d=_,_=_.parent}}}return!1}function Kmt(n,a){return n.flags&64?Xmt(n,a):tWe(n,wC(n.expression),a)}function Xmt(n,a){const c=go(n.expression),d=j8(c,n.expression);return Dee(tWe(n,nh(d,n.expression),a),n,d!==c)}function tWe(n,a,c){const d=BA(n)!==0||H3e(n)?Xp(a):a,_=n.argumentExpression,y=go(_);if(Kt(d)||d===bo)return d;if(fte(d)&&!ds(_))return Xe(_,m.A_const_enum_member_can_only_be_accessed_using_a_string_literal),_t;const x=Jmt(_)?Tt:y,k=sg(n)?4|($T(d)&&!oP(d)?2:0):32,z=Vb(d,x,k,n)||_t;return cFe(J3e(n,Qr(n).resolvedSymbol,z,_,c),n)}function nWe(n){return I_(n)||a1(n)||ud(n)}function lA(n){return nWe(n)&&He(n.typeArguments,Ca),n.kind===215?go(n.template):ud(n)?go(n.attributes):mr(n)?go(n.left):I_(n)&&He(n.arguments,a=>{go(a)}),yt}function rh(n){return lA(n),pn}function Ymt(n,a,c){let d,_,y=0,x,k=-1,z;C.assert(!a.length);for(const J of n){const ne=J.declaration&&xr(J.declaration),Se=J.declaration&&J.declaration.parent;!_||ne===_?d&&Se===d?x=x+1:(d=Se,x=y):(x=y=a.length,d=Se),_=ne,$q(J)?(k++,z=k,y++):z=x,a.splice(z,0,c?Ult(J,c):J)}}function rte(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function ite(n){return Br(n,rte)}function rWe(n){return!!(n.flags&16384)}function $mt(n){return!!(n.flags&49155)}function ote(n,a,c,d=!1){let _,y=!1,x=Yp(c),k=oh(c);if(n.kind===215)if(_=a.length,n.template.kind===228){const z=es(n.template.templateSpans);y=Gl(z.literal)||!!z.literal.isUnterminated}else{const z=n.template;C.assert(z.kind===15),y=!!z.isUnterminated}else if(n.kind===170)_=dWe(n,c);else if(n.kind===226)_=1;else if(ud(n)){if(y=n.attributes.end===n.end,y)return!0;_=k===0?a.length:1,x=a.length===0?x:1,k=Math.min(k,1)}else if(n.arguments){_=d?a.length+1:a.length,y=n.arguments.end===n.end;const z=ite(a);if(z>=0)return z>=oh(c)&&(Kh(c)||z<Yp(c))}else return C.assert(n.kind===214),oh(c)===0;if(!Kh(c)&&_>x)return!1;if(y||_>=k)return!0;for(let z=_;z<k;z++){const J=b_(c,z);if(_c(J,sr(n)&&!Y?$mt:rWe).flags&131072)return!1}return!0}function jye(n,a){const c=Le(n.typeParameters),d=Uh(n.typeParameters);return!St(a)||a.length>=d&&a.length<=c}function iWe(n,a){let c;return!!(n.target&&(c=nS(n.target,a))&&NC(c))}function cA(n){return Q8(n,0,!1)}function oWe(n){return Q8(n,0,!1)||Q8(n,1,!1)}function Q8(n,a,c){if(n.flags&524288){const d=h_(n);if(c||d.properties.length===0&&d.indexInfos.length===0){if(a===0&&d.callSignatures.length===1&&d.constructSignatures.length===0)return d.callSignatures[0];if(a===1&&d.constructSignatures.length===1&&d.callSignatures.length===0)return d.constructSignatures[0]}}}function aWe(n,a,c,d){const _=q8(n.typeParameters,n,0,d),y=Z8(a),x=c&&(y&&y.flags&262144?c.nonFixingMapper:c.mapper),k=x?MC(a,x):a;return jve(k,n,(z,J)=>{Tv(_.inferences,z,J)}),c||Uve(a,n,(z,J)=>{Tv(_.inferences,z,J,128)}),N8(n,nye(_),sr(a.declaration))}function Qmt(n,a,c,d){const _=Yee(a,n),y=FC(n.attributes,_,d,c);return Tv(d.inferences,y,_),nye(d)}function sWe(n){if(!n)return Kn;const a=go(n);return Toe(n)?a:uN(n.parent)?Sv(a):qu(n.parent)?Ree(a):a}function Uye(n,a,c,d,_){if(ud(n))return Qmt(n,a,d,_);if(n.kind!==170&&n.kind!==226){const z=Yn(a.typeParameters,ne=>!!JT(ne)),J=Yd(n,z?8:0);if(J){const ne=ms(a);if(bE(ne)){const Se=eS(n);if(!(!z&&Yd(n,8)!==J)){const xt=Kve(dpt(Se,1)),cn=co(J,xt),sn=cA(cn),er=sn&&sn.typeParameters?KT(Vge(sn,sn.typeParameters)):cn;Tv(_.inferences,er,ne,128)}const Ge=q8(a.typeParameters,a,_.flags),vt=co(J,Se&&Se.returnMapper);Tv(Ge.inferences,vt,ne),_.returnMapper=St(Ge.inferences,zC)?Kve(_pt(Ge)):void 0}}}const y=e6(a),x=y?Math.min(Yp(a)-1,c.length):c.length;if(y&&y.flags&262144){const z=Tn(_.inferences,J=>J.typeParameter===y);z&&(z.impliedArity=Br(c,rte,x)<0?c.length-x:void 0)}const k=mE(a);if(k&&bE(k)){const z=uWe(n);Tv(_.inferences,sWe(z),k)}for(let z=0;z<x;z++){const J=c[z];if(J.kind!==232){const ne=b_(a,z);if(bE(ne)){const Se=FC(J,ne,_,d);Tv(_.inferences,Se,ne)}}}if(y&&bE(y)){const z=Hye(c,x,c.length,y,_,d);Tv(_.inferences,z,y)}return nye(_)}function lWe(n){return n.flags&1048576?dl(n,lWe):n.flags&1||G9(Gu(n)||n)?n:ja(n)?qh(J1(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):qh([n],[8])}function Hye(n,a,c,d,_,y){const x=qT(d);if(a>=c-1){const ne=n[c-1];if(rte(ne)){const Se=ne.kind===237?ne.type:FC(ne.expression,d,_,y);return by(Se)?lWe(Se):Vu(Sy(33,Se,We,ne.kind===230?ne.expression:ne),x)}}const k=[],z=[],J=[];for(let ne=a;ne<c;ne++){const Se=n[ne];if(rte(Se)){const ve=Se.kind===237?Se.type:go(Se.expression);by(ve)?(k.push(ve),z.push(8)):(k.push(Sy(33,ve,We,Se.kind===230?Se.expression:Se)),z.push(4))}else{const ve=ja(d)?Sye(d,ne-a,c-a)||dn:Lp(d,v_(ne-a),256),Ge=FC(Se,ve,_,y),vt=x||Pl(ve,406978556);k.push(vt?bd(Ge):Q1(Ge)),z.push(1)}Se.kind===237&&Se.tupleNameSource?J.push(Se.tupleNameSource):J.push(void 0)}return qh(k,z,x&&!qm(d,Wve),J)}function qye(n,a,c,d){const _=sr(n.declaration),y=n.typeParameters,x=Bb(Ot(a,Ti),y,Uh(y),_);let k;for(let z=0;z<a.length;z++){C.assert(y[z]!==void 0,"Should not call checkTypeArguments with too many type arguments");const J=Ld(y[z]);if(J){const ne=c&&d?()=>Bo(void 0,m.Type_0_does_not_satisfy_the_constraint_1):void 0,Se=d||m.Type_0_does_not_satisfy_the_constraint_1;k||(k=kp(y,x));const ve=x[z];if(!nd(ve,Kp(co(J,k),ve),c?a[z]:void 0,Se,ne))return}}return x}function cWe(n){if(Ax(n.tagName))return 2;const a=kd(go(n.tagName));return Le(Ko(a,1))?0:Le(Ko(a,0))?1:2}function Zmt(n,a,c,d,_,y,x){const k=Yee(a,n),z=FC(n.attributes,k,void 0,d),J=d&4?H8(z):z;return ne()&&Dve(J,k,c,_?n.tagName:void 0,n.attributes,void 0,y,x);function ne(){var Se;if(Dye(n))return!0;const ve=(W_(n)||JS(n))&&!(Ax(n.tagName)||r_(n.tagName))?go(n.tagName):void 0;if(!ve)return!0;const Ge=Ko(ve,0);if(!Le(Ge))return!0;const vt=h7e(n);if(!vt)return!0;const xt=qs(vt,111551,!0,!1,n);if(!xt)return!0;const cn=dr(xt),sn=Ko(cn,0);if(!Le(sn))return!0;let er=!1,Wn=0;for(const Fn of sn){const Pn=b_(Fn,0),Vn=Ko(Pn,0);if(Le(Vn))for(const Gn of Vn){if(er=!0,Kh(Gn))return!0;const tr=Yp(Gn);tr>Wn&&(Wn=tr)}}if(!er)return!0;let mn=1/0;for(const Fn of Ge){const Pn=oh(Fn);Pn<mn&&(mn=Pn)}if(mn<=Wn)return!0;if(_){const Fn=Or(n.tagName,m.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,gp(n.tagName),mn,gp(vt),Wn),Pn=(Se=Jm(n.tagName))==null?void 0:Se.valueDeclaration;Pn&&Oa(Fn,Or(Pn,m._0_is_declared_here,gp(n.tagName))),x&&x.skipLogging&&(x.errors||(x.errors=[])).push(Fn),x.skipLogging||os.add(Fn)}return!1}}function ate(n){return n=vs(n),kH(n)?vs(n.expression):n}function lB(n,a,c,d,_,y,x){const k={errors:void 0,skipLogging:!0};if(ud(n))return Zmt(n,c,d,_,y,x,k)?void 0:(C.assert(!y||!!k.errors,"jsx should have errors when reporting errors"),k.errors||et);const z=mE(c);if(z&&z!==Kn&&!(o1(n)||sa(n)&&zd(n.expression))){const Ge=uWe(n),vt=sWe(Ge),xt=y?Ge||n:void 0,cn=m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Xf(vt,z,d,xt,cn,x,k))return C.assert(!y||!!k.errors,"this parameter should have errors when reporting errors"),k.errors||et}const J=m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,ne=e6(c),Se=ne?Math.min(Yp(c)-1,a.length):a.length;for(let Ge=0;Ge<Se;Ge++){const vt=a[Ge];if(vt.kind!==232){const xt=b_(c,Ge),cn=FC(vt,xt,void 0,_),sn=_&4?H8(cn):cn,er=ate(vt);if(!Dve(sn,xt,d,y?er:void 0,er,J,x,k))return C.assert(!y||!!k.errors,"parameter should have errors when reporting errors"),ve(vt,sn,xt),k.errors||et}}if(ne){const Ge=Hye(a,Se,a.length,ne,void 0,_),vt=a.length-Se,xt=y?vt===0?n:vt===1?ate(a[Se]):bh(cB(n,Ge),a[Se].pos,a[a.length-1].end):void 0;if(!Xf(Ge,ne,d,xt,J,void 0,k))return C.assert(!y||!!k.errors,"rest parameter should have errors when reporting errors"),ve(xt,Ge,ne),k.errors||et}return;function ve(Ge,vt,xt){if(Ge&&y&&k.errors&&k.errors.length){if(cM(xt))return;const cn=cM(vt);cn&&th(cn,xt,d)&&Oa(k.errors[0],Or(Ge,m.Did_you_forget_to_use_await))}}}function uWe(n){if(n.kind===226)return n.right;const a=n.kind===213?n.expression:n.kind===215?n.tag:n.kind===170&&!re?n.expression:void 0;if(a){const c=ec(a);if(zs(c))return c.expression}}function cB(n,a,c,d){const _=Rh.createSyntheticExpression(a,c,d);return ut(_,n),Ya(_,n),_}function ste(n){if(n.kind===215){const d=n.template,_=[cB(d,zct())];return d.kind===228&&He(d.templateSpans,y=>{_.push(y.expression)}),_}if(n.kind===170)return e_t(n);if(n.kind===226)return[n.left];if(ud(n))return n.attributes.properties.length>0||W_(n)&&n.parent.children.length>0?[n.attributes]:et;const a=n.arguments||et,c=ite(a);if(c>=0){const d=a.slice(0,c);for(let _=c;_<a.length;_++){const y=a[_],x=y.kind===230&&(_f?go(y.expression):ac(y.expression));x&&ja(x)?He(J1(x),(k,z)=>{var J;const ne=x.target.elementFlags[z],Se=cB(y,ne&4?Vu(k):k,!!(ne&12),(J=x.target.labeledElementDeclarations)==null?void 0:J[z]);d.push(Se)}):d.push(y)}return d}return a}function e_t(n){const a=n.expression,c=ibe(n);if(c){const d=[];for(const _ of c.parameters){const y=dr(_);d.push(cB(a,y))}return d}return C.fail()}function dWe(n,a){return V.experimentalDecorators?t_t(n,a):2}function t_t(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return P_(n.parent)?3:2;case 174:case 177:case 178:return se===0||a.parameters.length<=2?2:3;case 169:return 3;default:return C.fail()}}function pWe(n){const a=jn(n),{start:c,length:d}=AS(a,Fr(n.expression)?n.expression.name:n.expression);return{start:c,length:d,sourceFile:a}}function uB(n,a,...c){if(sa(n)){const{sourceFile:d,start:_,length:y}=pWe(n);return"message"in a?eu(d,_,y,a,...c):wj(d,a)}else return"message"in a?Or(n,a,...c):Gg(jn(n),n,a)}function n_t(n){return I_(n)?Fr(n.expression)?n.expression.name:n.expression:a1(n)?Fr(n.tag)?n.tag.name:n.tag:ud(n)?n.tagName:n}function r_t(n){if(!sa(n)||!je(n.expression))return!1;const a=yl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a==null?void 0:a.valueDeclaration;if(!c||!Io(c)||!e1(c.parent)||!o1(c.parent.parent)||!je(c.parent.parent.expression))return!1;const d=tve(!1);return d?Jm(c.parent.parent.expression,!0)===d:!1}function fWe(n,a,c,d){var _;const y=ite(c);if(y>-1)return Or(c[y],m.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,z=Number.NEGATIVE_INFINITY,J=Number.POSITIVE_INFINITY,ne;for(const xt of a){const cn=oh(xt),sn=Yp(xt);cn<x&&(x=cn,ne=xt),k=Math.max(k,sn),cn<c.length&&cn>z&&(z=cn),c.length<sn&&sn<J&&(J=sn)}const Se=St(a,Kh),ve=Se?x:x<k?x+"-"+k:x,Ge=!Se&&ve===1&&c.length===0&&r_t(n);if(Ge&&sr(n))return uB(n,m.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const vt=Su(n)?Se?m.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:m.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:Se?m.Expected_at_least_0_arguments_but_got_1:Ge?m.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:m.Expected_0_arguments_but_got_1;if(x<c.length&&c.length<k){if(d){let xt=Bo(void 0,m.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,z,J);return xt=Bo(xt,d),uB(n,xt)}return uB(n,m.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,z,J)}else if(c.length<x){let xt;if(d){let sn=Bo(void 0,vt,ve,c.length);sn=Bo(sn,d),xt=uB(n,sn)}else xt=uB(n,vt,ve,c.length);const cn=(_=ne==null?void 0:ne.declaration)==null?void 0:_.parameters[ne.thisParameter?c.length+1:c.length];if(cn){const sn=Zo(cn.name)?[m.An_argument_matching_this_binding_pattern_was_not_provided]:ng(cn)?[m.Arguments_for_the_rest_parameter_0_were_not_provided,Tr(Vp(cn.name))]:[m.An_argument_for_0_was_not_provided,cn.name?Tr(Vp(cn.name)):c.length],er=Or(cn,...sn);return Oa(xt,er)}return xt}else{const xt=w.createNodeArray(c.slice(k)),cn=Xa(xt).pos;let sn=es(xt).end;if(sn===cn&&sn++,bh(xt,cn,sn),d){let er=Bo(void 0,vt,ve,c.length);return er=Bo(er,d),ML(jn(n),xt,er)}return uR(jn(n),xt,vt,ve,c.length)}}function i_t(n,a,c,d){const _=c.length;if(a.length===1){const k=a[0],z=Uh(k.typeParameters),J=Le(k.typeParameters);if(d){let ne=Bo(void 0,m.Expected_0_type_arguments_but_got_1,z<J?z+"-"+J:z,_);return ne=Bo(ne,d),ML(jn(n),c,ne)}return uR(jn(n),c,m.Expected_0_type_arguments_but_got_1,z<J?z+"-"+J:z,_)}let y=-1/0,x=1/0;for(const k of a){const z=Uh(k.typeParameters),J=Le(k.typeParameters);z>_?x=Math.min(x,z):J<_&&(y=Math.max(y,J))}if(y!==-1/0&&x!==1/0){if(d){let k=Bo(void 0,m.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,y,x);return k=Bo(k,d),ML(jn(n),c,k)}return uR(jn(n),c,m.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,y,x)}if(d){let k=Bo(void 0,m.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,_);return k=Bo(k,d),ML(jn(n),c,k)}return uR(jn(n),c,m.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,_)}function OC(n,a,c,d,_,y){const x=n.kind===215,k=n.kind===170,z=ud(n),J=n.kind===226,ne=!U&&!c;let Se;!k&&!J&&!IS(n)&&(Se=n.typeArguments,(x||z||n.expression.kind!==108)&&He(Se,Ca));const ve=c||[];Ymt(a,ve,_),C.assert(ve.length,"Revert #54442 and add a testcase with whatever triggered this");const Ge=ste(n),vt=ve.length===1&&!ve[0].typeParameters;let xt=!k&&!vt&&St(Ge,Kf)?4:0,cn,sn,er,Wn;const mn=!!(d&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(ve.length>1&&(Wn=Pn(ve,kh,vt,mn)),Wn||(Wn=Pn(ve,qd,vt,mn)),Wn)return Wn;if(Wn=o_t(n,ve,Ge,!!c,d),Qr(n).resolvedSignature=Wn,ne)if(!y&&J&&(y=m.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),cn)if(cn.length===1||cn.length>3){const Vn=cn[cn.length-1];let Gn;cn.length>3&&(Gn=Bo(Gn,m.The_last_overload_gave_the_following_error),Gn=Bo(Gn,m.No_overload_matches_this_call)),y&&(Gn=Bo(Gn,y));const tr=lB(n,Ge,Vn,qd,0,!0,()=>Gn);if(tr)for(const mo of tr)Vn.declaration&&cn.length>3&&Oa(mo,Or(Vn.declaration,m.The_last_overload_is_declared_here)),Fn(Vn,mo),os.add(mo);else C.fail("No error for last overload signature")}else{const Vn=[];let Gn=0,tr=Number.MAX_VALUE,mo=0,_o=0;for(const fp of cn){const Zn=lB(n,Ge,fp,qd,0,!0,()=>Bo(void 0,m.Overload_0_of_1_2_gave_the_following_error,_o+1,ve.length,zh(fp)));Zn?(Zn.length<=tr&&(tr=Zn.length,mo=_o),Gn=Math.max(Gn,Zn.length),Vn.push(Zn)):C.fail("No error for 3 or fewer overload signatures"),_o++}const Fo=Gn>1?Vn[mo]:ra(Vn);C.assert(Fo.length>0,"No errors reported for 3 or fewer overload signatures");let vo=Bo(Ot(Fo,Rie),m.No_overload_matches_this_call);y&&(vo=Bo(vo,y));const Mc=[...Pi(Fo,fp=>fp.relatedInformation)];let $f;if(Yn(Fo,fp=>fp.start===Fo[0].start&&fp.length===Fo[0].length&&fp.file===Fo[0].file)){const{file:fp,start:On,length:Zn}=Fo[0];$f={file:fp,start:On,length:Zn,code:vo.code,category:vo.category,messageText:vo,relatedInformation:Mc}}else $f=Gg(jn(n),n_t(n),vo,Mc);Fn(cn[0],$f),os.add($f)}else if(sn)os.add(fWe(n,[sn],Ge,y));else if(er)qye(er,n.typeArguments,!0,y);else{const Vn=rr(a,Gn=>jye(Gn,Se));Vn.length===0?os.add(i_t(n,a,Se,y)):os.add(fWe(n,Vn,Ge,y))}return Wn;function Fn(Vn,Gn){var tr,mo;const _o=cn,Fo=sn,vo=er,Mc=((mo=(tr=Vn.declaration)==null?void 0:tr.symbol)==null?void 0:mo.declarations)||et,fp=Mc.length>1?Tn(Mc,On=>js(On)&&tm(On.body)):void 0;if(fp){const On=gm(fp),Zn=!On.typeParameters;Pn([On],qd,Zn)&&Oa(Gn,Or(fp,m.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}cn=_o,sn=Fo,er=vo}function Pn(Vn,Gn,tr,mo=!1){if(cn=void 0,sn=void 0,er=void 0,tr){const _o=Vn[0];if(St(Se)||!ote(n,Ge,_o,mo))return;if(lB(n,Ge,_o,Gn,0,!1,void 0)){cn=[_o];return}return _o}for(let _o=0;_o<Vn.length;_o++){const Fo=Vn[_o];if(!jye(Fo,Se)||!ote(n,Ge,Fo,mo))continue;let vo,Mc;if(Fo.typeParameters){let $f;if(St(Se)){if($f=qye(Fo,Se,!1),!$f){er=Fo;continue}}else Mc=q8(Fo.typeParameters,Fo,sr(n)?2:0),$f=Uye(n,Fo,Ge,xt|8,Mc),xt|=Mc.flags&4?8:0;if(vo=N8(Fo,$f,sr(Fo.declaration),Mc&&Mc.inferredTypeParameters),e6(Fo)&&!ote(n,Ge,vo,mo)){sn=vo;continue}}else vo=Fo;if(lB(n,Ge,vo,Gn,xt,!1,void 0)){(cn||(cn=[])).push(vo);continue}if(xt){if(xt=0,Mc){const $f=Uye(n,Fo,Ge,xt,Mc);if(vo=N8(Fo,$f,sr(Fo.declaration),Mc.inferredTypeParameters),e6(Fo)&&!ote(n,Ge,vo,mo)){sn=vo;continue}}if(lB(n,Ge,vo,Gn,xt,!1,void 0)){(cn||(cn=[])).push(vo);continue}}return Vn[_o]=vo,vo}}}function o_t(n,a,c,d,_){return C.assert(a.length>0),Ix(n),d||a.length===1||a.some(y=>!!y.typeParameters)?l_t(n,a,c,_):a_t(a)}function a_t(n){const a=Hi(n,z=>z.thisParameter);let c;a.length&&(c=mWe(a,a.map(fB)));const{min:d,max:_}=tae(n,s_t),y=[];for(let z=0;z<_;z++){const J=Hi(n,ne=>Yu(ne)?z<ne.parameters.length-1?ne.parameters[z]:es(ne.parameters):z<ne.parameters.length?ne.parameters[z]:void 0);C.assert(J.length!==0),y.push(mWe(J,Hi(n,ne=>nS(ne,z))))}const x=Hi(n,z=>Yu(z)?es(z.parameters):void 0);let k=128;if(x.length!==0){const z=Vu(Zr(Hi(n,J8e),2));y.push(_We(x,z)),k|=1}return n.some($q)&&(k|=2),Dg(n[0].declaration,void 0,c,y,Ea(n.map(ms)),void 0,d,k)}function s_t(n){const a=n.parameters.length;return Yu(n)?a-1:a}function mWe(n,a){return _We(n,Zr(a,2))}function _We(n,a){return tA(Xa(n),a)}function l_t(n,a,c,d){const _=d_t(a,on===void 0?c.length:on),y=a[_],{typeParameters:x}=y;if(!x)return y;const k=nWe(n)?n.typeArguments:void 0,z=k?$Z(y,c_t(k,x,sr(n))):u_t(n,x,y,c,d);return a[_]=z,z}function c_t(n,a,c){const d=n.map(xx);for(;d.length>a.length;)d.pop();for(;d.length<a.length;)d.push(JT(a[d.length])||Ld(a[d.length])||tye(c));return d}function u_t(n,a,c,d,_){const y=q8(a,c,sr(n)?2:0),x=Uye(n,c,d,_|4|8,y);return $Z(c,x)}function d_t(n,a){let c=-1,d=-1;for(let _=0;_<n.length;_++){const y=n[_],x=Yp(y);if(Kh(y)||x>=a)return _;x>d&&(d=x,c=_)}return c}function p_t(n,a,c){if(n.expression.kind===108){const z=gye(n.expression);if(Ct(z)){for(const J of n.arguments)go(J);return yt}if(!Kt(z)){const J=D_(cu(n));if(J){const ne=Vh(z,J.typeArguments,J);return OC(n,ne,a,c,0)}}return lA(n)}let d,_=go(n.expression);if(hS(n)){const z=j8(_,n.expression);d=z===_?0:dN(n)?16:8,_=z}else d=0;if(_=V3e(_,n.expression,Cmt),_===bo)return br;const y=kd(_);if(Kt(y))return rh(n);const x=Ko(y,0),k=Ko(y,1).length;if(dB(_,y,x.length,k))return!Kt(_)&&n.typeArguments&&Xe(n,m.Untyped_function_calls_may_not_accept_type_arguments),lA(n);if(!x.length){if(k)Xe(n,m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Un(_));else{let z;if(n.arguments.length===1){const J=jn(n).text;Hu(J.charCodeAt(wa(J,n.expression.end,!0)-1))&&(z=Or(n.expression,m.Are_you_missing_a_semicolon))}Kye(n.expression,y,0,z)}return rh(n)}return c&8&&!n.typeArguments&&x.some(f_t)?(QWe(n,c),gr):x.some(z=>sr(z.declaration)&&!!YV(z.declaration))?(Xe(n,m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Un(_)),rh(n)):OC(n,x,a,c,d)}function f_t(n){return!!(n.typeParameters&&Fbe(ms(n)))}function dB(n,a,c,d){return Ct(n)||Ct(a)&&!!(n.flags&262144)||!c&&!d&&!(a.flags&1048576)&&!(g_(a).flags&131072)&&Sa(n,Wt)}function m_t(n,a,c){if(n.arguments&&se<1){const x=ite(n.arguments);x>=0&&Xe(n.arguments[x],m.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let d=wC(n.expression);if(d===bo)return br;if(d=kd(d),Kt(d))return rh(n);if(Ct(d))return n.typeArguments&&Xe(n,m.Untyped_function_calls_may_not_accept_type_arguments),lA(n);const _=Ko(d,1);if(_.length){if(!__t(n,_[0]))return rh(n);if(hWe(_,k=>!!(k.flags&4)))return Xe(n,m.Cannot_create_an_instance_of_an_abstract_class),rh(n);const x=d.symbol&&Hg(d.symbol);return x&&$r(x,64)?(Xe(n,m.Cannot_create_an_instance_of_an_abstract_class),rh(n)):OC(n,_,a,c,0)}const y=Ko(d,0);if(y.length){const x=OC(n,y,a,c,0);return de||(x.declaration&&!ih(x.declaration)&&ms(x)!==Kn&&Xe(n,m.Only_a_void_function_can_be_called_with_the_new_keyword),mE(x)===Kn&&Xe(n,m.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return Kye(n.expression,d,1),rh(n)}function hWe(n,a){return Ao(n)?St(n,c=>hWe(c,a)):n.compositeKind===1048576?St(n.compositeSignatures,a):a(n)}function Jye(n,a){const c=dp(a);if(!Le(c))return!1;const d=c[0];if(d.flags&2097152){const _=d.types,y=D8e(_);let x=0;for(const k of d.types){if(!y[x]&&Wr(k)&3&&(k.symbol===n||Jye(n,k)))return!0;x++}return!1}return d.symbol===n?!0:Jye(n,d)}function __t(n,a){if(!a||!a.declaration)return!0;const c=a.declaration,d=jA(c,6);if(!d||c.kind!==176)return!0;const _=Hg(c.parent.symbol),y=Zs(c.parent.symbol);if(!wbe(n,_)){const x=cu(n);if(x&&d&4){const k=xx(x);if(Jye(c.parent.symbol,k))return!0}return d&2&&Xe(n,m.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Un(y)),d&4&&Xe(n,m.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Un(y)),!1}return!0}function gWe(n,a,c){let d;const _=c===0,y=dA(a),x=y&&Ko(y,c).length>0;if(a.flags&1048576){const z=a.types;let J=!1;for(const ne of z)if(Ko(ne,c).length!==0){if(J=!0,d)break}else if(d||(d=Bo(d,_?m.Type_0_has_no_call_signatures:m.Type_0_has_no_construct_signatures,Un(ne)),d=Bo(d,_?m.Not_all_constituents_of_type_0_are_callable:m.Not_all_constituents_of_type_0_are_constructable,Un(a))),J)break;J||(d=Bo(void 0,_?m.No_constituent_of_type_0_is_callable:m.No_constituent_of_type_0_is_constructable,Un(a))),d||(d=Bo(d,_?m.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:m.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Un(a)))}else d=Bo(d,_?m.Type_0_has_no_call_signatures:m.Type_0_has_no_construct_signatures,Un(a));let k=_?m.This_expression_is_not_callable:m.This_expression_is_not_constructable;if(sa(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:z}=Qr(n);z&&z.flags&32768&&(k=m.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Bo(d,k),relatedMessage:x?m.Did_you_forget_to_use_await:void 0}}function Kye(n,a,c,d){const{messageChain:_,relatedMessage:y}=gWe(n,a,c),x=Gg(jn(n),n,_);if(y&&Oa(x,Or(n,y)),sa(n.parent)){const{start:k,length:z}=pWe(n.parent);x.start=k,x.length=z}os.add(x),vWe(a,c,d?Oa(x,d):x)}function vWe(n,a,c){if(!n.symbol)return;const d=Xi(n.symbol).originatingImport;if(d&&!Bp(d)){const _=Ko(dr(Xi(n.symbol).target),a);if(!_||!_.length)return;Oa(c,Or(d,m.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 h_t(n,a,c){const d=go(n.tag),_=kd(d);if(Kt(_))return rh(n);const y=Ko(_,0),x=Ko(_,1).length;if(dB(d,_,y.length,x))return lA(n);if(!y.length){if(_d(n.parent)){const k=Or(n.tag,m.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 os.add(k),rh(n)}return Kye(n.tag,_,0),rh(n)}return OC(n,y,a,c,0)}function g_t(n){switch(n.parent.kind){case 263:case 231:return m.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return m.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return m.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return m.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return C.fail()}}function v_t(n,a,c){const d=go(n.expression),_=kd(d);if(Kt(_))return rh(n);const y=Ko(_,0),x=Ko(_,1).length;if(dB(d,_,y.length,x))return lA(n);if(E_t(n,y)&&!Gd(n.expression)){const z=gc(n.expression,!1);return Xe(n,m._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,z),rh(n)}const k=g_t(n);if(!y.length){const z=gWe(n.expression,_,0),J=Bo(z.messageChain,k),ne=Gg(jn(n.expression),n.expression,J);return z.relatedMessage&&Oa(ne,Or(n.expression,z.relatedMessage)),os.add(ne),vWe(_,0,ne),rh(n)}return OC(n,y,a,c,0,k)}function lte(n,a){const c=sA(n),d=c&&Mp(c),_=d&&Jd(d,sf.Element,788968),y=_&&At.symbolToEntityName(_,788968,n),x=w.createFunctionTypeNode(void 0,[w.createParameterDeclaration(void 0,void 0,"props",void 0,At.typeToTypeNode(a,n))],y?w.createTypeReferenceNode(y,void 0):w.createKeywordTypeNode(133)),k=Za(1,"props");return k.links.type=a,Dg(x,void 0,void 0,[k],_?Zs(_):_t,void 0,1,0)}function y_t(n,a,c){if(Ax(n.tagName)){const x=O3e(n),k=lte(n,x);return qb(FC(n.attributes,Yee(k,n),void 0,0),x,n.tagName,n.attributes),Le(n.typeArguments)&&(He(n.typeArguments,Ca),os.add(uR(jn(n),n.typeArguments,m.Expected_0_type_arguments_but_got_1,0,Le(n.typeArguments)))),k}const d=go(n.tagName),_=kd(d);if(Kt(_))return rh(n);const y=k3e(d,n);return dB(d,_,y.length,0)?lA(n):y.length===0?(Xe(n.tagName,m.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,gc(n.tagName)),rh(n)):OC(n,y,a,c,0)}function b_t(n,a,c){const d=go(n.right);if(!Ct(d)){const _=lbe(d);if(_){const y=kd(_);if(Kt(y))return rh(n);const x=Ko(y,0),k=Ko(y,1);if(dB(_,y,x.length,k.length))return lA(n);if(x.length)return OC(n,x,a,c,0)}else if(!(Pte(d)||Hb(d,Wt)))return Xe(n.right,m.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),rh(n)}return yt}function E_t(n,a){return a.length&&Yn(a,c=>c.minArgumentCount===0&&!Yu(c)&&c.parameters.length<dWe(n,c))}function S_t(n,a,c){switch(n.kind){case 213:return p_t(n,a,c);case 214:return m_t(n,a,c);case 215:return h_t(n,a,c);case 170:return v_t(n,a,c);case 286:case 285:return y_t(n,a,c);case 226:return b_t(n,a,c)}C.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function WC(n,a,c){const d=Qr(n),_=d.resolvedSignature;if(_&&_!==gr&&!a)return _;d.resolvedSignature=gr;let y=S_t(n,a,c||0);return y!==gr&&(d.resolvedSignature!==gr&&(y=d.resolvedSignature),d.resolvedSignature=H_===_f?y:_),y}function ih(n){var a;if(!n||!sr(n))return!1;const c=xc(n)||Bs(n)?n:(ki(n)||bc(n))&&n.initializer&&Bs(n.initializer)?n.initializer:void 0;if(c){if(YV(n))return!0;if(bc(Gv(c.parent)))return!1;const d=xr(c);return!!((a=d==null?void 0:d.members)!=null&&a.size)}return!1}function Xye(n,a){var c,d;if(a){const _=Xi(a);if(!_.inferredClassSymbol||!_.inferredClassSymbol.has(Ta(n))){const y=hh(n)?n:TT(n);return y.exports=y.exports||ua(),y.members=y.members||ua(),y.flags|=a.flags&32,(c=a.exports)!=null&&c.size&&d_(y.exports,a.exports),(d=a.members)!=null&&d.size&&d_(y.members,a.members),(_.inferredClassSymbol||(_.inferredClassSymbol=new Map)).set(Ta(y),y),y}return _.inferredClassSymbol.get(Ta(n))}}function T_t(n){var a;const c=n&&cte(n,!0),d=(a=c==null?void 0:c.exports)==null?void 0:a.get("prototype"),_=(d==null?void 0:d.valueDeclaration)&&A_t(d.valueDeclaration);return _?xr(_):void 0}function cte(n,a){if(!n.parent)return;let c,d;if(ki(n.parent)&&n.parent.initializer===n){if(!sr(n)&&!(LB(n.parent)&&js(n)))return;c=n.parent.name,d=n.parent}else if(mr(n.parent)){const _=n.parent,y=n.parent.operatorToken.kind;if(y===64&&(a||_.right===n))c=_.left,d=c;else if((y===57||y===61)&&(ki(_.parent)&&_.parent.initializer===_?(c=_.parent.name,d=_.parent):mr(_.parent)&&_.parent.operatorToken.kind===64&&(a||_.parent.right===_)&&(c=_.parent.left,d=c),!c||!CS(c)||!vR(c,_.left)))return}else a&&xc(n)&&(c=n.name,d=n);if(!(!d||!c||!a&&!y0(n,Hy(c))))return gf(d)}function A_t(n){if(!n.parent)return!1;let a=n.parent;for(;a&&a.kind===211;)a=a.parent;if(a&&mr(a)&&Hy(a.left)&&a.operatorToken.kind===64){const c=Jj(a);return Wa(c)&&c}}function I_t(n,a){var c,d,_;MB(n,n.typeArguments);const y=WC(n,void 0,a);if(y===gr)return bo;if(ute(y,n),n.expression.kind===108)return Kn;if(n.kind===214){const k=y.declaration;if(k&&k.kind!==176&&k.kind!==180&&k.kind!==185&&!(N0(k)&&((d=(c=TR(k))==null?void 0:c.parent)==null?void 0:d.kind)===176)&&!SR(k)&&!ih(k))return de&&Xe(n,m.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),j}if(sr(n)&&SWe(n))return H8e(n.arguments[0]);const x=ms(y);if(x.flags&12288&&yWe(n))return Eve(Gv(n.parent));if(n.kind===213&&!n.questionDotToken&&n.parent.kind===244&&x.flags&16384&&Jf(y)){if(!GN(n.expression))Xe(n.expression,m.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!X9(n)){const k=Xe(n.expression,m.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);K9(n.expression,k)}}if(sr(n)){const k=cte(n,!1);if((_=k==null?void 0:k.exports)!=null&&_.size){const z=Fs(k,k.exports,et,et,et);return z.objectFlags|=4096,Ea([x,z])}}return x}function ute(n,a){if(!(n.flags&128)&&n.declaration&&n.declaration.flags&536870912){const c=pB(a),d=hk(o3(a));P2(c,n.declaration,d,zh(n))}}function pB(n){switch(n=vs(n),n.kind){case 213:case 170:case 214:return pB(n.expression);case 215:return pB(n.tag);case 286:case 285:return pB(n.tagName);case 212:return n.argumentExpression;case 211:return n.name;case 183:const a=n;return Id(a.typeName)?a.typeName.right:a;default:return n}}function yWe(n){if(!sa(n))return!1;let a=n.expression;if(Fr(a)&&a.name.escapedText==="for"&&(a=a.expression),!je(a)||a.escapedText!=="Symbol")return!1;const c=u6e(!1);return c?c===yl(a,"Symbol",111551,void 0,void 0,!1):!1}function x_t(n){if(Gbt(n),n.arguments.length===0)return gB(n,j);const a=n.arguments[0],c=ac(a),d=n.arguments.length>1?ac(n.arguments[1]):void 0;for(let y=2;y<n.arguments.length;++y)ac(n.arguments[y]);if((c.flags&32768||c.flags&65536||!Sa(c,ke))&&Xe(a,m.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Un(c)),d){const y=c6e(!0);y!==ka&&nd(d,j9(y,32768),n.arguments[1])}const _=gd(n,a);if(_){const y=cp(_,a,!0,!1);if(y)return gB(n,bWe(dr(y),y,_,a)||EWe(dr(y),y,_,a))}return gB(n,j)}function Yye(n,a,c){const d=ua(),_=Za(2097152,"default");return _.parent=a,_.links.nameType=Xd("default"),_.links.aliasTarget=Hl(n),d.set("default",_),Fs(c,d,et,et,et)}function bWe(n,a,c,d){if(py(d)&&n&&!Kt(n)){const y=n;if(!y.defaultOnlyType){const x=Yye(a,c);y.defaultOnlyType=x}return y.defaultOnlyType}}function EWe(n,a,c,d){var _;if(Q&&n&&!Kt(n)){const y=n;if(!y.syntheticType){const x=(_=c.declarations)==null?void 0:_.find(Zi);if(J_(x,c,!1,d)){const z=Za(2048,"__type"),J=Yye(a,c,z);z.links.type=J,y.syntheticType=tB(n)?K1(n,J,z,0,!1):J}else y.syntheticType=n}return y.syntheticType}return n}function SWe(n){if(!Td(n,!0))return!1;if(!je(n.expression))return C.fail();const a=yl(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(a===gt)return!0;if(a.flags&2097152)return!1;const c=a.flags&16?262:a.flags&3?260:0;if(c!==0){const d=fl(a,c);return!!d&&!!(d.flags&33554432)}return!1}function R_t(n){fbt(n)||MB(n,n.typeArguments),se<2&&Pc(n,262144);const a=WC(n);return ute(a,n),ms(a)}function D_t(n,a){if(n.kind===216){const c=jn(n);c&&Ic(c.fileName,[".cts",".mts"])&&Sn(n,m.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return TWe(n,a)}function $ye(n){switch(n.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 209:case 210:case 228:return!0;case 217:return $ye(n.expression);case 224:const a=n.operator,c=n.operand;return a===41&&(c.kind===9||c.kind===10)||a===40&&c.kind===9;case 211:case 212:const d=vs(n.expression),_=jl(d)?qs(d,111551,!0):void 0;return!!(_&&_.flags&384)}return!1}function TWe(n,a){const{type:c,expression:d}=AWe(n),_=go(d,a);if(zg(c))return $ye(d)||Xe(d,m.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),bd(_);const y=Qr(n);return y.assertionExpressionType=_,Ca(c),Ix(n),Ti(c)}function AWe(n){let a,c;switch(n.kind){case 234:case 216:a=n.type,c=n.expression;break;case 217:a=_F(n),c=n.expression;break}return{type:a,expression:c}}function C_t(n){const{type:a}=AWe(n),c=Gd(n)?a:n,d=Qr(n);C.assertIsDefined(d.assertionExpressionType);const _=H8(Ev(d.assertionExpressionType)),y=Ti(a);Kt(y)||r(()=>{const x=Xp(_);hee(y,x)||s4e(_,y,c,m.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)})}function N_t(n){const a=go(n.expression),c=j8(a,n.expression);return Dee(Sv(c),n,c!==a)}function P_t(n){return n.flags&64?N_t(n):Sv(go(n.expression))}function IWe(n){if(y7e(n),He(n.typeArguments,Ca),n.kind===233){const c=Gv(n.parent);c.kind===226&&c.operatorToken.kind===104&&HE(n,c.right)&&Xe(n,m.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=n.kind===233?go(n.expression):YE(n.exprName)?Q9(n.exprName):go(n.exprName);return xWe(a,n)}function xWe(n,a){const c=a.typeArguments;if(n===bo||Kt(n)||!St(c))return n;let d=!1,_;const y=k(n),x=d?_:n;return x&&os.add(uR(jn(a),c,m.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Un(x))),y;function k(J){let ne=!1,Se=!1;const ve=Ge(J);return d||(d=Se),ne&&!Se&&(_!=null||(_=J)),ve;function Ge(vt){if(vt.flags&524288){const xt=h_(vt),cn=z(xt.callSignatures),sn=z(xt.constructSignatures);if(ne||(ne=xt.callSignatures.length!==0||xt.constructSignatures.length!==0),Se||(Se=cn.length!==0||sn.length!==0),cn!==xt.callSignatures||sn!==xt.constructSignatures){const er=Fs(Za(0,"__instantiationExpression"),xt.members,cn,sn,xt.indexInfos);return er.objectFlags|=8388608,er.node=a,er}}else if(vt.flags&58982400){const xt=Gu(vt);if(xt){const cn=Ge(xt);if(cn!==xt)return cn}}else{if(vt.flags&1048576)return dl(vt,k);if(vt.flags&2097152)return Ea(no(vt.types,Ge))}return vt}}function z(J){const ne=rr(J,Se=>!!Se.typeParameters&&jye(Se,c));return no(ne,Se=>{const ve=qye(Se,c,!0);return ve?N8(Se,ve,sr(Se.declaration)):Se})}}function M_t(n){return Ca(n.type),Qye(n.expression,n.type)}function Qye(n,a,c){const d=go(n,c),_=Ti(a);if(Kt(_))return _;const y=zn(a.parent,x=>x.kind===238||x.kind===357);return qb(d,_,y,n,m.Type_0_does_not_satisfy_the_expected_type_1),d}function L_t(n){return Cbt(n),n.keywordToken===105?Zye(n):n.keywordToken===102?k_t(n):C.assertNever(n.keywordToken)}function RWe(n){switch(n.keywordToken){case 102:return l6e();case 105:const a=Zye(n);return Kt(a)?_t:$_t(a);default:C.assertNever(n.keywordToken)}}function Zye(n){const a=Gie(n);if(a)if(a.kind===176){const c=xr(a.parent);return dr(c)}else{const c=xr(a);return dr(c)}else return Xe(n,m.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),_t}function k_t(n){G===100||G===199?jn(n).impliedNodeFormat!==99&&Xe(n,m.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):G<6&&G!==4&&Xe(n,m.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=jn(n);return C.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?s6e():_t}function fB(n){const a=n.valueDeclaration;return up(dr(n),!1,!!a&&(zy(a)||aP(a)))}function ebe(n,a,c="arg"){return n?(C.assert(je(n.name)),n.name.escapedText):"".concat(c,"_").concat(a)}function oM(n,a,c){const d=n.parameters.length-(Yu(n)?1:0);if(a<d)return n.parameters[a].escapedName;const _=n.parameters[d]||pt,y=c||dr(_);if(ja(y)){const x=y.target.labeledElementDeclarations,k=a-d;return ebe(x==null?void 0:x[k],k,_.escapedName)}return _.escapedName}function w_t(n,a){var c;if(((c=n.declaration)==null?void 0:c.kind)===324)return;const d=n.parameters.length-(Yu(n)?1:0);if(a<d){const k=n.parameters[a],z=DWe(k);return z?{parameter:z,parameterName:k.escapedName,isRestParameter:!1}:void 0}const _=n.parameters[d]||pt,y=DWe(_);if(!y)return;const x=dr(_);if(ja(x)){const k=x.target.labeledElementDeclarations,z=a-d,J=k==null?void 0:k[z],ne=!!(J!=null&&J.dotDotDotToken);return J?(C.assert(je(J.name)),{parameter:J.name,parameterName:J.name.escapedText,isRestParameter:ne}):void 0}if(a===d)return{parameter:y,parameterName:_.escapedName,isRestParameter:!0}}function DWe(n){return n.valueDeclaration&&Io(n.valueDeclaration)&&je(n.valueDeclaration.name)&&n.valueDeclaration.name}function CWe(n){return n.kind===202||Io(n)&&n.name&&je(n.name)}function O_t(n,a){const c=n.parameters.length-(Yu(n)?1:0);if(a<c){const y=n.parameters[a].valueDeclaration;return y&&CWe(y)?y:void 0}const d=n.parameters[c]||pt,_=dr(d);if(ja(_)){const y=_.target.labeledElementDeclarations,x=a-c;return y&&y[x]}return d.valueDeclaration&&CWe(d.valueDeclaration)?d.valueDeclaration:void 0}function b_(n,a){return nS(n,a)||j}function nS(n,a){const c=n.parameters.length-(Yu(n)?1:0);if(a<c)return fB(n.parameters[a]);if(Yu(n)){const d=dr(n.parameters[c]),_=a-c;if(!ja(d)||d.target.hasRestElement||_<d.target.fixedLength)return Lp(d,v_(_))}}function mB(n,a,c){const d=Yp(n),_=oh(n),y=Z8(n);if(y&&a>=d-1)return a===d-1?y:Vu(Lp(y,Tt));const x=[],k=[],z=[];for(let J=a;J<d;J++)!y||J<d-1?(x.push(b_(n,J)),k.push(J<_?1:2)):(x.push(y),k.push(8)),z.push(O_t(n,J));return qh(x,k,c,z)}function NWe(n,a){const c=mB(n,a),d=c&&V9(c);return d&&Ct(d)?j:c}function Yp(n){const a=n.parameters.length;if(Yu(n)){const c=dr(n.parameters[a-1]);if(ja(c))return a+c.target.fixedLength-(c.target.hasRestElement?0:1)}return a}function oh(n,a){const c=a&1,d=a&2;if(d||n.resolvedMinArgumentCount===void 0){let _;if(Yu(n)){const y=dr(n.parameters[n.parameters.length-1]);if(ja(y)){const x=Br(y.target.elementFlags,z=>!(z&1)),k=x<0?y.target.fixedLength:x;k>0&&(_=n.parameters.length-1+k)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(d)return _;for(let y=_-1;y>=0;y--){const x=b_(n,y);if(_c(x,rWe).flags&131072)break;_=y}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function Kh(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]);return!ja(a)||a.target.hasRestElement}return!1}function Z8(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]);if(!ja(a))return Ct(a)?ic:a;if(a.target.hasRestElement)return J2(a,a.target.fixedLength)}}function e6(n){const a=Z8(n);return a&&!Yf(a)&&!Ct(a)?a:void 0}function tbe(n){return nbe(n,Hr)}function nbe(n,a){return n.parameters.length>0?b_(n,0):a}function PWe(n,a,c){const d=n.parameters.length-(Yu(n)?1:0);for(let _=0;_<d;_++){const y=n.parameters[_].valueDeclaration,x=bu(y);if(x){const k=up(Ti(x),!1,aP(y)),z=b_(a,_);Tv(c.inferences,k,z)}}}function W_t(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){const d=n.thisParameter;(!d||d.valueDeclaration&&!d.valueDeclaration.type)&&(d||(n.thisParameter=tA(a.thisParameter,void 0)),_B(n.thisParameter,dr(a.thisParameter)))}const c=n.parameters.length-(Yu(n)?1:0);for(let d=0;d<c;d++){const _=n.parameters[d],y=_.valueDeclaration;if(!bu(y)){let x=nS(a,d);if(x&&y.initializer){let k=aM(y,0);!Sa(k,x)&&Sa(x,k=mte(y,k))&&(x=k)}_B(_,x)}}if(Yu(n)){const d=es(n.parameters);if(d.valueDeclaration?!bu(d.valueDeclaration):xl(d)&65536){const _=mB(a,c);_B(d,_)}}}function F_t(n){n.thisParameter&&_B(n.thisParameter);for(const a of n.parameters)_B(a)}function _B(n,a){const c=Xi(n);if(c.type)a&&C.assertEqual(c.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{const d=n.valueDeclaration;c.type=up(a||(d?B(d,!0):dr(n)),!1,!!d&&!d.initializer&&aP(d)),d&&d.name.kind!==80&&(c.type===dn&&(c.type=P(d.name)),MWe(d.name,c.type))}}function MWe(n,a){for(const c of n.elements)if(!Hc(c)){const d=jm(c,a,!1);c.name.kind===80?Xi(xr(c)).type=d:MWe(c.name,d)}}function z_t(n){return xC(eut(!0),[n])}function B_t(n,a){return xC(tut(!0),[n,a])}function G_t(n,a){return xC(nut(!0),[n,a])}function V_t(n,a){return xC(rut(!0),[n,a])}function j_t(n,a){return xC(iut(!0),[n,a])}function U_t(n,a){return xC(sut(!0),[n,a])}function H_t(n,a,c){const d="".concat(a?"p":"P").concat(c?"s":"S").concat(n.id);let _=Fa.get(d);if(!_){const y=ua();y.set("name",ET("name",n)),y.set("private",ET("private",a?nr:nn)),y.set("static",ET("static",c?nr:nn)),_=Fs(void 0,y,et,et,et),Fa.set(d,_)}return _}function LWe(n,a,c){const d=vc(n),_=Ji(n.name),y=_?Xd(Tr(n.name)):vy(n.name),x=Kl(n)?B_t(a,c):rf(n)?G_t(a,c):Sp(n)?V_t(a,c):Wd(n)?j_t(a,c):Uo(n)?U_t(a,c):C.failBadSyntaxKind(n),k=H_t(y,_,d);return Ea([x,k])}function q_t(n,a){return xC(out(!0),[n,a])}function J_t(n,a){return xC(aut(!0),[n,a])}function K_t(n,a){const c=u_("this",n),d=u_("value",a);return gbe(void 0,c,[d],a,void 0,1)}function rbe(n,a,c){const d=u_("target",n),_=u_("context",a),y=Zr([c,Kn]);return a6(void 0,void 0,[d,_],y)}function X_t(n){const{parent:a}=n,c=Qr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=yt,a.kind){case 263:case 231:{const _=dr(xr(a)),y=z_t(_);c.decoratorSignature=rbe(_,y,_);break}case 174:case 177:case 178:{const d=a;if(!ui(d.parent))break;const _=Kl(d)?KT(gm(d)):xx(d),y=vc(d)?dr(xr(d.parent)):qf(xr(d.parent)),x=rf(d)?pFe(_):Sp(d)?fFe(_):_,k=LWe(d,y,_),z=rf(d)?pFe(_):Sp(d)?fFe(_):_;c.decoratorSignature=rbe(x,k,z);break}case 172:{const d=a;if(!ui(d.parent))break;const _=xx(d),y=vc(d)?dr(xr(d.parent)):qf(xr(d.parent)),x=P_(d)?q_t(y,_):We,k=LWe(d,y,_),z=P_(d)?J_t(y,_):K_t(y,_);c.decoratorSignature=rbe(x,k,z);break}}return c.decoratorSignature===yt?void 0:c.decoratorSignature}function Y_t(n){const{parent:a}=n,c=Qr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=yt,a.kind){case 263:case 231:{const _=dr(xr(a)),y=u_("target",_);c.decoratorSignature=a6(void 0,void 0,[y],Zr([_,Kn]));break}case 169:{const d=a;if(!Ll(d.parent)&&!(Kl(d.parent)||Sp(d.parent)&&ui(d.parent.parent))||KE(d.parent)===d)break;const _=KE(d.parent)?d.parent.parameters.indexOf(d)-1:d.parent.parameters.indexOf(d);C.assert(_>=0);const y=Ll(d.parent)?dr(xr(d.parent.parent)):l7e(d.parent),x=Ll(d.parent)?We:c7e(d.parent),k=v_(_),z=u_("target",y),J=u_("propertyKey",x),ne=u_("parameterIndex",k);c.decoratorSignature=a6(void 0,void 0,[z,J,ne],Kn);break}case 174:case 177:case 178:case 172:{const d=a;if(!ui(d.parent))break;const _=l7e(d),y=u_("target",_),x=c7e(d),k=u_("propertyKey",x),z=Uo(d)?Kn:_6e(xx(d));if(se!==0&&(!Uo(a)||P_(a))){const ne=_6e(xx(d)),Se=u_("descriptor",ne);c.decoratorSignature=a6(void 0,void 0,[y,k,Se],Zr([z,Kn]))}else c.decoratorSignature=a6(void 0,void 0,[y,k],Zr([z,Kn]));break}}return c.decoratorSignature===yt?void 0:c.decoratorSignature}function ibe(n){return re?Y_t(n):X_t(n)}function hB(n){const a=x9(!0);return a!==Mo?(n=Ey(uM(n))||dn,hy(a,[n])):dn}function kWe(n){const a=p6e(!0);return a!==Mo?(n=Ey(uM(n))||dn,hy(a,[n])):dn}function gB(n,a){const c=hB(a);return c===dn?(Xe(n,Bp(n)?m.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:m.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),_t):(tve(!0)||Xe(n,Bp(n)?m.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:m.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function $_t(n){const a=Za(0,"NewTargetExpression"),c=Za(4,"target",8);c.parent=a,c.links.type=n;const d=ua([c]);return a.members=d,Fs(a,d,et,et,et)}function dte(n,a){if(!n.body)return _t;const c=Uc(n),d=(c&2)!==0,_=(c&1)!==0;let y,x,k,z=Kn;if(n.body.kind!==241)y=ac(n.body,a&&a&-9),d&&(y=uM(o6(y,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(_){const J=BWe(n,a);J?J.length>0&&(y=Zr(J,2)):z=Hr;const{yieldTypes:ne,nextTypes:Se}=Q_t(n,a);x=St(ne)?Zr(ne,2):void 0,k=St(Se)?Ea(Se):void 0}else{const J=BWe(n,a);if(!J)return c&2?gB(n,Hr):Hr;if(J.length===0){const ne=qee(n,void 0),Se=ne&&(DB(ne,c)||Kn).flags&32768?We:Kn;return c&2?gB(n,Se):Se}y=Zr(J,2)}if(y||x||k){if(x&&Mee(n,x,3),y&&Mee(n,y,1),k&&Mee(n,k,2),y&&y_(y)||x&&y_(x)||k&&y_(k)){const J=Aye(n),ne=J?J===gm(n)?_?void 0:y:Kee(ms(J),n,void 0):void 0;_?(x=Gve(x,ne,0,d),y=Gve(y,ne,1,d),k=Gve(k,ne,2,d)):y=Zdt(y,ne,d)}x&&(x=Xp(x)),y&&(y=Xp(y)),k&&(k=Xp(k))}return _?wWe(x||Hr,y||z,k||b3e(2,n)||dn,d):d?hB(y||z):y||z}function wWe(n,a,c,d){const _=d?Sl:Xl,y=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||dn,a=_.resolveIterationType(a,void 0)||dn,c=_.resolveIterationType(c,void 0)||dn,y===Mo){const x=_.getGlobalIterableIteratorType(!1),k=x!==Mo?RFe(x,_):void 0,z=k?k.returnType:j,J=k?k.nextType:We;return Sa(a,z)&&Sa(J,c)?x!==Mo?M8(x,[n]):(_.getGlobalIterableIteratorType(!0),ka):(_.getGlobalGeneratorType(!0),ka)}return M8(y,[n,a,c])}function Q_t(n,a){const c=[],d=[],_=(Uc(n)&2)!==0;return Nie(n.body,y=>{const x=y.expression?go(y.expression,a):Lt;Tf(c,OWe(y,x,j,_));let k;if(y.asteriskToken){const z=Ate(x,_?19:17,y.expression);k=z&&z.nextType}else k=Yd(y,void 0);k&&Tf(d,k)}),{yieldTypes:c,nextTypes:d}}function OWe(n,a,c,d){const _=n.expression||n,y=n.asteriskToken?Sy(d?19:17,a,c,_):a;return d?dA(y,_,n.asteriskToken?m.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:m.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y}function WWe(n,a,c){let d=0;for(let _=0;_<c.length;_++){const y=_<n||_>=a?c[_]:void 0;d|=y!==void 0?Zq.get(y)||32768:0}return d}function FWe(n){const a=Qr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const c=Z_t(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function Z_t(n){if(n.expression.kind===221){const d=Q4e(n);if(!d)return!1;const _=hv(ac(n.expression.expression)),y=WWe(0,0,d);return _.flags&3?(556800&y)===556800:!qm(_,x=>eM(x,y)===y)}const a=ac(n.expression);if(!V8(a))return!1;const c=Fee(n);return!c.length||St(c,Ydt)?!1:Jpt(dl(a,bd),c)}function zWe(n){return n.endFlowNode&&Y9(n.endFlowNode)}function BWe(n,a){const c=Uc(n),d=[];let _=zWe(n),y=!1;if(GE(n.body,x=>{let k=x.expression;if(k){if(k=vs(k,!0),c&2&&k.kind===223&&(k=vs(k.expression,!0)),k.kind===213&&k.expression.kind===80&&ac(k.expression).symbol===n.symbol){y=!0;return}let z=ac(k,a&&a&-9);c&2&&(z=uM(o6(z,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),z.flags&131072&&(y=!0),Tf(d,z)}else _=!0}),!(d.length===0&&!_&&(y||eht(n))))return Y&&d.length&&_&&!(ih(n)&&d.some(x=>x.symbol===n.symbol))&&Tf(d,We),d}function eht(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function obe(n,a){r(c);return;function c(){const d=Uc(n),_=a&&DB(a,d);if(_&&(Pl(_,16384)||_.flags&32769)||n.kind===173||Gl(n.body)||n.body.kind!==241||!zWe(n))return;const y=n.flags&1024,x=sm(n)||n;if(_&&_.flags&131072)Xe(x,m.A_function_returning_never_cannot_have_a_reachable_end_point);else if(_&&!y)Xe(x,m.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(_&&Y&&!Sa(We,_))Xe(x,m.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!_){if(!y)return;const k=ms(gm(n));if(wFe(n,k))return}Xe(x,m.Not_all_code_paths_return_a_value)}}}function GWe(n,a){if(C.assert(n.kind!==174||Nm(n)),Ix(n),Bs(n)&&dM(n,n.name),a&&a&4&&Kf(n)){if(!sm(n)&&!iW(n)){const d=$8(n);if(d&&bE(ms(d))){const _=Qr(n);if(_.contextFreeType)return _.contextFreeType;const y=dte(n,a),x=Dg(void 0,void 0,void 0,et,y,void 0,0,64),k=Fs(n.symbol,K,[x],et,et);return k.objectFlags|=262144,_.contextFreeType=k}}return an}return!wte(n)&&n.kind===218&&Gbe(n),tht(n,a),dr(xr(n))}function tht(n,a){const c=Qr(n);if(!(c.flags&64)){const d=$8(n);if(!(c.flags&64)){c.flags|=64;const _=$c(Ko(dr(xr(n)),0));if(!_)return;if(Kf(n))if(d){const y=eS(n);let x;if(a&&a&2){PWe(_,d,y);const k=Z8(d);k&&k.flags&262144&&(x=MC(d,y.nonFixingMapper))}x||(x=y?MC(d,y.mapper):d),W_t(_,x)}else F_t(_);else if(d&&!n.typeParameters&&d.parameters.length>n.parameters.length){const y=eS(n);a&&a&2&&PWe(_,d,y)}if(d&&!IC(n)&&!_.resolvedReturnType){const y=dte(n,a);_.resolvedReturnType||(_.resolvedReturnType=y)}n6(n)}}}function nht(n){C.assert(n.kind!==174||Nm(n));const a=Uc(n),c=IC(n);if(obe(n,c),n.body)if(sm(n)||ms(gm(n)),n.body.kind===241)Ca(n.body);else{const d=go(n.body),_=c&&DB(c,a);if(_){const y=ate(n.body);if((a&3)===2){const x=o6(d,!1,y,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);qb(x,_,y,y)}else qb(d,_,y,y)}}}function pte(n,a,c,d=!1){if(!Sa(a,Wl)){const _=d&&cM(a);return Y0(n,!!_&&Sa(_,Wl),c),!1}return!0}function rht(n){if(!sa(n)||!DS(n))return!1;const a=ac(n.arguments[2]);if(Ke(a,"value")){const _=ba(a,"writable"),y=_&&dr(_);if(!y||y===nn||y===En)return!0;if(_&&_.valueDeclaration&&bc(_.valueDeclaration)){const x=_.valueDeclaration.initializer,k=go(x);if(k===nn||k===En)return!0}return!1}return!ba(a,"set")}function E_(n){return!!(xl(n)&8||n.flags&4&&Df(n)&8||n.flags&3&&Pye(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||St(n.declarations,rht))}function VWe(n,a,c){var d,_;if(c===0)return!1;if(E_(a)){if(a.flags&4&&zs(n)&&n.expression.kind===110){const y=Gp(n);if(!(y&&(y.kind===176||ih(y))))return!0;if(a.valueDeclaration){const x=mr(a.valueDeclaration),k=y.parent===a.valueDeclaration.parent,z=y===a.valueDeclaration.parent,J=x&&((d=a.parent)==null?void 0:d.valueDeclaration)===y.parent,ne=x&&((_=a.parent)==null?void 0:_.valueDeclaration)===y;return!(k||z||J||ne)}}return!0}if(zs(n)){const y=vs(n.expression);if(y.kind===80){const x=Qr(y).resolvedSymbol;if(x.flags&2097152){const k=zm(x);return!!k&&k.kind===274}}}return!1}function t6(n,a,c){const d=ec(n,7);return d.kind!==80&&!zs(d)?(Xe(n,a),!1):d.flags&64?(Xe(n,c),!1):!0}function iht(n){go(n.expression);const a=vs(n.expression);if(!zs(a))return Xe(a,m.The_operand_of_a_delete_operator_must_be_a_property_reference),ai;Fr(a)&&Ji(a.name)&&Xe(a,m.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=Qr(a),d=vf(c.resolvedSymbol);return d&&(E_(d)?Xe(a,m.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):oht(a,d)),ai}function oht(n,a){const c=dr(a);Y&&!(c.flags&131075)&&!(Me?a.flags&16777216:ym(c,16777216))&&Xe(n,m.The_operand_of_a_delete_operator_must_be_optional)}function aht(n){return go(n.expression),rC}function sht(n){return Ix(n),Lt}function jWe(n){let a=!1;const c=t3(n);if(c&&Rl(c)){const d=eb(n)?m.await_expression_cannot_be_used_inside_a_class_static_block:m.await_using_statements_cannot_be_used_inside_a_class_static_block;Xe(n,d),a=!0}else if(!(n.flags&65536))if(r3(n)){const d=jn(n);if(!iS(d)){let _;if(!wA(d,V)){_!=null||(_=yh(d,n.pos));const y=eb(n)?m.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:m.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,x=eu(d,_.start,_.length,y);os.add(x),a=!0}switch(G){case 100:case 199:if(d.impliedNodeFormat===1){_!=null||(_=yh(d,n.pos)),os.add(eu(d,_.start,_.length,m.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(se>=4)break;default:_!=null||(_=yh(d,n.pos));const y=eb(n)?m.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:m.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;os.add(eu(d,_.start,_.length,y)),a=!0;break}}}else{const d=jn(n);if(!iS(d)){const _=yh(d,n.pos),y=eb(n)?m.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:m.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,x=eu(d,_.start,_.length,y);if(c&&c.kind!==176&&(Uc(c)&2)===0){const k=Or(c,m.Did_you_mean_to_mark_this_function_as_async);Oa(x,k)}os.add(x),a=!0}}return eb(n)&&yye(n)&&(Xe(n,m.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function lht(n){r(()=>jWe(n));const a=go(n.expression),c=o6(a,!0,n,m.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!Kt(c)&&!(a.flags&3)&&c_(!1,Or(n,m.await_has_no_effect_on_the_type_of_this_expression)),c}function cht(n){const a=go(n.operand);if(a===bo)return bo;switch(n.operand.kind){case 9:switch(n.operator){case 41:return Sx(v_(-n.operand.text));case 40:return Sx(v_(+n.operand.text))}break;case 10:if(n.operator===41)return Sx(uee({negative:!0,base10Value:eP(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return nh(a,n.operand),vB(a,12288)&&Xe(n.operand,m.The_0_operator_cannot_be_applied_to_type_symbol,pa(n.operator)),n.operator===40?(vB(a,2112)&&Xe(n.operand,m.Operator_0_cannot_be_applied_to_type_1,pa(n.operator),Un(Ev(a))),Tt):abe(a);case 54:Sbe(a,n.operand);const c=eM(a,12582912);return c===4194304?nn:c===8388608?nr:ai;case 46:case 47:return pte(n.operand,nh(a,n.operand),m.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&t6(n.operand,m.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,m.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),abe(a)}return _t}function uht(n){const a=go(n.operand);return a===bo?bo:(pte(n.operand,nh(a,n.operand),m.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&t6(n.operand,m.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,m.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),abe(a))}function abe(n){return Pl(n,2112)?Ru(n,3)||Pl(n,296)?Wl:kt:Tt}function vB(n,a){if(Pl(n,a))return!0;const c=hv(n);return!!c&&Pl(c,a)}function Pl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const c=n.types;for(const d of c)if(Pl(d,a))return!0}return!1}function Ru(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&Sa(n,Tt)||!!(a&2112)&&Sa(n,kt)||!!(a&402653316)&&Sa(n,ke)||!!(a&528)&&Sa(n,ai)||!!(a&16384)&&Sa(n,Kn)||!!(a&131072)&&Sa(n,Hr)||!!(a&65536)&&Sa(n,fe)||!!(a&32768)&&Sa(n,We)||!!(a&4096)&&Sa(n,si)||!!(a&67108864)&&Sa(n,ga)}function yB(n,a,c){return n.flags&1048576?Yn(n.types,d=>yB(d,a,c)):Ru(n,a,c)}function fte(n){return!!(Wr(n)&16)&&!!n.symbol&&sbe(n.symbol)}function sbe(n){return(n.flags&128)!==0}function lbe(n){const a=CFe("hasInstance"),c=pE(n,a);if(c){const d=dr(c);if(d&&Ko(d,0).length!==0)return d}}function dht(n,a,c,d,_){if(c===bo||d===bo)return bo;!Ct(c)&&yB(c,402784252)&&Xe(n,m.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),C.assert(L3(n.parent));const y=WC(n.parent,void 0,_);if(y===gr)return bo;const x=ms(y);return nd(x,ai,a,m.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),ai}function pht(n){return qm(n,a=>a===Cl||!!(a.flags&2097152)&&Jh(hv(a)))}function fht(n,a,c,d){if(c===bo||d===bo)return bo;if(Ji(n)){if(se<99&&Pc(n,2097152),!Qr(n).resolvedSymbol&&cu(n)){const _=Wye(n,d.symbol,!0);X3e(n,d,_)}}else nd(nh(c,n),Qt,n);return nd(nh(d,a),ga,a)&&pht(d)&&Xe(a,m.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Un(d)),ai}function mht(n,a,c){const d=n.properties;if(Y&&d.length===0)return nh(a,n);for(let _=0;_<d.length;_++)UWe(n,a,_,d,c);return a}function UWe(n,a,c,d,_=!1){const y=n.properties,x=y[c];if(x.kind===303||x.kind===304){const k=x.name,z=vy(k);if(lm(z)){const Se=cm(z),ve=ba(a,Se);ve&&(sB(ve,x,_),Lye(x,!1,!0,a,ve))}const J=Lp(a,z,32,k),ne=Yi(x,J);return uA(x.kind===304?x:x.initializer,ne)}else if(x.kind===305)if(c<y.length-1)Xe(x,m.A_rest_element_must_be_last_in_a_destructuring_pattern);else{se<99&&Pc(x,4);const k=[];if(d)for(const J of d)Yv(J)||k.push(J.name);const z=Oi(a,k,a.symbol);return Rx(d,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),uA(x.expression,z)}else Xe(x,m.Property_assignment_expected)}function _ht(n,a,c){const d=n.elements;se<2&&V.downlevelIteration&&Pc(n,512);const _=Sy(193,a,We,n)||_t;let y=V.noUncheckedIndexedAccess?void 0:_;for(let x=0;x<d.length;x++){let k=_;n.elements[x].kind===230&&(k=y=y!=null?y:Sy(65,a,We,n)||_t),HWe(n,a,x,k,c)}return a}function HWe(n,a,c,d,_){const y=n.elements,x=y[c];if(x.kind!==232){if(x.kind!==230){const k=v_(c);if(by(a)){const z=32|(iM(x)?16:0),J=Vb(a,k,z,cB(x,k))||_t,ne=iM(x)?bm(J,524288):J,Se=Yi(x,ne);return uA(x,Se,_)}return uA(x,d,_)}if(c<y.length-1)Xe(x,m.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const k=x.expression;if(k.kind===226&&k.operatorToken.kind===64)Xe(k.operatorToken,m.A_rest_element_cannot_have_an_initializer);else{Rx(n.elements,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);const z=pp(a,ja)?dl(a,J=>J2(J,c)):Vu(d);return uA(k,z,_)}}}}function uA(n,a,c,d){let _;if(n.kind===304){const y=n;y.objectAssignmentInitializer&&(Y&&!ym(go(y.objectAssignmentInitializer),16777216)&&(a=bm(a,524288)),yht(y.name,y.equalsToken,y.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(Ce(_,c),_=_.left,Y&&(a=bm(a,524288))),_.kind===210?mht(_,a,d):_.kind===209?_ht(_,a,c):hht(_,a,c)}function hht(n,a,c){const d=go(n,c),_=n.parent.kind===305?m.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:m.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,y=n.parent.kind===305?m.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:m.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return t6(n,_,y)&&qb(a,d,n,n),tR(n)&&Pc(n.parent,1048576),a}function bB(n){switch(n=vs(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return bB(n.whenTrue)&&bB(n.whenFalse);case 226:return jv(n.operatorToken.kind)?!1:bB(n.left)&&bB(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function cbe(n,a){return(a.flags&98304)!==0||hee(n,a)}function ght(){const n=yF(a,c,d,_,y,x);return(ve,Ge)=>{const vt=n(ve,Ge);return C.assertIsDefined(vt),vt};function a(ve,Ge,vt){return Ge?(Ge.stackIndex++,Ge.skip=!1,J(Ge,void 0),Se(Ge,void 0)):Ge={checkMode:vt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},sr(ve)&&OA(ve)?(Ge.skip=!0,Se(Ge,go(ve.right,vt)),Ge):(vht(ve),ve.operatorToken.kind===64&&(ve.left.kind===210||ve.left.kind===209)&&(Ge.skip=!0,Se(Ge,uA(ve.left,go(ve.right,vt),vt,ve.right.kind===110))),Ge)}function c(ve,Ge,vt){if(!Ge.skip)return k(Ge,ve)}function d(ve,Ge,vt){if(!Ge.skip){const xt=ne(Ge);C.assertIsDefined(xt),J(Ge,xt),Se(Ge,void 0);const cn=ve.kind;if(fk(cn)){let sn=vt.parent;for(;sn.kind===217||mk(sn);)sn=sn.parent;(cn===56||US(sn))&&Ebe(vt.left,xt,US(sn)?sn.thenStatement:void 0),Sbe(xt,vt.left)}}}function _(ve,Ge,vt){if(!Ge.skip)return k(Ge,ve)}function y(ve,Ge){let vt;if(Ge.skip)vt=ne(Ge);else{const xt=z(Ge);C.assertIsDefined(xt);const cn=ne(Ge);C.assertIsDefined(cn),vt=qWe(ve.left,ve.operatorToken,ve.right,xt,cn,Ge.checkMode,ve)}return Ge.skip=!1,J(Ge,void 0),Se(Ge,void 0),Ge.stackIndex--,vt}function x(ve,Ge,vt){return Se(ve,Ge),ve}function k(ve,Ge){if(mr(Ge))return Ge;Se(ve,go(Ge,ve.checkMode))}function z(ve){return ve.typeStack[ve.stackIndex]}function J(ve,Ge){ve.typeStack[ve.stackIndex]=Ge}function ne(ve){return ve.typeStack[ve.stackIndex+1]}function Se(ve,Ge){ve.typeStack[ve.stackIndex+1]=Ge}}function vht(n){const{left:a,operatorToken:c,right:d}=n;c.kind===61&&(mr(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&Sn(a,m._0_and_1_operations_cannot_be_mixed_without_parentheses,pa(a.operatorToken.kind),pa(c.kind)),mr(d)&&(d.operatorToken.kind===57||d.operatorToken.kind===56)&&Sn(d,m._0_and_1_operations_cannot_be_mixed_without_parentheses,pa(d.operatorToken.kind),pa(c.kind)))}function yht(n,a,c,d,_){const y=a.kind;if(y===64&&(n.kind===210||n.kind===209))return uA(n,go(c,d),d,c.kind===110);let x;fk(y)?x=pM(n,d):x=go(n,d);const k=go(c,d);return qWe(n,a,c,x,k,d,_)}function qWe(n,a,c,d,_,y,x){const k=a.kind;switch(k){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(d===bo||_===bo)return bo;d=nh(d,n),_=nh(_,c);let mn;if(d.flags&528&&_.flags&528&&(mn=ve(a.kind))!==void 0)return Xe(x||a,m.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,pa(a.kind),pa(mn)),Tt;{const Vn=pte(n,d,m.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Gn=pte(c,_,m.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let tr;if(Ru(d,3)&&Ru(_,3)||!(Pl(d,2112)||Pl(_,2112)))tr=Tt;else if(z(d,_)){switch(k){case 50:case 73:cn();break;case 43:case 68:se<3&&Xe(x,m.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}tr=kt}else cn(z),tr=_t;return Vn&&Gn&&Ge(tr),tr}case 40:case 65:if(d===bo||_===bo)return bo;!Ru(d,402653316)&&!Ru(_,402653316)&&(d=nh(d,n),_=nh(_,c));let Fn;return Ru(d,296,!0)&&Ru(_,296,!0)?Fn=Tt:Ru(d,2112,!0)&&Ru(_,2112,!0)?Fn=kt:Ru(d,402653316,!0)||Ru(_,402653316,!0)?Fn=ke:(Ct(d)||Ct(_))&&(Fn=Kt(d)||Kt(_)?_t:j),Fn&&!Se(k)?Fn:Fn?(k===65&&Ge(Fn),Fn):(cn((Gn,tr)=>Ru(Gn,402655727)&&Ru(tr,402655727)),j);case 30:case 32:case 33:case 34:return Se(k)&&(d=zve(nh(d,n)),_=zve(nh(_,c)),xt((Vn,Gn)=>{if(Ct(Vn)||Ct(Gn))return!0;const tr=Sa(Vn,Wl),mo=Sa(Gn,Wl);return tr&&mo||!tr&&!mo&&w9(Vn,Gn)})),ai;case 35:case 36:case 37:case 38:if(!(y&&y&64)){if((oj(n)||oj(c))&&(!sr(n)||k===37||k===38)){const Vn=k===35||k===37;Xe(x,m.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Vn?"false":"true")}er(x,k,n,c),xt((Vn,Gn)=>cbe(Vn,Gn)||cbe(Gn,Vn))}return ai;case 104:return dht(n,c,d,_,y);case 103:return fht(n,c,d,_);case 56:case 77:{const Vn=ym(d,4194304)?Zr([npt(Y?d:Ev(_)),_]):d;return k===77&&Ge(_),Vn}case 57:case 76:{const Vn=ym(d,8388608)?Zr([Sv(I4e(d)),_],2):d;return k===76&&Ge(_),Vn}case 61:case 78:{const Vn=ym(d,262144)?Zr([Sv(d),_],2):d;return k===78&&Ge(_),Vn}case 64:const Pn=mr(n.parent)?Vl(n.parent):0;return J(Pn,_),vt(Pn)?((!(_.flags&524288)||Pn!==2&&Pn!==6&&!bv(_)&&!aye(_)&&!(Wr(_)&1))&&Ge(_),d):(Ge(_),_);case 28:if(!V.allowUnreachableCode&&bB(n)&&!ne(n.parent)){const Vn=jn(n),Gn=Vn.text,tr=wa(Gn,n.pos);Vn.parseDiagnostics.some(_o=>_o.code!==m.JSX_expressions_must_have_one_parent_element.code?!1:JV(_o,tr))||Xe(n,m.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return C.fail()}function z(mn,Fn){return Ru(mn,2112)&&Ru(Fn,2112)}function J(mn,Fn){if(mn===2)for(const Pn of zb(Fn)){const Vn=dr(Pn);if(Vn.symbol&&Vn.symbol.flags&32){const Gn=Pn.escapedName,tr=yl(Pn.valueDeclaration,Gn,788968,void 0,Gn,!1);tr!=null&&tr.declarations&&tr.declarations.some(YS)&&(_m(tr,m.Duplicate_identifier_0,ji(Gn),Pn),_m(Pn,m.Duplicate_identifier_0,ji(Gn),tr))}}}function ne(mn){return mn.parent.kind===217&&bp(mn.left)&&mn.left.text==="0"&&(sa(mn.parent.parent)&&mn.parent.parent.expression===mn.parent||mn.parent.parent.kind===215)&&(zs(mn.right)||je(mn.right)&&mn.right.escapedText==="eval")}function Se(mn){const Fn=vB(d,12288)?n:vB(_,12288)?c:void 0;return Fn?(Xe(Fn,m.The_0_operator_cannot_be_applied_to_type_symbol,pa(mn)),!1):!0}function ve(mn){switch(mn){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Ge(mn){jv(k)&&r(Fn);function Fn(){let Pn=d;if(BP(a.kind)&&n.kind===211&&(Pn=Zee(n,void 0,!0)),t6(n,m.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,m.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Vn;if(Me&&Fr(n)&&Pl(mn,32768)){const Gn=Ke(Du(n.expression),n.name.escapedText);vee(mn,Gn)&&(Vn=m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}qb(mn,Pn,n,c,Vn)}}}function vt(mn){var Fn;switch(mn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Pn=gf(n),Vn=OA(c);return!!Vn&&Wa(Vn)&&!!((Fn=Pn==null?void 0:Pn.exports)!=null&&Fn.size);default:return!1}}function xt(mn){return mn(d,_)?!1:(cn(mn),!0)}function cn(mn){let Fn=!1;const Pn=x||a;if(mn){const _o=Ey(d),Fo=Ey(_);Fn=!(_o===d&&Fo===_)&&!!(_o&&Fo)&&mn(_o,Fo)}let Vn=d,Gn=_;!Fn&&mn&&([Vn,Gn]=bht(d,_,mn));const[tr,mo]=fx(Vn,Gn);sn(Pn,Fn,tr,mo)||Y0(Pn,Fn,m.Operator_0_cannot_be_applied_to_types_1_and_2,pa(a.kind),tr,mo)}function sn(mn,Fn,Pn,Vn){switch(a.kind){case 37:case 35:case 38:case 36:return Y0(mn,Fn,m.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Pn,Vn);default:return}}function er(mn,Fn,Pn,Vn){const Gn=Wn(vs(Pn)),tr=Wn(vs(Vn));if(Gn||tr){const mo=Xe(mn,m.This_condition_will_always_return_0,pa(Fn===37||Fn===35?97:112));if(Gn&&tr)return;const _o=Fn===38||Fn===36?pa(54):"",Fo=Gn?Vn:Pn,vo=vs(Fo);Oa(mo,Or(Fo,m.Did_you_mean_0,"".concat(_o,"Number.isNaN(").concat(jl(vo)?gp(vo):"...",")")))}}function Wn(mn){if(je(mn)&&mn.escapedText==="NaN"){const Fn=lut();return!!Fn&&Fn===Hm(mn)}return!1}}function bht(n,a,c){let d=n,_=a;const y=Ev(n),x=Ev(a);return c(y,x)||(d=y,_=x),[d,_]}function Eht(n){r(ve);const a=Gp(n);if(!a)return j;const c=Uc(a);if(!(c&1))return j;const d=(c&2)!==0;n.asteriskToken&&(d&&se<99&&Pc(n,26624),!d&&se<2&&V.downlevelIteration&&Pc(n,256));let _=IC(a);_&&_.flags&1048576&&(_=_c(_,Ge=>pbe(Ge,c,void 0)));const y=_&&kFe(_,d),x=y&&y.yieldType||j,k=y&&y.nextType||j,z=d?dA(k)||j:k,J=n.expression?go(n.expression):Lt,ne=OWe(n,J,z,d);if(_&&ne&&qb(ne,x,n.expression||n,n.expression),n.asteriskToken)return Abe(d?19:17,1,J,n.expression)||j;if(_)return rS(2,_,d)||j;let Se=b3e(2,a);return Se||(Se=j,r(()=>{if(de&&!aae(n)){const Ge=Yd(n,void 0);(!Ge||Ct(Ge))&&Xe(n,m.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Se;function ve(){n.flags&16384||gu(n,m.A_yield_expression_is_only_allowed_in_a_generator_body),yye(n)&&Xe(n,m.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Sht(n,a){const c=pM(n.condition,a);Ebe(n.condition,c,n.whenTrue);const d=go(n.whenTrue,a),_=go(n.whenFalse,a);return Zr([d,_],2)}function JWe(n){const a=n.parent;return Gd(a)&&JWe(a)||$s(a)&&a.argumentExpression===n}function Tht(n){const a=[n.head.text],c=[];for(const _ of n.templateSpans){const y=go(_.expression);vB(y,12288)&&Xe(_.expression,m.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(_.literal.text),c.push(Sa(y,to)?y:ke)}if(sM(n)||JWe(n)||qm(Yd(n,void 0)||dn,Aht))return XT(a,c);const d=n.parent.kind!==215&&XFe(n);return d?Sx(Xd(d)):ke}function Aht(n){return!!(n.flags&134217856||n.flags&58982400&&Pl(Gu(n)||dn,402653316))}function Iht(n){return u1(n)&&!JS(n.parent)?n.parent.parent:n}function FC(n,a,c,d){const _=Iht(n);eB(_,a,!1),Hft(_,c);const y=go(n,d|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const x=Pl(y,2944)&&_te(y,Kee(a,n,void 0))?bd(y):y;return qft(),Y8(),x}function ac(n,a){if(a)return go(n,a);const c=Qr(n);if(!c.resolvedType){const d=H_,_=vn;H_=_f,vn=void 0,c.resolvedType=go(n,a),vn=_,H_=d}return c.resolvedType}function KWe(n){return n=vs(n,!0),n.kind===216||n.kind===234||nD(n)}function aM(n,a,c){const d=jL(n);if(sr(n)){const y=sW(n);if(y)return Qye(d,y,a)}const _=dbe(d)||(c?FC(d,c,void 0,a||0):ac(d,a));return Io(n)&&n.name.kind===207&&ja(_)&&!_.target.hasRestElement&&gy(_)<n.name.elements.length?xht(_,n.name):_}function xht(n,a){const c=a.elements,d=J1(n).slice(),_=n.target.elementFlags.slice();for(let y=gy(n);y<c.length;y++){const x=c[y];(y<c.length-1||!(x.kind===208&&x.dotDotDotToken))&&(d.push(!Hc(x)&&iM(x)?B2(x,!1,!1):j),_.push(2),!Hc(x)&&!iM(x)&&yE(x,j))}return qh(d,_,n.target.readonly)}function mte(n,a){const c=aS(n)&6||K4(n)?a:Q1(a);if(sr(n)){if(y4e(c))return yE(n,j),j;if(Aee(c))return yE(n,ic),ic}return c}function _te(n,a){if(a){if(a.flags&3145728){const c=a.types;return St(c,d=>_te(n,d))}if(a.flags&58982400){const c=Gu(a)||dn;return Pl(c,4)&&Pl(n,128)||Pl(c,8)&&Pl(n,256)||Pl(c,64)&&Pl(n,2048)||Pl(c,4096)&&Pl(n,8192)||_te(n,c)}return!!(a.flags&406847616&&Pl(n,128)||a.flags&256&&Pl(n,256)||a.flags&2048&&Pl(n,2048)||a.flags&512&&Pl(n,512)||a.flags&8192&&Pl(n,8192))}return!1}function sM(n){const a=n.parent;return bS(a)&&zg(a.type)||nD(a)&&zg(_F(a))||$ye(n)&&qT(Yd(n,0))||(Gd(a)||_d(a)||n_(a))&&sM(a)||(bc(a)||rp(a)||bP(a))&&sM(a.parent)}function lM(n,a,c){const d=go(n,a,c);return sM(n)||Lie(n)?bd(d):KWe(n)?d:Bve(d,Kee(Yd(n,void 0),n,void 0))}function XWe(n,a){return n.name.kind===167&&Ng(n.name),lM(n.initializer,a)}function YWe(n,a){S7e(n),n.name.kind===167&&Ng(n.name);const c=GWe(n,a);return $We(n,c,a)}function $We(n,a,c){if(c&&c&10){const d=Q8(a,0,!0),_=Q8(a,1,!0),y=d||_;if(y&&y.typeParameters){const x=TE(n,2);if(x){const k=Q8(Sv(x),d?0:1,!1);if(k&&!k.typeParameters){if(c&8)return QWe(n,c),an;const z=eS(n),J=z.signature&&ms(z.signature),ne=J&&oWe(J);if(ne&&!ne.typeParameters&&!Yn(z.inferences,zC)){const Se=Nht(z,y.typeParameters),ve=Vge(y,Se),Ge=Ot(z.inferences,vt=>Jve(vt.typeParameter));if(jve(ve,k,(vt,xt)=>{Tv(Ge,vt,xt,0,!0)}),St(Ge,zC)&&(Uve(ve,k,(vt,xt)=>{Tv(Ge,vt,xt)}),!Dht(z.inferences,Ge)))return Cht(z.inferences,Ge),z.inferredTypeParameters=To(z.inferredTypeParameters,Se),KT(ve)}return KT(aWe(y,k,z))}}}}return a}function QWe(n,a){if(a&2){const c=eS(n);c.flags|=4}}function zC(n){return!!(n.candidates||n.contraCandidates)}function Rht(n){return!!(n.candidates||n.contraCandidates||O8e(n.typeParameter))}function Dht(n,a){for(let c=0;c<n.length;c++)if(zC(n[c])&&zC(a[c]))return!0;return!1}function Cht(n,a){for(let c=0;c<n.length;c++)!zC(n[c])&&zC(a[c])&&(n[c]=a[c])}function Nht(n,a){const c=[];let d,_;for(const y of a){const x=y.symbol.escapedName;if(ube(n.inferredTypeParameters,x)||ube(c,x)){const k=Pht(To(n.inferredTypeParameters,c),x),z=Za(262144,k),J=yf(z);J.target=y,d=Rn(d,y),_=Rn(_,J),c.push(J)}else c.push(y)}if(_){const y=kp(d,_);for(const x of _)x.mapper=y}return c}function ube(n,a){return St(n,c=>c.symbol.escapedName===a)}function Pht(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;const d=a.slice(0,c);for(let _=1;;_++){const y=d+_;if(!ube(n,y))return y}}function ZWe(n){const a=cA(n);if(a&&!a.typeParameters)return ms(a)}function Mht(n){const a=go(n.expression),c=j8(a,n.expression),d=ZWe(a);return d&&Dee(d,n,c!==a)}function Du(n){const a=dbe(n);if(a)return a;if(n.flags&268435456&&vn){const _=vn[cs(n)];if(_)return _}const c=Ze,d=go(n,64);if(Ze!==c){const _=vn||(vn=[]);_[cs(n)]=d,oae(n,n.flags|268435456)}return d}function dbe(n){let a=vs(n,!0);if(nD(a)){const c=_F(a);if(!zg(c))return Ti(c)}if(a=vs(n),eb(a)){const c=dbe(a.expression);return c?dA(c):void 0}if(sa(a)&&a.expression.kind!==108&&!Td(a,!0)&&!yWe(a))return hS(a)?Mht(a):ZWe(wC(a.expression));if(bS(a)&&!zg(a.type))return Ti(a.type);if(OE(n)||hN(n))return go(n)}function EB(n){const a=Qr(n);if(a.contextFreeType)return a.contextFreeType;eB(n,j,!1);const c=a.contextFreeType=go(n,4);return Y8(),c}function go(n,a,c){var d,_;(d=ar)==null||d.push(ar.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const y=N;N=n,I=0;const x=wht(n,a,c),k=$We(n,x,a);return fte(k)&&Lht(n,k),N=y,(_=ar)==null||_.pop(),k}function Lht(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&Cte(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||Xe(n,m.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),um(V)&&(C.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!I0(n)&&Xe(n,m.Cannot_access_ambient_const_enums_when_0_is_enabled,Qe))}function kht(n,a){if(Fp(n)){if(KU(n))return Qye(n.expression,XU(n),a);if(nD(n))return TWe(n,a)}return go(n.expression,a)}function wht(n,a,c){const d=n.kind;if(i)switch(d){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(d){case 80:return mft(n,a);case 81:return Mmt(n);case 110:return Q9(n);case 108:return gye(n);case 106:return Ve;case 15:case 11:return Qve(n)?Ye:Sx(Xd(n.text));case 9:return Hbe(n),Sx(v_(+n.text));case 10:return Wbt(n),Sx(uee({negative:!1,base10Value:eP(n.text)}));case 112:return nr;case 97:return nn;case 228:return Tht(n);case 14:return vl;case 209:return D3e(n,a,c);case 210:return umt(n,a);case 211:return Zee(n,a);case 166:return U3e(n,a);case 212:return Kmt(n,a);case 213:if(n.expression.kind===102)return x_t(n);case 214:return I_t(n,a);case 215:return R_t(n);case 217:return kht(n,a);case 231:return Svt(n);case 218:case 219:return GWe(n,a);case 221:return aht(n);case 216:case 234:return D_t(n,a);case 235:return P_t(n);case 233:return IWe(n);case 238:return M_t(n);case 236:return L_t(n);case 220:return iht(n);case 222:return sht(n);case 223:return lht(n);case 224:return cht(n);case 225:return uht(n);case 226:return Ce(n,a);case 227:return Sht(n,a);case 230:return imt(n,a);case 232:return Lt;case 229:return Eht(n);case 237:return omt(n);case 294:return Imt(n,a);case 284:return mmt(n);case 285:return pmt(n);case 288:return _mt(n);case 292:return gmt(n,a);case 286:C.fail("Shouldn't ever directly check a JsxOpeningElement")}return _t}function eFe(n){Mg(n),n.expression&&gu(n.expression,m.Type_expected),Ca(n.constraint),Ca(n.default);const a=jT(xr(n));Gu(a),_ct(a)||Xe(n.default,m.Type_parameter_0_has_a_circular_default,Un(a));const c=Ld(a),d=JT(a);c&&d&&nd(d,Kp(co(c,Y1(a,d)),d),n.default,m.Type_0_does_not_satisfy_the_constraint_1),Ix(n),r(()=>fM(n.name,m.Type_parameter_name_cannot_be_0))}function Oht(n){var a,c;if(hd(n.parent)||ui(n.parent)||Lm(n.parent)){const d=jT(xr(n)),_=wve(d)&24576;if(_){const y=xr(n.parent);if(Lm(n.parent)&&!(Wr(Zs(y))&52))Xe(n,m.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(_===8192||_===16384){(a=ar)==null||a.push(ar.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:yd(Zs(y)),id:yd(d)});const x=F9(y,d,_===16384?Z:pe),k=F9(y,d,_===16384?pe:Z),z=d;O=d,nd(x,k,n,m.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),O=z,(c=ar)==null||c.pop()}}}}function tFe(n){Mg(n),xB(n);const a=Gp(n);$r(n,31)&&(a.kind===176&&tm(a.body)||Xe(n,m.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&je(n.name)&&n.name.escapedText==="constructor"&&Xe(n.name,m.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&aP(n)&&Zo(n.name)&&a.body&&Xe(n,m.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&je(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&Xe(n,m.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&Xe(n,m.A_constructor_cannot_have_a_this_parameter),a.kind===219&&Xe(n,m.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&Xe(n,m.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Zo(n.name)&&!Sa(g_(dr(n.symbol)),ff)&&Xe(n,m.A_rest_parameter_must_be_of_an_array_type)}function Wht(n){const a=Fht(n);if(!a){Xe(n,m.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=gm(a),d=Jf(c);if(!d)return;Ca(n.type);const{parameterName:_}=n;if(d.kind===0||d.kind===2)dee(_);else if(d.parameterIndex>=0){if(Yu(c)&&d.parameterIndex===c.parameters.length-1)Xe(_,m.A_type_predicate_cannot_reference_a_rest_parameter);else if(d.type){const y=()=>Bo(void 0,m.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);nd(d.type,dr(c.parameters[d.parameterIndex]),n.type,void 0,y)}}else if(_){let y=!1;for(const{name:x}of a.parameters)if(Zo(x)&&nFe(x,_,d.parameterName)){y=!0;break}y||Xe(n.parameterName,m.Cannot_find_parameter_0,d.parameterName)}}function Fht(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const a=n.parent;if(n===a.type)return a}}function nFe(n,a,c){for(const d of n.elements){if(Hc(d))continue;const _=d.name;if(_.kind===80&&_.escapedText===c)return Xe(a,m.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((_.kind===207||_.kind===206)&&nFe(_,a,c))return!0}}function n6(n){n.kind===181?dbt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&wte(n);const a=Uc(n);a&4||((a&3)===3&&se<99&&Pc(n,6144),(a&3)===2&&se<4&&Pc(n,64),(a&3)!==0&&se<2&&Pc(n,128)),CB(ky(n)),yvt(n),He(n.parameters,tFe),n.type&&Ca(n.type),r(c);function c(){Ogt(n);let d=sm(n),_=d;if(sr(n)){const y=f0(n);if(y&&y.typeExpression&&Nf(y.typeExpression.type)){const x=cA(Ti(y.typeExpression));x&&x.declaration&&(d=sm(x.declaration),_=y.typeExpression.type)}}if(de&&!d)switch(n.kind){case 180:Xe(n,m.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Xe(n,m.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(d&&_){const y=Uc(n);if((y&5)===1){const x=Ti(d);x===Kn?Xe(_,m.A_generator_cannot_have_a_void_type_annotation):pbe(x,y,_)}else(y&3)===2&&_gt(n,d,_)}n.kind!==181&&n.kind!==324&&$b(n)}}function pbe(n,a,c){const d=rS(0,n,(a&2)!==0)||j,_=rS(1,n,(a&2)!==0)||d,y=rS(2,n,(a&2)!==0)||dn,x=wWe(d,_,y,!!(a&2));return nd(x,n,c)}function zht(n){const a=new Map,c=new Map,d=new Map;for(const y of n.members)if(y.kind===176)for(const x of y.parameters)hp(x,y)&&!Zo(x.name)&&_(a,x.name,x.name.escapedText,3);else{const x=aa(y),k=y.name;if(!k)continue;const z=Ji(k),J=z&&x?16:0,ne=z?d:x?c:a,Se=k&&qbe(k);if(Se)switch(y.kind){case 177:_(ne,k,Se,1|J);break;case 178:_(ne,k,Se,2|J);break;case 172:_(ne,k,Se,3|J);break;case 174:_(ne,k,Se,8|J);break}}function _(y,x,k,z){const J=y.get(k);if(J)if((J&16)!==(z&16))Xe(x,m.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,gc(x));else{const ne=!!(J&8),Se=!!(z&8);ne||Se?ne!==Se&&Xe(x,m.Duplicate_identifier_0,gc(x)):J&z&-17?Xe(x,m.Duplicate_identifier_0,gc(x)):y.set(k,J|z)}else y.set(k,z)}}function Bht(n){for(const a of n.members){const c=a.name;if(aa(a)&&c){const _=qbe(c);switch(_){case"name":case"length":case"caller":case"arguments":if(_e)break;case"prototype":const y=m.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=aE(xr(n));Xe(c,y,_,x);break}}}}function rFe(n){const a=new Map;for(const c of n.members)if(c.kind===171){let d;const _=c.name;switch(_.kind){case 11:case 9:d=_.text;break;case 80:d=Tr(_);break;default:continue}a.get(d)?(Xe(Po(c.symbol.valueDeclaration),m.Duplicate_identifier_0,d),Xe(c.name,m.Duplicate_identifier_0,d)):a.set(d,!0)}}function fbe(n){if(n.kind===264){const c=xr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}const a=jge(xr(n));if(a!=null&&a.declarations){const c=new Map;for(const d of a.declarations)d.parameters.length===1&&d.parameters[0].type&&oA(Ti(d.parameters[0].type),_=>{const y=c.get(yd(_));y?y.declarations.push(d):c.set(yd(_),{type:_,declarations:[d]})});c.forEach(d=>{if(d.declarations.length>1)for(const _ of d.declarations)Xe(_,m.Duplicate_index_signature_for_type_0,Un(d.type))})}}function iFe(n){!Mg(n)&&!Lbt(n)&&Ote(n.name),xB(n),mbe(n),$r(n,64)&&n.kind===172&&n.initializer&&Xe(n,m.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ns(n.name))}function Ght(n){return Ji(n.name)&&Xe(n,m.Private_identifiers_are_not_allowed_outside_class_bodies),iFe(n)}function Vht(n){S7e(n)||Ote(n.name),Kl(n)&&n.asteriskToken&&je(n.name)&&Tr(n.name)==="constructor"&&Xe(n.name,m.Class_constructor_may_not_be_a_generator),gFe(n),$r(n,64)&&n.kind===174&&n.body&&Xe(n,m.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ns(n.name)),Ji(n.name)&&!cu(n)&&Xe(n,m.Private_identifiers_are_not_allowed_outside_class_bodies),mbe(n)}function mbe(n){if(Ji(n.name)&&se<99){for(let a=vh(n);a;a=vh(a))Qr(a).flags|=1048576;if(tu(n.parent)){const a=fye(n.parent);a&&(Qr(n.name).flags|=32768,Qr(a).flags|=4096)}}}function jht(n){Mg(n),Vo(n,Ca)}function Uht(n){n6(n),Pbt(n)||Mbt(n),Ca(n.body);const a=xr(n),c=fl(a,n.kind);if(n===c&&vte(a),Gl(n.body))return;r(_);return;function d(y){return cd(y)?!0:y.kind===172&&!aa(y)&&!!y.initializer}function _(){const y=n.parent;if(qE(y)){mye(n.parent,y);const x=_ye(y),k=p3e(n.body);if(k){if(x&&Xe(k,m.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ye&&(St(n.parent.members,d)||St(n.parameters,J=>$r(J,31))))if(!Hht(k,n.body))Xe(k,m.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{let J;for(const ne of n.body.statements){if(nu(ne)&&IS(ec(ne.expression))){J=ne;break}if(oFe(ne))break}J===void 0&&Xe(n,m.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 x||Xe(n,m.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Hht(n,a){const c=Gv(n.parent);return nu(c)&&c.parent===a}function oFe(n){return n.kind===108||n.kind===110?!0:Bie(n)?!1:!!Vo(n,oFe)}function aFe(n){je(n.name)&&Tr(n.name)==="constructor"&&ui(n.parent)&&Xe(n.name,m.Class_constructor_may_not_be_an_accessor),r(a),Ca(n.body),mbe(n);function a(){if(!wte(n)&&!bbt(n)&&Ote(n.name),TB(n),n6(n),n.kind===177&&!(n.flags&33554432)&&tm(n.body)&&n.flags&512&&(n.flags&1024||Xe(n.name,m.A_get_accessor_must_return_a_value)),n.name.kind===167&&Ng(n.name),TC(n)){const d=xr(n),_=fl(d,177),y=fl(d,178);if(_&&y&&!(VC(_)&1)){Qr(_).flags|=1;const x=pd(_),k=pd(y);(x&64)!==(k&64)&&(Xe(_.name,m.Accessors_must_both_be_abstract_or_non_abstract),Xe(y.name,m.Accessors_must_both_be_abstract_or_non_abstract)),(x&4&&!(k&6)||x&2&&!(k&2))&&(Xe(_.name,m.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Xe(y.name,m.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=uE(xr(n));n.kind===177&&obe(n,c)}}function qht(n){TB(n)}function Jht(n,a,c){return n.typeArguments&&c<n.typeArguments.length?Ti(n.typeArguments[c]):hte(n,a)[c]}function hte(n,a){return Bb(Ot(n.typeArguments,Ti),a,Uh(a),sr(n))}function sFe(n,a){let c,d,_=!0;for(let y=0;y<a.length;y++){const x=Ld(a[y]);x&&(c||(c=hte(n,a),d=kp(a,c)),_=_&&nd(c[y],co(x,d),n.typeArguments[y],m.Type_0_does_not_satisfy_the_constraint_1))}return _}function Kht(n,a){if(!Kt(n))return a.flags&524288&&Xi(a).typeParameters||(Wr(n)&4?n.target.localTypeParameters:void 0)}function _be(n){const a=Ti(n);if(!Kt(a)){const c=Qr(n).resolvedSymbol;if(c)return Kht(a,c)}}function hbe(n){if(MB(n,n.typeArguments),n.kind===183&&!sr(n)&&!GL(n)&&n.typeArguments&&n.typeName.end!==n.typeArguments.pos){const a=jn(n);Cie(a,n.typeName.end)===25&&oS(n,wa(a.text,n.typeName.end),1,m.JSDoc_types_can_only_be_used_inside_documentation_comments)}He(n.typeArguments,Ca),lFe(n)}function lFe(n){const a=Ti(n);if(!Kt(a)){n.typeArguments&&r(()=>{const d=_be(n);d&&sFe(n,d)});const c=Qr(n).resolvedSymbol;c&&St(c.declarations,d=>GR(d)&&!!(d.flags&536870912))&&uy(pB(n),c.declarations,c.escapedName)}}function Xht(n){const a=ti(n.parent,O4);if(!a)return;const c=_be(a);if(!c)return;const d=Ld(c[a.typeArguments.indexOf(n)]);return d&&co(d,kp(c,hte(a,c)))}function Yht(n){o6e(n)}function $ht(n){He(n.members,Ca),r(a);function a(){const c=q6e(n);Ite(c,c.symbol),fbe(n),rFe(n)}}function Qht(n){Ca(n.elementType)}function Zht(n){let a=!1,c=!1;for(const d of n.elements){let _=ive(d);if(_&8){const y=Ti(d.type);if(!by(y)){Xe(d,m.A_rest_element_type_must_be_an_array_type);break}(Yf(y)||ja(y)&&y.target.combinedFlags&4)&&(_|=4)}if(_&4){if(c){Sn(d,m.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(_&2){if(c){Sn(d,m.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(_&1&&a){Sn(d,m.A_required_element_cannot_follow_an_optional_element);break}}He(n.elements,Ca),Ti(n)}function egt(n){He(n.types,Ca),Ti(n)}function cFe(n,a){if(!(n.flags&8388608))return n;const c=n.objectType,d=n.indexType,_=Kd(c)&&KZ(c)===2?N6e(c,0):eh(c,0),y=!!Cg(c,Tt);if(pp(d,x=>Sa(x,_)||y&&gx(x,Tt)))return a.kind===212&&sg(a)&&Wr(c)&32&&jh(c)&1&&Xe(a,m.Index_signature_in_type_0_only_permits_reading,Un(c)),n;if($T(c)){const x=aee(d,a);if(x){const k=oA(kd(c),z=>ba(z,x));if(k&&Df(k)&6)return Xe(a,m.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,ji(x)),_t}}return Xe(a,m.Type_0_cannot_be_used_to_index_type_1,Un(d),Un(c)),_t}function tgt(n){Ca(n.objectType),Ca(n.indexType),cFe(B6e(n),n)}function ngt(n){rgt(n),Ca(n.typeParameter),Ca(n.nameType),Ca(n.type),n.type||yE(n,j);const a=hve(n),c=_y(a);if(c)nd(c,va,n.nameType);else{const d=Ef(a);nd(d,va,eR(n.typeParameter))}}function rgt(n){var a;if((a=n.members)!=null&&a.length)return Sn(n.members[0],m.A_mapped_type_may_not_declare_properties_or_methods)}function igt(n){dee(n)}function ogt(n){Sbt(n),Ca(n.type)}function agt(n){Vo(n,Ca)}function sgt(n){zn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||Sn(n,m.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Ca(n.typeParameter);const a=xr(n.typeParameter);if(a.declarations&&a.declarations.length>1){const c=Xi(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;const d=jT(a),_=lie(a,168);if(!FFe(_,[d],y=>[y])){const y=Si(a);for(const x of _)Xe(x.name,m.All_declarations_of_0_must_have_identical_constraints,y)}}}$b(n)}function lgt(n){for(const a of n.templateSpans){Ca(a.type);const c=Ti(a.type);nd(c,to,a.type)}Ti(n)}function cgt(n){Ca(n.argument),n.attributes&&gD(n.attributes,Sn),lFe(n)}function ugt(n){n.dotDotDotToken&&n.questionToken&&Sn(n,m.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&Sn(n.type,m.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&Sn(n.type,m.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Ca(n.type),Ti(n)}function SB(n){return(yp(n,2)||cd(n))&&!!(n.flags&33554432)}function gte(n,a){let c=Wte(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){const d=kj(n);d&&d.flags&128&&!(c&128)&&!(O_(n.parent)&&Ql(n.parent.parent)&&R_(n.parent.parent))&&(c|=32),c|=128}return c&a}function vte(n){r(()=>dgt(n))}function dgt(n){function a(mn,Fn){return Fn!==void 0&&Fn.parent===mn[0].parent?Fn:mn[0]}function c(mn,Fn,Pn,Vn,Gn){if((Vn^Gn)!==0){const mo=gte(a(mn,Fn),Pn);He(mn,_o=>{const Fo=gte(_o,Pn)^mo;Fo&32?Xe(Po(_o),m.Overload_signatures_must_all_be_exported_or_non_exported):Fo&128?Xe(Po(_o),m.Overload_signatures_must_all_be_ambient_or_non_ambient):Fo&6?Xe(Po(_o)||_o,m.Overload_signatures_must_all_be_public_private_or_protected):Fo&64&&Xe(Po(_o),m.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function d(mn,Fn,Pn,Vn){if(Pn!==Vn){const Gn=FA(a(mn,Fn));He(mn,tr=>{FA(tr)!==Gn&&Xe(Po(tr),m.Overload_signatures_must_all_be_optional_or_required)})}}const _=230;let y=0,x=_,k=!1,z=!0,J=!1,ne,Se,ve;const Ge=n.declarations,vt=(n.flags&16384)!==0;function xt(mn){if(mn.name&&Gl(mn.name))return;let Fn=!1;const Pn=Vo(mn.parent,Gn=>{if(Fn)return Gn;Fn=Gn===mn});if(Pn&&Pn.pos===mn.end&&Pn.kind===mn.kind){const Gn=Pn.name||Pn,tr=Pn.name;if(mn.name&&tr&&(Ji(mn.name)&&Ji(tr)&&mn.name.escapedText===tr.escapedText||rs(mn.name)&&rs(tr)&&yv(Ng(mn.name),Ng(tr))||C_(mn.name)&&C_(tr)&&LN(mn.name)===LN(tr))){if((mn.kind===174||mn.kind===173)&&aa(mn)!==aa(Pn)){const _o=aa(mn)?m.Function_overload_must_be_static:m.Function_overload_must_not_be_static;Xe(Gn,_o)}return}if(tm(Pn.body)){Xe(Gn,m.Function_implementation_name_must_be_0,Ns(mn.name));return}}const Vn=mn.name||mn;vt?Xe(Vn,m.Constructor_implementation_is_missing):$r(mn,64)?Xe(Vn,m.All_declarations_of_an_abstract_method_must_be_consecutive):Xe(Vn,m.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let cn=!1,sn=!1,er=!1;const Wn=[];if(Ge)for(const mn of Ge){const Fn=mn,Pn=Fn.flags&33554432,Vn=Fn.parent&&(Fn.parent.kind===264||Fn.parent.kind===187)||Pn;if(Vn&&(ve=void 0),(Fn.kind===263||Fn.kind===231)&&!Pn&&(er=!0),Fn.kind===262||Fn.kind===174||Fn.kind===173||Fn.kind===176){Wn.push(Fn);const Gn=gte(Fn,_);y|=Gn,x&=Gn,k=k||FA(Fn),z=z&&FA(Fn);const tr=tm(Fn.body);tr&&ne?vt?sn=!0:cn=!0:(ve==null?void 0:ve.parent)===Fn.parent&&ve.end!==Fn.pos&&xt(ve),tr?ne||(ne=Fn):J=!0,ve=Fn,Vn||(Se=Fn)}sr(mn)&&Qo(mn)&&mn.jsDoc&&(J=Le($j(mn))>0)}if(sn&&He(Wn,mn=>{Xe(mn,m.Multiple_constructor_implementations_are_not_allowed)}),cn&&He(Wn,mn=>{Xe(Po(mn)||mn,m.Duplicate_function_implementation)}),er&&!vt&&n.flags&16&&Ge){const mn=rr(Ge,Fn=>Fn.kind===263).map(Fn=>Or(Fn,m.Consider_adding_a_declare_modifier_to_this_class));He(Ge,Fn=>{const Pn=Fn.kind===263?m.Class_declaration_cannot_implement_overload_list_for_0:Fn.kind===262?m.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Pn&&Oa(Xe(Po(Fn)||Fn,Pn,El(n)),...mn)})}if(Se&&!Se.body&&!$r(Se,64)&&!Se.questionToken&&xt(Se),J&&(Ge&&(c(Ge,ne,_,y,x),d(Ge,ne,k,z)),ne)){const mn=H1(n),Fn=gm(ne);for(const Pn of mn)if(!Pdt(Fn,Pn)){const Vn=Pn.declaration&&N0(Pn.declaration)?Pn.declaration.parent.tagName:Pn.declaration;Oa(Xe(Vn,m.This_overload_signature_is_not_compatible_with_its_implementation_signature),Or(ne,m.The_implementation_signature_is_declared_here));break}}}function r6(n){r(()=>pgt(n))}function pgt(n){let a=n.localSymbol;if(!a&&(a=xr(n),!a.exportSymbol)||fl(a,n.kind)!==n)return;let c=0,d=0,_=0;for(const J of a.declarations){const ne=z(J),Se=gte(J,2080);Se&32?Se&2048?_|=ne:c|=ne:d|=ne}const y=c|d,x=c&d,k=_&y;if(x||k)for(const J of a.declarations){const ne=z(J),Se=Po(J);ne&k?Xe(Se,m.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ns(Se)):ne&x&&Xe(Se,m.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ns(Se))}function z(J){let ne=J;switch(ne.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return ku(ne)||$g(ne)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const Se=ne,ve=wl(Se)?Se.expression:Se.right;if(!jl(ve))return 1;ne=ve;case 271:case 274:case 273:let Ge=0;const vt=Bc(xr(ne));return He(vt.declarations,xt=>{Ge|=z(xt)}),Ge;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return C.failBadSyntaxKind(ne)}}}function cM(n,a,c,...d){const _=i6(n,a);return _&&dA(_,a,c,...d)}function i6(n,a,c){if(Ct(n))return;const d=n;if(d.promisedTypeOfPromise)return d.promisedTypeOfPromise;if(Wb(n,x9(!1)))return d.promisedTypeOfPromise=Js(n)[0];if(yB(hv(n),402915324))return;const _=Ke(n,"then");if(Ct(_))return;const y=_?Ko(_,0):et;if(y.length===0){a&&Xe(a,m.A_promise_must_have_a_then_method);return}let x,k;for(const ne of y){const Se=mE(ne);Se&&Se!==Kn&&!th(n,Se,kh)?x=Se:k=Rn(k,ne)}if(!k){C.assertIsDefined(x),c&&(c.value=x),a&&Xe(a,m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Un(n),Un(x));return}const z=bm(Zr(Ot(k,tbe)),2097152);if(Ct(z))return;const J=Ko(z,0);if(J.length===0){a&&Xe(a,m.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return d.promisedTypeOfPromise=Zr(Ot(J,tbe),2)}function o6(n,a,c,d,..._){return(a?dA(n,c,d,..._):Ey(n,c,d,..._))||_t}function uFe(n){if(yB(hv(n),402915324))return!1;const a=Ke(n,"then");return!!a&&Ko(bm(a,2097152),0).length>0}function yte(n){var a;if(n.flags&16777216){const c=rve(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function uM(n){return n.flags&1048576?dl(n,uM):yte(n)?n.aliasTypeArguments[0]:n}function dFe(n){if(Ct(n)||yte(n))return!1;if($T(n)){const a=Gu(n);if(a?a.flags&3||bv(a)||qm(a,uFe):Pl(n,8650752))return!0}return!1}function fgt(n){const a=rve(!0);if(a)return RC(a,[uM(n)])}function mgt(n){if(dFe(n)){const a=fgt(n);if(a)return a}return C.assert(yte(n)||i6(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function dA(n,a,c,...d){const _=Ey(n,a,c,...d);return _&&mgt(_)}function Ey(n,a,c,...d){if(Ct(n)||yte(n))return n;const _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(J0.lastIndexOf(n.id)>=0){a&&Xe(a,m.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const k=a?J=>Ey(J,a,c,...d):Ey;J0.push(n.id);const z=dl(n,k);return J0.pop(),_.awaitedTypeOfType=z}if(dFe(n))return _.awaitedTypeOfType=n;const y={value:void 0},x=i6(n,void 0,y);if(x){if(n.id===x.id||J0.lastIndexOf(x.id)>=0){a&&Xe(a,m.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}J0.push(n.id);const k=Ey(x,a,c,...d);return J0.pop(),k?_.awaitedTypeOfType=k:void 0}if(uFe(n)){if(a){C.assertIsDefined(c);let k;y.value&&(k=Bo(k,m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Un(n),Un(y.value))),k=Bo(k,c,...d),os.add(Gg(jn(a),a,k))}return}return _.awaitedTypeOfType=n}function _gt(n,a,c){const d=Ti(a);if(se>=2){if(Kt(d))return;const y=x9(!0);if(y!==Mo&&!Wb(d,y)){_(m.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,c,Un(Ey(d)||Kn));return}}else{if(ggt(a),Kt(d))return;const y=zL(a);if(y===void 0){_(m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Un(d));return}const x=qs(y,111551,!0),k=x?dr(x):_t;if(Kt(k)){y.kind===80&&y.escapedText==="Promise"&&my(d)===x9(!1)?Xe(c,m.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):_(m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,gp(y));return}const z=Gct(!0);if(z===ka){_(m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,gp(y));return}const J=m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!nd(k,z,c,J,()=>a===c?void 0:Bo(void 0,m.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const Se=y&&Vp(y),ve=Jd(n.locals,Se.escapedText,111551);if(ve){Xe(ve.valueDeclaration,m.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Tr(Se),gp(y));return}}o6(d,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function _(y,x,k,z){if(x===k)Xe(k,y,z);else{const J=Xe(k,m.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Oa(J,Or(x,y,z))}}}function hgt(n){const a=WC(n);ute(a,n);const c=ms(a);if(c.flags&1)return;const d=ibe(n);if(!(d!=null&&d.resolvedReturnType))return;let _;const y=d.resolvedReturnType;switch(n.parent.kind){case 263:case 231:_=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!re){_=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:_=m.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:_=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return C.failBadSyntaxKind(n.parent)}nd(c,y,n.expression,_)}function a6(n,a,c,d,_,y=c.length,x=0){const k=w.createFunctionTypeNode(void 0,et,w.createKeywordTypeNode(133));return Dg(k,n,a,c,d,_,y,x)}function gbe(n,a,c,d,_,y,x){const k=a6(n,a,c,d,_,y,x);return KT(k)}function pFe(n){return gbe(void 0,void 0,et,n)}function fFe(n){const a=u_("value",n);return gbe(void 0,void 0,[a],Kn)}function ggt(n){mFe(n&&zL(n),!1)}function mFe(n,a){if(!n)return;const c=Vp(n),d=(n.kind===80?788968:1920)|2097152,_=yl(c,c.escapedText,d,void 0,void 0,!0);if(_&&_.flags&2097152){if(It&&Vm(_)&&!u6(Bc(_))&&!Gf(_))Ib(_);else if(a&&um(V)&&wu(V)>=5&&!Vm(_)&&!St(_.declarations,h0)){const y=Xe(n,m.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),x=Tn(_.declarations||et,Eb);x&&Oa(y,Or(x,m._0_was_imported_here,Tr(c)))}}}function BC(n){const a=vbe(n);a&&Zd(a)&&mFe(a,!0)}function vbe(n){if(n)switch(n.kind){case 193:case 192:return _Fe(n.types);case 194:return _Fe([n.trueType,n.falseType]);case 196:case 202:return vbe(n.type);case 183:return n.typeName}}function _Fe(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!Y&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;const d=vbe(c);if(!d)return;if(a){if(!je(a)||!je(d)||a.escapedText!==d.escapedText)return}else a=d}return a}function bte(n){const a=bu(n);return ng(n)?Fj(a):a}function TB(n){if(!QS(n)||!If(n)||!n.modifiers||!a3(re,n,n.parent,n.parent.parent))return;const a=Tn(n.modifiers,Su);if(a){if(re?(Pc(a,8),n.kind===169&&Pc(a,32)):se<99&&(Pc(a,8),Rc(n)?n.name?zFe(n)&&Pc(a,8388608):Pc(a,8388608):tu(n)||(Ji(n.name)&&(Kl(n)||Oy(n)||Wd(n))&&Pc(a,8388608),rs(n.name)&&Pc(a,16777216))),V.emitDecoratorMetadata)switch(Pc(a,16),n.kind){case 263:const c=cg(n);if(c)for(const x of c.parameters)BC(bte(x));break;case 177:case 178:const d=n.kind===177?178:177,_=fl(xr(n),d);BC(Um(n)||_&&Um(_));break;case 174:for(const x of n.parameters)BC(bte(x));BC(sm(n));break;case 172:BC(bu(n));break;case 169:BC(bte(n));const y=n.parent;for(const x of y.parameters)BC(bte(x));BC(sm(y));break}for(const c of n.modifiers)Su(c)&&hgt(c)}}function vgt(n){r(a);function a(){gFe(n),Gbe(n),dM(n,n.name)}}function ygt(n){n.typeExpression||Xe(n.name,m.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&fM(n.name,m.Type_alias_name_cannot_be_0),Ca(n.typeExpression),CB(ky(n))}function bgt(n){Ca(n.constraint);for(const a of n.typeParameters)Ca(a)}function Egt(n){Ca(n.typeExpression)}function Sgt(n){Ca(n.typeExpression);const a=E0(n);if(a){const c=S4(a,pF);if(Le(c)>1)for(let d=1;d<Le(c);d++){const _=c[d].tagName;Xe(_,m._0_tag_already_specified,Tr(_))}}}function Tgt(n){n.name&&PB(n.name,!0)}function Agt(n){Ca(n.typeExpression)}function Igt(n){Ca(n.typeExpression)}function xgt(n){r(a),n6(n);function a(){!n.type&&!SR(n)&&yE(n,j)}}function Rgt(n){const a=E0(n);a&&Us(a)&&Xe(n.tagName,m.An_arrow_function_cannot_have_a_this_parameter)}function Dgt(n){const a=E0(n);(!a||!Rc(a)&&!tu(a))&&Xe(a,m.JSDoc_0_is_not_attached_to_a_class,Tr(n.tagName))}function Cgt(n){const a=E0(n);if(!a||!Rc(a)&&!tu(a)){Xe(a,m.JSDoc_0_is_not_attached_to_a_class,Tr(n.tagName));return}const c=_0(a).filter(vI);C.assert(c.length>0),c.length>1&&Xe(c[1],m.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const d=hFe(n.class.expression),_=qE(a);if(_){const y=hFe(_.expression);y&&d.escapedText!==y.escapedText&&Xe(d,m.JSDoc_0_1_does_not_match_the_extends_2_clause,Tr(n.tagName),Tr(d),Tr(y))}}function Ngt(n){const a=NS(n);a&&cd(a)&&Xe(n,m.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function hFe(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function gFe(n){var a;TB(n),n6(n);const c=Uc(n);if(n.name&&n.name.kind===167&&Ng(n.name),TC(n)){const y=xr(n),x=n.localSymbol||y,k=(a=x.declarations)==null?void 0:a.find(z=>z.kind===n.kind&&!(z.flags&524288));n===k&&vte(x),y.parent&&vte(y)}const d=n.kind===173?void 0:n.body;if(Ca(d),obe(n,IC(n)),r(_),sr(n)){const y=f0(n);y&&y.typeExpression&&!Tye(Ti(y.typeExpression),n)&&Xe(y.typeExpression.type,m.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){sm(n)||(Gl(d)&&!SB(n)&&yE(n,j),c&1&&tm(d)&&ms(gm(n)))}}function $b(n){r(a);function a(){const c=jn(n);let d=mf.get(c.path);d||(d=[],mf.set(c.path,d)),d.push(n)}}function vFe(n,a){for(const c of n)switch(c.kind){case 263:case 231:Pgt(c,a),ybe(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:EFe(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&EFe(c,a),ybe(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:ybe(c,a);break;case 195:Mgt(c,a);break;default:C.assertNever(c,"Node should not have been registered for unused identifiers check")}}function yFe(n,a,c){const d=Po(n)||n,_=GR(n)?m._0_is_declared_but_never_used:m._0_is_declared_but_its_value_is_never_read;c(n,0,Or(d,_,a))}function s6(n){return je(n)&&Tr(n).charCodeAt(0)===95}function Pgt(n,a){for(const c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;const d=xr(c);!d.isReferenced&&(yp(c,2)||ld(c)&&Ji(c.name))&&!(c.flags&33554432)&&a(c,0,Or(c.name,m._0_is_declared_but_its_value_is_never_read,Si(d)));break;case 176:for(const _ of c.parameters)!_.symbol.isReferenced&&$r(_,2)&&a(_,0,Or(_.name,m.Property_0_is_declared_but_its_value_is_never_read,El(_.symbol)));break;case 181:case 240:case 175:break;default:C.fail("Unexpected class member")}}function Mgt(n,a){const{typeParameter:c}=n;bbe(c)&&a(n,1,Or(n,m._0_is_declared_but_its_value_is_never_read,Tr(c.name)))}function ybe(n,a){const c=xr(n).declarations;if(!c||es(c)!==n)return;const d=ky(n),_=new Set;for(const y of d){if(!bbe(y))continue;const x=Tr(y.name),{parent:k}=y;if(k.kind!==195&&k.typeParameters.every(bbe)){if(Dv(_,k)){const z=jn(k),J=pm(k)?jU(k):UU(z,k.typeParameters),Se=k.typeParameters.length===1?[m._0_is_declared_but_its_value_is_never_read,x]:[m.All_type_parameters_are_unused];a(y,1,eu(z,J.pos,J.end-J.pos,...Se))}}else a(y,1,Or(y,m._0_is_declared_but_its_value_is_never_read,x))}}function bbe(n){return!(ss(n.symbol).isReferenced&262144)&&!s6(n.name)}function AB(n,a,c,d){const _=String(d(a)),y=n.get(_);y?y[1].push(c):n.set(_,[a,[c]])}function bFe(n){return ti(N_(n),Io)}function Lgt(n){return ns(n)?dm(n.parent)?!!(n.propertyName&&s6(n.name)):s6(n.name):ku(n)||(ki(n)&&rR(n.parent.parent)||SFe(n))&&s6(n.name)}function EFe(n,a){const c=new Map,d=new Map,_=new Map;n.locals.forEach(y=>{if(!(y.flags&262144?!(y.flags&3&&!(y.isReferenced&3)):y.isReferenced||y.exportSymbol)&&y.declarations){for(const x of y.declarations)if(!Lgt(x))if(SFe(x))AB(c,wgt(x),x,cs);else if(ns(x)&&dm(x.parent)){const k=es(x.parent.elements);(x===k||!es(x.parent.elements).dotDotDotToken)&&AB(d,x.parent,x,cs)}else if(ki(x)){const k=aS(x)&7,z=Po(x);(k!==4&&k!==6||!z||!s6(z))&&AB(_,x.parent,x,cs)}else{const k=y.valueDeclaration&&bFe(y.valueDeclaration),z=y.valueDeclaration&&Po(y.valueDeclaration);k&&z?!hp(k,k.parent)&&!XE(k)&&!s6(z)&&(ns(x)&&i1(x.parent)?AB(d,x.parent,x,cs):a(k,1,Or(z,m._0_is_declared_but_its_value_is_never_read,El(y)))):yFe(x,El(y),a)}}}),c.forEach(([y,x])=>{const k=y.parent;if((y.name?1:0)+(y.namedBindings?y.namedBindings.kind===274?1:y.namedBindings.elements.length:0)===x.length)a(k,0,x.length===1?Or(k,m._0_is_declared_but_its_value_is_never_read,Tr(Xa(x).name)):Or(k,m.All_imports_in_import_declaration_are_unused));else for(const J of x)yFe(J,Tr(J.name),a)}),d.forEach(([y,x])=>{const k=bFe(y.parent)?1:0;if(y.elements.length===x.length)x.length===1&&y.parent.kind===260&&y.parent.parent.kind===261?AB(_,y.parent.parent,y.parent,cs):a(y,k,x.length===1?Or(y,m._0_is_declared_but_its_value_is_never_read,IB(Xa(x).name)):Or(y,m.All_destructured_elements_are_unused));else for(const z of x)a(z,k,Or(z,m._0_is_declared_but_its_value_is_never_read,IB(z.name)))}),_.forEach(([y,x])=>{if(y.declarations.length===x.length)a(y,0,x.length===1?Or(Xa(x).name,m._0_is_declared_but_its_value_is_never_read,IB(Xa(x).name)):Or(y.parent.kind===243?y.parent:y,m.All_variables_are_unused));else for(const k of x)a(k,0,Or(k,m._0_is_declared_but_its_value_is_never_read,IB(k.name)))})}function kgt(){var n;for(const a of bg)if(!((n=xr(a))!=null&&n.isReferenced)){const c=Qx(a);C.assert(JE(c),"Only parameter declaration should be checked here");const d=Or(a.name,m._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ns(a.name),Ns(a.propertyName));c.type||Oa(d,eu(jn(c),c.end,1,m.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ns(a.propertyName))),os.add(d)}}function IB(n){switch(n.kind){case 80:return Tr(n);case 207:case 206:return IB(oa(Xa(n.elements),ns).name);default:return C.assertNever(n)}}function SFe(n){return n.kind===273||n.kind===276||n.kind===274}function wgt(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Ete(n){if(n.kind===241&&Av(n),lj(n)){const a=ze;He(n.statements,Ca),ze=a}else He(n.statements,Ca);n.locals&&$b(n)}function Ogt(n){se>=2||!hj(n)||n.flags&33554432||Gl(n.body)||He(n.parameters,a=>{a.name&&!Zo(a.name)&&a.name.escapedText===Ft.escapedName&&l_("noEmit",a,m.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function l6(n,a,c){if((a==null?void 0:a.escapedText)!==c||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(Ah(n)||ru(n)||np(n))&&h0(n))return!1;const d=N_(n);return!(Io(d)&&Gl(d.parent.body))}function Wgt(n){zn(n,a=>VC(a)&4?(n.kind!==80?Xe(Po(n),m.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Xe(n,m.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Fgt(n){zn(n,a=>VC(a)&8?(n.kind!==80?Xe(Po(n),m.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Xe(n,m.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function zgt(n,a){if(G>=5&&!(G>=100&&jn(n).impliedNodeFormat===1)||!a||!l6(n,a,"require")&&!l6(n,a,"exports")||Ql(n)&&$g(n)!==1)return;const c=$(n);c.kind===312&&zp(c)&&l_("noEmit",a,m.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ns(a),Ns(a))}function Bgt(n,a){if(!a||se>=4||!l6(n,a,"Promise")||Ql(n)&&$g(n)!==1)return;const c=$(n);c.kind===312&&zp(c)&&c.flags&4096&&l_("noEmit",a,m.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ns(a),Ns(a))}function Ggt(n,a){se<=8&&(l6(n,a,"WeakMap")||l6(n,a,"WeakSet"))&&_b.push(n)}function Vgt(n){const a=vh(n);VC(a)&1048576&&(C.assert(ld(n)&&je(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),l_("noEmit",n,m.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function jgt(n,a){a&&se>=2&&se<=8&&l6(n,a,"Reflect")&&hb.push(n)}function Ugt(n){let a=!1;if(tu(n)){for(const c of n.members)if(VC(c)&2097152){a=!0;break}}else if(Bs(n))VC(n)&2097152&&(a=!0);else{const c=vh(n);c&&VC(c)&2097152&&(a=!0)}a&&(C.assert(ld(n)&&je(n.name),"The target of a Reflect collision check should be an identifier"),l_("noEmit",n,m.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ns(n.name),"Reflect"))}function dM(n,a){a&&(zgt(n,a),Bgt(n,a),Ggt(n,a),jgt(n,a),ui(n)?(fM(a,m.Class_name_cannot_be_0),n.flags&33554432||vvt(a)):D0(n)&&fM(a,m.Enum_name_cannot_be_0))}function Hgt(n){if((aS(n)&7)!==0||JE(n))return;const a=xr(n);if(a.flags&1){if(!je(n.name))return C.fail();const c=yl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&Pye(c)&7){const d=S0(c.valueDeclaration,261),_=d.parent.kind===243&&d.parent.parent?d.parent.parent:void 0;if(!(_&&(_.kind===241&&Qo(_.parent)||_.kind===268||_.kind===267||_.kind===312))){const x=Si(c);Xe(n,m.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function c6(n){return n===ot?j:n===Kc?ic:n}function xB(n){var a;if(TB(n),ns(n)||Ca(n.type),!n.name)return;if(n.name.kind===167&&(Ng(n.name),ES(n)&&n.initializer&&ac(n.initializer)),ns(n)){if(n.propertyName&&je(n.name)&&JE(n)&&Gl(Gp(n).body)){bg.push(n);return}dm(n.parent)&&n.dotDotDotToken&&se<5&&Pc(n,4),n.propertyName&&n.propertyName.kind===167&&Ng(n.propertyName);const _=n.parent.parent,y=n.dotDotDotToken?32:0,x=zr(_,y),k=n.propertyName||n.name;if(x&&!Zo(k)){const z=vy(k);if(lm(z)){const J=cm(z),ne=ba(x,J);ne&&(sB(ne,void 0,!1),Lye(n,!!_.initializer&&_.initializer.kind===108,!1,x,ne))}}}if(Zo(n.name)&&(n.name.kind===207&&se<2&&V.downlevelIteration&&Pc(n,512),He(n.name.elements,Ca)),n.initializer&&JE(n)&&Gl(Gp(n).body)){Xe(n,m.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Zo(n.name)){if(rye(n))return;const _=ES(n)&&n.initializer&&n.parent.parent.kind!==249,y=!St(n.name.elements,G6(Hc));if(_||y){const x=B(n);if(_){const k=ac(n.initializer);Y&&y?j3e(k,n):qb(k,B(n),n,n.initializer)}y&&(i1(n.name)?Sy(65,x,We,n):Y&&j3e(x,n))}return}const c=xr(n);if(c.flags&2097152&&(jE(n)||Uie(n))){xte(n);return}const d=c6(dr(c));if(n===c.valueDeclaration){const _=ES(n)&&jL(n);if(_&&!(sr(n)&&Wa(_)&&(_.properties.length===0||Hy(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){const x=ac(_);qb(x,d,n,_,void 0);const k=aS(n)&7;if(k===6){const z=Yct(!0),J=f6e(!0);if(z!==ka&&J!==ka){const ne=Zr([z,J,fe,We]);nd(x,ne,_,m.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(k===4){const z=f6e(!0);if(z!==ka){const J=Zr([z,fe,We]);nd(x,J,_,m.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}c.declarations&&c.declarations.length>1&&St(c.declarations,y=>y!==n&&fR(y)&&!AFe(y,n))&&Xe(n.name,m.All_declarations_of_0_must_have_identical_modifiers,Ns(n.name))}else{const _=c6(B(n));!Kt(d)&&!Kt(_)&&!yv(d,_)&&!(c.flags&67108864)&&TFe(c.valueDeclaration,d,n,_),ES(n)&&n.initializer&&qb(ac(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!AFe(n,c.valueDeclaration)&&Xe(n.name,m.All_declarations_of_0_must_have_identical_modifiers,Ns(n.name))}n.kind!==172&&n.kind!==171&&(r6(n),(n.kind===260||n.kind===208)&&Hgt(n),dM(n,n.name))}function TFe(n,a,c,d){const _=Po(c),y=c.kind===172||c.kind===171?m.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:m.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,x=Ns(_),k=Xe(_,y,x,Un(a),Un(d));n&&Oa(k,Or(n,m._0_was_also_declared_here,x))}function AFe(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(FA(n)!==FA(a))return!1;const c=1358;return jA(n,c)===jA(a,c)}function qgt(n){var a,c;(a=ar)==null||a.push(ar.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Rbt(n),xB(n),(c=ar)==null||c.pop()}function Jgt(n){return Abt(n),xB(n)}function Ste(n){const a=Wv(n)&7;(a===4||a===6)&&Pc(n,33554432),He(n.declarations,Ca)}function Kgt(n){!Mg(n)&&!Ube(n.declarationList)&&Dbt(n),Ste(n.declarationList)}function Xgt(n){Av(n),go(n.expression)}function Ygt(n){Av(n);const a=pM(n.expression);Ebe(n.expression,a,n.thenStatement),Ca(n.thenStatement),n.thenStatement.kind===242&&Xe(n.thenStatement,m.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ca(n.elseStatement)}function Ebe(n,a,c){if(!Y)return;d(n,c);function d(y,x){for(y=vs(y),_(y,x);mr(y)&&(y.operatorToken.kind===57||y.operatorToken.kind===61);)y=vs(y.left),_(y,x)}function _(y,x){const k=mk(y)?vs(y.right):y;if(ag(k))return;if(mk(k)){d(k,x);return}const z=k===y?a:pM(k),J=Fr(k)&&KWe(k.expression);if(!ym(z,4194304)||J)return;const ne=Ko(z,0),Se=!!cM(z);if(ne.length===0&&!Se)return;const ve=je(k)?k:Fr(k)?k.name:void 0,Ge=ve&&Jm(ve);if(!Ge&&!Se)return;Ge&&mr(y.parent)&&Qgt(y.parent,Ge)||Ge&&x&&$gt(y,x,ve,Ge)||(Se?Y0(k,!0,m.This_condition_will_always_return_true_since_this_0_is_always_defined,Cb(z)):Xe(k,m.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function $gt(n,a,c,d){return!!Vo(a,function _(y){if(je(y)){const x=Jm(y);if(x&&x===d){if(je(n)||je(c)&&mr(c.parent))return!0;let k=c.parent,z=y.parent;for(;k&&z;){if(je(k)&&je(z)||k.kind===110&&z.kind===110)return Jm(k)===Jm(z);if(Fr(k)&&Fr(z)){if(Jm(k.name)!==Jm(z.name))return!1;z=z.expression,k=k.expression}else if(sa(k)&&sa(z))z=z.expression,k=k.expression;else return!1}}}return Vo(y,_)})}function Qgt(n,a){for(;mr(n)&&n.operatorToken.kind===56;){if(Vo(n.right,function d(_){if(je(_)){const y=Jm(_);if(y&&y===a)return!0}return Vo(_,d)}))return!0;n=n.parent}return!1}function Zgt(n){Av(n),Ca(n.statement),pM(n.expression)}function evt(n){Av(n),pM(n.expression),Ca(n.statement)}function Sbe(n,a){return n.flags&16384&&Xe(a,m.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function pM(n,a){return Sbe(go(n,a),n)}function tvt(n){Av(n)||n.initializer&&n.initializer.kind===261&&Ube(n.initializer),n.initializer&&(n.initializer.kind===261?Ste(n.initializer):go(n.initializer)),n.condition&&pM(n.condition),n.incrementor&&go(n.incrementor),Ca(n.statement),n.locals&&$b(n)}function nvt(n){E7e(n);const a=t3(n);if(n.awaitModifier?a&&Rl(a)?Sn(n.awaitModifier,m.for_await_loops_cannot_be_used_inside_a_class_static_block):(Uc(a)&6)===2&&se<99&&Pc(n,16384):V.downlevelIteration&&se<2&&Pc(n,256),n.initializer.kind===261)Ste(n.initializer);else{const c=n.initializer,d=RB(n);if(c.kind===209||c.kind===210)uA(c,d||_t);else{const _=go(c);t6(c,m.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,m.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),d&&qb(d,_,c,n.expression)}}Ca(n.statement),n.locals&&$b(n)}function rvt(n){E7e(n);const a=kye(go(n.expression));if(n.initializer.kind===261){const c=n.initializer.declarations[0];c&&Zo(c.name)&&Xe(c.name,m.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Ste(n.initializer)}else{const c=n.initializer,d=go(c);c.kind===209||c.kind===210?Xe(c,m.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Sa(Wut(a),d)?t6(c,m.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,m.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Xe(c,m.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Hr||!Ru(a,126091264))&&Xe(n.expression,m.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,Un(a)),Ca(n.statement),n.locals&&$b(n)}function RB(n){const a=n.awaitModifier?15:13;return Sy(a,wC(n.expression),We,n.expression)}function Sy(n,a,c,d){return Ct(a)?a:Tbe(n,a,c,d,!0)||j}function Tbe(n,a,c,d,_){const y=(n&2)!==0;if(a===Hr){Dbe(d,a,y);return}const x=se>=2,k=!x&&V.downlevelIteration,z=V.noUncheckedIndexedAccess&&!!(n&128);if(x||k||y){const vt=Ate(a,n,x?d:void 0);if(_&&vt){const xt=n&8?m.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?m.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?m.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?m.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;xt&&nd(c,vt.nextType,d,xt)}if(vt||x)return z?K8(vt&&vt.yieldType):vt&&vt.yieldType}let J=a,ne=!1,Se=!1;if(n&4){if(J.flags&1048576){const vt=a.types,xt=rr(vt,cn=>!(cn.flags&402653316));xt!==vt&&(J=Zr(xt,2))}else J.flags&402653316&&(J=Hr);if(Se=J!==a,Se&&(se<1&&d&&(Xe(d,m.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),ne=!0),J.flags&131072))return z?K8(ke):ke}if(!by(J)){if(d&&!ne){const vt=!!(n&4)&&!Se,[xt,cn]=Ge(vt,k);Y0(d,cn&&!!cM(J),xt,Un(J))}return Se?z?K8(ke):ke:void 0}const ve=fE(J,Tt);if(Se&&ve)return ve.flags&402653316&&!V.noUncheckedIndexedAccess?ke:Zr(z?[ve,ke,We]:[ve,ke],2);return n&128?K8(ve):ve;function Ge(vt,xt){var cn;return xt?vt?[m.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[m.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Abe(n,0,a,void 0)?[m.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:ivt((cn=a.symbol)==null?void 0:cn.escapedName)?[m.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:vt?[m.Type_0_is_not_an_array_type_or_a_string_type,!0]:[m.Type_0_is_not_an_array_type,!0]}}function ivt(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Abe(n,a,c,d){if(Ct(c))return;const _=Ate(c,n,d);return _&&_[Fxe(a)]}function Ty(n=Hr,a=Hr,c=dn){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){const d=vm([n,a,c]);let _=Ri.get(d);return _||(_={yieldType:n,returnType:a,nextType:c},Ri.set(d,_)),_}return{yieldType:n,returnType:a,nextType:c}}function IFe(n){let a,c,d;for(const _ of n)if(!(_===void 0||_===hr)){if(_===Ho)return Ho;a=Rn(a,_.yieldType),c=Rn(c,_.returnType),d=Rn(d,_.nextType)}return a||c||d?Ty(a&&Zr(a),c&&Zr(c),d&&Ea(d)):hr}function Tte(n,a){return n[a]}function Pg(n,a,c){return n[a]=c}function Ate(n,a,c){var d,_;if(Ct(n))return Ho;if(!(n.flags&1048576)){const J=c?{errors:void 0}:void 0,ne=xFe(n,a,c,J);if(ne===hr){if(c){const Se=Dbe(c,n,!!(a&2));J!=null&&J.errors&&Oa(Se,...J.errors)}return}else if((d=J==null?void 0:J.errors)!=null&&d.length)for(const Se of J.errors)os.add(Se);return ne}const y=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=Tte(n,y);if(x)return x===hr?void 0:x;let k;for(const J of n.types){const ne=c?{errors:void 0}:void 0,Se=xFe(J,a,c,ne);if(Se===hr){if(c){const ve=Dbe(c,n,!!(a&2));ne!=null&&ne.errors&&Oa(ve,...ne.errors)}Pg(n,y,hr);return}else if((_=ne==null?void 0:ne.errors)!=null&&_.length)for(const ve of ne.errors)os.add(ve);k=Rn(k,Se)}const z=k?IFe(k):hr;return Pg(n,y,z),z===hr?void 0:z}function Ibe(n,a){if(n===hr)return hr;if(n===Ho)return Ho;const{yieldType:c,returnType:d,nextType:_}=n;return a&&rve(!0),Ty(dA(c,a)||j,dA(d,a)||j,_)}function xFe(n,a,c,d){if(Ct(n))return Ho;let _=!1;if(a&2){const y=xbe(n,Sl)||DFe(n,Sl);if(y)if(y===hr&&c)_=!0;else return a&8?Ibe(y,c):y}if(a&1){let y=xbe(n,Xl)||DFe(n,Xl);if(y)if(y===hr&&c)_=!0;else if(a&2){if(y!==hr)return y=Ibe(y,c),_?y:Pg(n,"iterationTypesOfAsyncIterable",y)}else return y}if(a&2){const y=Rbe(n,Sl,c,d,_);if(y!==hr)return y}if(a&1){let y=Rbe(n,Xl,c,d,_);if(y!==hr)return a&2?(y=Ibe(y,c),_?y:Pg(n,"iterationTypesOfAsyncIterable",y)):y}return hr}function xbe(n,a){return Tte(n,a.iterableCacheKey)}function RFe(n,a){const c=xbe(n,a)||Rbe(n,a,void 0,void 0,!1);return c===hr?zc:c}function DFe(n,a){let c;if(Wb(n,c=a.getGlobalIterableType(!1))||Wb(n,c=a.getGlobalIterableIteratorType(!1))){const[d]=Js(n),{returnType:_,nextType:y}=RFe(c,a);return Pg(n,a.iterableCacheKey,Ty(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,y))}if(Wb(n,a.getGlobalGeneratorType(!1))){const[d,_,y]=Js(n);return Pg(n,a.iterableCacheKey,Ty(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,y))}}function CFe(n){const a=u6e(!1),c=a&&Ke(dr(a),hl(n));return c&&lm(c)?cm(c):"__@".concat(n)}function Rbe(n,a,c,d,_){var ne;const y=ba(n,CFe(a.iteratorSymbolName)),x=y&&!(y.flags&16777216)?dr(y):void 0;if(Ct(x))return _?Ho:Pg(n,a.iterableCacheKey,Ho);const k=x?Ko(x,0):void 0;if(!St(k))return _?hr:Pg(n,a.iterableCacheKey,hr);const z=Ea(Ot(k,ms)),J=(ne=NFe(z,a,c,d,_))!=null?ne:hr;return _?J:Pg(n,a.iterableCacheKey,J)}function Dbe(n,a,c){const d=c?m.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:m.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,_=!!cM(a)||!c&&Qk(n.parent)&&n.parent.expression===n&&oee(!1)!==Mo&&Sa(a,oee(!1));return Y0(n,_,d,Un(a))}function ovt(n,a,c,d){return NFe(n,a,c,d,!1)}function NFe(n,a,c,d,_){if(Ct(n))return Ho;let y=PFe(n,a)||avt(n,a);return y===hr&&c&&(y=void 0,_=!0),y!=null||(y=LFe(n,a,c,d,_)),y===hr?void 0:y}function PFe(n,a){return Tte(n,a.iteratorCacheKey)}function avt(n,a){const c=a.getGlobalIterableIteratorType(!1);if(Wb(n,c)){const[d]=Js(n),_=PFe(c,a)||LFe(c,a,void 0,void 0,!1),{returnType:y,nextType:x}=_===hr?zc:_;return Pg(n,a.iteratorCacheKey,Ty(d,y,x))}if(Wb(n,a.getGlobalIteratorType(!1))||Wb(n,a.getGlobalGeneratorType(!1))){const[d,_,y]=Js(n);return Pg(n,a.iteratorCacheKey,Ty(d,_,y))}}function MFe(n,a){const c=Ke(n,"done")||nn;return Sa(a===0?nn:nr,c)}function svt(n){return MFe(n,0)}function lvt(n){return MFe(n,1)}function cvt(n){if(Ct(n))return Ho;const a=Tte(n,"iterationTypesOfIteratorResult");if(a)return a;if(Wb(n,Kct(!1))){const x=Js(n)[0];return Pg(n,"iterationTypesOfIteratorResult",Ty(x,void 0,void 0))}if(Wb(n,Xct(!1))){const x=Js(n)[0];return Pg(n,"iterationTypesOfIteratorResult",Ty(void 0,x,void 0))}const c=_c(n,svt),d=c!==Hr?Ke(c,"value"):void 0,_=_c(n,lvt),y=_!==Hr?Ke(_,"value"):void 0;return!d&&!y?Pg(n,"iterationTypesOfIteratorResult",hr):Pg(n,"iterationTypesOfIteratorResult",Ty(d,y||Kn,void 0))}function Cbe(n,a,c,d,_){var mn,Fn;var y,x,k,z;const J=ba(n,c);if(!J&&c!=="next")return;const ne=J&&!(c==="next"&&J.flags&16777216)?c==="next"?dr(J):bm(dr(J),2097152):void 0;if(Ct(ne))return c==="next"?Ho:Nl;const Se=ne?Ko(ne,0):et;if(Se.length===0){if(d){const Pn=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;_?((mn=_.errors)!=null||(_.errors=[]),_.errors.push(Or(d,Pn,c))):Xe(d,Pn,c)}return c==="next"?hr:void 0}if(ne!=null&&ne.symbol&&Se.length===1){const Pn=a.getGlobalGeneratorType(!1),Vn=a.getGlobalIteratorType(!1),Gn=((x=(y=Pn.symbol)==null?void 0:y.members)==null?void 0:x.get(c))===ne.symbol,tr=!Gn&&((z=(k=Vn.symbol)==null?void 0:k.members)==null?void 0:z.get(c))===ne.symbol;if(Gn||tr){const mo=Gn?Pn:Vn,{mapper:_o}=ne;return Ty(Ub(mo.typeParameters[0],_o),Ub(mo.typeParameters[1],_o),c==="next"?Ub(mo.typeParameters[2],_o):void 0)}}let ve,Ge;for(const Pn of Se)c!=="throw"&&St(Pn.parameters)&&(ve=Rn(ve,b_(Pn,0))),Ge=Rn(Ge,ms(Pn));let vt,xt;if(c!=="throw"){const Pn=ve?Zr(ve):dn;if(c==="next")xt=Pn;else if(c==="return"){const Vn=a.resolveIterationType(Pn,d)||j;vt=Rn(vt,Vn)}}let cn;const sn=Ge?Ea(Ge):Hr,er=a.resolveIterationType(sn,d)||j,Wn=cvt(er);return Wn===hr?(d&&(_?((Fn=_.errors)!=null||(_.errors=[]),_.errors.push(Or(d,a.mustHaveAValueDiagnostic,c))):Xe(d,a.mustHaveAValueDiagnostic,c)),cn=j,vt=Rn(vt,j)):(cn=Wn.yieldType,vt=Rn(vt,Wn.returnType)),Ty(cn,Zr(vt),xt)}function LFe(n,a,c,d,_){const y=IFe([Cbe(n,a,"next",c,d),Cbe(n,a,"return",c,d),Cbe(n,a,"throw",c,d)]);return _?y:Pg(n,a.iteratorCacheKey,y)}function rS(n,a,c){if(Ct(a))return;const d=kFe(a,c);return d&&d[Fxe(n)]}function kFe(n,a){if(Ct(n))return Ho;const c=a?2:1,d=a?Sl:Xl;return Ate(n,c,void 0)||ovt(n,d,void 0,void 0)}function uvt(n){Av(n)||Tbt(n)}function DB(n,a){const c=!!(a&1),d=!!(a&2);if(c){const _=rS(1,n,d);return _?d?Ey(uM(_)):_:_t}return d?Ey(n)||_t:n}function wFe(n,a){const c=DB(a,Uc(n));return!!(c&&(Pl(c,16384)||c.flags&32769))}function dvt(n){var y;if(Av(n))return;const a=t3(n);if(a&&Rl(a)){gu(n,m.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){gu(n,m.A_return_statement_can_only_be_used_within_a_function_body);return}const c=gm(a),d=ms(c),_=Uc(a);if(Y||n.expression||d.flags&131072){const x=n.expression?ac(n.expression):We;if(a.kind===178)n.expression&&Xe(n,m.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!qb(x,d,n,n.expression)&&Xe(n,m.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(IC(a)){const k=(y=DB(d,_))!=null?y:d,z=_&2?o6(x,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):x;k&&qb(z,k,n,n.expression)}}else a.kind!==176&&V.noImplicitReturns&&!wFe(a,d)&&Xe(n,m.Not_all_code_paths_return_a_value)}function pvt(n){Av(n)||n.flags&65536&&gu(n,m.with_statements_are_not_allowed_in_an_async_function_block),go(n.expression);const a=jn(n);if(!iS(a)){const c=yh(a,n.pos).start,d=n.statement.pos;oS(a,c,d-c,m.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function fvt(n){Av(n);let a,c=!1;const d=go(n.expression);He(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(Sn(_,m.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(y(_)),He(_.statements,Ca),V.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&Y9(_.fallthroughFlowNode)&&Xe(_,m.Fallthrough_case_in_switch);function y(x){return()=>{const k=go(x.expression);cbe(d,k)||s4e(k,d,x.expression,void 0)}}}),n.caseBlock.locals&&$b(n.caseBlock)}function mvt(n){Av(n)||zn(n.parent,a=>Qo(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(Sn(n.label,m.Duplicate_label_0,gc(n.label)),!0):!1),Ca(n.statement)}function _vt(n){Av(n)||je(n.expression)&&!n.expression.escapedText&&Fbt(n,m.Line_break_not_permitted_here),n.expression&&go(n.expression)}function hvt(n){Av(n),Ete(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const c=a.variableDeclaration;xB(c);const d=bu(c);if(d){const _=Ti(d);_&&!(_.flags&3)&&gu(d,m.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)gu(c.initializer,m.Catch_clause_variable_cannot_have_an_initializer);else{const _=a.block.locals;_&&gh(a.locals,y=>{const x=_.get(y);x!=null&&x.valueDeclaration&&(x.flags&2)!==0&&Sn(x.valueDeclaration,m.Cannot_redeclare_identifier_0_in_catch_clause,ji(y))})}}Ete(a.block)}n.finallyBlock&&Ete(n.finallyBlock)}function Ite(n,a,c){const d=vd(n);if(d.length===0)return;for(const y of zb(n))c&&y.flags&4194304||OFe(n,y,CC(y,8576,!0),Ob(y));const _=a.valueDeclaration;if(_&&ui(_)){for(const y of _.members)if(!aa(y)&&!TC(y)){const x=xr(y);OFe(n,x,Du(y.name.expression),Ob(x))}}if(d.length>1)for(const y of d)gvt(n,y)}function OFe(n,a,c,d){const _=a.valueDeclaration,y=Po(_);if(y&&Ji(y))return;const x=zge(n,c),k=Wr(n)&2?fl(n.symbol,264):void 0,z=_&&_.kind===226||y&&y.kind===167?_:void 0,J=Pd(a)===n.symbol?_:void 0;for(const ne of x){const Se=ne.declaration&&Pd(xr(ne.declaration))===n.symbol?ne.declaration:void 0,ve=J||Se||(k&&!St(dp(n),Ge=>!!pE(Ge,a.escapedName)&&!!fE(Ge,ne.keyType))?k:void 0);if(ve&&!Sa(d,ne.type)){const Ge=bT(ve,m.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Si(a),Un(d),Un(ne.keyType),Un(ne.type));z&&ve!==z&&Oa(Ge,Or(z,m._0_is_declared_here,Si(a))),os.add(Ge)}}}function gvt(n,a){const c=a.declaration,d=zge(n,a.keyType),_=Wr(n)&2?fl(n.symbol,264):void 0,y=c&&Pd(xr(c))===n.symbol?c:void 0;for(const x of d){if(x===a)continue;const k=x.declaration&&Pd(xr(x.declaration))===n.symbol?x.declaration:void 0,z=y||k||(_&&!St(dp(n),J=>!!Cg(J,a.keyType)&&!!fE(J,x.keyType))?_:void 0);z&&!Sa(a.type,x.type)&&Xe(z,m._0_index_type_1_is_not_assignable_to_2_index_type_3,Un(a.keyType),Un(a.type),Un(x.keyType),Un(x.type))}}function fM(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Xe(n,a,n.escapedText)}}function vvt(n){se>=1&&n.escapedText==="Object"&&(G<5||jn(n).impliedNodeFormat===1)&&Xe(n,m.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,eN[G])}function yvt(n){const a=rr(_0(n),o_);if(!Le(a))return;const c=sr(n),d=new Set,_=new Set;if(He(n.parameters,({name:x},k)=>{je(x)&&d.add(x.escapedText),Zo(x)&&_.add(k)}),Gge(n)){const x=a.length-1,k=a[x];c&&k&&je(k.name)&&k.typeExpression&&k.typeExpression.type&&!d.has(k.name.escapedText)&&!_.has(x)&&!Yf(Ti(k.typeExpression.type))&&Xe(k.name,m.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Tr(k.name))}else He(a,({name:x,isNameFirst:k},z)=>{_.has(z)||je(x)&&d.has(x.escapedText)||(Id(x)?c&&Xe(x,m.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,gp(x),gp(x.left)):k||hu(c,x,m.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Tr(x)))})}function CB(n){let a=!1;if(n)for(let d=0;d<n.length;d++){const _=n[d];eFe(_),r(c(_,d))}function c(d,_){return()=>{d.default?(a=!0,bvt(d.default,n,_)):a&&Xe(d,m.Required_type_parameters_may_not_follow_optional_type_parameters);for(let y=0;y<_;y++)n[y].symbol===d.symbol&&Xe(d.name,m.Duplicate_identifier_0,Ns(d.name))}}}function bvt(n,a,c){d(n);function d(_){if(_.kind===183){const y=$ge(_);if(y.flags&262144)for(let x=c;x<a.length;x++)y.symbol===xr(a[x])&&Xe(_,m.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Vo(_,d)}}function WFe(n){if(n.declarations&&n.declarations.length===1)return;const a=Xi(n);if(!a.typeParametersChecked){a.typeParametersChecked=!0;const c=Dvt(n);if(!c||c.length<=1)return;const d=Zs(n);if(!FFe(c,d.localTypeParameters,ky)){const _=Si(n);for(const y of c)Xe(y.name,m.All_declarations_of_0_must_have_identical_type_parameters,_)}}}function FFe(n,a,c){const d=Le(a),_=Uh(a);for(const y of n){const x=c(y),k=x.length;if(k<_||k>d)return!1;for(let z=0;z<k;z++){const J=x[z],ne=a[z];if(J.name.escapedText!==ne.symbol.escapedName)return!1;const Se=eR(J),ve=Se&&Ti(Se),Ge=Ld(ne);if(ve&&Ge&&!yv(ve,Ge))return!1;const vt=J.default&&Ti(J.default),xt=JT(ne);if(vt&&xt&&!yv(vt,xt))return!1}}return!0}function zFe(n){var _;const a=!re&&se<99&&Bv(!1,n),c=se<=9,d=!ye;if(a||c)for(const y of n.members){if(a&&Bj(!1,y,n))return(_=$c(Ly(n)))!=null?_:n;if(c){if(Rl(y))return y;if(aa(y)&&(cd(y)||d&&ww(y)))return y}}}function Evt(n){var _;if(n.name)return;const a=dse(n);if(!oU(a))return;const c=!re&&se<99;let d;c&&Bv(!1,n)?d=(_=$c(Ly(n)))!=null?_:n:d=zFe(n),d&&(Pc(d,8388608),(bc(a)||Uo(a)||ns(a))&&rs(a.name)&&Pc(d,16777216))}function Svt(n){return BFe(n),Ix(n),Evt(n),dr(xr(n))}function Tvt(n){He(n.members,Ca),$b(n)}function Avt(n){const a=Tn(n.modifiers,Su);re&&a&&St(n.members,c=>vc(c)&&cd(c))&&Sn(a,m.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!$r(n,2048)&&gu(n,m.A_class_declaration_without_the_default_modifier_must_have_a_name),BFe(n),He(n.members,Ca),$b(n)}function BFe(n){lbt(n),TB(n),dM(n,n.name),CB(ky(n)),r6(n);const a=xr(n),c=Zs(a),d=Kp(c),_=dr(a);WFe(a),vte(a),zht(n),!!(n.flags&33554432)||Bht(n);const x=D_(n);if(x){He(x.typeArguments,Ca),se<2&&Pc(x.parent,1);const J=qE(n);J&&J!==x&&go(J.expression);const ne=dp(c);ne.length&&r(()=>{const Se=ne[0],ve=Hf(c),Ge=kd(ve);if(xvt(Ge,x),Ca(x.expression),St(x.typeArguments)){He(x.typeArguments,Ca);for(const xt of td(Ge,x.typeArguments,x))if(!sFe(x,xt.typeParameters))break}const vt=Kp(Se,c.thisType);if(nd(d,vt,void 0)?nd(_,t4e(Ge),n.name||n,m.Class_static_side_0_incorrectly_extends_base_class_static_side_1):jFe(n,d,vt,m.Class_0_incorrectly_extends_base_class_1),ve.flags&8650752&&(Mi(_)?Ko(ve,1).some(cn=>cn.flags&4)&&!$r(n,64)&&Xe(n.name||n,m.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Xe(n.name||n,m.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Ge.symbol&&Ge.symbol.flags&32)&&!(ve.flags&8650752)){const xt=Vh(Ge,x.typeArguments,x);He(xt,cn=>!ih(cn.declaration)&&!yv(ms(cn),Se))&&Xe(x.expression,m.Base_constructors_must_all_have_the_same_return_type)}Cvt(c,Se)})}Ivt(n,c,d,_);const k=IR(n);if(k)for(const J of k)(!jl(J.expression)||qu(J.expression))&&Xe(J.expression,m.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),hbe(J),r(z(J));r(()=>{Ite(c,a),Ite(_,a,!0),fbe(n),Mvt(n)});function z(J){return()=>{const ne=g_(Ti(J));if(!Kt(ne))if(_9(ne)){const Se=ne.symbol&&ne.symbol.flags&32?m.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:m.Class_0_incorrectly_implements_interface_1,ve=Kp(ne,c.thisType);nd(d,ve,void 0)||jFe(n,d,ve,Se)}else Xe(J,m.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Ivt(n,a,c,d){const y=D_(n)&&dp(a),x=y!=null&&y.length?Kp(Xa(y),a.thisType):void 0,k=Hf(a);for(const z of n.members)yU(z)||(Ll(z)&&He(z.parameters,J=>{hp(J,z)&&GFe(n,d,k,x,a,c,J,!0)}),GFe(n,d,k,x,a,c,z,!1))}function GFe(n,a,c,d,_,y,x,k,z=!0){const J=x.name&&Jm(x.name)||Jm(x);return J?VFe(n,a,c,d,_,y,P3(x),$E(x),aa(x),k,El(J),z?x:void 0):0}function VFe(n,a,c,d,_,y,x,k,z,J,ne,Se){const ve=sr(n),Ge=!!(n.flags&33554432);if(d&&(x||V.noImplicitOverride)){const vt=hl(ne),xt=z?a:y,cn=z?c:d,sn=ba(xt,vt),er=ba(cn,vt),Wn=Un(d);if(sn&&!er&&x){if(Se){const mn=$3e(ne,cn);mn?Xe(Se,ve?m.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:m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Wn,Si(mn)):Xe(Se,ve?m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Wn)}return 2}else if(sn&&(er!=null&&er.declarations)&&V.noImplicitOverride&&!Ge){const mn=St(er.declarations,$E);if(x)return 0;if(mn){if(k&&mn)return Se&&Xe(Se,m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Wn),1}else{if(Se){const Fn=J?ve?m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ve?m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Xe(Se,Fn,Wn)}return 1}}}else if(x){if(Se){const vt=Un(_);Xe(Se,ve?m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,vt)}return 2}return 0}function jFe(n,a,c,d){let _=!1;for(const y of n.members){if(aa(y))continue;const x=y.name&&Jm(y.name)||Jm(y);if(x){const k=ba(a,x.escapedName),z=ba(c,x.escapedName);if(k&&z){const J=()=>Bo(void 0,m.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Si(x),Un(a),Un(c));nd(dr(k),dr(z),y.name||y,void 0,J)||(_=!0)}}}_||nd(a,c,n.name||n,d)}function xvt(n,a){const c=Ko(n,1);if(c.length){const d=c[0].declaration;if(d&&yp(d,2)){const _=Hg(n.symbol);wbe(a,_)||Xe(a,m.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,qp(n.symbol))}}}function Rvt(n,a,c){if(!a.name)return 0;const d=xr(n),_=Zs(d),y=Kp(_),x=dr(d),z=D_(n)&&dp(_),J=z!=null&&z.length?Kp(Xa(z),_.thisType):void 0,ne=Hf(_),Se=a.parent?P3(a):$r(a,16);return VFe(n,x,ne,J,_,y,Se,$E(a),aa(a),!1,El(c))}function GC(n){return xl(n)&1?n.links.target:n}function Dvt(n){return rr(n.declarations,a=>a.kind===263||a.kind===264)}function Cvt(n,a){var z,J,ne,Se;var c,d,_,y;const x=bs(a);let k;e:for(const ve of x){const Ge=GC(ve);if(Ge.flags&4194304)continue;const vt=pE(n,Ge.escapedName);if(!vt)continue;const xt=GC(vt),cn=Df(Ge);if(C.assert(!!xt,"derived should point to something, even if it is the base class' declaration."),xt===Ge){const sn=Hg(n.symbol);if(cn&64&&(!sn||!$r(sn,64))){for(const er of dp(n)){if(er===a)continue;const Wn=pE(er,Ge.escapedName),mn=Wn&&GC(Wn);if(mn&&mn!==Ge)continue e}k||(k=Xe(sn,m.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Un(n),Un(a))),sn.kind===231?Oa(k,Or((J=(z=ve.valueDeclaration)!=null?z:ve.declarations&&Xa(ve.declarations))!=null?J:sn,m.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Si(ve),Un(a))):Oa(k,Or((Se=(ne=ve.valueDeclaration)!=null?ne:ve.declarations&&Xa(ve.declarations))!=null?Se:sn,m.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Un(n),Si(ve),Un(a)))}}else{const sn=Df(xt);if(cn&2||sn&2)continue;let er;const Wn=Ge.flags&98308,mn=xt.flags&98308;if(Wn&&mn){if((xl(Ge)&6?(c=Ge.declarations)!=null&&c.some(Vn=>UFe(Vn,cn)):(d=Ge.declarations)!=null&&d.every(Vn=>UFe(Vn,cn)))||xl(Ge)&262144||xt.valueDeclaration&&mr(xt.valueDeclaration))continue;const Fn=Wn!==4&&mn===4;if(Fn||Wn===4&&mn!==4){const Vn=Fn?m._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:m._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Xe(Po(xt.valueDeclaration)||xt.valueDeclaration,Vn,Si(Ge),Un(a),Un(n))}else if(_e){const Vn=(_=xt.declarations)==null?void 0:_.find(Gn=>Gn.kind===172&&!Gn.initializer);if(Vn&&!(xt.flags&33554432)&&!(cn&64)&&!(sn&64)&&!((y=xt.declarations)!=null&&y.some(Gn=>!!(Gn.flags&33554432)))){const Gn=uv(Hg(n.symbol)),tr=Vn.name;if(Vn.exclamationToken||!Gn||!je(tr)||!Y||!qFe(tr,n,Gn)){const mo=m.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;Xe(Po(xt.valueDeclaration)||xt.valueDeclaration,mo,Si(Ge),Un(a))}}}continue}else if(Mye(Ge)){if(Mye(xt)||xt.flags&4)continue;C.assert(!!(xt.flags&98304)),er=m.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Ge.flags&98304?er=m.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:er=m.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Xe(Po(xt.valueDeclaration)||xt.valueDeclaration,er,Un(a),Si(Ge),Un(n))}}}function UFe(n,a){return a&64&&(!Uo(n)||!n.initializer)||hd(n.parent)}function Nvt(n,a,c){if(!Le(a))return c;const d=new Map;He(c,_=>{d.set(_.escapedName,_)});for(const _ of a){const y=bs(Kp(_,n.thisType));for(const x of y){const k=d.get(x.escapedName);k&&x.parent===k.parent&&d.delete(x.escapedName)}}return Wo(d.values())}function Pvt(n,a){const c=dp(n);if(c.length<2)return!0;const d=new Map;He(Sge(n).declaredProperties,y=>{d.set(y.escapedName,{prop:y,containingType:n})});let _=!0;for(const y of c){const x=bs(Kp(y,n.thisType));for(const k of x){const z=d.get(k.escapedName);if(!z)d.set(k.escapedName,{prop:k,containingType:y});else if(z.containingType!==n&&!jdt(z.prop,k)){_=!1;const ne=Un(z.containingType),Se=Un(y);let ve=Bo(void 0,m.Named_property_0_of_types_1_and_2_are_not_identical,Si(k),ne,Se);ve=Bo(ve,m.Interface_0_cannot_simultaneously_extend_types_1_and_2,Un(n),ne,Se),os.add(Gg(jn(a),a,ve))}}}return _}function Mvt(n){if(!Y||!Ae||n.flags&33554432)return;const a=uv(n);for(const c of n.members)if(!(pd(c)&128)&&!aa(c)&&HFe(c)){const d=c.name;if(je(d)||Ji(d)||rs(d)){const _=dr(xr(c));_.flags&3||K2(_)||(!a||!qFe(d,_,a))&&Xe(c.name,m.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ns(d))}}}function HFe(n){return n.kind===172&&!$E(n)&&!n.exclamationToken&&!n.initializer}function Lvt(n,a,c,d,_){for(const y of c)if(y.pos>=d&&y.pos<=_){const x=w.createPropertyAccessExpression(w.createThis(),n);Ya(x.expression,x),Ya(x,y),x.flowNode=y.returnFlowNode;const k=Yb(x,a,Kb(a));if(!K2(k))return!0}return!1}function qFe(n,a,c){const d=rs(n)?w.createElementAccessExpression(w.createThis(),n.expression):w.createPropertyAccessExpression(w.createThis(),n);Ya(d.expression,d),Ya(d,c),d.flowNode=c.returnFlowNode;const _=Yb(d,a,Kb(a));return!K2(_)}function kvt(n){Mg(n)||_bt(n),CB(n.typeParameters),r(()=>{fM(n.name,m.Interface_name_cannot_be_0),r6(n);const a=xr(n);WFe(a);const c=fl(a,264);if(n===c){const d=Zs(a),_=Kp(d);if(Pvt(d,n.name)){for(const y of dp(d))nd(_,Kp(y,d.thisType),n.name,m.Interface_0_incorrectly_extends_interface_1);Ite(d,a)}}rFe(n)}),He(PN(n),a=>{(!jl(a.expression)||qu(a.expression))&&Xe(a.expression,m.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),hbe(a)}),He(n.members,Ca),r(()=>{fbe(n),$b(n)})}function wvt(n){Mg(n),fM(n.name,m.Type_alias_name_cannot_be_0),r6(n),CB(n.typeParameters),n.type.kind===141?(!QF.has(n.name.escapedText)||Le(n.typeParameters)!==1)&&Xe(n.type,m.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Ca(n.type),$b(n))}function JFe(n){const a=Qr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(const d of n.members){const _=Ovt(d,c);Qr(d).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function Ovt(n,a){if(PL(n.name))Xe(n.name,m.Computed_property_names_are_not_allowed_in_enums);else{const c=cR(n.name);pg(c)&&!iP(c)&&Xe(n.name,m.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return Wvt(n);if(!(n.parent.flags&33554432&&!BE(n.parent))){if(a!==void 0)return a;Xe(n.name,m.Enum_member_must_have_initializer)}}function Wvt(n){const a=BE(n.parent),c=n.initializer,d=mM(c,n);return d!==void 0?a&&typeof d=="number"&&!isFinite(d)&&Xe(c,isNaN(d)?m.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:m.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Xe(c,m.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?Xe(c,m.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):nd(go(c),Tt,c,m.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),d}function mM(n,a){switch(n.kind){case 224:const c=mM(n.operand,a);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:const d=mM(n.left,a),_=mM(n.right,a);if(typeof d=="number"&&typeof _=="number")switch(n.operatorToken.kind){case 52:return d|_;case 51:return d&_;case 49:return d>>_;case 50:return d>>>_;case 48:return d<<_;case 53:return d^_;case 42:return d*_;case 44:return d/_;case 40:return d+_;case 41:return d-_;case 45:return d%_;case 43:return d**_}else if((typeof d=="string"||typeof d=="number")&&(typeof _=="string"||typeof _=="number")&&n.operatorToken.kind===40)return""+d+_;break;case 11:case 15:return n.text;case 228:return XFe(n,a);case 9:return Hbe(n),+n.text;case 217:return mM(n.expression,a);case 80:{const x=n;if(iP(x.escapedText)&&qs(x,111551,!0)===q2(x.escapedText,111551,void 0))return+x.escapedText}case 211:if(jl(n)){const x=qs(n,111551,!0);if(x){if(x.flags&8)return a?KFe(n,x,a):jC(x.valueDeclaration);if(rM(x)){const k=x.valueDeclaration;if(k&&ki(k)&&!k.type&&k.initializer&&(!a||k!==a&&av(k,a)))return mM(k.initializer,k)}}}break;case 212:const y=n.expression;if(jl(y)&&ds(n.argumentExpression)){const x=qs(y,111551,!0);if(x&&x.flags&384){const k=hl(n.argumentExpression.text),z=x.exports.get(k);if(z)return a?KFe(n,z,a):jC(z.valueDeclaration)}}break}}function KFe(n,a,c){const d=a.valueDeclaration;if(!d||d===c){Xe(n,m.Property_0_is_used_before_being_assigned,Si(a));return}return av(d,c)?jC(d):(Xe(n,m.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function XFe(n,a){let c=n.head.text;for(const d of n.templateSpans){const _=mM(d.expression,a);if(_===void 0)return;c+=_,c+=d.literal.text}return c}function Fvt(n){r(()=>zvt(n))}function zvt(n){Mg(n),dM(n,n.name),r6(n),n.members.forEach(Bvt),JFe(n);const a=xr(n),c=fl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){const _=BE(n);He(a.declarations,y=>{D0(y)&&BE(y)!==_&&Xe(Po(y),m.Enum_declarations_must_all_be_const_or_non_const)})}let d=!1;He(a.declarations,_=>{if(_.kind!==266)return!1;const y=_;if(!y.members.length)return!1;const x=y.members[0];x.initializer||(d?Xe(x.name,m.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):d=!0)})}}function Bvt(n){Ji(n.name)&&Xe(n,m.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&go(n.initializer)}function Gvt(n){const a=n.declarations;if(a){for(const c of a)if((c.kind===263||c.kind===262&&tm(c.body))&&!(c.flags&33554432))return c}}function Vvt(n,a){const c=vh(n),d=vh(a);return wh(c)?wh(d):wh(d)?!1:c===d}function jvt(n){n.body&&(Ca(n.body),R_(n)||$b(n)),r(a);function a(){var c,d;const _=R_(n),y=n.flags&33554432;_&&!y&&Xe(n.name,m.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const x=ku(n),k=x?m.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:m.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(NB(n,k))return;Mg(n)||!y&&n.name.kind===11&&Sn(n.name,m.Only_ambient_modules_can_use_quoted_names),je(n.name)&&dM(n,n.name),r6(n);const z=xr(n);if(z.flags&512&&!y&&Yq(n,n1(V))){if(um(V)&&!jn(n).externalModuleIndicator&&Xe(n.name,m.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,Qe),((c=z.declarations)==null?void 0:c.length)>1){const J=Gvt(z);J&&(jn(n)!==jn(J)?Xe(n.name,m.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<J.pos&&Xe(n.name,m.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const ne=fl(z,263);ne&&Vvt(n,ne)&&(Qr(n).flags|=2048)}if(V.verbatimModuleSyntax&&n.parent.kind===312&&(G===1||n.parent.impliedNodeFormat===1)){const J=(d=n.modifiers)==null?void 0:d.find(ne=>ne.kind===95);J&&Xe(J,m.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(zE(n)){if((_||xr(n).flags&33554432)&&n.body)for(const ne of n.body.statements)Nbe(ne,_)}else wh(n.parent)?_?Xe(n.name,m.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Qc(om(n.name))&&Xe(n.name,m.Ambient_module_declaration_cannot_specify_relative_module_name):_?Xe(n.name,m.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Xe(n.name,m.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Nbe(n,a){switch(n.kind){case 243:for(const d of n.declarationList.declarations)Nbe(d,a);break;case 277:case 278:gu(n,m.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:gu(n,m.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const c=n.name;if(Zo(c)){for(const d of c.elements)Nbe(d,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function Uvt(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(ag(n.expression)&&!Ji(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function Pbe(n){const a=bR(n);if(!a||Gl(a))return!1;if(!Ma(a))return Xe(a,m.String_literal_expected),!1;const c=n.parent.kind===268&&ku(n.parent.parent);if(n.parent.kind!==312&&!c)return Xe(a,n.kind===278?m.Export_declarations_are_not_permitted_in_a_namespace:m.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&Qc(a.text)&&!Pb(n))return Xe(n,m.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!ru(n)&&n.attributes){const d=n.attributes.token===118?m.Import_attribute_values_must_be_string_literal_expressions:m.Import_assertion_values_must_be_string_literal_expressions;let _=!1;for(const y of n.attributes.elements)Ma(y.value)||(_=!0,Xe(y.value,d));return!_}return!0}function xte(n){var k;var a,c,d,_;let y=xr(n);const x=Bc(y);if(x!==pt){if(y=ss(y.exportSymbol||y),sr(n)&&!(x.flags&111551)&&!h0(n)){const ne=NA(n)?n.propertyName||n.name:ld(n)?n.name:n;if(C.assert(n.kind!==280),n.kind===281){const Se=Xe(ne,m.Types_cannot_appear_in_export_declarations_in_JavaScript_files),ve=(c=(a=jn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(ve===x){const Ge=(d=ve.declarations)==null?void 0:d.find(iR);Ge&&Oa(Se,Or(Ge,m._0_is_automatically_exported_here,ji(ve.escapedName)))}}else{C.assert(n.kind!==260);const Se=zn(n,Qm(Oc,ru)),ve=(k=Se&&((_=yR(Se))==null?void 0:_.text))!=null?k:"...",Ge=ji(je(ne)?ne.escapedText:y.escapedName);Xe(ne,m._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Ge,'import("'.concat(ve,'").').concat(Ge))}return}const z=Iu(x),J=(y.flags&1160127?111551:0)|(y.flags&788968?788968:0)|(y.flags&1920?1920:0);if(z&J){const ne=n.kind===281?m.Export_declaration_conflicts_with_exported_declaration_of_0:m.Import_declaration_conflicts_with_local_declaration_of_0;Xe(n,ne,Si(y))}else n.kind!==281&&V.isolatedModules&&!zn(n,h0)&&y.flags&1160127&&Xe(n,m.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Si(y),Qe);if(um(V)&&!h0(n)&&!(n.flags&33554432)){const ne=Gf(y),Se=!(z&111551);if(Se||ne)switch(n.kind){case 273:case 276:case 271:{if(V.preserveValueImports||V.verbatimModuleSyntax){C.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const ve=V.verbatimModuleSyntax&&gR(n)?m.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Se?V.verbatimModuleSyntax?m._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:m._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:V.verbatimModuleSyntax?m._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:m._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,Ge=Tr(n.kind===276&&n.propertyName||n.name);Eg(Xe(n,ve,Ge),Se?void 0:ne,Ge)}Se&&n.kind===271&&yp(n,32)&&Xe(n,m.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Qe);break}case 281:if(V.verbatimModuleSyntax||jn(ne)!==jn(n)){const ve=Tr(n.propertyName||n.name),Ge=Se?Xe(n,m.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Qe):Xe(n,m._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,ve,Qe);Eg(Ge,Se?void 0:ne,ve);break}}V.verbatimModuleSyntax&&n.kind!==271&&!sr(n)&&(G===1||jn(n).impliedNodeFormat===1)&&Xe(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(np(n)){const ne=Mbe(y,n);vb(ne)&&ne.declarations&&uy(n,ne.declarations,ne.escapedName)}}}function Mbe(n,a){if(!(n.flags&2097152)||vb(n)||!zm(n))return n;const c=Bc(n);if(c===pt)return c;for(;n.flags&2097152;){const d=xye(n);if(d){if(d===c)break;if(d.declarations&&Le(d.declarations))if(vb(d)){uy(a,d.declarations,d.escapedName);break}else{if(n===c)break;n=d}}else break}return c}function Rte(n){dM(n,n.name),xte(n),n.kind===276&&Tr(n.propertyName||n.name)==="default"&&Eh(V)&&G!==4&&(G<5||jn(n).impliedNodeFormat===1)&&Pc(n,131072)}function YFe(n){var a;const c=n.attributes;if(c){const d=eve(!0);d!==ka&&nd(ce(c),j9(d,32768),c);const _=zJ(n),y=gD(c,_?Sn:void 0),x=n.attributes.token===118;if(_&&y)return;if((G===199&&n.moduleSpecifier&&ro(n.moduleSpecifier))!==99&&G!==99&&G!==200){const z=x?G===199?m.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:m.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:G===199?m.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:m.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return Sn(c,z)}if(Oc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return Sn(c,x?m.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:m.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(y)return Sn(c,m.resolution_mode_can_only_be_set_for_type_only_imports)}}function Hvt(n){return bd(ac(n.value))}function qvt(n){if(!NB(n,sr(n)?m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Mg(n)&&N3(n)&&gu(n,m.An_import_declaration_cannot_have_modifiers),Pbe(n)){const a=n.importClause;a&&!Bbt(a)&&(a.name&&Rte(a),a.namedBindings&&(a.namedBindings.kind===274?(Rte(a.namedBindings),G!==4&&(G<5||jn(n).impliedNodeFormat===1)&&Eh(V)&&Pc(n,65536)):gd(n,n.moduleSpecifier)&&He(a.namedBindings.elements,Rte)))}YFe(n)}}function Jvt(n){if(!NB(n,sr(n)?m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Mg(n),gR(n)||Pbe(n)))if(Rte(n),$r(n,32)&&Ab(n),n.moduleReference.kind!==283){const a=Bc(xr(n));if(a!==pt){const c=Iu(a);if(c&111551){const d=Vp(n.moduleReference);qs(d,112575).flags&1920||Xe(d,m.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ns(d))}c&788968&&fM(n.name,m.Import_name_cannot_be_0)}n.isTypeOnly&&Sn(n,m.An_import_alias_cannot_use_import_type)}else G>=5&&G!==200&&jn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&Sn(n,m.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function Kvt(n){if(!NB(n,sr(n)?m.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:m.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Mg(n)&&hoe(n)&&gu(n,m.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&Pf(n.exportClause)&&Le(n.exportClause.elements)&&se===0&&Pc(n,4194304),Xvt(n),!n.moduleSpecifier||Pbe(n))if(n.exportClause&&!Ih(n.exportClause)){He(n.exportClause.elements,tyt);const a=n.parent.kind===268&&ku(n.parent.parent),c=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!c&&Xe(n,m.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=gd(n,n.moduleSpecifier);a&&fy(a)?Xe(n.moduleSpecifier,m.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Si(a)):n.exportClause&&xte(n.exportClause),G!==4&&(G<5||jn(n).impliedNodeFormat===1)&&(n.exportClause?Eh(V)&&Pc(n,65536):Pc(n,32768))}YFe(n)}}function Xvt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?D7e(n.exportClause):!1}function NB(n,a){const c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||gu(n,a),!c}function Yvt(n){return h3(n,a=>!!xr(a).isReferenced)}function $vt(n){return h3(n,a=>!!Xi(xr(a)).constEnumReferenced)}function Qvt(n){return Oc(n)&&n.importClause&&!n.importClause.isTypeOnly&&Yvt(n.importClause)&&!Lte(n.importClause,!0)&&!$vt(n.importClause)}function Zvt(n){return ru(n)&&xh(n.moduleReference)&&!n.isTypeOnly&&xr(n).isReferenced&&!Lte(n,!1)&&!Xi(xr(n)).constEnumReferenced}function eyt(n){if(It)for(const a of n.statements)(Qvt(a)||Zvt(a))&&Xe(a,m.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function tyt(n){if(xte(n),Cf(V)&&O2(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)Eh(V)&&G!==4&&(G<5||jn(n).impliedNodeFormat===1)&&Tr(n.propertyName||n.name)==="default"&&Pc(n,131072);else{const a=n.propertyName||n.name,c=yl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===Ue||c===it||c.declarations&&wh($(c.declarations[0]))))Xe(a,m.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Tr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&Ab(n);const d=c&&(c.flags&2097152?Bc(c):c);(!d||Iu(d)&111551)&&ac(n.propertyName||n.name)}}}function nyt(n){const a=n.isExportEquals?m.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:m.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(NB(n,a))return;const c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!ku(c)){n.isExportEquals?Xe(n,m.An_export_assignment_cannot_be_used_in_a_namespace):Xe(n,m.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Mg(n)&&N3(n)&&gu(n,m.An_export_assignment_cannot_have_modifiers);const d=bu(n);d&&nd(ac(n.expression),Ti(d),n.expression);const _=!n.isExportEquals&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&(G===1||jn(n).impliedNodeFormat===1);if(n.expression.kind===80){const y=n.expression,x=vf(qs(y,-1,!0,!0,n));if(x){const k=Gf(x,111551);if(Hee(x,y),Iu(x)&111551?(ac(y),!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&k&&Xe(y,n.isExportEquals?m.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:m.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Tr(y))):!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&Xe(y,n.isExportEquals?m.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:m.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Tr(y)),!_&&!(n.flags&33554432)&&um(V)&&!(x.flags&111551)){const z=Iu(x,!1,!0);x.flags&2097152&&z&788968&&!(z&111551)&&(!k||jn(k)!==jn(n))?Xe(y,n.isExportEquals?m._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:m._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,Tr(y),Qe):k&&jn(k)!==jn(n)&&Eg(Xe(y,n.isExportEquals?m._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:m._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,Tr(y),Qe),k,Tr(y))}}else ac(y);Cf(V)&&O2(y,!0)}else ac(n.expression);_&&Xe(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),$Fe(c),n.flags&33554432&&!jl(n.expression)&&Sn(n.expression,m.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(G>=5&&G!==200&&(n.flags&33554432&&jn(n).impliedNodeFormat===99||!(n.flags&33554432)&&jn(n).impliedNodeFormat!==1)?Sn(n,m.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):G===4&&!(n.flags&33554432)&&Sn(n,m.Export_assignment_is_not_supported_when_module_flag_is_system))}function ryt(n){return jc(n.exports,(a,c)=>c!=="export=")}function $Fe(n){const a=xr(n),c=Xi(a);if(!c.exportsChecked){const d=a.exports.get("export=");if(d&&ryt(a)){const y=zm(d)||d.valueDeclaration;y&&!Pb(y)&&!sr(y)&&Xe(y,m.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const _=Wh(a);_&&_.forEach(({declarations:y,flags:x},k)=>{if(k==="__export"||x&1920)return;const z=lu(y,B6(zxe,G6(hd)));if(!(x&524288&&z<=2)&&z>1&&!Dte(y))for(const J of y)Oxe(J)&&os.add(Or(J,m.Cannot_redeclare_exported_variable_0,ji(k)))}),c.exportsChecked=!0}}function Dte(n){return n&&n.length>1&&n.every(a=>sr(a)&&zs(a)&&(RS(a.expression)||ag(a.expression)))}function Ca(n){if(n){const a=N;N=n,I=0,iyt(n),N=a}}function iyt(n){ek(n)&&He(n.jsDoc,({comment:c,tags:d})=>{QFe(c),He(d,_=>{QFe(_.comment),sr(n)&&Ca(_)})});const a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&ZL(n)&&n.flowNode&&!Y9(n.flowNode)&&hu(V.allowUnreachableCode===!1,n,m.Unreachable_code_detected),a){case 168:return eFe(n);case 169:return tFe(n);case 172:return iFe(n);case 171:return Ght(n);case 185:case 184:case 179:case 180:case 181:return n6(n);case 174:case 173:return Vht(n);case 175:return jht(n);case 176:return Uht(n);case 177:case 178:return aFe(n);case 183:return hbe(n);case 182:return Wht(n);case 186:return Yht(n);case 187:return $ht(n);case 188:return Qht(n);case 189:return Zht(n);case 192:case 193:return egt(n);case 196:case 190:case 191:return Ca(n.type);case 197:return igt(n);case 198:return ogt(n);case 194:return agt(n);case 195:return sgt(n);case 203:return lgt(n);case 205:return cgt(n);case 202:return ugt(n);case 335:return Cgt(n);case 336:return Dgt(n);case 353:case 345:case 347:return ygt(n);case 352:return bgt(n);case 351:return Egt(n);case 331:case 332:case 333:return Tgt(n);case 348:return Agt(n);case 355:return Igt(n);case 324:xgt(n);case 322:case 321:case 319:case 320:case 329:ZFe(n),Vo(n,Ca);return;case 325:oyt(n);return;case 316:return Ca(n.type);case 340:case 342:case 341:return Ngt(n);case 357:return Sgt(n);case 350:return Rgt(n);case 199:return tgt(n);case 200:return ngt(n);case 262:return vgt(n);case 241:case 268:return Ete(n);case 243:return Kgt(n);case 244:return Xgt(n);case 245:return Ygt(n);case 246:return Zgt(n);case 247:return evt(n);case 248:return tvt(n);case 249:return rvt(n);case 250:return nvt(n);case 251:case 252:return uvt(n);case 253:return dvt(n);case 254:return pvt(n);case 255:return fvt(n);case 256:return mvt(n);case 257:return _vt(n);case 258:return hvt(n);case 260:return qgt(n);case 208:return Jgt(n);case 263:return Avt(n);case 264:return kvt(n);case 265:return wvt(n);case 266:return Fvt(n);case 267:return jvt(n);case 272:return qvt(n);case 271:return Jvt(n);case 278:return Kvt(n);case 277:return nyt(n);case 242:case 259:Av(n);return;case 282:return qht(n)}}function QFe(n){Ao(n)&&He(n,a=>{kA(a)&&Ca(a)})}function ZFe(n){if(!sr(n))if(sF(n)||QR(n)){const a=pa(sF(n)?54:58),c=n.postfix?m._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:m._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,d=n.type,_=Ti(d);Sn(n,c,a,Un(QR(n)&&!(_===Hr||_===Kn)?Zr(Rn([_,We],n.postfix?void 0:fe)):_))}else Sn(n,m.JSDoc_types_can_only_be_used_inside_documentation_comments)}function oyt(n){ZFe(n),Ca(n.type);const{parent:a}=n;if(Io(a)&&ZR(a.parent)){es(a.parent.parameters)!==a&&Xe(n,m.A_rest_parameter_must_be_last_in_a_parameter_list);return}f1(a)||Xe(n,m.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=n.parent.parent;if(!o_(c)){Xe(n,m.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const d=tk(c);if(!d)return;const _=b0(c);(!_||es(_.parameters).symbol!==d)&&Xe(n,m.A_rest_parameter_must_be_last_in_a_parameter_list)}function ayt(n){const a=Ti(n.type),{parent:c}=n,d=n.parent.parent;if(f1(n.parent)&&o_(d)){const _=b0(d),y=BH(d.parent.parent);if(_||y){const x=el(y?d.parent.parent.typeExpression.parameters:_.parameters),k=tk(d);if(!x||k&&x.symbol===k&&ng(x))return Vu(a)}}return Io(c)&&ZR(c.parent)?Vu(a):up(a)}function Ix(n){const a=jn(n),c=Qr(a);c.flags&1?C.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function syt(n){const a=Qr(n);a.deferredNodes&&a.deferredNodes.forEach(lyt),a.deferredNodes=void 0}function lyt(n){var a,c;(a=ar)==null||a.push(ar.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const d=N;switch(N=n,I=0,n.kind){case 213:case 214:case 215:case 170:case 286:lA(n);break;case 218:case 219:case 174:case 173:nht(n);break;case 177:case 178:aFe(n);break;case 231:Tvt(n);break;case 168:Oht(n);break;case 285:dmt(n);break;case 284:fmt(n);break;case 216:case 234:case 217:C_t(n);break;case 222:go(n.expression);break;case 226:L3(n)&&lA(n);break}N=d,(c=ar)==null||c.pop()}function cyt(n){var a,c;(a=ar)==null||a.push(ar.Phase.Check,"checkSourceFile",{path:n.path},!0),rl("beforeCheck"),uyt(n),rl("afterCheck"),ef("Check","beforeCheck","afterCheck"),(c=ar)==null||c.pop()}function e7e(n,a){if(a)return!1;switch(n){case 0:return!!V.noUnusedLocals;case 1:return!!V.noUnusedParameters;default:return C.assertNever(n)}}function t7e(n){return mf.get(n.path)||et}function uyt(n){const a=Qr(n);if(!(a.flags&1)){if(ZN(n,V,e))return;Obt(n),zo(C1),zo(N1),zo(_b),zo(hb),zo(bg),He(n.statements,Ca),Ca(n.endOfFileToken),syt(n),zp(n)&&$b(n),r(()=>{!n.isDeclarationFile&&(V.noUnusedLocals||V.noUnusedParameters)&&vFe(t7e(n),(c,d,_)=>{!sR(c)&&e7e(d,!!(c.flags&33554432))&&os.add(_)}),n.isDeclarationFile||kgt()}),V.importsNotUsedAsValues===2&&!n.isDeclarationFile&&dc(n)&&eyt(n),zp(n)&&$Fe(n),C1.length&&(He(C1,Wgt),zo(C1)),N1.length&&(He(N1,Fgt),zo(N1)),_b.length&&(He(_b,Vgt),zo(_b)),hb.length&&(He(hb,Ugt),zo(hb)),a.flags|=1}}function n7e(n,a){try{return i=a,dyt(n)}finally{i=void 0}}function Lbe(){for(const n of t)n();t=[]}function kbe(n){Lbe();const a=r;r=c=>c(),cyt(n),r=a}function dyt(n){if(n){Lbe();const a=os.getGlobalDiagnostics(),c=a.length;kbe(n);const d=os.getDiagnostics(n.fileName),_=os.getGlobalDiagnostics();if(_!==a){const y=Cne(a,_,KN);return To(y,d)}else if(c===0&&_.length>0)return To(_,d);return d}return He(e.getSourceFiles(),kbe),os.getDiagnostics()}function pyt(){return Lbe(),os.getGlobalDiagnostics()}function fyt(n,a){if(n.flags&67108864)return[];const c=ua();let d=!1;return _(),c.delete("this"),Bge(c);function _(){for(;n;){switch(_h(n)&&n.locals&&!wh(n)&&x(n.locals,a),n.kind){case 312:if(!dc(n))break;case 267:k(xr(n).exports,a&2623475);break;case 266:x(xr(n).exports,a&8);break;case 231:n.name&&y(n.symbol,a);case 263:case 264:d||x(Fb(xr(n)),a&788968);break;case 218:n.name&&y(n.symbol,a);break}wie(n)&&y(Ft,a),d=aa(n),n=n.parent}x(be,a)}function y(z,J){if(kR(z)&J){const ne=z.escapedName;c.has(ne)||c.set(ne,z)}}function x(z,J){J&&z.forEach(ne=>{y(ne,J)})}function k(z,J){J&&z.forEach(ne=>{!fl(ne,281)&&!fl(ne,280)&&ne.escapedName!=="default"&&y(ne,J)})}}function myt(n){return n.kind===80&&GR(n.parent)&&Po(n.parent)===n}function r7e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function _yt(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function i7e(n,a){let c,d=cu(n);for(;d&&!(c=a(d));)d=cu(d);return c}function hyt(n){return!!zn(n,a=>Ll(a)&&tm(a.body)||Uo(a)?!0:ui(a)||js(a)?"quit":!1)}function wbe(n,a){return!!i7e(n,c=>c===a)}function gyt(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function Cte(n){return gyt(n)!==void 0}function vyt(n){switch(Vl(n.parent.parent)){case 1:case 3:return gf(n.parent);case 5:if(Fr(n.parent)&&wR(n.parent)===n)return;case 4:case 2:return xr(n.parent.parent)}}function yyt(n){let a=n.parent;for(;Id(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function byt(n){if(n.expression.kind===110){const a=Fd(n,!1,!1);if(Qo(a)){const c=_3e(a);if(c){const d=TE(c,void 0),_=g3e(c,d);return _&&!Ct(_)}}}}function o7e(n){if(jg(n))return gf(n.parent);if(sr(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Ji(n)&&!C0(n)&&!byt(n.parent)){const a=vyt(n);if(a)return a}if(n.parent.kind===277&&jl(n)){const a=qs(n,2998271,!0);if(a&&a!==pt)return a}else if(Zd(n)&&Cte(n)){const a=S0(n,271);return C.assert(a!==void 0),sx(n,!0)}if(Zd(n)){const a=yyt(n);if(a){Ti(a);const c=Qr(n).resolvedSymbol;return c===pt?void 0:c}}for(;Soe(n);)n=n.parent;if(_yt(n)){let a=0;n.parent.kind===233?(a=ig(n)?788968:111551,M3(n.parent)&&(a|=111551)):a=1920,a|=2097152;const c=jl(n)?qs(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return tk(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){C.assert(!sr(n));const a=Kie(n.parent);return a&&a.symbol}if(og(n)){if(Gl(n))return;const a=zn(n,Qm(kA,IP,C0)),c=a?901119:111551;if(n.kind===80){if(hR(n)&&Ax(n)){const _=Qee(n.parent);return _===pt?void 0:_}const d=qs(n,c,!0,!0,b0(n));if(!d&&a){const _=zn(n,Qm(ui,hd));if(_)return PB(n,!0,xr(_))}if(d&&a){const _=NS(n);if(_&&p1(_)&&_===d.valueDeclaration)return qs(n,c,!0,!0,jn(_))||d}return d}else{if(Ji(n))return tte(n);if(n.kind===211||n.kind===166){const d=Qr(n);return d.resolvedSymbol?d.resolvedSymbol:(n.kind===211?(Zee(n,0),d.resolvedSymbol||(d.resolvedSymbol=a7e(ac(n.expression),vy(n.name)))):U3e(n,0),!d.resolvedSymbol&&a&&Id(n)?PB(n):d.resolvedSymbol)}else if(C0(n))return PB(n)}}else if(r7e(n)){const a=n.parent.kind===183?788968:1920,c=qs(n,a,!1,!0);return c&&c!==pt?c:tee(n)}if(n.parent.kind===182)return qs(n,1)}function a7e(n,a){const c=zge(n,a);if(c.length&&n.members){const d=QZ(h_(n).members);if(c===vd(n))return d;if(d){const _=Xi(d),y=Hi(c,k=>k.declaration),x=Ot(y,cs).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(x))return _.filteredIndexSymbolCache.get(x);{const k=Za(131072,"__index");return k.declarations=Hi(c,z=>z.declaration),k.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:Jm(k.declarations[0].parent),_.filteredIndexSymbolCache.set(x,k),k}}}}function PB(n,a,c){if(Zd(n)){let x=qs(n,901119,a,!0,b0(n));if(!x&&je(n)&&c&&(x=ss(Jd(Mp(c),n.escapedText,901119))),x)return x}const d=je(n)?c:PB(n.left,a,c),_=je(n)?n.escapedText:n.right.escapedText;if(d){const y=d.flags&111551&&ba(dr(d),"prototype"),x=y?dr(y):Zs(d);return ba(x,_)}}function Jm(n,a){var _;if(Zi(n))return dc(n)?ss(n.symbol):void 0;const{parent:c}=n,d=c.parent;if(!(n.flags&67108864)){if(Wxe(n)){const y=xr(c);return NA(n.parent)&&n.parent.propertyName===n?xye(y):y}else if(ik(n))return xr(c.parent);if(n.kind===80){if(Cte(n))return o7e(n);if(c.kind===208&&d.kind===206&&n===c.propertyName){const y=xx(d),x=ba(y,n.escapedText);if(x)return x}else if(vP(c)&&c.name===n)return c.keywordToken===105&&Tr(n)==="target"?Zye(c).symbol:c.keywordToken===102&&Tr(n)==="meta"?l6e().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!VA(n))return o7e(n);case 110:const y=Fd(n,!1,!1);if(Qo(y)){const z=gm(y);if(z.thisParameter)return z.thisParameter}if(s3(n))return go(n).symbol;case 197:return dee(n).symbol;case 108:return go(n).symbol;case 137:const x=n.parent;return x&&x.kind===176?x.parent.symbol:void 0;case 11:case 15:if(v0(n.parent.parent)&&xN(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||sr(n)&&Td(n.parent,!1)||Bp(n.parent)||Zy(n.parent)&&Vy(n.parent.parent)&&n.parent.parent.argument===n.parent)return gd(n,n,a);if(sa(c)&&DS(c)&&c.arguments[1]===n)return xr(c);case 9:const k=$s(c)?c.argumentExpression===n?Du(c.expression):void 0:Zy(c)&&jS(d)?Ti(d.objectType):void 0;return k&&ba(k,hl(n.text));case 90:case 100:case 39:case 86:return gf(n.parent);case 205:return Vy(n)?Jm(n.argument.literal,a):void 0;case 95:return wl(n.parent)?C.checkDefined(n.parent.symbol):void 0;case 102:case 105:return vP(n.parent)?RWe(n.parent).symbol:void 0;case 104:if(mr(n.parent)){const z=Du(n.parent.right),J=lbe(z);return(_=J==null?void 0:J.symbol)!=null?_:z.symbol}return;case 236:return go(n).symbol;case 295:if(hR(n)&&Ax(n)){const z=Qee(n.parent);return z===pt?void 0:z}default:return}}}function Eyt(n){if(je(n)&&Fr(n.parent)&&n.parent.name===n){const a=vy(n),c=Du(n.parent.expression),d=c.flags&1048576?c.types:[c];return Pi(d,_=>rr(vd(_),y=>gx(a,y.keyType)))}}function Syt(n){if(n&&n.kind===304)return qs(n.name,2208703)}function Tyt(n){return Ku(n)?n.parent.parent.moduleSpecifier?lv(n.parent.parent,n):qs(n.propertyName||n.name,2998271):qs(n,2998271)}function xx(n){if(Zi(n)&&!dc(n)||n.flags&67108864)return _t;const a=TU(n),c=a&&qf(xr(a.class));if(ig(n)){const d=Ti(n);return c?Kp(d,c.thisType):d}if(og(n))return s7e(n);if(c&&!a.isImplements){const d=$c(dp(c));return d?Kp(d,c.thisType):_t}if(GR(n)){const d=xr(n);return Zs(d)}if(myt(n)){const d=Jm(n);return d?Zs(d):_t}if(ns(n))return VT(n,!0,0)||_t;if(Ju(n)){const d=xr(n);return d?dr(d):_t}if(Wxe(n)){const d=Jm(n);return d?dr(d):_t}if(Zo(n))return VT(n.parent,!0,0)||_t;if(Cte(n)){const d=Jm(n);if(d){const _=Zs(d);return Kt(_)?dr(d):_}}return vP(n.parent)&&n.parent.keywordToken===n.kind?RWe(n.parent):mI(n)?eve(!1):_t}function Nte(n){if(C.assert(n.kind===210||n.kind===209),n.parent.kind===250){const _=RB(n.parent);return uA(n,_||_t)}if(n.parent.kind===226){const _=Du(n.parent.right);return uA(n,_||_t)}if(n.parent.kind===303){const _=oa(n.parent.parent,Wa),y=Nte(_)||_t,x=lR(_.properties,n.parent);return UWe(_,y,x)}const a=oa(n.parent,_d),c=Nte(a)||_t,d=Sy(65,c,We,n.parent)||_t;return HWe(a,c,a.elements.indexOf(n),d)}function Ayt(n){const a=Nte(oa(n.parent.parent,gN));return a&&ba(a,n.escapedText)}function s7e(n){return VN(n)&&(n=n.parent),bd(Du(n))}function l7e(n){const a=gf(n.parent);return aa(n)?dr(a):Zs(a)}function c7e(n){const a=n.name;switch(a.kind){case 80:return Xd(Tr(a));case 9:case 11:return Xd(a.text);case 167:const c=Ng(a);return Ru(c,12288)?c:ke;default:return C.fail("Unsupported property name.")}}function Obe(n){n=kd(n);const a=ua(bs(n)),c=Ko(n,0).length?qn:Ko(n,1).length?Eo:void 0;return c&&He(bs(c),d=>{a.has(d.escapedName)||a.set(d.escapedName,d)}),iE(a)}function Pte(n){return Ko(n,0).length!==0||Ko(n,1).length!==0}function u7e(n){const a=Iyt(n);return a?Pi(a,u7e):[n]}function Iyt(n){if(xl(n)&6)return Hi(Xi(n).containingType.types,a=>ba(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:c,syntheticOrigin:d}}=n;return a?[a,c]:d?[d]:AA(xyt(n))}}function xyt(n){let a,c=n;for(;c=Xi(c).target;)a=c;return a}function Ryt(n){if(al(n))return!1;const a=Do(n,je);if(!a)return!1;const c=a.parent;return c?!((Fr(c)||bc(c))&&c.name===a)&&d6(a)===Ft:!1}function Dyt(n){let a=gd(n.parent,n);if(!a||EN(a))return!0;const c=fy(a);a=Pp(a);const d=Xi(a);return d.exportsSomeValue===void 0&&(d.exportsSomeValue=c?!!(a.flags&111551):jc(Wh(a),_)),d.exportsSomeValue;function _(y){return y=Hl(y),y&&!!(Iu(y)&111551)}}function Cyt(n){return SL(n.parent)&&n===n.parent.name}function Nyt(n,a){var c;const d=Do(n,je);if(d){let _=d6(d,Cyt(d));if(_){if(_.flags&1048576){const x=ss(_.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;_=x}const y=Pd(_);if(y){if(y.flags&512&&((c=y.valueDeclaration)==null?void 0:c.kind)===312){const x=y.valueDeclaration,k=jn(d);return x!==k?void 0:x}return zn(d.parent,x=>SL(x)&&xr(x)===y)}}}}function Pyt(n){const a=Mae(n);if(a)return a;const c=Do(n,je);if(c){const d=Uyt(c);if(PT(d,111551)&&!Gf(d,111551))return zm(d)}}function Myt(n){return n.valueDeclaration&&ns(n.valueDeclaration)&&Qx(n.valueDeclaration).parent.kind===299}function d7e(n){if(n.flags&418&&n.valueDeclaration&&!Zi(n.valueDeclaration)){const a=Xi(n);if(a.isDeclarationWithCollidingName===void 0){const c=vh(n.valueDeclaration);if(mie(c)||Myt(n)){const d=Qr(n.valueDeclaration);if(yl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(d.flags&16384){const _=d.flags&32768,y=Wy(c,!1),x=c.kind===241&&Wy(c.parent,!1);a.isDeclarationWithCollidingName=!Eie(c)&&(!_||!y&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function Lyt(n){if(!al(n)){const a=Do(n,je);if(a){const c=d6(a);if(c&&d7e(c))return c.valueDeclaration}}}function kyt(n){const a=Do(n,Ju);if(a){const c=xr(a);if(c)return d7e(c)}return!1}function p7e(n){switch(C.assert(It),n.kind){case 271:return Mte(xr(n));case 273:case 274:case 276:case 281:const a=xr(n);return!!a&&Mte(a,!0);case 278:const c=n.exportClause;return!!c&&(Ih(c)||St(c.elements,p7e));case 277:return n.expression&&n.expression.kind===80?Mte(xr(n),!0):!0}return!1}function wyt(n){const a=Do(n,ru);return a===void 0||a.parent.kind!==312||!gR(a)?!1:Mte(xr(a))&&a.moduleReference&&!Gl(a.moduleReference)}function Mte(n,a){if(!n)return!1;const c=vf(Bc(n));return c===pt?!a||!Gf(n):!!(Iu(n,a,!0)&111551)&&(n1(V)||!u6(c))}function u6(n){return sbe(n)||!!n.constEnumOnlyModule}function Lte(n,a){if(C.assert(It),Eb(n)){const c=xr(n),d=c&&Xi(c);if(d!=null&&d.referenced)return!0;const _=Xi(c).aliasTarget;if(_&&pd(n)&32&&Iu(_)&111551&&(n1(V)||!u6(_)))return!0}return a?!!Vo(n,c=>Lte(c,a)):!1}function f7e(n){if(tm(n.body)){if(Fy(n)||zv(n))return!1;const a=xr(n),c=H1(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function m7e(n){return!!Y&&!C8(n)&&!o_(n)&&!!n.initializer&&!$r(n,31)}function Oyt(n){return Y&&C8(n)&&!n.initializer&&$r(n,31)}function Wyt(n){const a=Do(n,xc);if(!a)return!1;const c=xr(a);return!c||!(c.flags&16)?!1:!!jc(Mp(c),d=>d.flags&111551&&lW(d.valueDeclaration))}function Fyt(n){const a=Do(n,xc);if(!a)return et;const c=xr(a);return c&&bs(dr(c))||et}function VC(n){var a;const c=n.id||0;return c<0||c>=D1.length?0:((a=D1[c])==null?void 0:a.flags)||0}function jC(n){return JFe(n.parent),Qr(n).enumMemberValue}function _7e(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function Wbe(n){if(n.kind===306)return jC(n);const a=Qr(n).resolvedSymbol;if(a&&a.flags&8){const c=a.valueDeclaration;if(BE(c.parent))return jC(c)}}function Fbe(n){return!!(n.flags&524288)&&Ko(n,0).length>0}function zyt(n,a){var c;const d=Do(n,Zd);if(!d||a&&(a=Do(a),!a))return 0;let _=!1;if(Id(d)){const ne=qs(Vp(d),111551,!0,!0,a);_=!!((c=ne==null?void 0:ne.declarations)!=null&&c.every(h0))}const y=qs(d,111551,!0,!0,a),x=y&&y.flags&2097152?Bc(y):y;_||(_=!!(y&&Gf(y,111551)));const k=qs(d,788968,!0,!0,a),z=k&&k.flags&2097152?Bc(k):k;if(y||_||(_=!!(k&&Gf(k,788968))),x&&x===z){const ne=tve(!1);if(ne&&x===ne)return 9;const Se=dr(x);if(Se&&Va(Se))return _?10:1}if(!z)return _?11:0;const J=Zs(z);return Kt(J)?_?11:0:J.flags&3?11:Ru(J,245760)?2:Ru(J,528)?6:Ru(J,296)?3:Ru(J,2112)?4:Ru(J,402653316)?5:ja(J)?7:Ru(J,12288)?8:Fbe(J)?10:Yf(J)?7:11}function Byt(n,a,c,d,_){const y=Do(n,Mie);if(!y)return w.createToken(133);const x=xr(y);let k=x&&!(x.flags&133120)?Q1(dr(x)):_t;return k.flags&8192&&k.symbol===x&&(c|=1048576),_&&(k=Kb(k)),At.typeToTypeNode(k,a,c|1024,d)}function Gyt(n,a,c,d){const _=Do(n,Qo);if(!_)return w.createToken(133);const y=gm(_);return At.typeToTypeNode(ms(y),a,c|1024,d)}function Vyt(n,a,c,d){const _=Do(n,bt);if(!_)return w.createToken(133);const y=Xp(s7e(_));return At.typeToTypeNode(y,a,c|1024,d)}function jyt(n){return be.has(hl(n))}function d6(n,a){const c=Qr(n).resolvedSymbol;if(c)return c;let d=n;if(a){const _=n.parent;Ju(_)&&n===_.name&&(d=$(_))}return yl(d,n.escapedText,3257279,void 0,void 0,!0)}function Uyt(n){const a=Qr(n).resolvedSymbol;return a&&a!==pt?a:yl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Hyt(n){if(!al(n)){const a=Do(n,je);if(a){const c=d6(a);if(c)return vf(c).valueDeclaration}}}function qyt(n){if(!al(n)){const a=Do(n,je);if(a){const c=d6(a);if(c)return rr(vf(c).declarations,d=>{switch(d.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function Jyt(n){return K4(n)||ki(n)&&LB(n)?X1(dr(xr(n))):!1}function Kyt(n,a,c){const d=n.flags&1056?At.symbolToExpression(n.symbol,111551,a,void 0,c):n===nr?w.createTrue():n===nn&&w.createFalse();if(d)return d;const _=n.value;return typeof _=="object"?w.createBigIntLiteral(_):typeof _=="string"?w.createStringLiteral(_):_<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-_)):w.createNumericLiteral(_)}function Xyt(n,a){const c=dr(xr(n));return Kyt(c,n,a)}function h7e(n){return n?(X0(n),jn(n).localJsxFactory||iv):iv}function zbe(n){if(n){const a=jn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const c=a.pragmas.get("jsxfrag"),d=Ao(c)?c[0]:c;if(d)return a.localJsxFragmentFactory=bI(d.arguments.factory,se),a.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return bI(V.jsxFragmentFactory,se)}function Yyt(){const n=e.getResolvedTypeReferenceDirectives();let a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:z},J,ne)=>{if(!(z!=null&&z.resolvedFileName))return;const Se=e.getSourceFile(z.resolvedFileName);Se&&k(Se,J,ne)})),{getReferencedExportContainer:Nyt,getReferencedImportDeclaration:Pyt,getReferencedDeclarationWithCollidingName:Lyt,isDeclarationWithCollidingName:kyt,isValueAliasDeclaration:z=>{const J=Do(z);return J&&It?p7e(J):!0},hasGlobalName:jyt,isReferencedAliasDeclaration:(z,J)=>{const ne=Do(z);return ne&&It?Lte(ne,J):!0},getNodeCheckFlags:z=>{const J=Do(z);return J?VC(J):0},isTopLevelValueImportEqualsWithEntityName:wyt,isDeclarationVisible:f_,isImplementationOfOverload:f7e,isRequiredInitializedParameter:m7e,isOptionalUninitializedParameterProperty:Oyt,isExpandoFunctionDeclaration:Wyt,getPropertiesOfContainerFunction:Fyt,createTypeOfDeclaration:Byt,createReturnTypeOfSignatureDeclaration:Gyt,createTypeOfExpression:Vyt,createLiteralConstValue:Xyt,isSymbolAccessible:Ni,isEntityNameVisible:Db,getConstantValue:z=>{const J=Do(z,_7e);return J?Wbe(J):void 0},collectLinkedAliases:O2,getReferencedValueDeclaration:Hyt,getReferencedValueDeclarations:qyt,getTypeReferenceSerializationKind:zyt,isOptionalParameter:C8,moduleExportsSomeValue:Dyt,isArgumentsLocalBinding:Ryt,getExternalModuleFileFromDeclaration:z=>{const J=Do(z,Tie);return J&&Bbe(J)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:y,isLiteralConstDeclaration:Jyt,isLateBound:z=>{const J=Do(z,Ju),ne=J&&xr(J);return!!(ne&&xl(ne)&4096)},getJsxFactoryEntity:h7e,getJsxFragmentFactoryEntity:zbe,getAllAccessorDeclarations(z){z=Do(z,T4);const J=z.kind===178?177:178,ne=fl(xr(z),J),Se=ne&&ne.pos<z.pos?ne:z,ve=ne&&ne.pos<z.pos?z:ne,Ge=z.kind===178?z:ne,vt=z.kind===177?z:ne;return{firstAccessor:Se,secondAccessor:ve,setAccessor:Ge,getAccessor:vt}},getSymbolOfExternalModuleSpecifier:z=>cv(z,z,void 0),isBindingCapturedByNode:(z,J)=>{const ne=Do(z),Se=Do(J);return!!ne&&!!Se&&(ki(Se)||ns(Se))&&bft(ne,Se)},getDeclarationStatementsForSourceFile:(z,J,ne,Se)=>{const ve=Do(z);C.assert(ve&&ve.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Ge=xr(z);return Ge?Ge.exports?At.symbolTableToDeclarationStatements(Ge.exports,z,J,ne,Se):[]:z.locals?At.symbolTableToDeclarationStatements(z.locals,z,J,ne,Se):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:z=>{const J=Do(z),ne=J&&ds(J)?J.text:void 0;return ne!==void 0?XZ(ne,!0):void 0}};function c(z){const J=jn(z);if(!J.symbol)return!1;const ne=Bbe(z);if(!ne||ne===J)return!1;const Se=Wh(J.symbol);for(const ve of Wo(Se.values()))if(ve.mergeId){const Ge=ss(ve);if(Ge.declarations){for(const vt of Ge.declarations)if(jn(vt)===ne)return!0}}return!1}function d(z){return z.parent&&z.parent.kind===233&&z.parent.parent&&z.parent.parent.kind===298}function _(z){if(!a)return;let J;z.parent.kind===167?J=1160127:(J=790504,(z.kind===80&&kS(z)||z.kind===211&&!d(z))&&(J=1160127));const ne=qs(z,J,!0);return ne&&ne!==pt?y(ne,J):void 0}function y(z,J){if(!a||!x(z))return;let ne;for(const Se of z.declarations)if(Se.symbol&&Se.symbol.flags&J){const ve=jn(Se),Ge=a.get(ve.path);if(Ge)(ne||(ne=[])).push(Ge);else return}return ne}function x(z){if(!z.declarations)return!1;let J=z;for(;;){const ne=Pd(J);if(ne)J=ne;else break}if(J.valueDeclaration&&J.valueDeclaration.kind===312&&J.flags&512)return!1;for(const ne of z.declarations){const Se=jn(ne);if(a.has(Se.path))return!0}return!1}function k(z,J,ne){if(!a.has(z.path)){a.set(z.path,[J,ne]);for(const{fileName:Se}of z.referencedFiles){const ve=b7(Se,z.fileName),Ge=e.getSourceFile(ve);Ge&&k(Ge,J,ne||z.impliedNodeFormat)}}}}function Bbe(n){const a=n.kind===267?ti(n.name,Ma):bR(n),c=cv(a,a,void 0);if(c)return fl(c,312)}function $yt(){for(const a of e.getSourceFiles())dle(a,V);Is=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!zp(a)){const c=a.locals.get("globalThis");if(c!=null&&c.declarations)for(const d of c.declarations)os.add(Or(d,m.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));d_(be,a.locals)}a.jsGlobalAugmentations&&d_(be,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(Jc=To(Jc,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((d,_)=>{be.has(_)||be.set(_,d)})}if(n)for(const a of n)for(const c of a)R_(c.parent)&&oC(c);if(P1(be,yT,m.Declaration_name_conflicts_with_built_in_global_identifier_0),Xi(Ue).type=Lt,Xi(Ft).type=oc("IArguments",0,!0),Xi(pt).type=_t,Xi(it).type=Vf(16,it),Xo=oc("Array",1,!0),Pe=oc("Object",0,!0),Wt=oc("Function",0,!0),qn=he&&oc("CallableFunction",0,!0)||Wt,Eo=he&&oc("NewableFunction",0,!0)||Wt,rc=oc("String",0,!0),Sc=oc("Number",0,!0),ul=oc("Boolean",0,!0),vl=oc("RegExp",0,!0),ic=Vu(j),Kc=Vu(ot),Kc===ka&&(Kc=Fs(void 0,K,et,et,et)),ea=m6e("ReadonlyArray",1)||Xo,ff=ea?M8(ea,[j]):ic,Ul=m6e("ThisType",1),n)for(const a of n)for(const c of a)R_(c.parent)||oC(c);Is.forEach(({firstFile:a,secondFile:c,conflictingSymbols:d})=>{if(d.size<8)d.forEach(({isBlockScoped:_,firstFileLocations:y,secondFileLocations:x},k)=>{const z=_?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0;for(const J of y)ov(J,z,k,x);for(const J of x)ov(J,z,k,y)});else{const _=Wo(d.keys()).join(", ");os.add(Oa(Or(a,m.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Or(c,m.Conflicts_are_in_this_file))),os.add(Oa(Or(c,m.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Or(a,m.Conflicts_are_in_this_file)))}}),Is=void 0}function Pc(n,a){if((s&a)!==a&&V.importHelpers){const c=jn(n);if(wA(c,V)&&!(n.flags&33554432)){const d=Zyt(c,n);if(d!==pt){const _=a&~s;for(let y=1;y<=33554432;y<<=1)if(_&y)for(const x of Qyt(y)){if(o.has(x))continue;o.add(x);const k=Hl(Jd(Wh(d),hl(x),111551));k?y&524288?St(H1(k),z=>Yp(z)>3)||Xe(n,m.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,Ky,x,4):y&1048576?St(H1(k),z=>Yp(z)>4)||Xe(n,m.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,Ky,x,5):y&1024&&(St(H1(k),z=>Yp(z)>2)||Xe(n,m.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,Ky,x,3)):Xe(n,m.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Ky,x)}}s|=a}}}function Qyt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return re?["__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["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return C.fail("Unrecognized helper")}}function Zyt(n,a){return l||(l=K_(n,Ky,m.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||pt),l}function Mg(n){var a;const c=nbt(n)||ebt(n);if(c!==void 0)return c;if(Io(n)&&XE(n))return gu(n,m.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const d=kl(n)?n.declarationList.flags&7:0;let _,y,x,k,z,J=0,ne=!1,Se=!1;for(const ve of n.modifiers)if(Su(ve)){if(a3(re,n,n.parent,n.parent.parent)){if(re&&(n.kind===177||n.kind===178)){const Ge=wS(n.parent.members,n);if(If(Ge.firstAccessor)&&n===Ge.secondAccessor)return gu(n,m.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!tm(n.body)?gu(n,m.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):gu(n,m.Decorators_are_not_valid_here);if(J&-34849)return Sn(ve,m.Decorators_are_not_valid_here);if(Se&&J&98303){C.assertIsDefined(z);const Ge=jn(ve);return iS(Ge)?!1:(Oa(Xe(ve,m.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Or(z,m.Decorator_used_before_export_here)),!0)}J|=32768,J&98303?J&32&&(ne=!0):Se=!0,z!=null||(z=ve)}else{if(ve.kind!==148){if(n.kind===171||n.kind===173)return Sn(ve,m._0_modifier_cannot_appear_on_a_type_member,pa(ve.kind));if(n.kind===181&&(ve.kind!==126||!ui(n.parent)))return Sn(ve,m._0_modifier_cannot_appear_on_an_index_signature,pa(ve.kind))}if(ve.kind!==103&&ve.kind!==147&&ve.kind!==87&&n.kind===168)return Sn(ve,m._0_modifier_cannot_appear_on_a_type_parameter,pa(ve.kind));switch(ve.kind){case 87:{if(n.kind!==266&&n.kind!==168)return Sn(n,m.A_class_member_cannot_have_the_0_keyword,pa(87));const xt=pm(n.parent)&&E0(n.parent)||n.parent;if(n.kind===168&&!(js(xt)||ui(xt)||Th(xt)||qR(xt)||sI(xt)||Jk(xt)||Sh(xt)))return Sn(ve,m._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,pa(ve.kind));break}case 164:if(J&16)return Sn(ve,m._0_modifier_already_seen,"override");if(J&128)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(J&8)return Sn(ve,m._0_modifier_must_precede_1_modifier,"override","readonly");if(J&512)return Sn(ve,m._0_modifier_must_precede_1_modifier,"override","accessor");if(J&1024)return Sn(ve,m._0_modifier_must_precede_1_modifier,"override","async");J|=16,k=ve;break;case 125:case 124:case 123:const Ge=GT(UA(ve.kind));if(J&7)return Sn(ve,m.Accessibility_modifier_already_seen);if(J&16)return Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"override");if(J&256)return Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"static");if(J&512)return Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"accessor");if(J&8)return Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"readonly");if(J&1024)return Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"async");if(n.parent.kind===268||n.parent.kind===312)return Sn(ve,m._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ge);if(J&64)return ve.kind===123?Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,Ge,"abstract"):Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"abstract");if(cd(n))return Sn(ve,m.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);J|=UA(ve.kind);break;case 126:if(J&256)return Sn(ve,m._0_modifier_already_seen,"static");if(J&8)return Sn(ve,m._0_modifier_must_precede_1_modifier,"static","readonly");if(J&1024)return Sn(ve,m._0_modifier_must_precede_1_modifier,"static","async");if(J&512)return Sn(ve,m._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return Sn(ve,m._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return Sn(ve,m._0_modifier_cannot_appear_on_a_parameter,"static");if(J&64)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(J&16)return Sn(ve,m._0_modifier_must_precede_1_modifier,"static","override");J|=256,_=ve;break;case 129:if(J&512)return Sn(ve,m._0_modifier_already_seen,"accessor");if(J&8)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(J&128)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return Sn(ve,m.accessor_modifier_can_only_appear_on_a_property_declaration);J|=512;break;case 148:if(J&8)return Sn(ve,m._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return Sn(ve,m.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(J&512)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");J|=8;break;case 95:if(V.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(G===1||jn(n).impliedNodeFormat===1))return Sn(ve,m.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(J&32)return Sn(ve,m._0_modifier_already_seen,"export");if(J&128)return Sn(ve,m._0_modifier_must_precede_1_modifier,"export","declare");if(J&64)return Sn(ve,m._0_modifier_must_precede_1_modifier,"export","abstract");if(J&1024)return Sn(ve,m._0_modifier_must_precede_1_modifier,"export","async");if(ui(n.parent))return Sn(ve,m._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return Sn(ve,m._0_modifier_cannot_appear_on_a_parameter,"export");if(d===4)return Sn(ve,m._0_modifier_cannot_appear_on_a_using_declaration,"export");if(d===6)return Sn(ve,m._0_modifier_cannot_appear_on_an_await_using_declaration,"export");J|=32;break;case 90:const vt=n.parent.kind===312?n.parent:n.parent.parent;if(vt.kind===267&&!ku(vt))return Sn(ve,m.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(d===4)return Sn(ve,m._0_modifier_cannot_appear_on_a_using_declaration,"default");if(d===6)return Sn(ve,m._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(J&32){if(ne)return Sn(z,m.Decorators_are_not_valid_here)}else return Sn(ve,m._0_modifier_must_precede_1_modifier,"export","default");J|=2048;break;case 138:if(J&128)return Sn(ve,m._0_modifier_already_seen,"declare");if(J&1024)return Sn(ve,m._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(J&16)return Sn(ve,m._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ui(n.parent)&&!Uo(n))return Sn(ve,m._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return Sn(ve,m._0_modifier_cannot_appear_on_a_parameter,"declare");if(d===4)return Sn(ve,m._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(d===6)return Sn(ve,m._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return Sn(ve,m.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(cd(n))return Sn(ve,m._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(J&512)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");J|=128,y=ve;break;case 128:if(J&64)return Sn(ve,m._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return Sn(ve,m.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&$r(n.parent,64))){const xt=n.kind===172?m.Abstract_properties_can_only_appear_within_an_abstract_class:m.Abstract_methods_can_only_appear_within_an_abstract_class;return Sn(ve,xt)}if(J&256)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(J&2)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(J&1024&&x)return Sn(x,m._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(J&16)return Sn(ve,m._0_modifier_must_precede_1_modifier,"abstract","override");if(J&512)return Sn(ve,m._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(ld(n)&&n.name.kind===81)return Sn(ve,m._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");J|=64;break;case 134:if(J&1024)return Sn(ve,m._0_modifier_already_seen,"async");if(J&128||n.parent.flags&33554432)return Sn(ve,m._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return Sn(ve,m._0_modifier_cannot_appear_on_a_parameter,"async");if(J&64)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");J|=1024,x=ve;break;case 103:case 147:{const xt=ve.kind===103?8192:16384,cn=ve.kind===103?"in":"out",sn=pm(n.parent)&&(E0(n.parent)||Tn((a=TR(n.parent))==null?void 0:a.tags,YS))||n.parent;if(n.kind!==168||sn&&!(hd(sn)||ui(sn)||Lm(sn)||YS(sn)))return Sn(ve,m._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,cn);if(J&xt)return Sn(ve,m._0_modifier_already_seen,cn);if(xt&8192&&J&16384)return Sn(ve,m._0_modifier_must_precede_1_modifier,"in","out");J|=xt;break}}}return n.kind===176?J&256?Sn(_,m._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):J&16?Sn(k,m._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):J&1024?Sn(x,m._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&J&128?Sn(y,m.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&J&31&&Zo(n.name)?Sn(n,m.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&J&31&&n.dotDotDotToken?Sn(n,m.A_parameter_property_cannot_be_declared_using_a_rest_parameter):J&1024?ibt(n,x):!1}function ebt(n){if(!n.modifiers)return!1;const a=tbt(n);return a&&gu(a,m.Modifiers_cannot_appear_here)}function kte(n,a){const c=Tn(n.modifiers,xa);return c&&c.kind!==a?c:void 0}function tbt(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Tn(n.modifiers,xa);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return kte(n,134);case 263:case 185:return kte(n,128);case 231:case 264:case 265:return Tn(n.modifiers,xa);case 243:return n.declarationList.flags&4?kte(n,135):Tn(n.modifiers,xa);case 266:return kte(n,87);default:C.assertNever(n)}}}function nbt(n){const a=rbt(n);return a&&gu(a,m.Decorators_are_not_valid_here)}function rbt(n){return tq(n)?Tn(n.modifiers,Su):void 0}function ibt(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return Sn(a,m._0_modifier_cannot_be_used_here,"async")}function Rx(n,a=m.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?oS(n[0],n.end-1,1,a):!1}function g7e(n,a){if(n&&n.length===0){const c=n.pos-1,d=wa(a.text,n.end)+1;return oS(a,c,d-c,m.Type_parameter_list_cannot_be_empty)}return!1}function obt(n){let a=!1;const c=n.length;for(let d=0;d<c;d++){const _=n[d];if(_.dotDotDotToken){if(d!==c-1)return Sn(_.dotDotDotToken,m.A_rest_parameter_must_be_last_in_a_parameter_list);if(_.flags&33554432||Rx(n,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),_.questionToken)return Sn(_.questionToken,m.A_rest_parameter_cannot_be_optional);if(_.initializer)return Sn(_.name,m.A_rest_parameter_cannot_have_an_initializer)}else if(C8(_)){if(a=!0,_.questionToken&&_.initializer)return Sn(_.name,m.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!_.initializer)return Sn(_.name,m.A_required_parameter_cannot_follow_an_optional_parameter)}}function abt(n){return rr(n,a=>!!a.initializer||Zo(a.name)||ng(a))}function sbt(n){if(se>=3){const a=n.body&&Jo(n.body)&&$H(n.body.statements);if(a){const c=abt(n.parameters);if(Le(c)){He(c,_=>{Oa(Xe(_,m.This_parameter_is_not_allowed_with_use_strict_directive),Or(a,m.use_strict_directive_used_here))});const d=c.map((_,y)=>y===0?Or(_,m.Non_simple_parameter_declared_here):Or(_,m.and_here));return Oa(Xe(a,m.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...d),!0}}}return!1}function wte(n){const a=jn(n);return Mg(n)||g7e(n.typeParameters,a)||obt(n.parameters)||cbt(n,a)||js(n)&&sbt(n)}function lbt(n){const a=jn(n);return mbt(n)||g7e(n.typeParameters,a)}function cbt(n,a){if(!Us(n))return!1;n.typeParameters&&!(Le(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Ic(a.fileName,[".mts",".cts"])&&Sn(n.typeParameters[0],m.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:c}=n,d=Ts(a,c.pos).line,_=Ts(a,c.end).line;return d!==_&&Sn(c,m.Line_terminator_not_permitted_before_arrow)}function ubt(n){const a=n.parameters[0];if(n.parameters.length!==1)return Sn(a?a.name:n,m.An_index_signature_must_have_exactly_one_parameter);if(Rx(n.parameters,m.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return Sn(a.dotDotDotToken,m.An_index_signature_cannot_have_a_rest_parameter);if(N3(a))return Sn(a.name,m.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return Sn(a.questionToken,m.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return Sn(a.name,m.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return Sn(a.name,m.An_index_signature_parameter_must_have_a_type_annotation);const c=Ti(a.type);return qm(c,d=>!!(d.flags&8576))||NC(c)?Sn(a.name,m.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):pp(c,ZZ)?n.type?!1:Sn(n,m.An_index_signature_must_have_a_type_annotation):Sn(a.name,m.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function dbt(n){return Mg(n)||ubt(n)}function pbt(n,a){if(a&&a.length===0){const c=jn(n),d=a.pos-1,_=wa(c.text,a.end)+1;return oS(c,d,_-d,m.Type_argument_list_cannot_be_empty)}return!1}function MB(n,a){return Rx(a)||pbt(n,a)}function fbt(n){return n.questionDotToken||n.flags&64?Sn(n.template,m.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function v7e(n){const a=n.types;if(Rx(a))return!0;if(a&&a.length===0){const c=pa(n.token);return oS(n,a.pos,0,m._0_list_cannot_be_empty,c)}return St(a,y7e)}function y7e(n){return Xv(n)&&gP(n.expression)&&n.typeArguments?Sn(n,m.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):MB(n,n.typeArguments)}function mbt(n){let a=!1,c=!1;if(!Mg(n)&&n.heritageClauses)for(const d of n.heritageClauses){if(d.token===96){if(a)return gu(d,m.extends_clause_already_seen);if(c)return gu(d,m.extends_clause_must_precede_implements_clause);if(d.types.length>1)return gu(d.types[1],m.Classes_can_only_extend_a_single_class);a=!0}else{if(C.assert(d.token===119),c)return gu(d,m.implements_clause_already_seen);c=!0}v7e(d)}}function _bt(n){let a=!1;if(n.heritageClauses)for(const c of n.heritageClauses){if(c.token===96){if(a)return gu(c,m.extends_clause_already_seen);a=!0}else return C.assert(c.token===119),gu(c,m.Interface_declaration_cannot_have_implements_clause);v7e(c)}return!1}function Ote(n){if(n.kind!==167)return!1;const a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?Sn(a.expression,m.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Gbe(n){if(n.asteriskToken){if(C.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return Sn(n.asteriskToken,m.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Sn(n.asteriskToken,m.An_overload_signature_cannot_be_declared_as_a_generator)}}function Vbe(n,a){return!!n&&Sn(n,a)}function b7e(n,a){return!!n&&Sn(n,a)}function hbt(n,a){const c=new Map;for(const d of n.properties){if(d.kind===305){if(a){const x=vs(d.expression);if(_d(x)||Wa(x))return Sn(d.expression,m.A_rest_element_cannot_contain_a_binding_pattern)}continue}const _=d.name;if(_.kind===167&&Ote(_),d.kind===304&&!a&&d.objectAssignmentInitializer&&Sn(d.equalsToken,m.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),_.kind===81&&Sn(_,m.Private_identifiers_are_not_allowed_outside_class_bodies),km(d)&&d.modifiers)for(const x of d.modifiers)xa(x)&&(x.kind!==134||d.kind!==174)&&Sn(x,m._0_modifier_cannot_be_used_here,gc(x));else if(_se(d)&&d.modifiers)for(const x of d.modifiers)xa(x)&&Sn(x,m._0_modifier_cannot_be_used_here,gc(x));let y;switch(d.kind){case 304:case 303:b7e(d.exclamationToken,m.A_definite_assignment_assertion_is_not_permitted_in_this_context),Vbe(d.questionToken,m.An_object_member_cannot_be_declared_optional),_.kind===9&&Hbe(_),y=4;break;case 174:y=8;break;case 177:y=1;break;case 178:y=2;break;default:C.assertNever(d,"Unexpected syntax kind:"+d.kind)}if(!a){const x=qbe(_);if(x===void 0)continue;const k=c.get(x);if(!k)c.set(x,y);else if(y&8&&k&8)Sn(_,m.Duplicate_identifier_0,gc(_));else if(y&4&&k&4)Sn(_,m.An_object_literal_cannot_have_multiple_properties_with_the_same_name,gc(_));else if(y&3&&k&3)if(k!==3&&y!==k)c.set(x,y|k);else return Sn(_,m.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Sn(_,m.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function gbt(n){vbt(n.tagName),MB(n,n.typeArguments);const a=new Map;for(const c of n.attributes.properties){if(c.kind===293)continue;const{name:d,initializer:_}=c,y=sP(d);if(!a.get(y))a.set(y,!0);else return Sn(d,m.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(_&&_.kind===294&&!_.expression)return Sn(_,m.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function vbt(n){if(Fr(n)&&r_(n.expression))return Sn(n.expression,m.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(r_(n)&&q3(V)&&!CR(n.namespace.escapedText))return Sn(n,m.React_components_cannot_include_JSX_namespace_names)}function ybt(n){if(n.expression&&RP(n.expression))return Sn(n.expression,m.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function E7e(n){if(Av(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){const a=jn(n);if(r3(n)){if(!iS(a))switch(wA(a,V)||os.add(Or(n.awaitModifier,m.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 199:if(a.impliedNodeFormat===1){os.add(Or(n.awaitModifier,m.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(se>=4)break;default:os.add(Or(n.awaitModifier,m.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!iS(a)){const c=Or(n.awaitModifier,m.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),d=Gp(n);if(d&&d.kind!==176){C.assert((Uc(d)&2)===0,"Enclosing function should never be an async function.");const _=Or(d,m.Did_you_mean_to_mark_this_function_as_async);Oa(c,_)}return os.add(c),!0}return!1}if(Qk(n)&&!(n.flags&65536)&&je(n.initializer)&&n.initializer.escapedText==="async")return Sn(n.initializer,m.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){const a=n.initializer;if(!Ube(a)){const c=a.declarations;if(!c.length)return!1;if(c.length>1){const _=n.kind===249?m.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:m.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return gu(a.declarations[1],_)}const d=c[0];if(d.initializer){const _=n.kind===249?m.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:m.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Sn(d.name,_)}if(d.type){const _=n.kind===249?m.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:m.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Sn(d,_)}}}return!1}function bbt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(se<1)return Sn(n.name,m.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(se<2&&Ji(n.name))return Sn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!$r(n,64))return oS(n,n.end-1,1,m._0_expected,"{")}if(n.body){if($r(n,64))return Sn(n,m.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return Sn(n.body,m.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Sn(n.name,m.An_accessor_cannot_have_type_parameters);if(!Ebt(n))return Sn(n.name,n.kind===177?m.A_get_accessor_cannot_have_parameters:m.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return Sn(n.name,m.A_set_accessor_cannot_have_a_return_type_annotation);const a=C.checkDefined(FN(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return Sn(a.dotDotDotToken,m.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return Sn(a.questionToken,m.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return Sn(n.name,m.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Ebt(n){return jbe(n)||n.parameters.length===(n.kind===177?0:1)}function jbe(n){if(n.parameters.length===(n.kind===177?1:2))return KE(n)}function Sbt(n){if(n.operator===158){if(n.type.kind!==155)return Sn(n.type,m._0_expected,pa(155));let a=nk(n.parent);if(sr(a)&&f1(a)){const c=NS(a);c&&(a=zA(c)||c)}switch(a.kind){case 260:const c=a;if(c.name.kind!==80)return Sn(n,m.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!TN(c))return Sn(n,m.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return Sn(a.name,m.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!aa(a)||!zN(a))return Sn(a.name,m.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!$r(a,8))return Sn(a.name,m.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Sn(n,m.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return gu(n,m.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,pa(155))}function _M(n,a){if(Blt(n))return Sn(n,a)}function S7e(n){if(wte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Xa(n.modifiers).kind===134))return gu(n,m.Modifiers_cannot_appear_here);if(Vbe(n.questionToken,m.An_object_member_cannot_be_declared_optional))return!0;if(b7e(n.exclamationToken,m.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return oS(n,n.end-1,1,m._0_expected,"{")}if(Gbe(n))return!0}if(ui(n.parent)){if(se<2&&Ji(n.name))return Sn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return _M(n.name,m.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(n.kind===174&&!n.body)return _M(n.name,m.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(n.parent.kind===264)return _M(n.name,m.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return _M(n.name,m.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 Tbt(n){let a=n;for(;a;){if(nR(a))return Sn(n,m.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===251&&!Wy(a.statement,!0)?Sn(n,m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(Wy(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const c=n.kind===252?m.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Sn(n,c)}else{const c=n.kind===252?m.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:m.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Sn(n,c)}}function Abt(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==es(a))return Sn(n,m.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Rx(a,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Sn(n.name,m.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return oS(n,n.initializer.pos-1,1,m.A_rest_element_cannot_have_an_initializer)}function T7e(n){return nf(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function Ibt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function xbt(n){if((Fr(n)||$s(n)&&T7e(n.argumentExpression))&&jl(n.expression))return!!(ac(n).flags&1056)}function A7e(n){const a=n.initializer;if(a){const c=!(T7e(a)||xbt(a)||a.kind===112||a.kind===97||Ibt(a));if((K4(n)||ki(n)&&LB(n))&&!n.type){if(c)return Sn(a,m.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Sn(a,m.Initializers_are_not_allowed_in_ambient_contexts)}}function Rbt(n){const a=aS(n),c=a&7;if(Zo(n.name))switch(c){case 6:return Sn(n,m._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Sn(n,m._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)A7e(n);else if(!n.initializer){if(Zo(n.name)&&!Zo(n.parent))return Sn(n,m.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return Sn(n,m._0_declarations_must_be_initialized,"await using");case 4:return Sn(n,m._0_declarations_must_be_initialized,"using");case 2:return Sn(n,m._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){const d=n.initializer?m.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?m.A_definite_assignment_assertion_is_not_permitted_in_this_context:m.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Sn(n.exclamationToken,d)}return(G<5||jn(n).impliedNodeFormat===1)&&G!==4&&!(n.parent.parent.flags&33554432)&&$r(n.parent.parent,32)&&I7e(n.name),!!c&&x7e(n.name)}function I7e(n){if(n.kind===80){if(Tr(n)==="__esModule")return Nbt("noEmit",n,m.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const c of a)if(!Hc(c))return I7e(c.name)}return!1}function x7e(n){if(n.kind===80){if(n.escapedText==="let")return Sn(n,m.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const c of a)Hc(c)||x7e(c.name)}return!1}function Ube(n){const a=n.declarations;if(Rx(n.declarations))return!0;if(!n.declarations.length)return oS(n,a.pos,a.end-a.pos,m.Variable_declaration_list_cannot_be_empty);const c=n.flags&7;return(c===4||c===6)&&aF(n.parent)?Sn(n,c===4?m.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:m.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?jWe(n):!1}function R7e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return R7e(n.parent)}return!0}function Dbt(n){if(!R7e(n.parent)){const a=aS(n.declarationList)&7;if(a){const c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":C.fail("Unknown BlockScope flag");return Sn(n,m._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Cbt(n){const a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return Sn(n.name,m._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,ji(n.name.escapedText),pa(n.keywordToken),"target");break;case 102:if(a!=="meta")return Sn(n.name,m._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,ji(n.name.escapedText),pa(n.keywordToken),"meta");break}}function iS(n){return n.parseDiagnostics.length>0}function gu(n,a,...c){const d=jn(n);if(!iS(d)){const _=yh(d,n.pos);return os.add(eu(d,_.start,_.length,a,...c)),!0}return!1}function oS(n,a,c,d,..._){const y=jn(n);return iS(y)?!1:(os.add(eu(y,a,c,d,..._)),!0)}function Nbt(n,a,c,...d){const _=jn(a);return iS(_)?!1:(l_(n,a,c,...d),!0)}function Sn(n,a,...c){const d=jn(n);return iS(d)?!1:(os.add(Or(n,a,...c)),!0)}function Pbt(n){const a=sr(n)?C3(n):void 0,c=n.typeParameters||a&&$c(a);if(c){const d=c.pos===c.end?c.pos:wa(jn(n).text,c.pos);return oS(n,d,c.end-d,m.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Mbt(n){const a=n.type||sm(n);if(a)return Sn(a,m.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Lbt(n){if(rs(n.name)&&mr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return Sn(n.parent.members[0],m.A_mapped_type_may_not_declare_properties_or_methods);if(ui(n.parent)){if(Ma(n.name)&&n.name.text==="constructor")return Sn(n.name,m.Classes_may_not_have_a_field_named_constructor);if(_M(n.name,m.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(se<2&&Ji(n.name))return Sn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(se<2&&Wd(n))return Sn(n.name,m.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Wd(n)&&Vbe(n.questionToken,m.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(_M(n.name,m.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(C.assertNode(n,Ep),n.initializer)return Sn(n.initializer,m.An_interface_property_cannot_have_an_initializer)}else if(Tp(n.parent)){if(_M(n.name,m.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(C.assertNode(n,Ep),n.initializer)return Sn(n.initializer,m.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&A7e(n),Uo(n)&&n.exclamationToken&&(!ui(n.parent)||!n.type||n.initializer||n.flags&33554432||aa(n)||$E(n))){const a=n.initializer?m.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?m.A_definite_assignment_assertion_is_not_permitted_in_this_context:m.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Sn(n.exclamationToken,a)}}function kbt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||$r(n,2208)?!1:gu(n,m.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function wbt(n){for(const a of n.statements)if((Ju(a)||a.kind===243)&&kbt(a))return!0;return!1}function Obt(n){return!!(n.flags&33554432)&&wbt(n)}function Av(n){if(n.flags&33554432){if(!Qr(n).hasReportedStatementInAmbientContext&&(Qo(n.parent)||Oy(n.parent)))return Qr(n).hasReportedStatementInAmbientContext=gu(n,m.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){const c=Qr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=gu(n,m.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Hbe(n){const a=gc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||c_(!1,Or(n,m.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Wbt(n){return!!(!(Zy(n.parent)||tb(n.parent)&&Zy(n.parent.parent))&&se<7&&Sn(n,m.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Fbt(n,a,...c){const d=jn(n);if(!iS(d)){const _=yh(d,n.pos);return os.add(eu(d,$l(_),0,a,...c)),!0}return!1}function zbt(){return ap||(ap=[],be.forEach((n,a)=>{Qq.test(a)&&ap.push(n)})),ap}function Bbt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?Sn(n,m.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===275?D7e(n.namedBindings):!1}function D7e(n){return!!He(n.elements,a=>{if(a.isTypeOnly)return gu(a,a.kind===276?m.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:m.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function Gbt(n){if(V.verbatimModuleSyntax&&G===1)return Sn(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(G===5)return Sn(n,m.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return Sn(n,m.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=n.arguments;if(G!==99&&G!==199&&G!==100&&(Rx(a),a.length>1)){const d=a[1];return Sn(d,m.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return Sn(n,m.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const c=Tn(a,n_);return c?Sn(c,m.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Vbt(n,a){const c=Wr(n);if(c&20&&a.flags&1048576)return Tn(a.types,d=>{if(d.flags&524288){const _=c&Wr(d);if(_&4)return n.target===d.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===d.aliasSymbol}return!1})}function jbt(n,a){if(Wr(n)&128&&qm(a,by))return Tn(a.types,c=>!by(c))}function Ubt(n,a){let c=0;if(Ko(n,c).length>0||(c=1,Ko(n,c).length>0))return Tn(a.types,_=>Ko(_,c).length>0)}function Hbt(n,a){let c;if(!(n.flags&406978556)){let d=0;for(const _ of a.types)if(!(_.flags&406978556)){const y=Ea([eh(n),eh(_)]);if(y.flags&4194304)return _;if(y_(y)||y.flags&1048576){const x=y.flags&1048576?lu(y.types,y_):1;x>=d&&(c=_,d=x)}}}return c}function qbt(n){if(Pl(n,67108864)){const a=_c(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function C7e(n,a,c){if(a.flags&1048576&&n.flags&2621440){const d=G4e(a,n);if(d)return d;const _=bs(n);if(_){const y=B4e(_,a);if(y){const x=Lve(a,Ot(y,k=>[()=>dr(k),k.escapedName]),c);if(x!==a)return x}}}}function qbe(n){const a=PS(n);return a||(rs(n)?iye(Du(n.expression)):void 0)}function Wte(n){return Hn===n||(Hn=n,yn=d0(n)),yn}function aS(n){return $t===n||($t=n,Cn=Wv(n)),Cn}function LB(n){const a=aS(n)&7;return a===2||a===4||a===6}}function Gje(e){return!Oy(e)}function Oxe(e){return e.kind!==262&&e.kind!==174||!!e.body}function Wxe(e){switch(e.parent.kind){case 276:case 281:return je(e);default:return jg(e)}}function Fxe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Yu(e){return!!(e.flags&1)}function $q(e){return!!(e.flags&2)}function Vje(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ia(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:ia(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var Qq,KF,Ele,Sle,Tle,Ale,XF,Zq,YF,$F,zxe,QF,Ile,sf,eJ,jje=T({"src/compiler/checker.ts"(){ta(),yle(),fS(),Qq=/^".+"$/,KF="(anonymous)",Ele=1,Sle=1,Tle=1,Ale=1,XF=(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))(XF||{}),Zq=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),YF=(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))(YF||{}),$F=(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))($F||{}),zxe=B6(Oxe,Gje),QF=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Ile=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(sf||(sf={})),eJ=class k7e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof k7e;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((o=this.inner)!=null&&o.trackSymbol)}trackSymbol(t,r,i){var l;var o,s;if((o=this.inner)!=null&&o.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((l=(s=this.context).trackedSymbols)!=null?l:s.trackedSymbols=[]).push([t,r,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var o;(o=this.inner)!=null&&o.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function rt(e,t,r,i){if(e===void 0)return e;const o=t(e);let s;if(o!==void 0)return Ao(o)?s=(i||Kje)(o):s=o,C.assertNode(s,r),s}function Bn(e,t,r,i,o){if(e===void 0)return e;const s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,u=-1,p=-1;i>0||o<s?l=e.hasTrailingComma&&i+o===s:(u=e.pos,p=e.end,l=e.hasTrailingComma);const h=Bxe(e,t,r,i,o);if(h!==e){const f=w.createNodeArray(h,l);return bh(f,u,p),f}return e}function kw(e,t,r,i,o){if(e===void 0)return e;const s=e.length;return(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i),Bxe(e,t,r,i,o)}function Bxe(e,t,r,i,o){let s;const l=e.length;(i>0||o<l)&&(s=[]);for(let u=0;u<o;u++){const p=e[u+i],h=p!==void 0?t?t(p):p:void 0;if((s!==void 0||h===void 0||h!==p)&&(s===void 0&&(s=e.slice(0,u),C.assertEachNode(s,r)),h))if(Ao(h))for(const f of h)C.assertNode(f,r),s.push(f);else C.assertNode(h,r),s.push(h)}return s||(C.assertEachNode(e,r),e)}function tJ(e,t,r,i,o,s=Bn){return r.startLexicalEnvironment(),e=s(e,t,qi,i),o&&(e=r.factory.ensureUseStrict(e)),w.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function Dl(e,t,r,i=Bn){let o;return r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),o=i(e,t,Io),r.getLexicalEnvironmentFlags()&2&&ls(r.getCompilerOptions())>=2&&(o=Uje(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function Uje(e,t){let r;for(let i=0;i<e.length;i++){const o=e[i],s=Hje(o,t);(r||s!==o)&&(r||(r=e.slice(0,i)),r[i]=s)}return r?ut(t.factory.createNodeArray(r,e.hasTrailingComma),e):e}function Hje(e,t){return e.dotDotDotToken?e:Zo(e.name)?qje(e,t):e.initializer?Jje(e,e.name,e.initializer,t):e}function qje(e,t){const{factory:r}=t;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}function Jje(e,t,r,i){const o=i.factory;return i.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t),"undefined"),pr(ut(o.createBlock([o.createExpressionStatement(pr(ut(o.createAssignment(pr(o.cloneNode(t),96),pr(r,96|qa(r)|3072)),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function lf(e,t,r,i=rt){r.resumeLexicalEnvironment();const o=i(e,t,P4),s=r.endLexicalEnvironment();if(St(s)){if(!o)return r.factory.createBlock(s);const l=r.factory.converters.convertToFunctionBlock(o),u=w.mergeLexicalEnvironment(l.statements,s);return r.factory.updateBlock(l,u)}return o}function xd(e,t,r,i=rt){r.startBlockScope();const o=i(e,t,qi,r.factory.liftToBlock);C.assert(o);const s=r.endBlockScope();return St(s)?Jo(o)?(s.push(...o.statements),r.factory.updateBlock(o,s)):(s.push(o),r.factory.createBlock(s)):o}function ZF(e,t,r=t){if(r===t||e.length<=1)return Bn(e,t,bt);let i=0;const o=e.length;return Bn(e,s=>{const l=i<o-1;return i++,l?r(s):t(s)},bt)}function xn(e,t,r=JP,i=Bn,o,s=rt){if(e===void 0)return;const l=Gxe[e.kind];return l===void 0?e:l(e,t,r,i,s,o)}function Kje(e){return C.assert(e.length<=1,"Too many nodes written to output."),ch(e)}var Gxe,Xje=T({"src/compiler/visitorPublic.ts"(){ta(),Gxe={166:function(t,r,i,o,s,l){return i.factory.updateQualifiedName(t,C.checkDefined(s(t.left,r,Zd)),C.checkDefined(s(t.right,r,je)))},167:function(t,r,i,o,s,l){return i.factory.updateComputedPropertyName(t,C.checkDefined(s(t.expression,r,bt)))},168:function(t,r,i,o,s,l){return i.factory.updateTypeParameterDeclaration(t,o(t.modifiers,r,xa),C.checkDefined(s(t.name,r,je)),s(t.constraint,r,Ui),s(t.default,r,Ui))},169:function(t,r,i,o,s,l){return i.factory.updateParameterDeclaration(t,o(t.modifiers,r,sl),l?s(t.dotDotDotToken,l,QW):t.dotDotDotToken,C.checkDefined(s(t.name,r,vS)),l?s(t.questionToken,l,$y):t.questionToken,s(t.type,r,Ui),s(t.initializer,r,bt))},170:function(t,r,i,o,s,l){return i.factory.updateDecorator(t,C.checkDefined(s(t.expression,r,bt)))},171:function(t,r,i,o,s,l){return i.factory.updatePropertySignature(t,o(t.modifiers,r,xa),C.checkDefined(s(t.name,r,cc)),l?s(t.questionToken,l,$y):t.questionToken,s(t.type,r,Ui))},172:function(t,r,i,o,s,l){var u,p;return i.factory.updatePropertyDeclaration(t,o(t.modifiers,r,sl),C.checkDefined(s(t.name,r,cc)),l?s((u=t.questionToken)!=null?u:t.exclamationToken,l,hse):(p=t.questionToken)!=null?p:t.exclamationToken,s(t.type,r,Ui),s(t.initializer,r,bt))},173:function(t,r,i,o,s,l){return i.factory.updateMethodSignature(t,o(t.modifiers,r,xa),C.checkDefined(s(t.name,r,cc)),l?s(t.questionToken,l,$y):t.questionToken,o(t.typeParameters,r,gl),o(t.parameters,r,Io),s(t.type,r,Ui))},174:function(t,r,i,o,s,l){return i.factory.updateMethodDeclaration(t,o(t.modifiers,r,sl),l?s(t.asteriskToken,l,Hk):t.asteriskToken,C.checkDefined(s(t.name,r,cc)),l?s(t.questionToken,l,$y):t.questionToken,o(t.typeParameters,r,gl),Dl(t.parameters,r,i,o),s(t.type,r,Ui),lf(t.body,r,i,s))},176:function(t,r,i,o,s,l){return i.factory.updateConstructorDeclaration(t,o(t.modifiers,r,sl),Dl(t.parameters,r,i,o),lf(t.body,r,i,s))},177:function(t,r,i,o,s,l){return i.factory.updateGetAccessorDeclaration(t,o(t.modifiers,r,sl),C.checkDefined(s(t.name,r,cc)),Dl(t.parameters,r,i,o),s(t.type,r,Ui),lf(t.body,r,i,s))},178:function(t,r,i,o,s,l){return i.factory.updateSetAccessorDeclaration(t,o(t.modifiers,r,sl),C.checkDefined(s(t.name,r,cc)),Dl(t.parameters,r,i,o),lf(t.body,r,i,s))},175:function(t,r,i,o,s,l){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,lf(t.body,r,i,s))},179:function(t,r,i,o,s,l){return i.factory.updateCallSignature(t,o(t.typeParameters,r,gl),o(t.parameters,r,Io),s(t.type,r,Ui))},180:function(t,r,i,o,s,l){return i.factory.updateConstructSignature(t,o(t.typeParameters,r,gl),o(t.parameters,r,Io),s(t.type,r,Ui))},181:function(t,r,i,o,s,l){return i.factory.updateIndexSignature(t,o(t.modifiers,r,sl),o(t.parameters,r,Io),C.checkDefined(s(t.type,r,Ui)))},182:function(t,r,i,o,s,l){return i.factory.updateTypePredicateNode(t,s(t.assertsModifier,r,Fae),C.checkDefined(s(t.parameterName,r,gse)),s(t.type,r,Ui))},183:function(t,r,i,o,s,l){return i.factory.updateTypeReferenceNode(t,C.checkDefined(s(t.typeName,r,Zd)),o(t.typeArguments,r,Ui))},184:function(t,r,i,o,s,l){return i.factory.updateFunctionTypeNode(t,o(t.typeParameters,r,gl),o(t.parameters,r,Io),C.checkDefined(s(t.type,r,Ui)))},185:function(t,r,i,o,s,l){return i.factory.updateConstructorTypeNode(t,o(t.modifiers,r,xa),o(t.typeParameters,r,gl),o(t.parameters,r,Io),C.checkDefined(s(t.type,r,Ui)))},186:function(t,r,i,o,s,l){return i.factory.updateTypeQueryNode(t,C.checkDefined(s(t.exprName,r,Zd)),o(t.typeArguments,r,Ui))},187:function(t,r,i,o,s,l){return i.factory.updateTypeLiteralNode(t,o(t.members,r,yS))},188:function(t,r,i,o,s,l){return i.factory.updateArrayTypeNode(t,C.checkDefined(s(t.elementType,r,Ui)))},189:function(t,r,i,o,s,l){return i.factory.updateTupleTypeNode(t,o(t.elements,r,Ui))},190:function(t,r,i,o,s,l){return i.factory.updateOptionalTypeNode(t,C.checkDefined(s(t.type,r,Ui)))},191:function(t,r,i,o,s,l){return i.factory.updateRestTypeNode(t,C.checkDefined(s(t.type,r,Ui)))},192:function(t,r,i,o,s,l){return i.factory.updateUnionTypeNode(t,o(t.types,r,Ui))},193:function(t,r,i,o,s,l){return i.factory.updateIntersectionTypeNode(t,o(t.types,r,Ui))},194:function(t,r,i,o,s,l){return i.factory.updateConditionalTypeNode(t,C.checkDefined(s(t.checkType,r,Ui)),C.checkDefined(s(t.extendsType,r,Ui)),C.checkDefined(s(t.trueType,r,Ui)),C.checkDefined(s(t.falseType,r,Ui)))},195:function(t,r,i,o,s,l){return i.factory.updateInferTypeNode(t,C.checkDefined(s(t.typeParameter,r,gl)))},205:function(t,r,i,o,s,l){return i.factory.updateImportTypeNode(t,C.checkDefined(s(t.argument,r,Ui)),s(t.attributes,r,mI),s(t.qualifier,r,Zd),o(t.typeArguments,r,Ui),t.isTypeOf)},302:function(t,r,i,o,s,l){return i.factory.updateImportTypeAssertionContainer(t,C.checkDefined(s(t.assertClause,r,Xae)),t.multiLine)},202:function(t,r,i,o,s,l){return i.factory.updateNamedTupleMember(t,l?s(t.dotDotDotToken,l,QW):t.dotDotDotToken,C.checkDefined(s(t.name,r,je)),l?s(t.questionToken,l,$y):t.questionToken,C.checkDefined(s(t.type,r,Ui)))},196:function(t,r,i,o,s,l){return i.factory.updateParenthesizedType(t,C.checkDefined(s(t.type,r,Ui)))},198:function(t,r,i,o,s,l){return i.factory.updateTypeOperatorNode(t,C.checkDefined(s(t.type,r,Ui)))},199:function(t,r,i,o,s,l){return i.factory.updateIndexedAccessTypeNode(t,C.checkDefined(s(t.objectType,r,Ui)),C.checkDefined(s(t.indexType,r,Ui)))},200:function(t,r,i,o,s,l){return i.factory.updateMappedTypeNode(t,l?s(t.readonlyToken,l,vse):t.readonlyToken,C.checkDefined(s(t.typeParameter,r,gl)),s(t.nameType,r,Ui),l?s(t.questionToken,l,yse):t.questionToken,s(t.type,r,Ui),o(t.members,r,yS))},201:function(t,r,i,o,s,l){return i.factory.updateLiteralTypeNode(t,C.checkDefined(s(t.literal,r,Yre)))},203:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralType(t,C.checkDefined(s(t.head,r,iI)),o(t.templateSpans,r,MH))},204:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralTypeSpan(t,C.checkDefined(s(t.type,r,Ui)),C.checkDefined(s(t.literal,r,R4)))},206:function(t,r,i,o,s,l){return i.factory.updateObjectBindingPattern(t,o(t.elements,r,ns))},207:function(t,r,i,o,s,l){return i.factory.updateArrayBindingPattern(t,o(t.elements,r,C4))},208:function(t,r,i,o,s,l){return i.factory.updateBindingElement(t,l?s(t.dotDotDotToken,l,QW):t.dotDotDotToken,s(t.propertyName,r,cc),C.checkDefined(s(t.name,r,vS)),s(t.initializer,r,bt))},209:function(t,r,i,o,s,l){return i.factory.updateArrayLiteralExpression(t,o(t.elements,r,bt))},210:function(t,r,i,o,s,l){return i.factory.updateObjectLiteralExpression(t,o(t.properties,r,Bg))},211:function(t,r,i,o,s,l){return A4(t)?i.factory.updatePropertyAccessChain(t,C.checkDefined(s(t.expression,r,bt)),l?s(t.questionDotToken,l,ZW):t.questionDotToken,C.checkDefined(s(t.name,r,tg))):i.factory.updatePropertyAccessExpression(t,C.checkDefined(s(t.expression,r,bt)),C.checkDefined(s(t.name,r,tg)))},212:function(t,r,i,o,s,l){return ej(t)?i.factory.updateElementAccessChain(t,C.checkDefined(s(t.expression,r,bt)),l?s(t.questionDotToken,l,ZW):t.questionDotToken,C.checkDefined(s(t.argumentExpression,r,bt))):i.factory.updateElementAccessExpression(t,C.checkDefined(s(t.expression,r,bt)),C.checkDefined(s(t.argumentExpression,r,bt)))},213:function(t,r,i,o,s,l){return hS(t)?i.factory.updateCallChain(t,C.checkDefined(s(t.expression,r,bt)),l?s(t.questionDotToken,l,ZW):t.questionDotToken,o(t.typeArguments,r,Ui),o(t.arguments,r,bt)):i.factory.updateCallExpression(t,C.checkDefined(s(t.expression,r,bt)),o(t.typeArguments,r,Ui),o(t.arguments,r,bt))},214:function(t,r,i,o,s,l){return i.factory.updateNewExpression(t,C.checkDefined(s(t.expression,r,bt)),o(t.typeArguments,r,Ui),o(t.arguments,r,bt))},215:function(t,r,i,o,s,l){return i.factory.updateTaggedTemplateExpression(t,C.checkDefined(s(t.tag,r,bt)),o(t.typeArguments,r,Ui),C.checkDefined(s(t.template,r,LA)))},216:function(t,r,i,o,s,l){return i.factory.updateTypeAssertion(t,C.checkDefined(s(t.type,r,Ui)),C.checkDefined(s(t.expression,r,bt)))},217:function(t,r,i,o,s,l){return i.factory.updateParenthesizedExpression(t,C.checkDefined(s(t.expression,r,bt)))},218:function(t,r,i,o,s,l){return i.factory.updateFunctionExpression(t,o(t.modifiers,r,xa),l?s(t.asteriskToken,l,Hk):t.asteriskToken,s(t.name,r,je),o(t.typeParameters,r,gl),Dl(t.parameters,r,i,o),s(t.type,r,Ui),lf(t.body,r,i,s))},219:function(t,r,i,o,s,l){return i.factory.updateArrowFunction(t,o(t.modifiers,r,xa),o(t.typeParameters,r,gl),Dl(t.parameters,r,i,o),s(t.type,r,Ui),l?C.checkDefined(s(t.equalsGreaterThanToken,l,Wae)):t.equalsGreaterThanToken,lf(t.body,r,i,s))},220:function(t,r,i,o,s,l){return i.factory.updateDeleteExpression(t,C.checkDefined(s(t.expression,r,bt)))},221:function(t,r,i,o,s,l){return i.factory.updateTypeOfExpression(t,C.checkDefined(s(t.expression,r,bt)))},222:function(t,r,i,o,s,l){return i.factory.updateVoidExpression(t,C.checkDefined(s(t.expression,r,bt)))},223:function(t,r,i,o,s,l){return i.factory.updateAwaitExpression(t,C.checkDefined(s(t.expression,r,bt)))},224:function(t,r,i,o,s,l){return i.factory.updatePrefixUnaryExpression(t,C.checkDefined(s(t.operand,r,bt)))},225:function(t,r,i,o,s,l){return i.factory.updatePostfixUnaryExpression(t,C.checkDefined(s(t.operand,r,bt)))},226:function(t,r,i,o,s,l){return i.factory.updateBinaryExpression(t,C.checkDefined(s(t.left,r,bt)),l?C.checkDefined(s(t.operatorToken,l,Ese)):t.operatorToken,C.checkDefined(s(t.right,r,bt)))},227:function(t,r,i,o,s,l){return i.factory.updateConditionalExpression(t,C.checkDefined(s(t.condition,r,bt)),l?C.checkDefined(s(t.questionToken,l,$y)):t.questionToken,C.checkDefined(s(t.whenTrue,r,bt)),l?C.checkDefined(s(t.colonToken,l,Oae)):t.colonToken,C.checkDefined(s(t.whenFalse,r,bt)))},228:function(t,r,i,o,s,l){return i.factory.updateTemplateExpression(t,C.checkDefined(s(t.head,r,iI)),o(t.templateSpans,r,bP))},229:function(t,r,i,o,s,l){return i.factory.updateYieldExpression(t,l?s(t.asteriskToken,l,Hk):t.asteriskToken,s(t.expression,r,bt))},230:function(t,r,i,o,s,l){return i.factory.updateSpreadElement(t,C.checkDefined(s(t.expression,r,bt)))},231:function(t,r,i,o,s,l){return i.factory.updateClassExpression(t,o(t.modifiers,r,sl),s(t.name,r,je),o(t.typeParameters,r,gl),o(t.heritageClauses,r,of),o(t.members,r,Zc))},233:function(t,r,i,o,s,l){return i.factory.updateExpressionWithTypeArguments(t,C.checkDefined(s(t.expression,r,bt)),o(t.typeArguments,r,Ui))},234:function(t,r,i,o,s,l){return i.factory.updateAsExpression(t,C.checkDefined(s(t.expression,r,bt)),C.checkDefined(s(t.type,r,Ui)))},238:function(t,r,i,o,s,l){return i.factory.updateSatisfiesExpression(t,C.checkDefined(s(t.expression,r,bt)),C.checkDefined(s(t.type,r,Ui)))},235:function(t,r,i,o,s,l){return qu(t)?i.factory.updateNonNullChain(t,C.checkDefined(s(t.expression,r,bt))):i.factory.updateNonNullExpression(t,C.checkDefined(s(t.expression,r,bt)))},236:function(t,r,i,o,s,l){return i.factory.updateMetaProperty(t,C.checkDefined(s(t.name,r,je)))},239:function(t,r,i,o,s,l){return i.factory.updateTemplateSpan(t,C.checkDefined(s(t.expression,r,bt)),C.checkDefined(s(t.literal,r,R4)))},241:function(t,r,i,o,s,l){return i.factory.updateBlock(t,o(t.statements,r,qi))},243:function(t,r,i,o,s,l){return i.factory.updateVariableStatement(t,o(t.modifiers,r,sl),C.checkDefined(s(t.declarationList,r,qc)))},244:function(t,r,i,o,s,l){return i.factory.updateExpressionStatement(t,C.checkDefined(s(t.expression,r,bt)))},245:function(t,r,i,o,s,l){return i.factory.updateIfStatement(t,C.checkDefined(s(t.expression,r,bt)),C.checkDefined(s(t.thenStatement,r,qi,i.factory.liftToBlock)),s(t.elseStatement,r,qi,i.factory.liftToBlock))},246:function(t,r,i,o,s,l){return i.factory.updateDoStatement(t,xd(t.statement,r,i,s),C.checkDefined(s(t.expression,r,bt)))},247:function(t,r,i,o,s,l){return i.factory.updateWhileStatement(t,C.checkDefined(s(t.expression,r,bt)),xd(t.statement,r,i,s))},248:function(t,r,i,o,s,l){return i.factory.updateForStatement(t,s(t.initializer,r,Af),s(t.condition,r,bt),s(t.incrementor,r,bt),xd(t.statement,r,i,s))},249:function(t,r,i,o,s,l){return i.factory.updateForInStatement(t,C.checkDefined(s(t.initializer,r,Af)),C.checkDefined(s(t.expression,r,bt)),xd(t.statement,r,i,s))},250:function(t,r,i,o,s,l){return i.factory.updateForOfStatement(t,l?s(t.awaitModifier,l,PH):t.awaitModifier,C.checkDefined(s(t.initializer,r,Af)),C.checkDefined(s(t.expression,r,bt)),xd(t.statement,r,i,s))},251:function(t,r,i,o,s,l){return i.factory.updateContinueStatement(t,s(t.label,r,je))},252:function(t,r,i,o,s,l){return i.factory.updateBreakStatement(t,s(t.label,r,je))},253:function(t,r,i,o,s,l){return i.factory.updateReturnStatement(t,s(t.expression,r,bt))},254:function(t,r,i,o,s,l){return i.factory.updateWithStatement(t,C.checkDefined(s(t.expression,r,bt)),C.checkDefined(s(t.statement,r,qi,i.factory.liftToBlock)))},255:function(t,r,i,o,s,l){return i.factory.updateSwitchStatement(t,C.checkDefined(s(t.expression,r,bt)),C.checkDefined(s(t.caseBlock,r,SP)))},256:function(t,r,i,o,s,l){return i.factory.updateLabeledStatement(t,C.checkDefined(s(t.label,r,je)),C.checkDefined(s(t.statement,r,qi,i.factory.liftToBlock)))},257:function(t,r,i,o,s,l){return i.factory.updateThrowStatement(t,C.checkDefined(s(t.expression,r,bt)))},258:function(t,r,i,o,s,l){return i.factory.updateTryStatement(t,C.checkDefined(s(t.tryBlock,r,Jo)),s(t.catchClause,r,d1),s(t.finallyBlock,r,Jo))},260:function(t,r,i,o,s,l){return i.factory.updateVariableDeclaration(t,C.checkDefined(s(t.name,r,vS)),l?s(t.exclamationToken,l,qk):t.exclamationToken,s(t.type,r,Ui),s(t.initializer,r,bt))},261:function(t,r,i,o,s,l){return i.factory.updateVariableDeclarationList(t,o(t.declarations,r,ki))},262:function(t,r,i,o,s,l){return i.factory.updateFunctionDeclaration(t,o(t.modifiers,r,xa),l?s(t.asteriskToken,l,Hk):t.asteriskToken,s(t.name,r,je),o(t.typeParameters,r,gl),Dl(t.parameters,r,i,o),s(t.type,r,Ui),lf(t.body,r,i,s))},263:function(t,r,i,o,s,l){return i.factory.updateClassDeclaration(t,o(t.modifiers,r,sl),s(t.name,r,je),o(t.typeParameters,r,gl),o(t.heritageClauses,r,of),o(t.members,r,Zc))},264:function(t,r,i,o,s,l){return i.factory.updateInterfaceDeclaration(t,o(t.modifiers,r,sl),C.checkDefined(s(t.name,r,je)),o(t.typeParameters,r,gl),o(t.heritageClauses,r,of),o(t.members,r,yS))},265:function(t,r,i,o,s,l){return i.factory.updateTypeAliasDeclaration(t,o(t.modifiers,r,sl),C.checkDefined(s(t.name,r,je)),o(t.typeParameters,r,gl),C.checkDefined(s(t.type,r,Ui)))},266:function(t,r,i,o,s,l){return i.factory.updateEnumDeclaration(t,o(t.modifiers,r,sl),C.checkDefined(s(t.name,r,je)),o(t.members,r,p1))},267:function(t,r,i,o,s,l){return i.factory.updateModuleDeclaration(t,o(t.modifiers,r,sl),C.checkDefined(s(t.name,r,bse)),s(t.body,r,Zre))},268:function(t,r,i,o,s,l){return i.factory.updateModuleBlock(t,o(t.statements,r,qi))},269:function(t,r,i,o,s,l){return i.factory.updateCaseBlock(t,o(t.clauses,r,L4))},270:function(t,r,i,o,s,l){return i.factory.updateNamespaceExportDeclaration(t,C.checkDefined(s(t.name,r,je)))},271:function(t,r,i,o,s,l){return i.factory.updateImportEqualsDeclaration(t,o(t.modifiers,r,sl),t.isTypeOnly,C.checkDefined(s(t.name,r,je)),C.checkDefined(s(t.moduleReference,r,iie)))},272:function(t,r,i,o,s,l){return i.factory.updateImportDeclaration(t,o(t.modifiers,r,sl),s(t.importClause,r,Ah),C.checkDefined(s(t.moduleSpecifier,r,bt)),s(t.attributes,r,mI))},300:function(t,r,i,o,s,l){return i.factory.updateImportAttributes(t,o(t.elements,r,Yae),t.multiLine)},301:function(t,r,i,o,s,l){return i.factory.updateImportAttribute(t,C.checkDefined(s(t.name,r,jre)),C.checkDefined(s(t.value,r,bt)))},273:function(t,r,i,o,s,l){return i.factory.updateImportClause(t,t.isTypeOnly,s(t.name,r,je),s(t.namedBindings,r,mj))},274:function(t,r,i,o,s,l){return i.factory.updateNamespaceImport(t,C.checkDefined(s(t.name,r,je)))},280:function(t,r,i,o,s,l){return i.factory.updateNamespaceExport(t,C.checkDefined(s(t.name,r,je)))},275:function(t,r,i,o,s,l){return i.factory.updateNamedImports(t,o(t.elements,r,np))},276:function(t,r,i,o,s,l){return i.factory.updateImportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,je),C.checkDefined(s(t.name,r,je)))},277:function(t,r,i,o,s,l){return i.factory.updateExportAssignment(t,o(t.modifiers,r,sl),C.checkDefined(s(t.expression,r,bt)))},278:function(t,r,i,o,s,l){return i.factory.updateExportDeclaration(t,o(t.modifiers,r,sl),t.isTypeOnly,s(t.exportClause,r,nj),s(t.moduleSpecifier,r,bt),s(t.attributes,r,mI))},279:function(t,r,i,o,s,l){return i.factory.updateNamedExports(t,o(t.elements,r,Ku))},281:function(t,r,i,o,s,l){return i.factory.updateExportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,je),C.checkDefined(s(t.name,r,je)))},283:function(t,r,i,o,s,l){return i.factory.updateExternalModuleReference(t,C.checkDefined(s(t.expression,r,bt)))},284:function(t,r,i,o,s,l){return i.factory.updateJsxElement(t,C.checkDefined(s(t.openingElement,r,W_)),o(t.children,r,AL),C.checkDefined(s(t.closingElement,r,l1)))},285:function(t,r,i,o,s,l){return i.factory.updateJsxSelfClosingElement(t,C.checkDefined(s(t.tagName,r,vN)),o(t.typeArguments,r,Ui),C.checkDefined(s(t.attributes,r,u1)))},286:function(t,r,i,o,s,l){return i.factory.updateJsxOpeningElement(t,C.checkDefined(s(t.tagName,r,vN)),o(t.typeArguments,r,Ui),C.checkDefined(s(t.attributes,r,u1)))},287:function(t,r,i,o,s,l){return i.factory.updateJsxClosingElement(t,C.checkDefined(s(t.tagName,r,vN)))},295:function(t,r,i,o,s,l){return i.factory.updateJsxNamespacedName(t,C.checkDefined(s(t.namespace,r,je)),C.checkDefined(s(t.name,r,je)))},288:function(t,r,i,o,s,l){return i.factory.updateJsxFragment(t,C.checkDefined(s(t.openingFragment,r,hI)),o(t.children,r,AL),C.checkDefined(s(t.closingFragment,r,$ae)))},291:function(t,r,i,o,s,l){return i.factory.updateJsxAttribute(t,C.checkDefined(s(t.name,r,dae)),s(t.initializer,r,oie))},292:function(t,r,i,o,s,l){return i.factory.updateJsxAttributes(t,o(t.properties,r,M4))},293:function(t,r,i,o,s,l){return i.factory.updateJsxSpreadAttribute(t,C.checkDefined(s(t.expression,r,bt)))},294:function(t,r,i,o,s,l){return i.factory.updateJsxExpression(t,s(t.expression,r,bt))},296:function(t,r,i,o,s,l){return i.factory.updateCaseClause(t,C.checkDefined(s(t.expression,r,bt)),o(t.statements,r,qi))},297:function(t,r,i,o,s,l){return i.factory.updateDefaultClause(t,o(t.statements,r,qi))},298:function(t,r,i,o,s,l){return i.factory.updateHeritageClause(t,o(t.types,r,Xv))},299:function(t,r,i,o,s,l){return i.factory.updateCatchClause(t,s(t.variableDeclaration,r,ki),C.checkDefined(s(t.block,r,Jo)))},303:function(t,r,i,o,s,l){return i.factory.updatePropertyAssignment(t,C.checkDefined(s(t.name,r,cc)),C.checkDefined(s(t.initializer,r,bt)))},304:function(t,r,i,o,s,l){return i.factory.updateShorthandPropertyAssignment(t,C.checkDefined(s(t.name,r,je)),s(t.objectAssignmentInitializer,r,bt))},305:function(t,r,i,o,s,l){return i.factory.updateSpreadAssignment(t,C.checkDefined(s(t.expression,r,bt)))},306:function(t,r,i,o,s,l){return i.factory.updateEnumMember(t,C.checkDefined(s(t.name,r,cc)),s(t.initializer,r,bt))},312:function(t,r,i,o,s,l){return i.factory.updateSourceFile(t,tJ(t.statements,r,i))},360:function(t,r,i,o,s,l){return i.factory.updatePartiallyEmittedExpression(t,C.checkDefined(s(t.expression,r,bt)))},361:function(t,r,i,o,s,l){return i.factory.updateCommaListExpression(t,o(t.elements,r,bt))}}}});function xle(e,t,r,i,o){var{enter:s,exit:l}=o.extendedDiagnostics?LG("Source Map","beforeSourcemap","afterSourcemap"):kG,u=[],p=[],h=new Map,f,b=[],A,I=[],R="",M=0,N=0,O=0,U=0,K=0,ee=0,V=!1,se=0,G=0,re=0,_e=0,ye=0,Q=0,Y=!1,oe=!1,he=!1;return{getSources:()=>u,addSource:Ae,setSourceContent:de,addName:ie,addMapping:qe,appendSourceMap:Ee,toJSON:be,toString:()=>JSON.stringify(be())};function Ae(it){s();const Ft=RA(i,it,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let gt=h.get(Ft);return gt===void 0&&(gt=p.length,p.push(Ft),u.push(it),h.set(Ft,gt)),l(),gt}function de(it,Ft){if(s(),Ft!==null){for(f||(f=[]);f.length<it;)f.push(null);f[it]=Ft}l()}function ie(it){s(),A||(A=new Map);let Ft=A.get(it);return Ft===void 0&&(Ft=b.length,b.push(it),A.set(it,Ft)),l(),Ft}function ge(it,Ft){return!Y||se!==it||G!==Ft}function Ne(it,Ft,gt){return it!==void 0&&Ft!==void 0&>!==void 0&&re===it&&(_e>Ft||_e===Ft&&ye>gt)}function qe(it,Ft,gt,Qe,It,on){C.assert(it>=se,"generatedLine cannot backtrack"),C.assert(Ft>=0,"generatedCharacter cannot be negative"),C.assert(gt===void 0||gt>=0,"sourceIndex cannot be negative"),C.assert(Qe===void 0||Qe>=0,"sourceLine cannot be negative"),C.assert(It===void 0||It>=0,"sourceCharacter cannot be negative"),s(),(ge(it,Ft)||Ne(gt,Qe,It))&&(Oe(),se=it,G=Ft,oe=!1,he=!1,Y=!0),gt!==void 0&&Qe!==void 0&&It!==void 0&&(re=gt,_e=Qe,ye=It,oe=!0,on!==void 0&&(Q=on,he=!0)),l()}function Ee(it,Ft,gt,Qe,It,on){C.assert(it>=se,"generatedLine cannot backtrack"),C.assert(Ft>=0,"generatedCharacter cannot be negative"),s();const $t=[];let Cn;const Hn=iJ(gt.mappings);for(const yn of Hn){if(on&&(yn.generatedLine>on.line||yn.generatedLine===on.line&&yn.generatedCharacter>on.character))break;if(It&&(yn.generatedLine<It.line||It.line===yn.generatedLine&&yn.generatedCharacter<It.character))continue;let tn,en,gi,ho;if(yn.sourceIndex!==void 0){if(tn=$t[yn.sourceIndex],tn===void 0){const Ir=gt.sources[yn.sourceIndex],Xt=gt.sourceRoot?Yr(gt.sourceRoot,Ir):Ir,nt=Yr(ri(Qe),Xt);$t[yn.sourceIndex]=tn=Ae(nt),gt.sourcesContent&&typeof gt.sourcesContent[yn.sourceIndex]=="string"&&de(tn,gt.sourcesContent[yn.sourceIndex])}en=yn.sourceLine,gi=yn.sourceCharacter,gt.names&&yn.nameIndex!==void 0&&(Cn||(Cn=[]),ho=Cn[yn.nameIndex],ho===void 0&&(Cn[yn.nameIndex]=ho=ie(gt.names[yn.nameIndex])))}const Gi=yn.generatedLine-(It?It.line:0),xo=Gi+it,Qn=It&&It.line===yn.generatedLine?yn.generatedCharacter-It.character:yn.generatedCharacter,Di=Gi===0?Qn+Ft:Qn;qe(xo,Di,tn,en,gi,ho)}l()}function Me(){return!V||M!==se||N!==G||O!==re||U!==_e||K!==ye||ee!==Q}function Ce(it){I.push(it),I.length>=1024&&At()}function Oe(){if(!(!Y||!Me())){if(s(),M<se){do Ce(59),M++;while(M<se);N=0}else C.assertEqual(M,se,"generatedLine cannot backtrack"),V&&Ce(44);Ue(G-N),N=G,oe&&(Ue(re-O),O=re,Ue(_e-U),U=_e,Ue(ye-K),K=ye,he&&(Ue(Q-ee),ee=Q)),V=!0,l()}}function At(){I.length>0&&(R+=String.fromCharCode.apply(void 0,I),I.length=0)}function be(){return Oe(),At(),{version:3,file:t,sourceRoot:r,sources:p,names:b,mappings:R,sourcesContent:f}}function Ue(it){it<0?it=(-it<<1)+1:it=it<<1;do{let Ft=it&31;it=it>>5,it>0&&(Ft=Ft|32),Ce($je(Ft))}while(it>0)}}function nJ(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Rle(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=e7.exec(r);if(i)return i[1].trimEnd();if(!r.match(t7))break}}function Yje(e){return typeof e=="string"||e===null}function Dle(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Ao(e.sources)&&Yn(e.sources,No)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Ao(e.sourcesContent)&&Yn(e.sourcesContent,Yje))&&(e.names===void 0||e.names===null||Ao(e.names)&&Yn(e.names,No))}function rJ(e){try{const t=JSON.parse(e);if(Dle(t))return t}catch(t){}}function iJ(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=0,p=0,h;return{get pos(){return r},get error(){return h},get state(){return f(!0,!0)},next(){for(;!t&&r<e.length;){const O=e.charCodeAt(r);if(O===59){i++,o=0,r++;continue}if(O===44){r++;continue}let U=!1,K=!1;if(o+=N(),R())return b();if(o<0)return I("Invalid generatedCharacter found");if(!M()){if(U=!0,s+=N(),R())return b();if(s<0)return I("Invalid sourceIndex found");if(M())return I("Unsupported Format: No entries after sourceIndex");if(l+=N(),R())return b();if(l<0)return I("Invalid sourceLine found");if(M())return I("Unsupported Format: No entries after sourceLine");if(u+=N(),R())return b();if(u<0)return I("Invalid sourceCharacter found");if(!M()){if(K=!0,p+=N(),R())return b();if(p<0)return I("Invalid nameIndex found");if(!M())return I("Unsupported Error Format: Entries after nameIndex")}}return{value:f(U,K),done:t}}return b()},[Symbol.iterator](){return this}};function f(O,U){return{generatedLine:i,generatedCharacter:o,sourceIndex:O?s:void 0,sourceLine:O?l:void 0,sourceCharacter:O?u:void 0,nameIndex:U?p:void 0}}function b(){return t=!0,{value:void 0,done:!0}}function A(O){h===void 0&&(h=O)}function I(O){return A(O),b()}function R(){return h!==void 0}function M(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function N(){let O=!0,U=0,K=0;for(;O;r++){if(r>=e.length)return A("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const ee=Qje(e.charCodeAt(r));if(ee===-1)return A("Invalid character in VLQ"),-1;O=(ee&32)!==0,K=K|(ee&31)<<U,U+=5}return(K&1)===0?K=K>>1:(K=K>>1,K=-K),K}}function Vxe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function Cle(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function $je(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:C.fail("".concat(e,": not a base64 value"))}function Qje(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function jxe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function Uxe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function Zje(e,t){return C.assert(e.sourceIndex===t.sourceIndex),nl(e.sourcePosition,t.sourcePosition)}function eUe(e,t){return nl(e.generatedPosition,t.generatedPosition)}function tUe(e){return e.sourcePosition}function nUe(e){return e.generatedPosition}function Nle(e,t,r){const i=ri(r),o=t.sourceRoot?yo(t.sourceRoot,i):i,s=yo(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(U=>yo(U,o)),p=new Map(u.map((U,K)=>[e.getCanonicalFileName(U),K]));let h,f,b;return{getSourcePosition:O,getGeneratedPosition:N};function A(U){const K=l!==void 0?tL(l,U.generatedLine,U.generatedCharacter,!0):-1;let ee,V;if(Cle(U)){const se=e.getSourceFileLike(u[U.sourceIndex]);ee=t.sources[U.sourceIndex],V=se!==void 0?tL(se,U.sourceLine,U.sourceCharacter,!0):-1}return{generatedPosition:K,source:ee,sourceIndex:U.sourceIndex,sourcePosition:V,nameIndex:U.nameIndex}}function I(){if(h===void 0){const U=iJ(t.mappings),K=Wo(U,A);U.error!==void 0?(e.log&&e.log("Encountered error while decoding sourcemap: ".concat(U.error)),h=et):h=K}return h}function R(U){if(b===void 0){const K=[];for(const ee of I()){if(!jxe(ee))continue;let V=K[ee.sourceIndex];V||(K[ee.sourceIndex]=V=[]),V.push(ee)}b=K.map(ee=>KC(ee,Zje,Uxe))}return b[U]}function M(){if(f===void 0){const U=[];for(const K of I())U.push(K);f=KC(U,eUe,Uxe)}return f}function N(U){const K=p.get(e.getCanonicalFileName(U.fileName));if(K===void 0)return U;const ee=R(K);if(!St(ee))return U;let V=bA(ee,U.pos,tUe,nl);V<0&&(V=~V);const se=ee[V];return se===void 0||se.sourceIndex!==K?U:{fileName:s,pos:se.generatedPosition}}function O(U){const K=M();if(!St(K))return U;let ee=bA(K,U.pos,nUe,nl);ee<0&&(ee=~ee);const V=K[ee];return V===void 0||!jxe(V)?U:{fileName:u[V.sourceIndex],pos:V.sourcePosition}}}var oJ,e7,t7,n7,rUe=T({"src/compiler/sourcemap.ts"(){ta(),fS(),oJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,e7=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,t7=/^\s*(\/\/[@#] .*)?$/,n7={getSourcePosition:tl,getGeneratedPosition:tl}}});function Wu(e){return e=Ml(e),e?cs(e):0}function iUe(e){return!e||!Kg(e)?!1:St(e.elements,Hxe)}function Hxe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function wm(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(Ot(o.sourceFiles,t),o.prepends)}}function Ple(e){return!!ER(e)}function r7(e){if(ER(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!Kg(t))return!1;let r=0;for(const i of t.elements)Hxe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&WA(e)}function aJ(e){return!r7(e)&&(WA(e)||!!e.importClause&&Kg(e.importClause.namedBindings)&&iUe(e.importClause.namedBindings))}function sJ(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new dJ,l=[],u=new Map;let p,h=!1,f,b=!1,A=!1,I=!1;for(const N of t.statements)switch(N.kind){case 272:o.push(N),!A&&r7(N)&&(A=!0),!I&&aJ(N)&&(I=!0);break;case 271:N.moduleReference.kind===283&&o.push(N);break;case 278:if(N.moduleSpecifier)if(!N.exportClause)o.push(N),b=!0;else if(o.push(N),Pf(N.exportClause))M(N);else{const O=N.exportClause.name;u.get(Tr(O))||(zP(l,Wu(N),O),u.set(Tr(O),!0),p=Rn(p,O)),A=!0}else M(N);break;case 277:N.isExportEquals&&!f&&(f=N);break;case 243:if($r(N,32))for(const O of N.declarationList.declarations)p=qxe(O,u,p,l);break;case 262:if($r(N,32))if($r(N,2048))h||(zP(l,Wu(N),e.factory.getDeclarationName(N)),h=!0);else{const O=N.name;u.get(Tr(O))||(zP(l,Wu(N),O),u.set(Tr(O),!0),p=Rn(p,O))}break;case 263:if($r(N,32))if($r(N,2048))h||(zP(l,Wu(N),e.factory.getDeclarationName(N)),h=!0);else{const O=N.name;O&&!u.get(Tr(O))&&(zP(l,Wu(N),O),u.set(Tr(O),!0),p=Rn(p,O))}break}const R=QH(e.factory,e.getEmitHelperFactory(),t,i,b,A,I);return R&&o.unshift(R),{externalImports:o,exportSpecifiers:s,exportEquals:f,hasExportStarsToExportValues:b,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:R};function M(N){for(const O of oa(N.exportClause,Pf).elements)if(!u.get(Tr(O.name))){const U=O.propertyName||O.name;N.moduleSpecifier||s.add(U,O);const K=r.getReferencedImportDeclaration(U)||r.getReferencedValueDeclaration(U);K&&zP(l,Wu(K),O.name),u.set(Tr(O.name),!0),p=Rn(p,O.name)}}}function qxe(e,t,r,i){if(Zo(e.name))for(const o of e.name.elements)Hc(o)||(r=qxe(o,t,r,i));else if(!al(e.name)){const o=Tr(e.name);t.get(o)||(t.set(o,!0),r=Rn(r,e.name),Xg(e.name)&&zP(i,Wu(e),e.name))}return r}function zP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function g1(e){return ds(e)||e.kind===9||Bd(e.kind)||je(e)}function Ch(e){return!je(e)&&g1(e)}function BP(e){return e>=65&&e<=79}function GP(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 i7(e){if(!nu(e))return;const t=vs(e.expression);return IS(t)?t:void 0}function Jxe(e,t,r){for(let i=t;i<e.length;i+=1){const o=e[i];if(i7(o))return r.unshift(i),!0;if(qS(o)&&Jxe(o.tryBlock.statements,0,r))return r.unshift(i),!0}return!1}function o7(e,t){const r=[];return Jxe(e,t,r),r}function lJ(e,t,r){return rr(e.members,i=>aUe(i,t,r))}function oUe(e){return sUe(e)||Rl(e)}function a7(e){return rr(e.members,oUe)}function aUe(e,t,r){return Uo(e)&&(!!e.initializer||!t)&&vc(e)===r}function sUe(e){return Uo(e)&&vc(e)}function ww(e){return e.kind===172&&e.initializer!==void 0}function Mle(e){return!aa(e)&&(MA(e)||Wd(e))&&Ji(e.name)}function Lle(e){let t;if(e){const r=e.parameters,i=r.length>0&&XE(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;l<s;l++){const u=r[l+o];(t||If(u))&&(t||(t=new Array(s)),t[l]=Ly(u))}}return t}function cJ(e){const t=Ly(e),r=Lle(cg(e));if(!(!St(t)&&!St(r)))return{decorators:t,parameters:r}}function s7(e,t,r){switch(e.kind){case 177:case 178:return r?lUe(e,t):Kxe(e);case 174:return Kxe(e);case 172:return cUe(e);default:return}}function lUe(e,t){if(!e.body)return;const{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}=wS(t.members,e),l=If(r)?r:i&&If(i)?i:void 0;if(!l||e!==l)return;const u=Ly(l),p=Lle(s);if(!(!St(u)&&!St(p)))return{decorators:u,parameters:p,getDecorators:o&&Ly(o),setDecorators:s&&Ly(s)}}function Kxe(e){if(!e.body)return;const t=Ly(e),r=Lle(e);if(!(!St(t)&&!St(r)))return{decorators:t,parameters:r}}function cUe(e){const t=Ly(e);if(St(t))return{decorators:t}}function kle(e,t){for(;e;){const r=t(e);if(r!==void 0)return r;e=e.previous}}function wle(e){return{data:e}}function uJ(e,t){var r,i;return gS(t)?(r=e==null?void 0:e.generatedIdentifiers)==null?void 0:r.get(lw(t)):(i=e==null?void 0:e.identifiers)==null?void 0:i.get(t.escapedText)}function eT(e,t,r){var i,o;gS(t)?((i=e.generatedIdentifiers)!=null||(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(lw(t),r)):((o=e.identifiers)!=null||(e.identifiers=new Map),e.identifiers.set(t.escapedText,r))}function Ole(e,t){return kle(e,r=>uJ(r.privateEnv,t))}function Wle(e){return!e.initializer&&je(e.name)}function Ow(e){return Yn(e,Wle)}var II,dJ,uUe=T({"src/compiler/transformers/utilities.ts"(){ta(),II=class UC{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(UC.toKey(t))}get(t){return this._map.get(UC.toKey(t))}set(t,r){return this._map.set(UC.toKey(t),r),this}delete(t){var i;var r;return(i=(r=this._map)==null?void 0:r.delete(UC.toKey(t)))!=null?i:!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(gS(t)||al(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=lw(t),o=tg(i)&&i!==t?UC.toKey(i):"(generated@".concat(cs(i),")");return P0(!1,r.prefix,o,r.suffix,UC.toKey)}else{const i="(auto@".concat(r.id,")");return P0(!1,r.prefix,i,r.suffix,UC.toKey)}}return Ji(t)?Tr(t).slice(1):Tr(t)}},dJ=class extends II{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){const r=this.get(e);r&&(TA(r,t),r.length||this.delete(e))}}}});function tT(e,t,r,i,o,s){let l=e,u;if(Uv(e))for(u=e.right;Aoe(e.left)||IU(e.left);)if(Uv(u))l=e=u,u=e.right;else return C.checkDefined(rt(u,t,bt));let p;const h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:f,emitBindingOrAssignment:b,createArrayBindingOrAssignmentPattern:A=>vUe(r.factory,A),createObjectBindingOrAssignmentPattern:A=>bUe(r.factory,A),createArrayBindingOrAssignmentElement:SUe,visitor:t};if(u&&(u=rt(u,t,bt),C.assert(u),je(u)&&Fle(e,u.escapedText)||zle(e)?u=xI(h,u,!1,l):o?u=xI(h,u,!0,l):Ys(e)&&(l=u)),VP(h,e,u,l,Uv(e)),u&&o){if(!St(p))return u;p.push(u)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function f(A){p=Rn(p,A)}function b(A,I,R,M){C.assertNode(A,s?je:bt);const N=s?s(A,I,R):ut(r.factory.createAssignment(C.checkDefined(rt(A,t,bt)),I),R);N.original=M,f(N)}}function Fle(e,t){const r=rb(e);return vL(r)?dUe(r,t):je(r)?r.escapedText===t:!1}function dUe(e,t){const r=iD(e);for(const i of r)if(Fle(i,t))return!0;return!1}function zle(e){const t=vF(e);if(t&&rs(t)&&!OE(t.expression))return!0;const r=rb(e);return!!r&&vL(r)&&pUe(r)}function pUe(e){return!!He(iD(e),zle)}function v1(e,t,r,i,o,s=!1,l){let u;const p=[],h=[],f={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:b,emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:I=>gUe(r.factory,I),createObjectBindingOrAssignmentPattern:I=>yUe(r.factory,I),createArrayBindingOrAssignmentElement:I=>EUe(r.factory,I),visitor:t};if(ki(e)){let I=aw(e);I&&(je(I)&&Fle(e,I.escapedText)||zle(e))&&(I=xI(f,C.checkDefined(rt(I,f.visitor,bt)),!1,I),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,I))}if(VP(f,e,o,e,l),u){const I=r.factory.createTempVariable(void 0);if(s){const R=r.factory.inlineExpressions(u);u=void 0,A(I,R,void 0,void 0)}else{r.hoistVariableDeclaration(I);const R=es(p);R.pendingExpressions=Rn(R.pendingExpressions,r.factory.createAssignment(I,R.value)),Ur(R.pendingExpressions,u),R.value=I}}for(const{pendingExpressions:I,name:R,value:M,location:N,original:O}of p){const U=r.factory.createVariableDeclaration(R,void 0,void 0,I?r.factory.inlineExpressions(Rn(I,M)):M);U.original=O,ut(U,N),h.push(U)}return h;function b(I){u=Rn(u,I)}function A(I,R,M,N){C.assertNode(I,vS),u&&(R=r.factory.inlineExpressions(Rn(u,R)),u=void 0),p.push({pendingExpressions:u,name:I,value:R,location:M,original:N})}}function VP(e,t,r,i,o){const s=rb(t);if(!o){const l=rt(aw(t),e.visitor,bt);l?r?(r=_Ue(e,r,l,i),!Ch(l)&&vL(s)&&(r=xI(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}cj(s)?fUe(e,t,s,r,i):uj(s)?mUe(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function fUe(e,t,r,i,o){const s=iD(r),l=s.length;if(l!==1){const h=!gL(t)||l!==0;i=xI(e,i,h,o)}let u,p;for(let h=0;h<l;h++){const f=s[h];if(gF(f)){if(h===l-1){u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const b=e.context.getEmitHelperFactory().createRestHelper(i,s,p,r);VP(e,f,b,f)}}else{const b=ZH(f);if(e.level>=1&&!(f.transformFlags&98304)&&!(rb(f).transformFlags&98304)&&!rs(b))u=Rn(u,rt(f,e.visitor,qre));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const A=hUe(e,i,b);rs(b)&&(p=Rn(p,A.argumentExpression)),VP(e,f,A,f)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function mUe(e,t,r,i,o){const s=iD(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=xI(e,ut(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&gF(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Yn(s,Hc)){const h=!gL(t)||l!==0;i=xI(e,i,h,o)}let u,p;for(let h=0;h<l;h++){const f=s[h];if(e.level>=1)if(f.transformFlags&65536||e.hasTransformedPriorElement&&!Xxe(f)){e.hasTransformedPriorElement=!0;const b=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(b),p=Rn(p,[b,f]),u=Rn(u,e.createArrayBindingOrAssignmentElement(b))}else u=Rn(u,f);else{if(Hc(f))continue;if(gF(f)){if(h===l-1){const b=e.context.factory.createArraySliceCall(i,h);VP(e,f,b,f)}}else{const b=e.context.factory.createElementAccessExpression(i,h);VP(e,f,b,f)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),p)for(const[h,f]of p)VP(e,f,h,f)}function Xxe(e){const t=rb(e);if(!t||Hc(t))return!0;const r=vF(e);if(r&&!C_(r))return!1;const i=aw(e);return i&&!Ch(i)?!1:vL(t)?Yn(iD(t),Xxe):je(t)}function _Ue(e,t,r,i){return t=xI(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function hUe(e,t,r){const{factory:i}=e.context;if(rs(r)){const o=xI(e,C.checkDefined(rt(r.expression,e.visitor,bt)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(nf(r)){const o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{const o=e.context.factory.createIdentifier(Tr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function xI(e,t,r,i){if(je(t)&&r)return t;{const o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(ut(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function gUe(e,t){return C.assertEachNode(t,C4),e.createArrayBindingPattern(t)}function vUe(e,t){return C.assertEachNode(t,bL),e.createArrayLiteralExpression(Ot(t,e.converters.convertToArrayAssignmentElement))}function yUe(e,t){return C.assertEachNode(t,ns),e.createObjectBindingPattern(t)}function bUe(e,t){return C.assertEachNode(t,yL),e.createObjectLiteralExpression(Ot(t,e.converters.convertToObjectAssignmentElement))}function EUe(e,t){return e.createBindingElement(void 0,void 0,t)}function SUe(e){return e}var pJ,TUe=T({"src/compiler/transformers/destructuring.ts"(){ta(),pJ=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(pJ||{})}});function Ble(e,t,r=e.createThis()){const i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return Ou(l).classThis=t,l}function jP(e){var t;if(!Rl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return nu(r)&&wc(r.expression,!0)&&je(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function fJ(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&St(e.members,jP)}function Gle(e,t,r,i){if(fJ(t))return t;const o=Ble(e,r,i);t.name&&Pa(o.body.statements[0],t.name);const s=e.createNodeArray([o,...t.members]);ut(s,t.members);const l=Rc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s);return Ou(l).classThis=r,l}var AUe=T({"src/compiler/transformers/classThis.ts"(){ta()}});function UP(e,t,r){const i=Ml(ec(r));return(Rc(i)||xc(i))&&!i.name&&$r(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function Yxe(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(C_(t)||Ji(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(C_(t.expression)&&!je(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);const s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),u=i.updateComputedPropertyName(t,l);return{assignedName:o,name:u}}function Vle(e,t,r=e.factory.createThis()){const{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),u=i.createClassStaticBlockDeclaration(l);return Ou(u).assignedName=t,u}function RI(e){var t;if(!Rl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return nu(r)&&mP(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function l7(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&St(e.members,RI)}function mJ(e){return!!e.name||l7(e)}function c7(e,t,r,i){if(l7(t))return t;const{factory:o}=e,s=Vle(e,r,i);t.name&&Pa(s.body.statements[0],t.name);const l=Br(t.members,jP)+1,u=t.members.slice(0,l),p=t.members.slice(l),h=o.createNodeArray([...u,s,...p]);return ut(h,t.members),t=Rc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h),Ou(t).assignedName=r,t}function _D(e,t,r,i){if(i&&Ma(r)&&Gj(r))return t;const{factory:o}=e,s=ec(t),l=tu(s)?oa(c7(e,s,r),tu):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function IUe(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=Yxe(e,t.name,i),u=_D(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function xUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):UP(o,t.name,t.objectAssignmentInitializer),l=_D(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function RUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):UP(o,t.name,t.initializer),l=_D(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function DUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):UP(o,t.name,t.initializer),l=_D(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function CUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):UP(o,t.name,t.initializer),l=_D(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function NUe(e,t,r,i){var p;const{factory:o}=e,{assignedName:s,name:l}=Yxe(e,t.name,i),u=_D(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,(p=t.questionToken)!=null?p:t.exclamationToken,t.type,u)}function PUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):UP(o,t.left,t.right),l=_D(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function MUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=_D(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function Ap(e,t,r,i){switch(t.kind){case 303:return IUe(e,t,r,i);case 304:return xUe(e,t,r,i);case 260:return RUe(e,t,r,i);case 169:return DUe(e,t,r,i);case 208:return CUe(e,t,r,i);case 172:return NUe(e,t,r,i);case 226:return PUe(e,t,r,i);case 277:return MUe(e,t,r,i)}}var LUe=T({"src/compiler/transformers/namedEvaluation.ts"(){ta()}});function _J(e,t,r,i,o,s){const l=rt(t.tag,r,bt);C.assert(l);const u=[void 0],p=[],h=[],f=t.template;if(s===0&&!pU(f))return xn(t,r,e);const{factory:b}=e;if(rI(f))p.push(jle(b,f)),h.push(Ule(b,f,i));else{p.push(jle(b,f.head)),h.push(Ule(b,f.head,i));for(const I of f.templateSpans)p.push(jle(b,I.literal)),h.push(Ule(b,I.literal,i)),u.push(C.checkDefined(rt(I.expression,r,bt)))}const A=e.getEmitHelperFactory().createTemplateObjectHelper(b.createArrayLiteralExpression(p),b.createArrayLiteralExpression(h));if(dc(i)){const I=b.createUniqueName("templateObject");o(I),u[0]=b.createLogicalOr(I,b.createAssignment(I,A))}else u[0]=A;return b.createCallExpression(l,void 0,u)}function jle(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function Ule(e,t,r){let i=t.rawText;if(i===void 0){C.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=FE(r,t);const o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,"\n"),ut(e.createStringLiteral(i),t)}var hJ,kUe=T({"src/compiler/transformers/taggedTemplate.ts"(){ta(),hJ=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(hJ||{})}});function Hle(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),p=e.getCompilerOptions(),h=ls(p),f=wu(p),b=!!p.experimentalDecorators,A=p.emitDecoratorMetadata?Jle(e):void 0,I=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=pc,e.onSubstituteNode=Cl,e.enableSubstitution(211),e.enableSubstitution(212);let M,N,O,U,K,ee,V,se;return G;function G(Z){return Z.kind===313?re(Z):_e(Z)}function re(Z){return t.createBundle(Z.sourceFiles.map(_e),Hi(Z.prepends,we=>we.kind===315?hH(we,"js"):we))}function _e(Z){if(Z.isDeclarationFile)return Z;M=Z;const we=ye(Z,it);return Jg(we,e.readEmitHelpers()),M=void 0,we}function ye(Z,we){const yt=U,pn=K,gr=ee;Q(Z);const br=we(Z);return U!==yt&&(K=pn),U=yt,ee=gr,br}function Q(Z){switch(Z.kind){case 312:case 269:case 268:case 241:U=Z,K=void 0;break;case 263:case 262:if($r(Z,128))break;Z.name?q(Z):C.assert(Z.kind===263||$r(Z,2048));break}}function Y(Z){return ye(Z,oe)}function oe(Z){return Z.transformFlags&1?Ue(Z):Z}function he(Z){return ye(Z,Ae)}function Ae(Z){switch(Z.kind){case 272:case 271:case 277:case 278:return ie(Z);default:return oe(Z)}}function de(Z){const we=Do(Z);if(we===Z||wl(Z))return!1;if(!we||we.kind!==Z.kind)return!0;switch(Z.kind){case 272:if(C.assertNode(we,Oc),Z.importClause!==we.importClause||Z.attributes!==we.attributes)return!0;break;case 271:if(C.assertNode(we,ru),Z.name!==we.name||Z.isTypeOnly!==we.isTypeOnly||Z.moduleReference!==we.moduleReference&&(Zd(Z.moduleReference)||Zd(we.moduleReference)))return!0;break;case 278:if(C.assertNode(we,Zl),Z.exportClause!==we.exportClause||Z.attributes!==we.attributes)return!0;break}return!1}function ie(Z){if(de(Z))return Z.transformFlags&1?xn(Z,Y,e):Z;switch(Z.kind){case 272:return En(Z);case 271:return Ja(Z);case 277:return si(Z);case 278:return Kn(Z);default:C.fail("Unhandled ellided statement")}}function ge(Z){return ye(Z,Ne)}function Ne(Z){if(!(Z.kind===278||Z.kind===272||Z.kind===273||Z.kind===271&&Z.moduleReference.kind===283))return Z.transformFlags&1||$r(Z,32)?Ue(Z):Z}function qe(Z){return we=>ye(we,yt=>Ee(yt,Z))}function Ee(Z,we){switch(Z.kind){case 176:return Dn(Z);case 172:return Bt(Z,we);case 177:return Fa(Z,we);case 178:return An(Z,we);case 174:return Ro(Z,we);case 175:return xn(Z,Y,e);case 240:return Z;case 181:return;default:return C.failBadSyntaxKind(Z)}}function Me(Z){return we=>ye(we,yt=>Ce(yt,Z))}function Ce(Z,we){switch(Z.kind){case 303:case 304:case 305:return Y(Z);case 177:return Fa(Z,we);case 178:return An(Z,we);case 174:return Ro(Z,we);default:return C.failBadSyntaxKind(Z)}}function Oe(Z){return Su(Z)?void 0:Y(Z)}function At(Z){return xa(Z)?void 0:Y(Z)}function be(Z){if(!Su(Z)&&!(UA(Z.kind)&28895)&&!(N&&Z.kind===95))return Z}function Ue(Z){if(qi(Z)&&$r(Z,128))return t.createNotEmittedStatement(Z);switch(Z.kind){case 95:case 90:return N?void 0:Z;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(Z);case 270:return;case 264:return t.createNotEmittedStatement(Z);case 263:return on(Z);case 231:return $t(Z);case 298:return Ir(Z);case 233:return Xt(Z);case 210:return Ft(Z);case 176:case 172:case 174:case 177:case 178:case 175:return C.fail("Class and object literal elements must be visited with their respective visitors");case 262:return wn(Z);case 218:return Je(Z);case 219:return mt(Z);case 169:return pt(Z);case 217:return dt(Z);case 216:case 234:return j(Z);case 238:return Dt(Z);case 213:return Ye(Z);case 214:return _t(Z);case 215:return Gt(Z);case 235:return ot(Z);case 266:return H(Z);case 243:return Pt(Z);case 260:return Fe(Z);case 267:return Tt(Z);case 271:return Ja(Z);case 285:return gn(Z);case 286:return hn(Z);default:return xn(Z,Y,e)}}function it(Z){const we=fd(p,"alwaysStrict")&&!(dc(Z)&&f>=5)&&!rm(Z);return t.updateSourceFile(Z,tJ(Z.statements,he,e,0,we))}function Ft(Z){return t.updateObjectLiteralExpression(Z,Bn(Z.properties,Me(Z),Bg))}function gt(Z){let we=0;St(lJ(Z,!0,!0))&&(we|=1);const yt=D_(Z);return yt&&ec(yt.expression).kind!==106&&(we|=64),Bv(b,Z)&&(we|=2),IN(b,Z)&&(we|=4),Qt(Z)?we|=8:to(Z)?we|=32:Wl(Z)&&(we|=16),we}function Qe(Z){return!!(Z.transformFlags&8192)}function It(Z){return If(Z)||St(Z.typeParameters)||St(Z.heritageClauses,Qe)||St(Z.members,Qe)}function on(Z){var Nl;const we=gt(Z),yt=h<=1&&!!(we&7);if(!It(Z)&&!Bv(b,Z)&&!Qt(Z))return t.updateClassDeclaration(Z,Bn(Z.modifiers,be,xa),Z.name,void 0,Bn(Z.heritageClauses,Y,of),Bn(Z.members,qe(Z),Zc));yt&&e.startLexicalEnvironment();const pn=yt||we&8;let gr=pn?Bn(Z.modifiers,At,sl):Bn(Z.modifiers,Y,sl);we&2&&(gr=Hn(gr,Z));const qr=pn&&!Z.name||we&4||we&1?(Nl=Z.name)!=null?Nl:t.getGeneratedNameForNode(Z):Z.name,Ri=t.updateClassDeclaration(Z,gr,qr,void 0,Bn(Z.heritageClauses,Y,of),Cn(Z));let hr=qa(Z);we&1&&(hr|=64),pr(Ri,hr);let Ho;if(yt){const zc=[Ri],Sl=RU(wa(M.text,Z.members.end),20),Xl=t.getInternalName(Z),Is=t.createPartiallyEmittedExpression(Xl);zR(Is,Sl.end),pr(Is,3072);const nc=t.createReturnStatement(Is);tP(nc,Sl.pos),pr(nc,3840),zc.push(nc),rg(zc,e.endLexicalEnvironment());const op=t.createImmediatelyInvokedArrowFunction(zc);zk(op,1);const ap=t.createVariableDeclaration(t.getLocalName(Z,!1,!1),void 0,void 0,op);Pr(ap,Z);const Jc=t.createVariableStatement(void 0,t.createVariableDeclarationList([ap],1));Pr(Jc,Z),uc(Jc,Z),Pa(Jc,Ug(Z)),Xu(Jc),Ho=Jc}else Ho=Ri;if(pn){if(we&8)return[Ho,za(Z)];if(we&32)return[Ho,t.createExportDefault(t.getLocalName(Z,!1,!0))];if(we&16)return[Ho,t.createExternalModuleExport(t.getDeclarationName(Z,!1,!0))]}return Ho}function $t(Z){let we=Bn(Z.modifiers,At,sl);return Bv(b,Z)&&(we=Hn(we,Z)),t.updateClassExpression(Z,we,Z.name,void 0,Bn(Z.heritageClauses,Y,of),Cn(Z))}function Cn(Z){const we=Bn(Z.members,qe(Z),Zc);let yt;const pn=cg(Z),gr=pn&&rr(pn.parameters,br=>hp(br,pn));if(gr)for(const br of gr){const qr=t.createPropertyDeclaration(void 0,br.name,void 0,void 0,void 0);Pr(qr,br),yt=Rn(yt,qr)}return yt?(yt=Ur(yt,we),ut(t.createNodeArray(yt),Z.members)):we}function Hn(Z,we){const yt=tn(we,we);if(St(yt)){const pn=[];Ur(pn,j6(Z,sw)),Ur(pn,rr(Z,Su)),Ur(pn,yt),Ur(pn,rr(Une(Z,sw),xa)),Z=ut(t.createNodeArray(pn),Z)}return Z}function yn(Z,we,yt){if(ui(yt)&&Bj(b,we,yt)){const pn=tn(we,yt);if(St(pn)){const gr=[];Ur(gr,rr(Z,Su)),Ur(gr,pn),Ur(gr,rr(Z,xa)),Z=ut(t.createNodeArray(gr),Z)}}return Z}function tn(Z,we){if(b)return $xe?gi(Z,we):en(Z,we)}function en(Z,we){if(A){let yt;if(ho(Z)){const pn=r().createMetadataHelper("design:type",A.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z));yt=Rn(yt,t.createDecorator(pn))}if(xo(Z)){const pn=r().createMetadataHelper("design:paramtypes",A.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},Z,we));yt=Rn(yt,t.createDecorator(pn))}if(Gi(Z)){const pn=r().createMetadataHelper("design:returntype",A.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z));yt=Rn(yt,t.createDecorator(pn))}return yt}}function gi(Z,we){if(A){let yt;if(ho(Z)){const pn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z)));yt=Rn(yt,pn)}if(xo(Z)){const pn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},Z,we)));yt=Rn(yt,pn)}if(Gi(Z)){const pn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z)));yt=Rn(yt,pn)}if(yt){const pn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(yt,!0));return[t.createDecorator(pn)]}}}function ho(Z){const we=Z.kind;return we===174||we===177||we===178||we===172}function Gi(Z){return Z.kind===174}function xo(Z){switch(Z.kind){case 263:case 231:return cg(Z)!==void 0;case 174:case 177:case 178:return!0}return!1}function Qn(Z,we){const yt=Z.name;return Ji(yt)?t.createIdentifier(""):rs(yt)?yt.expression:je(yt)?t.createStringLiteral(Tr(yt)):t.cloneNode(yt)}function Di(Z){const we=Z.name;if(rs(we)&&(!vc(Z)&&ee||If(Z)&&b)){const yt=rt(we.expression,Y,bt);C.assert(yt);const pn=Rm(yt);if(!Ch(pn)){const gr=t.getGeneratedNameForNode(we);return l(gr),t.updateComputedPropertyName(we,t.createAssignment(gr,yt))}}return C.checkDefined(rt(we,Y,cc))}function Ir(Z){if(Z.token!==119)return xn(Z,Y,e)}function Xt(Z){return t.updateExpressionWithTypeArguments(Z,C.checkDefined(rt(Z.expression,Y,ep)),void 0)}function nt(Z){return!Gl(Z.body)}function Bt(Z,we){const yt=Z.flags&33554432||$r(Z,64);if(yt&&!(b&&If(Z)))return;let pn=ui(we)?yt?Bn(Z.modifiers,At,sl):Bn(Z.modifiers,Y,sl):Bn(Z.modifiers,Oe,sl);return pn=yn(pn,Z,we),yt?t.updatePropertyDeclaration(Z,To(pn,t.createModifiersFromModifierFlags(128)),C.checkDefined(rt(Z.name,Y,cc)),void 0,void 0,void 0):t.updatePropertyDeclaration(Z,pn,Di(Z),void 0,void 0,rt(Z.initializer,Y,bt))}function Dn(Z){if(nt(Z))return t.updateConstructorDeclaration(Z,void 0,Dl(Z.parameters,Y,e),yi(Z.body,Z))}function oi(Z,we,yt,pn,gr,br){const qr=pn[gr],Ri=we[qr];if(Ur(Z,Bn(we,Y,qi,yt,qr-yt)),qS(Ri)){const hr=[];oi(hr,Ri.tryBlock.statements,0,pn,gr+1,br);const Ho=t.createNodeArray(hr);ut(Ho,Ri.tryBlock.statements),Z.push(t.updateTryStatement(Ri,t.updateBlock(Ri.tryBlock,hr),rt(Ri.catchClause,Y,d1),rt(Ri.finallyBlock,Y,Jo)))}else Ur(Z,Bn(we,Y,qi,qr,1)),Ur(Z,br);Ur(Z,Bn(we,Y,qi,qr+1))}function yi(Z,we){const yt=we&&rr(we.parameters,hr=>hp(hr,we));if(!St(yt))return lf(Z,Y,e);let pn=[];o();const gr=t.copyPrologue(Z.statements,pn,!1,Y),br=o7(Z.statements,gr),qr=Hi(yt,eo);br.length?oi(pn,Z.statements,gr,br,0,qr):(Ur(pn,qr),Ur(pn,Bn(Z.statements,Y,qi,gr))),pn=t.mergeLexicalEnvironment(pn,s());const Ri=t.createBlock(ut(t.createNodeArray(pn),Z.statements),!0);return ut(Ri,Z),Pr(Ri,Z),Ri}function eo(Z){const we=Z.name;if(!je(we))return;const yt=Ya(ut(t.cloneNode(we),we),we.parent);pr(yt,3168);const pn=Ya(ut(t.cloneNode(we),we),we.parent);return pr(pn,3072),Xu(Fk(ut(Pr(t.createExpressionStatement(t.createAssignment(ut(t.createPropertyAccessExpression(t.createThis(),yt),Z.name),pn)),Z),T0(Z,-1))))}function Ro(Z,we){if(!(Z.transformFlags&1))return Z;if(!nt(Z))return;let yt=ui(we)?Bn(Z.modifiers,Y,sl):Bn(Z.modifiers,Oe,sl);return yt=yn(yt,Z,we),t.updateMethodDeclaration(Z,yt,Z.asteriskToken,Di(Z),void 0,void 0,Dl(Z.parameters,Y,e),void 0,lf(Z.body,Y,e))}function fa(Z){return!(Gl(Z.body)&&$r(Z,64))}function Fa(Z,we){if(!(Z.transformFlags&1))return Z;if(!fa(Z))return;let yt=ui(we)?Bn(Z.modifiers,Y,sl):Bn(Z.modifiers,Oe,sl);return yt=yn(yt,Z,we),t.updateGetAccessorDeclaration(Z,yt,Di(Z),Dl(Z.parameters,Y,e),void 0,lf(Z.body,Y,e)||t.createBlock([]))}function An(Z,we){if(!(Z.transformFlags&1))return Z;if(!fa(Z))return;let yt=ui(we)?Bn(Z.modifiers,Y,sl):Bn(Z.modifiers,Oe,sl);return yt=yn(yt,Z,we),t.updateSetAccessorDeclaration(Z,yt,Di(Z),Dl(Z.parameters,Y,e),lf(Z.body,Y,e)||t.createBlock([]))}function wn(Z){if(!nt(Z))return t.createNotEmittedStatement(Z);const we=t.updateFunctionDeclaration(Z,Bn(Z.modifiers,be,xa),Z.asteriskToken,Z.name,void 0,Dl(Z.parameters,Y,e),void 0,lf(Z.body,Y,e)||t.createBlock([]));if(Qt(Z)){const yt=[we];return La(yt,Z),yt}return we}function Je(Z){return nt(Z)?t.updateFunctionExpression(Z,Bn(Z.modifiers,be,xa),Z.asteriskToken,Z.name,void 0,Dl(Z.parameters,Y,e),void 0,lf(Z.body,Y,e)||t.createBlock([])):t.createOmittedExpression()}function mt(Z){return t.updateArrowFunction(Z,Bn(Z.modifiers,be,xa),void 0,Dl(Z.parameters,Y,e),void 0,Z.equalsGreaterThanToken,lf(Z.body,Y,e))}function pt(Z){if(XE(Z))return;const we=t.updateParameterDeclaration(Z,Bn(Z.modifiers,yt=>Su(yt)?Y(yt):void 0,sl),Z.dotDotDotToken,C.checkDefined(rt(Z.name,Y,vS)),void 0,void 0,rt(Z.initializer,Y,bt));return we!==Z&&(uc(we,Z),ut(we,L_(Z)),Pa(we,L_(Z)),pr(we.name,64)),we}function Pt(Z){if(Qt(Z)){const we=HN(Z.declarationList);return we.length===0?void 0:ut(t.createExpressionStatement(t.inlineExpressions(Ot(we,le))),Z)}else return xn(Z,Y,e)}function le(Z){const we=Z.name;return Zo(we)?tT(Z,Y,e,0,!1,tc):ut(t.createAssignment(ao(we),C.checkDefined(rt(Z.initializer,Y,bt))),Z)}function Fe(Z){const we=t.updateVariableDeclaration(Z,C.checkDefined(rt(Z.name,Y,vS)),void 0,void 0,rt(Z.initializer,Y,bt));return Z.type&&Cae(we.name,Z.type),we}function dt(Z){const we=ec(Z.expression,-7);if(bS(we)){const yt=rt(Z.expression,Y,bt);return C.assert(yt),t.createPartiallyEmittedExpression(yt,Z)}return xn(Z,Y,e)}function j(Z){const we=rt(Z.expression,Y,bt);return C.assert(we),t.createPartiallyEmittedExpression(we,Z)}function ot(Z){const we=rt(Z.expression,Y,ep);return C.assert(we),t.createPartiallyEmittedExpression(we,Z)}function Dt(Z){const we=rt(Z.expression,Y,bt);return C.assert(we),t.createPartiallyEmittedExpression(we,Z)}function Ye(Z){return t.updateCallExpression(Z,C.checkDefined(rt(Z.expression,Y,bt)),void 0,Bn(Z.arguments,Y,bt))}function _t(Z){return t.updateNewExpression(Z,C.checkDefined(rt(Z.expression,Y,bt)),void 0,Bn(Z.arguments,Y,bt))}function Gt(Z){return t.updateTaggedTemplateExpression(Z,C.checkDefined(rt(Z.tag,Y,bt)),void 0,C.checkDefined(rt(Z.template,Y,LA)))}function gn(Z){return t.updateJsxSelfClosingElement(Z,C.checkDefined(rt(Z.tagName,Y,vN)),void 0,C.checkDefined(rt(Z.attributes,Y,u1)))}function hn(Z){return t.updateJsxOpeningElement(Z,C.checkDefined(rt(Z.tagName,Y,vN)),void 0,C.checkDefined(rt(Z.attributes,Y,u1)))}function dn(Z){return!BE(Z)||n1(p)}function H(Z){if(!dn(Z))return t.createNotEmittedStatement(Z);const we=[];let yt=4;const pn=ke(we,Z);pn&&(f!==4||U!==M)&&(yt|=1024);const gr=ca(Z),br=pu(Z),qr=Qt(Z)?t.getExternalModuleOrNamespaceExportName(O,Z,!1,!0):t.getDeclarationName(Z,!1,!0);let Ri=t.createLogicalOr(qr,t.createAssignment(qr,t.createObjectLiteralExpression()));if(Qt(Z)){const Ho=t.getLocalName(Z,!1,!0);Ri=t.createAssignment(Ho,Ri)}const hr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,gr)],void 0,We(Z,br)),void 0,[Ri]));return Pr(hr,Z),pn&&(R0(hr,void 0),ZA(hr,void 0)),ut(hr,Z),k_(hr,yt),we.push(hr),we}function We(Z,we){const yt=O;O=we;const pn=[];i();const gr=Ot(Z.members,Lt);return rg(pn,s()),Ur(pn,gr),O=yt,t.createBlock(ut(t.createNodeArray(pn),Z.members),!0)}function Lt(Z){const we=Qn(Z),yt=L(Z),pn=t.createAssignment(t.createElementAccessExpression(O,we),yt),gr=yt.kind===11?pn:t.createAssignment(t.createElementAccessExpression(O,pn),we);return ut(t.createExpressionStatement(ut(gr,Z)),Z)}function L(Z){const we=u.getConstantValue(Z);return we!==void 0?typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we):(Rs(),Z.initializer?C.checkDefined(rt(Z.initializer,Y,bt)):t.createVoidZero())}function me(Z){const we=Do(Z,Ql);return we?Yq(we,n1(p)):!0}function q(Z){K||(K=new Map);const we=Ve(Z);K.has(we)||K.set(we,Z)}function fe(Z){if(K){const we=Ve(Z);return K.get(we)===Z}return!0}function Ve(Z){return C.assertNode(Z.name,je),Z.name.escapedText}function ke(Z,we){const yt=t.createVariableDeclaration(t.getLocalName(we,!1,!0)),pn=U.kind===312?0:1,gr=t.createVariableStatement(Bn(we.modifiers,be,xa),t.createVariableDeclarationList([yt],pn));return Pr(yt,we),R0(yt,void 0),ZA(yt,void 0),Pr(gr,we),q(we),fe(we)?(we.kind===266?Pa(gr.declarationList,we):Pa(gr,we),uc(gr,we),k_(gr,2048),Z.push(gr),!0):!1}function Tt(Z){if(!me(Z))return t.createNotEmittedStatement(Z);C.assertNode(Z.name,je,"A TypeScript namespace should have an Identifier name."),ka();const we=[];let yt=4;const pn=ke(we,Z);pn&&(f!==4||U!==M)&&(yt|=1024);const gr=ca(Z),br=pu(Z),qr=Qt(Z)?t.getExternalModuleOrNamespaceExportName(O,Z,!1,!0):t.getDeclarationName(Z,!1,!0);let Ri=t.createLogicalOr(qr,t.createAssignment(qr,t.createObjectLiteralExpression()));if(Qt(Z)){const Ho=t.getLocalName(Z,!1,!0);Ri=t.createAssignment(Ho,Ri)}const hr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,gr)],void 0,kt(Z,br)),void 0,[Ri]));return Pr(hr,Z),pn&&(R0(hr,void 0),ZA(hr,void 0)),ut(hr,Z),k_(hr,yt),we.push(hr),we}function kt(Z,we){const yt=O,pn=N,gr=K;O=we,N=Z,K=void 0;const br=[];i();let qr,Ri;if(Z.body)if(Z.body.kind===268)ye(Z.body,Ho=>Ur(br,Bn(Ho.statements,ge,qi))),qr=Z.body.statements,Ri=Z.body;else{const Ho=Tt(Z.body);Ho&&(Ao(Ho)?Ur(br,Ho):br.push(Ho));const Nl=nn(Z).body;qr=T0(Nl.statements,-1)}rg(br,s()),O=yt,N=pn,K=gr;const hr=t.createBlock(ut(t.createNodeArray(br),qr),!0);return ut(hr,Ri),(!Z.body||Z.body.kind!==268)&&pr(hr,qa(hr)|3072),hr}function nn(Z){if(Z.body.kind===267)return nn(Z.body)||Z.body}function En(Z){if(!Z.importClause)return Z;if(Z.importClause.isTypeOnly)return;const we=rt(Z.importClause,nr,Ah);return we||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration(Z,void 0,we,Z.moduleSpecifier,Z.attributes):void 0}function nr(Z){C.assert(!Z.isTypeOnly);const we=pe(Z)?Z.name:void 0,yt=rt(Z.namedBindings,lr,mj);return we||yt?t.updateImportClause(Z,!1,we,yt):void 0}function lr(Z){if(Z.kind===274)return pe(Z)?Z:void 0;{const we=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=Bn(Z.elements,ai,np);return we||St(yt)?t.updateNamedImports(Z,yt):void 0}}function ai(Z){return!Z.isTypeOnly&&pe(Z)?Z:void 0}function si(Z){return p.verbatimModuleSyntax||u.isValueAliasDeclaration(Z)?xn(Z,Y,e):void 0}function Kn(Z){if(Z.isTypeOnly)return;if(!Z.exportClause||Ih(Z.exportClause))return Z;const we=p.verbatimModuleSyntax||!!Z.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=rt(Z.exportClause,pn=>wi(pn,we),nj);return yt?t.updateExportDeclaration(Z,void 0,Z.isTypeOnly,yt,Z.moduleSpecifier,Z.attributes):void 0}function Hr(Z,we){const yt=Bn(Z.elements,vi,Ku);return we||St(yt)?t.updateNamedExports(Z,yt):void 0}function bo(Z){return t.updateNamespaceExport(Z,C.checkDefined(rt(Z.name,Y,je)))}function wi(Z,we){return Ih(Z)?bo(Z):Hr(Z,we)}function vi(Z){return!Z.isTypeOnly&&(p.verbatimModuleSyntax||u.isValueAliasDeclaration(Z))?Z:void 0}function ga(Z){return pe(Z)||!dc(M)&&u.isTopLevelValueImportEqualsWithEntityName(Z)}function Ja(Z){if(Z.isTypeOnly)return;if(v0(Z)){const yt=pe(Z);return!yt&&p.importsNotUsedAsValues===1?Pr(ut(t.createImportDeclaration(void 0,void 0,Z.moduleReference.expression,void 0),Z),Z):yt?xn(Z,Y,e):void 0}if(!ga(Z))return;const we=nw(t,Z.moduleReference);return pr(we,7168),Wl(Z)||!Qt(Z)?Pr(ut(t.createVariableStatement(Bn(Z.modifiers,be,xa),t.createVariableDeclarationList([Pr(t.createVariableDeclaration(Z.name,void 0,void 0,we),Z)])),Z),Z):Pr(ys(Z.name,we,Z),Z)}function Qt(Z){return N!==void 0&&$r(Z,32)}function va(Z){return N===void 0&&$r(Z,32)}function Wl(Z){return va(Z)&&!$r(Z,2048)}function to(Z){return va(Z)&&$r(Z,2048)}function za(Z){const we=t.createAssignment(t.getExternalModuleOrNamespaceExportName(O,Z,!1,!0),t.getLocalName(Z));Pa(we,xf(Z.name?Z.name.pos:Z.pos,Z.end));const yt=t.createExpressionStatement(we);return Pa(yt,xf(-1,Z.end)),yt}function La(Z,we){Z.push(za(we))}function ys(Z,we,yt){return ut(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(O,Z,!1,!0),we)),yt)}function tc(Z,we,yt){return ut(t.createAssignment(ao(Z),we),yt)}function ao(Z){return t.getNamespaceMemberName(O,Z,!1,!0)}function ca(Z){const we=t.getGeneratedNameForNode(Z);return Pa(we,Z.name),we}function pu(Z){return t.getGeneratedNameForNode(Z)}function Rs(){(V&8)===0&&(V|=8,e.enableSubstitution(80))}function ka(){(V&2)===0&&(V|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function _l(Z){return Ml(Z).kind===267}function wf(Z){return Ml(Z).kind===266}function pc(Z,we,yt){const pn=se,gr=M;Zi(we)&&(M=we),V&2&&_l(we)&&(se|=2),V&8&&wf(we)&&(se|=8),I(Z,we,yt),se=pn,M=gr}function Cl(Z,we){return we=R(Z,we),Z===1?Mo(we):rp(we)?cl(we):we}function cl(Z){if(V&2){const we=Z.name,yt=Hs(we);if(yt){if(Z.objectAssignmentInitializer){const pn=t.createAssignment(yt,Z.objectAssignmentInitializer);return ut(t.createPropertyAssignment(we,pn),Z)}return ut(t.createPropertyAssignment(we,yt),Z)}}return Z}function Mo(Z){switch(Z.kind){case 80:return an(Z);case 211:return iu(Z);case 212:return fu(Z)}return Z}function an(Z){return Hs(Z)||Z}function Hs(Z){if(V&se&&!al(Z)&&!Xg(Z)){const we=u.getReferencedExportContainer(Z,!1);if(we&&we.kind!==312&&(se&2&&we.kind===267||se&8&&we.kind===266))return ut(t.createPropertyAccessExpression(t.getGeneratedNameForNode(we),Z),Z)}}function iu(Z){return Ws(Z)}function fu(Z){return Ws(Z)}function Rp(Z){return Z.replace(/\*\//g,"*_/")}function Ws(Z){const we=Cc(Z);if(we!==void 0){Rae(Z,we);const yt=typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we);if(!p.removeComments){const pn=Ml(Z,zs);EW(yt,3," ".concat(Rp(gc(pn))," "))}return yt}return Z}function Cc(Z){if(!um(p))return Fr(Z)||$s(Z)?u.getConstantValue(Z):void 0}function pe(Z){return p.verbatimModuleSyntax||sr(Z)||(p.preserveValueImports?u.isValueAliasDeclaration(Z):u.isReferencedAliasDeclaration(Z))}}var $xe,wUe=T({"src/compiler/transformers/ts.ts"(){ta(),$xe=!1}});function qle(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,p=e.getEmitResolver(),h=e.getCompilerOptions(),f=ls(h),b=dP(h),A=!!h.experimentalDecorators,I=!b,R=b&&f<9,M=I||R,N=f<9,O=f<99?-1:b?0:3,U=f<9,K=U&&f>=2,ee=M||N||O===-1,V=e.onSubstituteNode;e.onSubstituteNode=iu;const se=e.onEmitNode;e.onEmitNode=Hs;let G=!1,re,_e,ye,Q,Y;const oe=new Map,he=new Set;let Ae,de,ie=!1,ge=!1;return wm(e,Ne);function Ne(pe){if(pe.isDeclarationFile||(Y=void 0,G=!!(Dm(pe)&32),!ee&&!G))return pe;const Z=xn(pe,Ee,e);return Jg(Z,e.readEmitHelpers()),Z}function qe(pe){switch(pe.kind){case 129:return Bt()?void 0:pe;default:return ti(pe,xa)}}function Ee(pe){if(!(pe.transformFlags&16777216)&&!(pe.transformFlags&134234112))return pe;switch(pe.kind){case 129:return C.fail("Use `modifierVisitor` instead.");case 263:return hn(pe);case 231:return H(pe);case 175:case 172:return C.fail("Use `classElementVisitor` instead.");case 303:return Qe(pe);case 243:return It(pe);case 260:return on(pe);case 169:return $t(pe);case 208:return Cn(pe);case 277:return Hn(pe);case 81:return Ft(pe);case 211:return fa(pe);case 212:return Fa(pe);case 224:case 225:return An(pe,!1);case 226:return dt(pe,!1);case 217:return ot(pe,!1);case 213:return pt(pe);case 244:return Je(pe);case 215:return Pt(pe);case 248:return wn(pe);case 110:return L(pe);case 262:case 218:return Gi(void 0,Me,pe);case 176:case 174:case 177:case 178:return Gi(pe,Me,pe);default:return Me(pe)}}function Me(pe){return xn(pe,Ee,e)}function Ce(pe){switch(pe.kind){case 224:case 225:return An(pe,!0);case 226:return dt(pe,!0);case 361:return j(pe);case 217:return ot(pe,!0);default:return Ee(pe)}}function Oe(pe){switch(pe.kind){case 298:return xn(pe,Oe,e);case 233:return Gt(pe);default:return Ee(pe)}}function At(pe){switch(pe.kind){case 210:case 209:return an(pe);default:return Ee(pe)}}function be(pe){switch(pe.kind){case 176:return Gi(pe,en,pe);case 177:case 178:case 174:return Gi(pe,ho,pe);case 172:return Gi(pe,Dn,pe);case 175:return Gi(pe,Lt,pe);case 167:return tn(pe);case 240:return pe;default:return sl(pe)?qe(pe):Ee(pe)}}function Ue(pe){switch(pe.kind){case 167:return tn(pe);default:return Ee(pe)}}function it(pe){switch(pe.kind){case 172:return nt(pe);case 177:case 178:return be(pe);default:C.assertMissingNode(pe,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Ft(pe){return!N||qi(pe.parent)?pe:Pr(t.createIdentifier(""),pe)}function gt(pe){const Z=ca(pe.left);if(Z){const we=rt(pe.right,Ee,bt);return Pr(r().createClassPrivateFieldInHelper(Z.brandCheckIdentifier,we),pe)}return xn(pe,Ee,e)}function Qe(pe){return vp(pe,Fe)&&(pe=Ap(e,pe)),xn(pe,Ee,e)}function It(pe){const Z=Q;Q=[];const we=xn(pe,Ee,e),yt=St(Q)?[we,...Q]:we;return Q=Z,yt}function on(pe){return vp(pe,Fe)&&(pe=Ap(e,pe)),xn(pe,Ee,e)}function $t(pe){return vp(pe,Fe)&&(pe=Ap(e,pe)),xn(pe,Ee,e)}function Cn(pe){return vp(pe,Fe)&&(pe=Ap(e,pe)),xn(pe,Ee,e)}function Hn(pe){return vp(pe,Fe)&&(pe=Ap(e,pe,!0,pe.isExportEquals?"":"default")),xn(pe,Ee,e)}function yn(pe){return St(ye)&&(Gd(pe)?(ye.push(pe.expression),pe=t.updateParenthesizedExpression(pe,t.inlineExpressions(ye))):(ye.push(pe),pe=t.inlineExpressions(ye)),ye=void 0),pe}function tn(pe){const Z=rt(pe.expression,Ee,bt);return t.updateComputedPropertyName(pe,yn(Z))}function en(pe){return Ae?fe(pe,Ae):Me(pe)}function gi(pe){return!!(N||vc(pe)&&Dm(pe)&32)}function ho(pe){if(C.assert(!If(pe)),!cd(pe)||!gi(pe))return xn(pe,be,e);const Z=ca(pe.name);if(C.assert(Z,"Undeclared private name for property declaration."),!Z.isValid)return pe;const we=xo(pe);we&&Ja().push(t.createAssignment(we,t.createFunctionExpression(rr(pe.modifiers,yt=>xa(yt)&&!aI(yt)&&!Vae(yt)),pe.asteriskToken,we,void 0,Dl(pe.parameters,Ee,e),void 0,lf(pe.body,Ee,e))))}function Gi(pe,Z,we){if(pe!==de){const yt=de;de=pe;const pn=Z(we);return de=yt,pn}return Z(we)}function xo(pe){C.assert(Ji(pe.name));const Z=ca(pe.name);if(C.assert(Z,"Undeclared private name for property declaration."),Z.kind==="m")return Z.methodName;if(Z.kind==="a"){if(Fy(pe))return Z.getterName;if(zv(pe))return Z.setterName}}function Qn(){var we,yt;const pe=vi(),Z=(yt=(we=pe.classThis)!=null?we:pe.classConstructor)!=null?yt:Ae==null?void 0:Ae.name;return C.checkDefined(Z)}function Di(pe){const Z=w_(pe),we=Jv(pe),yt=pe.name;let pn=yt,gr=yt;if(rs(yt)&&!Ch(yt.expression)){const zc=bF(yt);if(zc)pn=t.updateComputedPropertyName(yt,rt(yt.expression,Ee,bt)),gr=t.updateComputedPropertyName(yt,zc.left);else{const Sl=t.createTempVariable(i);Pa(Sl,yt.expression);const Xl=rt(yt.expression,Ee,bt),Is=t.createAssignment(Sl,Xl);Pa(Is,yt.expression),pn=t.updateComputedPropertyName(yt,Is),gr=t.updateComputedPropertyName(yt,Sl)}}const br=Bn(pe.modifiers,qe,xa),qr=rq(t,pe,br,pe.initializer);Pr(qr,pe),pr(qr,3072),Pa(qr,we);const Ri=aa(pe)?Qn():t.createThis(),hr=Tse(t,pe,br,pn,Ri);Pr(hr,pe),uc(hr,Z),Pa(hr,we);const Ho=t.createModifiersFromModifierFlags(M_(br)),Nl=Ase(t,pe,Ho,gr,Ri);return Pr(Nl,pe),pr(Nl,3072),Pa(Nl,we),kw([qr,hr,Nl],it,Zc)}function Ir(pe){if(gi(pe)){const Z=ca(pe.name);if(C.assert(Z,"Undeclared private name for property declaration."),!Z.isValid)return pe;if(Z.isStatic&&!N){const we=kt(pe,t.createThis());if(we)return t.createClassStaticBlockDeclaration(t.createBlock([we],!0))}return}return I&&!aa(pe)&&(Y!=null&&Y.data)&&Y.data.facts&16?t.updatePropertyDeclaration(pe,Bn(pe.modifiers,Ee,sl),pe.name,void 0,void 0,void 0):(vp(pe,Fe)&&(pe=Ap(e,pe)),t.updatePropertyDeclaration(pe,Bn(pe.modifiers,qe,xa),rt(pe.name,Ue,cc),void 0,void 0,rt(pe.initializer,Ee,bt)))}function Xt(pe){if(M&&!Wd(pe)){const Z=Hr(pe.name,!!pe.initializer||b);if(Z&&Ja().push(...Ise(Z)),aa(pe)&&!N){const we=kt(pe,t.createThis());if(we){const yt=t.createClassStaticBlockDeclaration(t.createBlock([we]));return Pr(yt,pe),uc(yt,pe),uc(we,{pos:-1,end:-1}),R0(we,void 0),ZA(we,void 0),yt}}return}return t.updatePropertyDeclaration(pe,Bn(pe.modifiers,qe,xa),rt(pe.name,Ue,cc),void 0,void 0,rt(pe.initializer,Ee,bt))}function nt(pe){return C.assert(!If(pe),"Decorators should already have been transformed and elided."),cd(pe)?Ir(pe):Xt(pe)}function Bt(){return O===-1||O===3&&!!(Y!=null&&Y.data)&&!!(Y.data.facts&16)}function Dn(pe){return Wd(pe)&&(Bt()||vc(pe)&&Dm(pe)&32)?Di(pe):nt(pe)}function oi(){return!!de&&vc(de)&&Oy(de)&&Wd(Ml(de))}function yi(pe){if(oi()){const Z=ec(pe);Z.kind===110&&he.add(Z)}}function eo(pe,Z){return Z=rt(Z,Ee,bt),yi(Z),Ro(pe,Z)}function Ro(pe,Z){switch(uc(Z,T0(Z,-1)),pe.kind){case"a":return r().createClassPrivateFieldGetHelper(Z,pe.brandCheckIdentifier,pe.kind,pe.getterName);case"m":return r().createClassPrivateFieldGetHelper(Z,pe.brandCheckIdentifier,pe.kind,pe.methodName);case"f":return r().createClassPrivateFieldGetHelper(Z,pe.brandCheckIdentifier,pe.kind,pe.isStatic?pe.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever(pe,"Unknown private element type")}}function fa(pe){if(Ji(pe.name)){const Z=ca(pe.name);if(Z)return ut(Pr(eo(Z,pe.expression),pe),pe)}if(K&&de&&zd(pe)&&je(pe.name)&&HP(de)&&(Y!=null&&Y.data)){const{classConstructor:Z,superClassReference:we,facts:yt}=Y.data;if(yt&1)return Kn(pe);if(Z&&we){const pn=t.createReflectGetCall(we,t.createStringLiteralFromNode(pe.name),Z);return Pr(pn,pe.expression),ut(pn,pe.expression),pn}}return xn(pe,Ee,e)}function Fa(pe){if(K&&de&&zd(pe)&&HP(de)&&(Y!=null&&Y.data)){const{classConstructor:Z,superClassReference:we,facts:yt}=Y.data;if(yt&1)return Kn(pe);if(Z&&we){const pn=t.createReflectGetCall(we,rt(pe.argumentExpression,Ee,bt),Z);return Pr(pn,pe.expression),ut(pn,pe.expression),pn}}return xn(pe,Ee,e)}function An(pe,Z){if(pe.operator===46||pe.operator===47){const we=vs(pe.operand);if(tR(we)){let yt;if(yt=ca(we.name)){const pn=rt(we.expression,Ee,bt);yi(pn);const{readExpression:gr,initializeExpression:br}=mt(pn);let qr=eo(yt,gr);const Ri=tb(pe)||Z?void 0:t.createTempVariable(i);return qr=fF(t,pe,qr,i,Ri),qr=Dt(yt,br||gr,qr,64),Pr(qr,pe),ut(qr,pe),Ri&&(qr=t.createComma(qr,Ri),ut(qr,pe)),qr}}else if(K&&de&&zd(we)&&HP(de)&&(Y!=null&&Y.data)){const{classConstructor:yt,superClassReference:pn,facts:gr}=Y.data;if(gr&1){const br=Kn(we);return tb(pe)?t.updatePrefixUnaryExpression(pe,br):t.updatePostfixUnaryExpression(pe,br)}if(yt&&pn){let br,qr;if(Fr(we)?je(we.name)&&(qr=br=t.createStringLiteralFromNode(we.name)):Ch(we.argumentExpression)?qr=br=we.argumentExpression:(qr=t.createTempVariable(i),br=t.createAssignment(qr,rt(we.argumentExpression,Ee,bt))),br&&qr){let Ri=t.createReflectGetCall(pn,qr,yt);ut(Ri,we);const hr=Z?void 0:t.createTempVariable(i);return Ri=fF(t,pe,Ri,i,hr),Ri=t.createReflectSetCall(pn,br,Ri,yt),Pr(Ri,pe),ut(Ri,pe),hr&&(Ri=t.createComma(Ri,hr),ut(Ri,pe)),Ri}}}}return xn(pe,Ee,e)}function wn(pe){return t.updateForStatement(pe,rt(pe.initializer,Ce,Af),rt(pe.condition,Ee,bt),rt(pe.incrementor,Ce,bt),xd(pe.statement,Ee,e))}function Je(pe){return t.updateExpressionStatement(pe,rt(pe.expression,Ce,bt))}function mt(pe){const Z=Ys(pe)?pe:t.cloneNode(pe);if(pe.kind===110&&he.has(pe)&&he.add(Z),Ch(pe))return{readExpression:Z,initializeExpression:void 0};const we=t.createTempVariable(i),yt=t.createAssignment(we,Z);return{readExpression:we,initializeExpression:yt}}function pt(pe){var Z;if(tR(pe.expression)&&ca(pe.expression.name)){const{thisArg:we,target:yt}=t.createCallBinding(pe.expression,i,f);return hS(pe)?t.updateCallChain(pe,t.createPropertyAccessChain(rt(yt,Ee,bt),pe.questionDotToken,"call"),void 0,void 0,[rt(we,Ee,bt),...Bn(pe.arguments,Ee,bt)]):t.updateCallExpression(pe,t.createPropertyAccessExpression(rt(yt,Ee,bt),"call"),void 0,[rt(we,Ee,bt),...Bn(pe.arguments,Ee,bt)])}if(K&&de&&zd(pe.expression)&&HP(de)&&((Z=Y==null?void 0:Y.data)!=null&&Z.classConstructor)){const we=t.createFunctionCallCall(rt(pe.expression,Ee,bt),Y.data.classConstructor,Bn(pe.arguments,Ee,bt));return Pr(we,pe),ut(we,pe),we}return xn(pe,Ee,e)}function Pt(pe){var Z;if(tR(pe.tag)&&ca(pe.tag.name)){const{thisArg:we,target:yt}=t.createCallBinding(pe.tag,i,f);return t.updateTaggedTemplateExpression(pe,t.createCallExpression(t.createPropertyAccessExpression(rt(yt,Ee,bt),"bind"),void 0,[rt(we,Ee,bt)]),void 0,rt(pe.template,Ee,LA))}if(K&&de&&zd(pe.tag)&&HP(de)&&((Z=Y==null?void 0:Y.data)!=null&&Z.classConstructor)){const we=t.createFunctionBindCall(rt(pe.tag,Ee,bt),Y.data.classConstructor,[]);return Pr(we,pe),ut(we,pe),t.updateTaggedTemplateExpression(pe,we,void 0,rt(pe.template,Ee,LA))}return xn(pe,Ee,e)}function le(pe){if(Y&&oe.set(Ml(pe),Y),N){if(jP(pe)){const yt=rt(pe.body.statements[0].expression,Ee,bt);return wc(yt,!0)&&yt.left===yt.right?void 0:yt}if(RI(pe))return rt(pe.body.statements[0].expression,Ee,bt);s();let Z=Gi(pe,yt=>Bn(yt,Ee,qi),pe.body.statements);Z=t.mergeLexicalEnvironment(Z,o());const we=t.createImmediatelyInvokedArrowFunction(Z);return Pr(vs(we.expression),pe),k_(vs(we.expression),4),Pr(we,pe),ut(we,pe),we}}function Fe(pe){if(tu(pe)&&!pe.name){const Z=a7(pe);return St(Z,RI)?!1:(N||!!Dm(pe))&&St(Z,yt=>Rl(yt)||cd(yt)||M&&ww(yt))}return!1}function dt(pe,Z){if(Uv(pe)){const we=ye;ye=void 0,pe=t.updateBinaryExpression(pe,rt(pe.left,At,bt),pe.operatorToken,rt(pe.right,Ee,bt));const yt=St(ye)?t.inlineExpressions(WM([...ye,pe])):pe;return ye=we,yt}if(wc(pe)){vp(pe,Fe)&&(pe=Ap(e,pe),C.assertNode(pe,wc));const we=ec(pe.left,9);if(tR(we)){const yt=ca(we.name);if(yt)return ut(Pr(Dt(yt,we.expression,pe.right,pe.operatorToken.kind),pe),pe)}else if(K&&de&&zd(pe.left)&&HP(de)&&(Y!=null&&Y.data)){const{classConstructor:yt,superClassReference:pn,facts:gr}=Y.data;if(gr&1)return t.updateBinaryExpression(pe,Kn(pe.left),pe.operatorToken,rt(pe.right,Ee,bt));if(yt&&pn){let br=$s(pe.left)?rt(pe.left.argumentExpression,Ee,bt):je(pe.left.name)?t.createStringLiteralFromNode(pe.left.name):void 0;if(br){let qr=rt(pe.right,Ee,bt);if(BP(pe.operatorToken.kind)){let hr=br;Ch(br)||(hr=t.createTempVariable(i),br=t.createAssignment(hr,br));const Ho=t.createReflectGetCall(pn,hr,yt);Pr(Ho,pe.left),ut(Ho,pe.left),qr=t.createBinaryExpression(Ho,GP(pe.operatorToken.kind),qr),ut(qr,pe)}const Ri=Z?void 0:t.createTempVariable(i);return Ri&&(qr=t.createAssignment(Ri,qr),ut(Ri,pe)),qr=t.createReflectSetCall(pn,br,qr,yt),Pr(qr,pe),ut(qr,pe),Ri&&(qr=t.createComma(qr,Ri),ut(qr,pe)),qr}}}}return BUe(pe)?gt(pe):xn(pe,Ee,e)}function j(pe,Z){const we=ZF(pe.elements,Ce);return t.updateCommaListExpression(pe,we)}function ot(pe,Z){const we=Z?Ce:Ee,yt=rt(pe.expression,we,bt);return t.updateParenthesizedExpression(pe,yt)}function Dt(pe,Z,we,yt){if(Z=rt(Z,Ee,bt),we=rt(we,Ee,bt),yi(Z),BP(yt)){const{readExpression:pn,initializeExpression:gr}=mt(Z);Z=gr||pn,we=t.createBinaryExpression(Ro(pe,pn),GP(yt),we)}switch(uc(Z,T0(Z,-1)),pe.kind){case"a":return r().createClassPrivateFieldSetHelper(Z,pe.brandCheckIdentifier,we,pe.kind,pe.setterName);case"m":return r().createClassPrivateFieldSetHelper(Z,pe.brandCheckIdentifier,we,pe.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(Z,pe.brandCheckIdentifier,we,pe.kind,pe.isStatic?pe.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever(pe,"Unknown private element type")}}function Ye(pe){return rr(pe.members,Mle)}function _t(pe){var Z;let we=0;const yt=Ml(pe);Rc(yt)&&Bv(A,yt)&&(we|=1),N&&(fJ(pe)||l7(pe))&&(we|=2);let pn=!1,gr=!1,br=!1,qr=!1;for(const hr of pe.members)aa(hr)?((hr.name&&(Ji(hr.name)||Wd(hr))&&N||Wd(hr)&&O===-1&&!pe.name&&!((Z=pe.emitNode)!=null&&Z.classThis))&&(we|=2),(Uo(hr)||Rl(hr))&&(U&&hr.transformFlags&16384&&(we|=8,we&1||(we|=2)),K&&hr.transformFlags&134217728&&(we&1||(we|=6)))):$E(Ml(hr))||(Wd(hr)?(qr=!0,br||(br=cd(hr))):cd(hr)?(br=!0,p.getNodeCheckFlags(hr)&262144&&(we|=2)):Uo(hr)&&(pn=!0,gr||(gr=!!hr.initializer)));return(R&&pn||I&&gr||N&&br||N&&qr&&O===-1)&&(we|=16),we}function Gt(pe){var Z;if((((Z=Y==null?void 0:Y.data)==null?void 0:Z.facts)||0)&4){const yt=t.createTempVariable(i,!0);return vi().superClassReference=yt,t.updateExpressionWithTypeArguments(pe,t.createAssignment(yt,rt(pe.expression,Ee,bt)),void 0)}return xn(pe,Ee,e)}function gn(pe,Z){var we;const yt=Ae,pn=ye,gr=Y;Ae=pe,ye=void 0,bo();const br=Dm(pe)&32;if(N||br){const hr=Po(pe);if(hr&&je(hr))ga().data.className=hr;else if((we=pe.emitNode)!=null&&we.assignedName&&Ma(pe.emitNode.assignedName)){if(pe.emitNode.assignedName.textSourceNode&&je(pe.emitNode.assignedName.textSourceNode))ga().data.className=pe.emitNode.assignedName.textSourceNode;else if(tf(pe.emitNode.assignedName.text,f)){const Ho=t.createIdentifier(pe.emitNode.assignedName.text);ga().data.className=Ho}}}if(N){const hr=Ye(pe);St(hr)&&(ga().data.weakSetName=tc("instances",hr[0].name))}const qr=_t(pe);qr&&(vi().facts=qr),qr&8&&ai();const Ri=Z(pe,qr);return wi(),C.assert(Y===gr),Ae=yt,ye=pn,Ri}function hn(pe){return gn(pe,dn)}function dn(pe,Z){var we,yt;let pn;if(Z&2)if(N&&((we=pe.emitNode)!=null&&we.classThis))vi().classConstructor=pe.emitNode.classThis,pn=t.createAssignment(pe.emitNode.classThis,t.getInternalName(pe));else{const Is=t.createTempVariable(i,!0);vi().classConstructor=t.cloneNode(Is),pn=t.createAssignment(Is,t.getInternalName(pe))}(yt=pe.emitNode)!=null&&yt.classThis&&(vi().classThis=pe.emitNode.classThis);const gr=p.getNodeCheckFlags(pe)&262144,br=$r(pe,32),qr=$r(pe,2048);let Ri=Bn(pe.modifiers,qe,xa);const hr=Bn(pe.heritageClauses,Oe,of),{members:Ho,prologue:Nl}=me(pe),zc=[];if(pn&&Ja().unshift(pn),St(ye)&&zc.push(t.createExpressionStatement(t.inlineExpressions(ye))),I||N||Dm(pe)&32){const Is=a7(pe);St(Is)&&Tt(zc,Is,t.getInternalName(pe))}zc.length>0&&br&&qr&&(Ri=Bn(Ri,Is=>sw(Is)?void 0:Is,xa),zc.push(t.createExportAssignment(void 0,!1,t.getLocalName(pe,!1,!0))));const Sl=vi().classConstructor;gr&&Sl&&(lr(),_e[Wu(pe)]=Sl);const Xl=t.updateClassDeclaration(pe,Ri,pe.name,void 0,hr,Ho);return zc.unshift(Xl),Nl&&zc.unshift(t.createExpressionStatement(Nl)),zc}function H(pe){return gn(pe,We)}function We(pe,Z){var ap;var we,yt,pn;const gr=!!(Z&1),br=a7(pe),qr=p.getNodeCheckFlags(pe),Ri=qr&262144;let hr;function Ho(){var Jc;if(N&&((Jc=pe.emitNode)!=null&&Jc.classThis))return vi().classConstructor=pe.emitNode.classThis;const Cd=qr&32768,Pe=t.createTempVariable(Cd?u:i,!0);return vi().classConstructor=t.cloneNode(Pe),Pe}(we=pe.emitNode)!=null&&we.classThis&&(vi().classThis=pe.emitNode.classThis),Z&2&&(hr!=null||(hr=Ho()));const Nl=Bn(pe.modifiers,qe,xa),zc=Bn(pe.heritageClauses,Oe,of),{members:Sl,prologue:Xl}=me(pe),Is=t.updateClassExpression(pe,Nl,pe.name,void 0,zc,Sl),nc=[];if(Xl&&nc.push(Xl),(N||Dm(pe)&32)&&St(br,Jc=>Rl(Jc)||cd(Jc)||M&&ww(Jc))||St(ye))if(gr)C.assertIsDefined(Q,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),St(ye)&&Ur(Q,Ot(ye,t.createExpressionStatement)),St(br)&&Tt(Q,br,(ap=(yt=pe.emitNode)==null?void 0:yt.classThis)!=null?ap:t.getInternalName(pe)),hr?nc.push(t.createAssignment(hr,Is)):N&&((pn=pe.emitNode)!=null&&pn.classThis)?nc.push(t.createAssignment(pe.emitNode.classThis,Is)):nc.push(Is);else{if(hr!=null||(hr=Ho()),Ri){lr();const Jc=t.cloneNode(hr);Jc.emitNode.autoGenerate.flags&=-9,_e[Wu(pe)]=Jc}nc.push(t.createAssignment(hr,Is)),Ur(nc,ye),Ur(nc,nn(br,hr)),nc.push(t.cloneNode(hr))}else nc.push(Is);return nc.length>1&&(k_(Is,131072),nc.forEach(Xu)),t.inlineExpressions(nc)}function Lt(pe){if(!N)return xn(pe,Ee,e)}function L(pe){var Z;if(U&&de&&Rl(de)&&(Y!=null&&Y.data)){const{classThis:we,classConstructor:yt}=Y.data;return(Z=we!=null?we:yt)!=null?Z:pe}return pe}function me(pe){const Z=!!(Dm(pe)&32);if(N||G){for(const br of pe.members)if(cd(br))if(gi(br))ys(br,br.name,Qt);else{const qr=ga();eT(qr,br.name,{kind:"untransformed"})}if(N&&St(Ye(pe))&&q(),Bt()){for(const br of pe.members)if(Wd(br)){const qr=t.getGeneratedPrivateNameForNode(br.name,void 0,"_accessor_storage");if(N||Z&&vc(br))ys(br,qr,va);else{const Ri=ga();eT(Ri,qr,{kind:"untransformed"})}}}}let we=Bn(pe.members,be,Zc),yt;St(we,Ll)||(yt=fe(void 0,pe));let pn,gr;if(!N&&St(ye)){let br=t.createExpressionStatement(t.inlineExpressions(ye));if(br.transformFlags&134234112){const Ri=t.createTempVariable(i),hr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([br]));pn=t.createAssignment(Ri,hr),br=t.createExpressionStatement(t.createCallExpression(Ri,void 0,[]))}const qr=t.createBlock([br]);gr=t.createClassStaticBlockDeclaration(qr),ye=void 0}if(yt||gr){let br;const qr=Tn(we,jP),Ri=Tn(we,RI);br=Rn(br,qr),br=Rn(br,Ri),br=Rn(br,yt),br=Rn(br,gr);const hr=qr||Ri?rr(we,Ho=>Ho!==qr&&Ho!==Ri):we;br=Ur(br,hr),we=ut(t.createNodeArray(br),pe.members)}return{members:we,prologue:pn}}function q(){const{weakSetName:pe}=ga().data;C.assert(pe,"weakSetName should be set in private identifier environment"),Ja().push(t.createAssignment(pe,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function fe(pe,Z){if(pe=rt(pe,Ee,Ll),!(Y!=null&&Y.data)||!(Y.data.facts&16))return pe;const we=D_(Z),yt=!!(we&&ec(we.expression).kind!==106),pn=Dl(pe?pe.parameters:void 0,Ee,e),gr=ke(Z,pe,yt);return gr?pe?(C.assert(pn),t.updateConstructorDeclaration(pe,void 0,pn,gr)):Xu(Pr(ut(t.createConstructorDeclaration(void 0,pn!=null?pn:[],gr),pe||Z),pe)):pe}function Ve(pe,Z,we,yt,pn,gr,br){const qr=yt[pn],Ri=Z[qr];if(Ur(pe,Bn(Z,Ee,qi,we,qr-we)),we=qr+1,qS(Ri)){const hr=[];Ve(hr,Ri.tryBlock.statements,0,yt,pn+1,gr,br);const Ho=t.createNodeArray(hr);ut(Ho,Ri.tryBlock.statements),pe.push(t.updateTryStatement(Ri,t.updateBlock(Ri.tryBlock,hr),rt(Ri.catchClause,Ee,d1),rt(Ri.finallyBlock,Ee,Jo)))}else{for(Ur(pe,Bn(Z,Ee,qi,qr,1));we<Z.length;){const hr=Z[we];if(hp(Ml(hr),br))we++;else break}Ur(pe,gr)}Ur(pe,Bn(Z,Ee,qi,we))}function ke(pe,Z,we){var Sl;const yt=lJ(pe,!1,!1);let pn=yt;b||(pn=rr(pn,Xl=>!!Xl.initializer||Ji(Xl.name)||P_(Xl)));const gr=Ye(pe),br=St(pn)||St(gr);if(!Z&&!br)return lf(void 0,Ee,e);l();const qr=!Z&&we;let Ri=0,hr=[];const Ho=[],Nl=t.createThis();if(si(Ho,gr,Nl),Z){const Xl=rr(yt,nc=>hp(Ml(nc),Z)),Is=rr(pn,nc=>!hp(Ml(nc),Z));Tt(Ho,Xl,Nl),Tt(Ho,Is,Nl)}else Tt(Ho,pn,Nl);if(Z!=null&&Z.body){Ri=t.copyPrologue(Z.body.statements,hr,!1,Ee);const Xl=o7(Z.body.statements,Ri);if(Xl.length)Ve(hr,Z.body.statements,Ri,Xl,0,Ho,Z);else{for(;Ri<Z.body.statements.length;){const Is=Z.body.statements[Ri];if(hp(Ml(Is),Z))Ri++;else break}Ur(hr,Ho),Ur(hr,Bn(Z.body.statements,Ee,qi,Ri))}}else qr&&hr.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),Ur(hr,Ho);if(hr=t.mergeLexicalEnvironment(hr,o()),hr.length===0&&!Z)return;const zc=Z!=null&&Z.body&&Z.body.statements.length>=hr.length&&(Sl=Z.body.multiLine)!=null?Sl:hr.length>0;return ut(t.createBlock(ut(t.createNodeArray(hr),Z?Z.body.statements:pe.members),zc),Z?Z.body:void 0)}function Tt(pe,Z,we){for(const yt of Z){if(aa(yt)&&!N)continue;const pn=kt(yt,we);pn&&pe.push(pn)}}function kt(pe,Z){const we=Rl(pe)?Gi(pe,le,pe):En(pe,Z);if(!we)return;const yt=t.createExpressionStatement(we);Pr(yt,pe),k_(yt,qa(pe)&3072),uc(yt,pe);const pn=Ml(pe);return Io(pn)?(Pa(yt,pn),Fk(yt)):Pa(yt,L_(pe)),R0(we,void 0),ZA(we,void 0),P_(pn)&&k_(yt,3072),yt}function nn(pe,Z){const we=[];for(const yt of pe){const pn=Rl(yt)?Gi(yt,le,yt):Gi(yt,()=>En(yt,Z),void 0);pn&&(Xu(pn),Pr(pn,yt),k_(pn,qa(yt)&3072),Pa(pn,L_(yt)),uc(pn,yt),we.push(pn))}return we}function En(pe,Z){var we;const yt=de,pn=nr(pe,Z);return pn&&vc(pe)&&((we=Y==null?void 0:Y.data)!=null&&we.facts)&&(Pr(pn,pe),k_(pn,4),Pa(pn,Jv(pe.name)),oe.set(Ml(pe),Y)),de=yt,pn}function nr(pe,Z){const we=!b;vp(pe,Fe)&&(pe=Ap(e,pe));const yt=P_(pe)?t.getGeneratedPrivateNameForNode(pe.name):rs(pe.name)&&!Ch(pe.name.expression)?t.updateComputedPropertyName(pe.name,t.getGeneratedNameForNode(pe.name)):pe.name;if(vc(pe)&&(de=pe),Ji(yt)&&gi(pe)){const br=ca(yt);if(br)return br.kind==="f"?br.isStatic?OUe(t,br.variableName,rt(pe.initializer,Ee,bt)):WUe(t,Z,rt(pe.initializer,Ee,bt),br.brandCheckIdentifier):void 0;C.fail("Undeclared private name for property declaration.")}if((Ji(yt)||vc(pe))&&!pe.initializer)return;const pn=Ml(pe);if($r(pn,64))return;let gr=rt(pe.initializer,Ee,bt);if(hp(pn,pn.parent)&&je(yt)){const br=t.cloneNode(yt);gr?(Gd(gr)&&rw(gr.expression)&&mP(gr.expression.left,"___runInitializers")&&pI(gr.expression.right)&&bp(gr.expression.right.expression)&&(gr=gr.expression.left),gr=t.inlineExpressions([gr,br])):gr=br,pr(yt,3168),Pa(br,pn.name),pr(br,3072)}else gr!=null||(gr=t.createVoidZero());if(we||Ji(yt)){const br=$S(t,Z,yt,yt);return k_(br,1024),t.createAssignment(br,gr)}else{const br=rs(yt)?yt.expression:je(yt)?t.createStringLiteral(ji(yt.escapedText)):yt,qr=t.createPropertyDescriptor({value:gr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(Z,br,qr)}}function lr(){(re&1)===0&&(re|=1,e.enableSubstitution(80),_e=[])}function ai(){(re&2)===0&&(re|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function si(pe,Z,we){if(!N||!St(Z))return;const{weakSetName:yt}=ga().data;C.assert(yt,"weakSetName should be set in private identifier environment"),pe.push(t.createExpressionStatement(FUe(t,we,yt)))}function Kn(pe){return Fr(pe)?t.updatePropertyAccessExpression(pe,t.createVoidZero(),pe.name):t.updateElementAccessExpression(pe,t.createVoidZero(),rt(pe.argumentExpression,Ee,bt))}function Hr(pe,Z){if(rs(pe)){const we=bF(pe),yt=rt(pe.expression,Ee,bt),pn=Rm(yt),gr=Ch(pn);if(!(!!we||wc(pn)&&al(pn.left))&&!gr&&Z){const qr=t.getGeneratedNameForNode(pe);return p.getNodeCheckFlags(pe)&32768?u(qr):i(qr),t.createAssignment(qr,yt)}return gr||je(pn)?void 0:yt}}function bo(){Y={previous:Y,data:void 0}}function wi(){Y=Y==null?void 0:Y.previous}function vi(){var pe;return C.assert(Y),(pe=Y.data)!=null?pe:Y.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function ga(){var pe;return C.assert(Y),(pe=Y.privateEnv)!=null?pe:Y.privateEnv=wle({className:void 0,weakSetName:void 0})}function Ja(){return ye!=null?ye:ye=[]}function Qt(pe,Z,we,yt,pn,gr,br){Wd(pe)?La(pe,Z,we,yt,pn,gr):Uo(pe)?va(pe,Z,we,yt,pn,gr):Kl(pe)?Wl(pe,Z,we,yt,pn,gr):rf(pe)?to(pe,Z,we,yt,pn,gr,br):Sp(pe)&&za(pe,Z,we,yt,pn,gr,br)}function va(pe,Z,we,yt,pn,gr,br){var qr;if(pn){const Ri=C.checkDefined((qr=we.classThis)!=null?qr:we.classConstructor,"classConstructor should be set in private identifier environment"),hr=ao(Z);eT(yt,Z,{kind:"f",isStatic:!0,brandCheckIdentifier:Ri,variableName:hr,isValid:gr})}else{const Ri=ao(Z);eT(yt,Z,{kind:"f",isStatic:!1,brandCheckIdentifier:Ri,isValid:gr}),Ja().push(t.createAssignment(Ri,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Wl(pe,Z,we,yt,pn,gr,br){var hr;const qr=ao(Z),Ri=pn?C.checkDefined((hr=we.classThis)!=null?hr:we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");eT(yt,Z,{kind:"m",methodName:qr,brandCheckIdentifier:Ri,isStatic:pn,isValid:gr})}function to(pe,Z,we,yt,pn,gr,br){var hr;const qr=ao(Z,"_get"),Ri=pn?C.checkDefined((hr=we.classThis)!=null?hr:we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");(br==null?void 0:br.kind)==="a"&&br.isStatic===pn&&!br.getterName?br.getterName=qr:eT(yt,Z,{kind:"a",getterName:qr,setterName:void 0,brandCheckIdentifier:Ri,isStatic:pn,isValid:gr})}function za(pe,Z,we,yt,pn,gr,br){var hr;const qr=ao(Z,"_set"),Ri=pn?C.checkDefined((hr=we.classThis)!=null?hr:we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");(br==null?void 0:br.kind)==="a"&&br.isStatic===pn&&!br.setterName?br.setterName=qr:eT(yt,Z,{kind:"a",getterName:void 0,setterName:qr,brandCheckIdentifier:Ri,isStatic:pn,isValid:gr})}function La(pe,Z,we,yt,pn,gr,br){var Ho;const qr=ao(Z,"_get"),Ri=ao(Z,"_set"),hr=pn?C.checkDefined((Ho=we.classThis)!=null?Ho:we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");eT(yt,Z,{kind:"a",getterName:qr,setterName:Ri,brandCheckIdentifier:hr,isStatic:pn,isValid:gr})}function ys(pe,Z,we){const yt=vi(),pn=ga(),gr=uJ(pn,Z),br=vc(pe),qr=!zUe(Z)&&gr===void 0;we(pe,Z,yt,pn,br,qr,gr)}function tc(pe,Z,we){const{className:yt}=ga().data,pn=yt?{prefix:"_",node:yt,suffix:"_"}:"_",gr=typeof pe=="object"?t.getGeneratedNameForNode(pe,24,pn,we):typeof pe=="string"?t.createUniqueName(pe,16,pn,we):t.createTempVariable(void 0,!0,pn,we);return p.getNodeCheckFlags(Z)&32768?u(gr):i(gr),gr}function ao(pe,Z){var yt;const we=SN(pe);return tc((yt=we==null?void 0:we.substring(1))!=null?yt:pe,pe,Z)}function ca(pe){const Z=Ole(Y,pe);return(Z==null?void 0:Z.kind)==="untransformed"?void 0:Z}function pu(pe){const Z=t.getGeneratedNameForNode(pe),we=ca(pe.name);if(!we)return xn(pe,Ee,e);let yt=pe.expression;return(FL(pe)||zd(pe)||!g1(pe.expression))&&(yt=t.createTempVariable(i,!0),Ja().push(t.createBinaryExpression(yt,64,rt(pe.expression,Ee,bt)))),t.createAssignmentTargetWrapper(Z,Dt(we,yt,Z,64))}function Rs(pe){if(Wa(pe)||_d(pe))return an(pe);if(tR(pe))return pu(pe);if(K&&de&&zd(pe)&&HP(de)&&(Y!=null&&Y.data)){const{classConstructor:Z,superClassReference:we,facts:yt}=Y.data;if(yt&1)return Kn(pe);if(Z&&we){const pn=$s(pe)?rt(pe.argumentExpression,Ee,bt):je(pe.name)?t.createStringLiteralFromNode(pe.name):void 0;if(pn){const gr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(gr,t.createReflectSetCall(we,pn,gr,Z))}}}return xn(pe,Ee,e)}function ka(pe){if(vp(pe,Fe)&&(pe=Ap(e,pe)),wc(pe,!0)){const Z=Rs(pe.left),we=rt(pe.right,Ee,bt);return t.updateBinaryExpression(pe,Z,pe.operatorToken,we)}return Rs(pe)}function _l(pe){if(ep(pe.expression)){const Z=Rs(pe.expression);return t.updateSpreadElement(pe,Z)}return xn(pe,Ee,e)}function wf(pe){if(bL(pe)){if(n_(pe))return _l(pe);if(!Hc(pe))return ka(pe)}return xn(pe,Ee,e)}function pc(pe){const Z=rt(pe.name,Ee,cc);if(wc(pe.initializer,!0)){const we=ka(pe.initializer);return t.updatePropertyAssignment(pe,Z,we)}if(ep(pe.initializer)){const we=Rs(pe.initializer);return t.updatePropertyAssignment(pe,Z,we)}return xn(pe,Ee,e)}function Cl(pe){return vp(pe,Fe)&&(pe=Ap(e,pe)),xn(pe,Ee,e)}function cl(pe){if(ep(pe.expression)){const Z=Rs(pe.expression);return t.updateSpreadAssignment(pe,Z)}return xn(pe,Ee,e)}function Mo(pe){return C.assertNode(pe,yL),Yv(pe)?cl(pe):rp(pe)?Cl(pe):bc(pe)?pc(pe):xn(pe,Ee,e)}function an(pe){return _d(pe)?t.updateArrayLiteralExpression(pe,Bn(pe.elements,wf,bt)):t.updateObjectLiteralExpression(pe,Bn(pe.properties,Mo,Bg))}function Hs(pe,Z,we){const yt=Ml(Z),pn=oe.get(yt);if(pn){const gr=Y,br=ge;Y=pn,ge=ie,ie=!Rl(yt)||!(Dm(yt)&32),se(pe,Z,we),ie=ge,ge=br,Y=gr;return}switch(Z.kind){case 218:if(Us(yt)||qa(Z)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const gr=Y,br=ge;Y=void 0,ge=ie,ie=!1,se(pe,Z,we),ie=ge,ge=br,Y=gr;return}case 167:{const gr=Y,br=ie;Y=Y==null?void 0:Y.previous,ie=ge,se(pe,Z,we),ie=br,Y=gr;return}}se(pe,Z,we)}function iu(pe,Z){return Z=V(pe,Z),pe===1?fu(Z):Z}function fu(pe){switch(pe.kind){case 80:return Ws(pe);case 110:return Rp(pe)}return pe}function Rp(pe){if(re&2&&(Y!=null&&Y.data)&&!he.has(pe)){const{facts:Z,classConstructor:we,classThis:yt}=Y.data,pn=ie&&yt!=null?yt:we;if(pn)return ut(Pr(t.cloneNode(pn),pe),pe);if(Z&1&&A)return t.createParenthesizedExpression(t.createVoidZero())}return pe}function Ws(pe){return Cc(pe)||pe}function Cc(pe){if(re&1&&p.getNodeCheckFlags(pe)&536870912){const Z=p.getReferencedValueDeclaration(pe);if(Z){const we=_e[Z.id];if(we){const yt=t.cloneNode(we);return Pa(yt,pe),uc(yt,pe),yt}}}}}function OUe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function WUe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function FUe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function zUe(e){return!gS(e)&&e.escapedText==="#constructor"}function BUe(e){return Ji(e.left)&&e.operatorToken.kind===103}function GUe(e){return Uo(e)&&vc(e)}function HP(e){return Rl(e)||GUe(e)}var VUe=T({"src/compiler/transformers/classFields.ts"(){ta()}});function Jle(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=ls(o),l=fd(o,"strictNullChecks");let u,p;return{serializeTypeNode:(ye,Q)=>h(ye,M,Q),serializeTypeOfNode:(ye,Q)=>h(ye,b,Q),serializeParameterTypesOfNode:(ye,Q,Y)=>h(ye,A,Q,Y),serializeReturnTypeOfNode:(ye,Q)=>h(ye,R,Q)};function h(ye,Q,Y,oe){const he=u,Ae=p;u=ye.currentLexicalScope,p=ye.currentNameScope;const de=oe===void 0?Q(Y):Q(Y,oe);return u=he,p=Ae,de}function f(ye){const Q=i.getAllAccessorDeclarations(ye);return Q.setAccessor&&loe(Q.setAccessor)||Q.getAccessor&&sm(Q.getAccessor)}function b(ye){switch(ye.kind){case 172:case 169:return M(ye.type);case 178:case 177:return M(f(ye));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function A(ye,Q){const Y=ui(ye)?cg(ye):Qo(ye)&&tm(ye.body)?ye:void 0,oe=[];if(Y){const he=I(Y,Q),Ae=he.length;for(let de=0;de<Ae;de++){const ie=he[de];de===0&&je(ie.name)&&ie.name.escapedText==="this"||(ie.dotDotDotToken?oe.push(M(Fj(ie.type))):oe.push(b(ie)))}}return t.createArrayLiteralExpression(oe)}function I(ye,Q){if(Q&&ye.kind===177){const{setAccessor:Y}=wS(Q.members,ye);if(Y)return Y.parameters}return ye.parameters}function R(ye){return Qo(ye)&&ye.type?M(ye.type):MN(ye)?t.createIdentifier("Promise"):t.createVoidZero()}function M(ye){if(ye===void 0)return t.createIdentifier("Object");switch(ye=rk(ye),ye.kind){case 116:case 157:case 146:return t.createVoidZero();case 184:case 185:return t.createIdentifier("Function");case 188:case 189:return t.createIdentifier("Array");case 182:return ye.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 203:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 201:return N(ye.literal);case 150:return t.createIdentifier("Number");case 163:return _e("BigInt",7);case 155:return _e("Symbol",2);case 183:return K(ye);case 193:return O(ye.types,!0);case 192:return O(ye.types,!1);case 194:return O([ye.trueType,ye.falseType],!1);case 198:if(ye.operator===148)return M(ye.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:break;case 319:case 320:case 324:case 325:case 326:break;case 321:case 322:case 323:return M(ye.type);default:return C.failBadSyntaxKind(ye)}return t.createIdentifier("Object")}function N(ye){switch(ye.kind){case 11:case 15:return t.createIdentifier("String");case 224:{const Q=ye.operand;switch(Q.kind){case 9:case 10:return N(Q);default:return C.failBadSyntaxKind(Q)}}case 9:return t.createIdentifier("Number");case 10:return _e("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return C.failBadSyntaxKind(ye)}}function O(ye,Q){let Y;for(let oe of ye){if(oe=rk(oe),oe.kind===146){if(Q)return t.createVoidZero();continue}if(oe.kind===159){if(!Q)return t.createIdentifier("Object");continue}if(oe.kind===133)return t.createIdentifier("Object");if(!l&&(Zy(oe)&&oe.literal.kind===106||oe.kind===157))continue;const he=M(oe);if(je(he)&&he.escapedText==="Object")return he;if(Y){if(!U(Y,he))return t.createIdentifier("Object")}else Y=he}return Y!=null?Y:t.createVoidZero()}function U(ye,Q){return al(ye)?al(Q):je(ye)?je(Q)&&ye.escapedText===Q.escapedText:Fr(ye)?Fr(Q)&&U(ye.expression,Q.expression)&&U(ye.name,Q.name):pI(ye)?pI(Q)&&bp(ye.expression)&&ye.expression.text==="0"&&bp(Q.expression)&&Q.expression.text==="0":Ma(ye)?Ma(Q)&&ye.text===Q.text:XR(ye)?XR(Q)&&U(ye.expression,Q.expression):Gd(ye)?Gd(Q)&&U(ye.expression,Q.expression):YR(ye)?YR(Q)&&U(ye.condition,Q.condition)&&U(ye.whenTrue,Q.whenTrue)&&U(ye.whenFalse,Q.whenFalse):mr(ye)?mr(Q)&&ye.operatorToken.kind===Q.operatorToken.kind&&U(ye.left,Q.left)&&U(ye.right,Q.right):!1}function K(ye){const Q=i.getTypeReferenceSerializationKind(ye.typeName,p!=null?p:u);switch(Q){case 0:if(zn(ye,he=>he.parent&&dI(he.parent)&&(he.parent.trueType===he||he.parent.falseType===he)))return t.createIdentifier("Object");const Y=V(ye.typeName),oe=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(oe,Y),"function"),void 0,oe,void 0,t.createIdentifier("Object"));case 1:return se(ye.typeName);case 2:return t.createVoidZero();case 4:return _e("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return _e("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return C.assertNever(Q)}}function ee(ye,Q){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ye),t.createStringLiteral("undefined")),Q)}function V(ye){if(ye.kind===80){const oe=se(ye);return ee(oe,oe)}if(ye.left.kind===80)return ee(se(ye.left),se(ye));const Q=V(ye.left),Y=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(Q.left,t.createStrictInequality(t.createAssignment(Y,Q.right),t.createVoidZero())),t.createPropertyAccessExpression(Y,ye.right))}function se(ye){switch(ye.kind){case 80:const Q=Ya(ut(Rh.cloneNode(ye),ye),ye.parent);return Q.original=void 0,Ya(Q,Do(u)),Q;case 166:return G(ye)}}function G(ye){return t.createPropertyAccessExpression(se(ye.left),ye.right)}function re(ye){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ye),"function"),void 0,t.createIdentifier(ye),void 0,t.createIdentifier("Object"))}function _e(ye,Q){return s<Q?re(ye):t.createIdentifier(ye)}}var jUe=T({"src/compiler/transformers/typeSerializer.ts"(){ta()}});function Kle(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),l=ls(s),u=e.onSubstituteNode;e.onSubstituteNode=Ue;let p;return wm(e,h);function h(Qe){const It=xn(Qe,b,e);return Jg(It,e.readEmitHelpers()),It}function f(Qe){return Su(Qe)?void 0:Qe}function b(Qe){if(!(Qe.transformFlags&33554432))return Qe;switch(Qe.kind){case 170:return;case 263:return A(Qe);case 231:return K(Qe);case 176:return ee(Qe);case 174:return se(Qe);case 178:return re(Qe);case 177:return G(Qe);case 172:return _e(Qe);case 169:return ye(Qe);default:return xn(Qe,b,e)}}function A(Qe){if(!(Bv(!0,Qe)||IN(!0,Qe)))return xn(Qe,b,e);const It=Bv(!0,Qe)?U(Qe,Qe.name):O(Qe,Qe.name);return uh(It)}function I(Qe){return!!(Qe.transformFlags&536870912)}function R(Qe){return St(Qe,I)}function M(Qe){for(const It of Qe.members){if(!QS(It))continue;const on=s7(It,Qe,!0);if(St(on==null?void 0:on.decorators,I)||St(on==null?void 0:on.parameters,R))return!0}return!1}function N(Qe,It){let on=[];return oe(on,Qe,!1),oe(on,Qe,!0),M(Qe)&&(It=ut(t.createNodeArray([...It,t.createClassStaticBlockDeclaration(t.createBlock(on,!0))]),It),on=void 0),{decorationStatements:on,members:It}}function O(Qe,It){const on=Bn(Qe.modifiers,f,xa),$t=Bn(Qe.heritageClauses,b,of);let Cn=Bn(Qe.members,b,Zc),Hn=[];({members:Cn,decorationStatements:Hn}=N(Qe,Cn));const yn=t.updateClassDeclaration(Qe,on,It,void 0,$t,Cn);return Ur([yn],Hn)}function U(Qe,It){const on=$r(Qe,32),$t=$r(Qe,2048),Cn=Bn(Qe.modifiers,Bt=>sw(Bt)||Su(Bt)?void 0:Bt,sl),Hn=L_(Qe),yn=Oe(Qe),tn=l<2?t.getInternalName(Qe,!1,!0):t.getLocalName(Qe,!1,!0),en=Bn(Qe.heritageClauses,b,of);let gi=Bn(Qe.members,b,Zc),ho=[];({members:gi,decorationStatements:ho}=N(Qe,gi));const Gi=l>=9&&!!yn&&St(gi,Bt=>Uo(Bt)&&$r(Bt,256)||Rl(Bt));Gi&&(gi=ut(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(yn,t.createThis()))])),...gi]),gi));const xo=t.createClassExpression(Cn,It&&al(It)?void 0:It,void 0,en,gi);Pr(xo,Qe),ut(xo,Hn);const Qn=yn&&!Gi?t.createAssignment(yn,xo):xo,Di=t.createVariableDeclaration(tn,void 0,void 0,Qn);Pr(Di,Qe);const Ir=t.createVariableDeclarationList([Di],1),Xt=t.createVariableStatement(void 0,Ir);Pr(Xt,Qe),ut(Xt,Hn),uc(Xt,Qe);const nt=[Xt];if(Ur(nt,ho),ge(nt,Qe),on)if($t){const Bt=t.createExportDefault(tn);nt.push(Bt)}else{const Bt=t.createExternalModuleExport(t.getDeclarationName(Qe));nt.push(Bt)}return nt}function K(Qe){return t.updateClassExpression(Qe,Bn(Qe.modifiers,f,xa),Qe.name,void 0,Bn(Qe.heritageClauses,b,of),Bn(Qe.members,b,Zc))}function ee(Qe){return t.updateConstructorDeclaration(Qe,Bn(Qe.modifiers,f,xa),Bn(Qe.parameters,b,Io),rt(Qe.body,b,Jo))}function V(Qe,It){return Qe!==It&&(uc(Qe,It),Pa(Qe,L_(It))),Qe}function se(Qe){return V(t.updateMethodDeclaration(Qe,Bn(Qe.modifiers,f,xa),Qe.asteriskToken,C.checkDefined(rt(Qe.name,b,cc)),void 0,void 0,Bn(Qe.parameters,b,Io),void 0,rt(Qe.body,b,Jo)),Qe)}function G(Qe){return V(t.updateGetAccessorDeclaration(Qe,Bn(Qe.modifiers,f,xa),C.checkDefined(rt(Qe.name,b,cc)),Bn(Qe.parameters,b,Io),void 0,rt(Qe.body,b,Jo)),Qe)}function re(Qe){return V(t.updateSetAccessorDeclaration(Qe,Bn(Qe.modifiers,f,xa),C.checkDefined(rt(Qe.name,b,cc)),Bn(Qe.parameters,b,Io),rt(Qe.body,b,Jo)),Qe)}function _e(Qe){if(!(Qe.flags&33554432||$r(Qe,128)))return V(t.updatePropertyDeclaration(Qe,Bn(Qe.modifiers,f,xa),C.checkDefined(rt(Qe.name,b,cc)),void 0,void 0,rt(Qe.initializer,b,bt)),Qe)}function ye(Qe){const It=t.updateParameterDeclaration(Qe,Sse(t,Qe.modifiers),Qe.dotDotDotToken,C.checkDefined(rt(Qe.name,b,vS)),void 0,void 0,rt(Qe.initializer,b,bt));return It!==Qe&&(uc(It,Qe),ut(It,L_(Qe)),Pa(It,L_(Qe)),pr(It.name,64)),It}function Q(Qe){return mP(Qe.expression,"___metadata")}function Y(Qe){if(!Qe)return;const{false:It,true:on}=w6(Qe.decorators,Q),$t=[];return Ur($t,Ot(It,qe)),Ur($t,Pi(Qe.parameters,Ee)),Ur($t,Ot(on,qe)),$t}function oe(Qe,It,on){Ur(Qe,Ot(de(It,on),$t=>t.createExpressionStatement($t)))}function he(Qe,It,on){return BL(!0,Qe,on)&&It===aa(Qe)}function Ae(Qe,It){return rr(Qe.members,on=>he(on,It,Qe))}function de(Qe,It){const on=Ae(Qe,It);let $t;for(const Cn of on)$t=Rn($t,ie(Qe,Cn));return $t}function ie(Qe,It){const on=s7(It,Qe,!0),$t=Y(on);if(!$t)return;const Cn=be(Qe,It),Hn=Me(It,!$r(It,128)),yn=l>0?Uo(It)&&!P_(It)?t.createVoidZero():t.createNull():void 0,tn=r().createDecorateHelper($t,Cn,Hn,yn);return pr(tn,3072),Pa(tn,L_(It)),tn}function ge(Qe,It){const on=Ne(It);on&&Qe.push(Pr(t.createExpressionStatement(on),It))}function Ne(Qe){const It=cJ(Qe),on=Y(It);if(!on)return;const $t=p&&p[Wu(Qe)],Cn=l<2?t.getInternalName(Qe,!1,!0):t.getDeclarationName(Qe,!1,!0),Hn=r().createDecorateHelper(on,Cn),yn=t.createAssignment(Cn,$t?t.createAssignment($t,Hn):Hn);return pr(yn,3072),Pa(yn,L_(Qe)),yn}function qe(Qe){return C.checkDefined(rt(Qe.expression,b,bt))}function Ee(Qe,It){let on;if(Qe){on=[];for(const $t of Qe){const Cn=r().createParamHelper(qe($t),It);ut(Cn,$t.expression),pr(Cn,3072),on.push(Cn)}}return on}function Me(Qe,It){const on=Qe.name;return Ji(on)?t.createIdentifier(""):rs(on)?It&&!Ch(on.expression)?t.getGeneratedNameForNode(on):on.expression:je(on)?t.createStringLiteral(Tr(on)):t.cloneNode(on)}function Ce(){p||(e.enableSubstitution(80),p=[])}function Oe(Qe){if(o.getNodeCheckFlags(Qe)&262144){Ce();const It=t.createUniqueName(Qe.name&&!al(Qe.name)?Tr(Qe.name):"default");return p[Wu(Qe)]=It,i(It),It}}function At(Qe){return t.createPropertyAccessExpression(t.getDeclarationName(Qe),"prototype")}function be(Qe,It){return aa(It)?t.getDeclarationName(Qe):At(Qe)}function Ue(Qe,It){return It=u(Qe,It),Qe===1?it(It):It}function it(Qe){switch(Qe.kind){case 80:return Ft(Qe)}return Qe}function Ft(Qe){var It;return(It=gt(Qe))!=null?It:Qe}function gt(Qe){if(p&&o.getNodeCheckFlags(Qe)&536870912){const It=o.getReferencedValueDeclaration(Qe);if(It){const on=p[It.id];if(on){const $t=t.cloneNode(on);return Pa($t,Qe),uc($t,Qe),$t}}}}}var UUe=T({"src/compiler/transformers/legacyDecorators.ts"(){ta()}});function Xle(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=ls(e.getCompilerOptions());let u,p,h,f,b,A;return wm(e,I);function I(L){u=void 0,A=!1;const me=xn(L,re,e);return Jg(me,e.readEmitHelpers()),A&&(QA(me,32),A=!1),me}function R(){switch(p=void 0,h=void 0,f=void 0,u==null?void 0:u.kind){case"class":p=u.classInfo;break;case"class-element":p=u.next.classInfo,h=u.classThis,f=u.classSuper;break;case"name":const L=u.next.next.next;(L==null?void 0:L.kind)==="class-element"&&(p=L.next.classInfo,h=L.classThis,f=L.classSuper);break}}function M(L){u={kind:"class",next:u,classInfo:L,savedPendingExpressions:b},b=void 0,R()}function N(){C.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>"Expected top.kind to be 'class' but got '".concat(u==null?void 0:u.kind,"' instead.")),b=u.savedPendingExpressions,u=u.next,R()}function O(L){var me,q;C.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>"Expected top.kind to be 'class' but got '".concat(u==null?void 0:u.kind,"' instead.")),u={kind:"class-element",next:u},(Rl(L)||Uo(L)&&vc(L))&&(u.classThis=(me=u.next.classInfo)==null?void 0:me.classThis,u.classSuper=(q=u.next.classInfo)==null?void 0:q.classSuper),R()}function U(){var L;C.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>"Expected top.kind to be 'class-element' but got '".concat(u==null?void 0:u.kind,"' instead.")),C.assert(((L=u.next)==null?void 0:L.kind)==="class","Incorrect value for top.next.kind.",()=>{var me;return"Expected top.next.kind to be 'class' but got '".concat((me=u.next)==null?void 0:me.kind,"' instead.")}),u=u.next,R()}function K(){C.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>"Expected top.kind to be 'class-element' but got '".concat(u==null?void 0:u.kind,"' instead.")),u={kind:"name",next:u},R()}function ee(){C.assert((u==null?void 0:u.kind)==="name","Incorrect value for top.kind.",()=>"Expected top.kind to be 'name' but got '".concat(u==null?void 0:u.kind,"' instead.")),u=u.next,R()}function V(){(u==null?void 0:u.kind)==="other"?(C.assert(!b),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:b},b=void 0,R())}function se(){C.assert((u==null?void 0:u.kind)==="other","Incorrect value for top.kind.",()=>"Expected top.kind to be 'other' but got '".concat(u==null?void 0:u.kind,"' instead.")),u.depth>0?(C.assert(!b),u.depth--):(b=u.savedPendingExpressions,u=u.next,R())}function G(L){return!!(L.transformFlags&33554432)||!!h&&!!(L.transformFlags&16384)||!!h&&!!f&&!!(L.transformFlags&134217728)}function re(L){if(!G(L))return L;switch(L.kind){case 170:return C.fail("Use `modifierVisitor` instead.");case 263:return Ne(L);case 231:return qe(L);case 176:case 172:case 175:return C.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Hn(L);case 226:return ho(L,!1);case 303:return Xt(L);case 260:return nt(L);case 208:return Bt(L);case 277:return Je(L);case 110:return Qe(L);case 248:return en(L);case 244:return gi(L);case 361:return xo(L,!1);case 217:return mt(L,!1);case 360:return pt(L);case 213:return It(L);case 215:return on(L);case 224:case 225:return Gi(L,!1);case 211:return $t(L);case 212:return Cn(L);case 167:return Ir(L);case 174:case 178:case 177:case 218:case 262:{V();const me=xn(L,_e,e);return se(),me}default:return xn(L,_e,e)}}function _e(L){switch(L.kind){case 170:return;default:return re(L)}}function ye(L){switch(L.kind){case 170:return;default:return L}}function Q(L){switch(L.kind){case 176:return Ce(L);case 174:return be(L);case 177:return Ue(L);case 178:return it(L);case 172:return gt(L);case 175:return Ft(L);default:return re(L)}}function Y(L){switch(L.kind){case 224:case 225:return Gi(L,!0);case 226:return ho(L,!0);case 361:return xo(L,!0);case 217:return mt(L,!0);default:return re(L)}}function oe(L){let me=L.name&&je(L.name)&&!al(L.name)?Tr(L.name):L.name&&Ji(L.name)&&!al(L.name)?Tr(L.name).slice(1):L.name&&Ma(L.name)&&tf(L.name.text,99)?L.name.text:ui(L)?"class":"member";return Fy(L)&&(me="get_".concat(me)),zv(L)&&(me="set_".concat(me)),L.name&&Ji(L.name)&&(me="private_".concat(me)),aa(L)&&(me="static_".concat(me)),"_"+me}function he(L,me){return t.createUniqueName("".concat(oe(L),"_").concat(me),24)}function Ae(L,me){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(L,void 0,void 0,me)],1))}function de(L){var nr,lr;const me=t.createUniqueName("_metadata",48);let q,fe,Ve=!1,ke=!1,Tt=!1,kt,nn,En;if(_R(!1,L)){const ai=St(L.members,si=>(cd(si)||Wd(si))&&vc(si));kt=t.createUniqueName("_classThis",ai?24:48)}for(const ai of L.members){if(MA(ai)&&BL(!1,ai,L))if(vc(ai)){if(!fe){fe=t.createUniqueName("_staticExtraInitializers",48);const si=r().createRunInitializersHelper(kt!=null?kt:t.createThis(),fe);Pa(si,(nr=L.name)!=null?nr:Ug(L)),nn!=null||(nn=[]),nn.push(si)}}else{if(!q){q=t.createUniqueName("_instanceExtraInitializers",48);const si=r().createRunInitializersHelper(t.createThis(),q);Pa(si,(lr=L.name)!=null?lr:Ug(L)),En!=null||(En=[]),En.push(si)}q!=null||(q=t.createUniqueName("_instanceExtraInitializers",48))}if(Rl(ai)?RI(ai)||(Ve=!0):Uo(ai)&&(vc(ai)?Ve||(Ve=!!ai.initializer||If(ai)):ke||(ke=!Nj(ai))),(cd(ai)||Wd(ai))&&vc(ai)&&(Tt=!0),fe&&q&&Ve&&ke&&Tt)break}return{class:L,classThis:kt,metadataReference:me,instanceMethodExtraInitializersName:q,staticMethodExtraInitializersName:fe,hasStaticInitializers:Ve,hasNonAmbientInstanceFields:ke,hasStaticPrivateClassElements:Tt,pendingStaticInitializers:nn,pendingInstanceInitializers:En}}function ie(L){var ga,Ja;i(),!mJ(L)&&Bv(!1,L)&&(L=c7(e,L,t.createStringLiteral("")));const me=t.getLocalName(L,!1,!1,!0),q=de(L),fe=[];let Ve,ke,Tt,kt,nn=!1;const En=dt(cJ(L));En&&(q.classDecoratorsName=t.createUniqueName("_classDecorators",48),q.classDescriptorName=t.createUniqueName("_classDescriptor",48),q.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),C.assertIsDefined(q.classThis),fe.push(Ae(q.classDecoratorsName,t.createArrayLiteralExpression(En)),Ae(q.classDescriptorName),Ae(q.classExtraInitializersName,t.createArrayLiteralExpression()),Ae(q.classThis)),q.hasStaticPrivateClassElements&&(nn=!0,A=!0));const nr=ak(L.heritageClauses,96),lr=nr&&$c(nr.types),ai=lr&&rt(lr.expression,re,bt);if(ai){q.classSuper=t.createUniqueName("_classSuper",48);const Qt=ec(ai),va=tu(Qt)&&!Qt.name||Bs(Qt)&&!Qt.name||Us(Qt)?t.createComma(t.createNumericLiteral(0),ai):ai;fe.push(Ae(q.classSuper,va));const Wl=t.updateExpressionWithTypeArguments(lr,q.classSuper,void 0),to=t.updateHeritageClause(nr,[Wl]);kt=t.createNodeArray([to])}const si=(ga=q.classThis)!=null?ga:t.createThis();M(q),Ve=Rn(Ve,H(q.metadataReference,q.classSuper));let Kn=L.members;if(Kn=Bn(Kn,Qt=>Ll(Qt)?Qt:Q(Qt),Zc),Kn=Bn(Kn,Qt=>Ll(Qt)?Q(Qt):Qt,Zc),b){let Qt;for(let va of b){va=rt(va,function to(za){if(!(za.transformFlags&16384))return za;switch(za.kind){case 110:return Qt||(Qt=t.createUniqueName("_outerThis",16),fe.unshift(Ae(Qt,t.createThis()))),Qt;default:return xn(za,to,e)}},bt);const Wl=t.createExpressionStatement(va);Ve=Rn(Ve,Wl)}b=void 0}if(N(),St(q.pendingInstanceInitializers)&&!cg(L)){const Qt=Ee(L,q);if(Qt){const va=D_(L),Wl=!!(va&&ec(va.expression).kind!==106),to=[];if(Wl){const La=t.createSpreadElement(t.createIdentifier("arguments")),ys=t.createCallExpression(t.createSuper(),void 0,[La]);to.push(t.createExpressionStatement(ys))}Ur(to,Qt);const za=t.createBlock(to,!0);Tt=t.createConstructorDeclaration(void 0,[],za)}}if(q.staticMethodExtraInitializersName&&fe.push(Ae(q.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),q.instanceMethodExtraInitializersName&&fe.push(Ae(q.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),q.memberInfos&&jc(q.memberInfos,(Qt,va)=>{aa(va)&&(fe.push(Ae(Qt.memberDecoratorsName)),Qt.memberInitializersName&&fe.push(Ae(Qt.memberInitializersName,t.createArrayLiteralExpression())),Qt.memberExtraInitializersName&&fe.push(Ae(Qt.memberExtraInitializersName,t.createArrayLiteralExpression())),Qt.memberDescriptorName&&fe.push(Ae(Qt.memberDescriptorName)))}),q.memberInfos&&jc(q.memberInfos,(Qt,va)=>{aa(va)||(fe.push(Ae(Qt.memberDecoratorsName)),Qt.memberInitializersName&&fe.push(Ae(Qt.memberInitializersName,t.createArrayLiteralExpression())),Qt.memberExtraInitializersName&&fe.push(Ae(Qt.memberExtraInitializersName,t.createArrayLiteralExpression())),Qt.memberDescriptorName&&fe.push(Ae(Qt.memberDescriptorName)))}),Ve=Ur(Ve,q.staticNonFieldDecorationStatements),Ve=Ur(Ve,q.nonStaticNonFieldDecorationStatements),Ve=Ur(Ve,q.staticFieldDecorationStatements),Ve=Ur(Ve,q.nonStaticFieldDecorationStatements),q.classDescriptorName&&q.classDecoratorsName&&q.classExtraInitializersName&&q.classThis){Ve!=null||(Ve=[]);const Qt=t.createPropertyAssignment("value",si),va=t.createObjectLiteralExpression([Qt]),Wl=t.createAssignment(q.classDescriptorName,va),to=t.createPropertyAccessExpression(si,"name"),za=r().createESDecorateHelper(t.createNull(),Wl,q.classDecoratorsName,{kind:"class",name:to,metadata:q.metadataReference},t.createNull(),q.classExtraInitializersName),La=t.createExpressionStatement(za);Pa(La,Ug(L)),Ve.push(La);const ys=t.createPropertyAccessExpression(q.classDescriptorName,"value"),tc=t.createAssignment(q.classThis,ys),ao=t.createAssignment(me,tc);Ve.push(t.createExpressionStatement(ao))}if(Ve.push(We(si,q.metadataReference)),St(q.pendingStaticInitializers)){for(const Qt of q.pendingStaticInitializers){const va=t.createExpressionStatement(Qt);Pa(va,Jv(Qt)),ke=Rn(ke,va)}q.pendingStaticInitializers=void 0}if(q.classExtraInitializersName){const Qt=r().createRunInitializersHelper(si,q.classExtraInitializersName),va=t.createExpressionStatement(Qt);Pa(va,(Ja=L.name)!=null?Ja:Ug(L)),ke=Rn(ke,va)}Ve&&ke&&!q.hasStaticInitializers&&(Ur(Ve,ke),ke=void 0);const Hr=Ve&&t.createClassStaticBlockDeclaration(t.createBlock(Ve,!0));Hr&&nn&&zk(Hr,32);const bo=ke&&t.createClassStaticBlockDeclaration(t.createBlock(ke,!0));if(Hr||Tt||bo){const Qt=[],va=Kn.findIndex(RI);Hr?(Ur(Qt,Kn,0,va+1),Qt.push(Hr),Ur(Qt,Kn,va+1)):Ur(Qt,Kn),Tt&&Qt.push(Tt),bo&&Qt.push(bo),Kn=ut(t.createNodeArray(Qt),Kn)}const wi=o();let vi;if(En){vi=t.createClassExpression(void 0,void 0,void 0,kt,Kn),q.classThis&&(vi=Gle(t,vi,q.classThis));const Qt=t.createVariableDeclaration(me,void 0,void 0,vi),va=t.createVariableDeclarationList([Qt]),Wl=q.classThis?t.createAssignment(me,q.classThis):me;fe.push(t.createVariableStatement(void 0,va),t.createReturnStatement(Wl))}else vi=t.createClassExpression(void 0,L.name,void 0,kt,Kn),fe.push(t.createReturnStatement(vi));if(nn){QA(vi,32);for(const Qt of vi.members)(cd(Qt)||Wd(Qt))&&vc(Qt)&&QA(Qt,32)}return Pr(vi,L),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(fe,wi))}function ge(L){return Bv(!1,L)||IN(!1,L)}function Ne(L){var me;if(ge(L)){const q=[],fe=(me=Ml(L,ui))!=null?me:L,Ve=fe.name?t.createStringLiteralFromNode(fe.name):t.createStringLiteral("default"),ke=$r(L,32),Tt=$r(L,2048);if(L.name||(L=c7(e,L,Ve)),ke&&Tt){const kt=ie(L);if(L.name){const nn=t.createVariableDeclaration(t.getLocalName(L),void 0,void 0,kt);Pr(nn,L);const En=t.createVariableDeclarationList([nn],1),nr=t.createVariableStatement(void 0,En);q.push(nr);const lr=t.createExportDefault(t.getDeclarationName(L));Pr(lr,L),uc(lr,w_(L)),Pa(lr,Ug(L)),q.push(lr)}else{const nn=t.createExportDefault(kt);Pr(nn,L),uc(nn,w_(L)),Pa(nn,Ug(L)),q.push(nn)}}else{C.assertIsDefined(L.name,"A class declaration that is not a default export must have a name.");const kt=ie(L),nn=ke?Kn=>oI(Kn)?void 0:ye(Kn):ye,En=Bn(L.modifiers,nn,xa),nr=t.getLocalName(L,!1,!0),lr=t.createVariableDeclaration(nr,void 0,void 0,kt);Pr(lr,L);const ai=t.createVariableDeclarationList([lr],1),si=t.createVariableStatement(En,ai);if(Pr(si,L),uc(si,w_(L)),q.push(si),ke){const Kn=t.createExternalModuleExport(nr);Pr(Kn,L),q.push(Kn)}}return uh(q)}else{const q=Bn(L.modifiers,ye,xa),fe=Bn(L.heritageClauses,re,of);M(void 0);const Ve=Bn(L.members,Q,Zc);return N(),t.updateClassDeclaration(L,q,L.name,void 0,fe,Ve)}}function qe(L){if(ge(L)){const me=ie(L);return Pr(me,L),me}else{const me=Bn(L.modifiers,ye,xa),q=Bn(L.heritageClauses,re,of);M(void 0);const fe=Bn(L.members,Q,Zc);return N(),t.updateClassExpression(L,me,L.name,void 0,q,fe)}}function Ee(L,me){if(St(me.pendingInstanceInitializers)){const q=[];return q.push(t.createExpressionStatement(t.inlineExpressions(me.pendingInstanceInitializers))),me.pendingInstanceInitializers=void 0,q}}function Me(L,me,q,fe,Ve,ke){const Tt=fe[Ve],kt=me[Tt];if(Ur(L,Bn(me,re,qi,q,Tt-q)),qS(kt)){const nn=[];Me(nn,kt.tryBlock.statements,0,fe,Ve+1,ke);const En=t.createNodeArray(nn);ut(En,kt.tryBlock.statements),L.push(t.updateTryStatement(kt,t.updateBlock(kt.tryBlock,nn),rt(kt.catchClause,re,d1),rt(kt.finallyBlock,re,Jo)))}else Ur(L,Bn(me,re,qi,Tt,1)),Ur(L,ke);Ur(L,Bn(me,re,qi,Tt+1))}function Ce(L){O(L);const me=Bn(L.modifiers,ye,xa),q=Bn(L.parameters,re,Io);let fe;if(L.body&&p){const Ve=Ee(p.class,p);if(Ve){const ke=[],Tt=t.copyPrologue(L.body.statements,ke,!1,re),kt=o7(L.body.statements,Tt);kt.length>0?Me(ke,L.body.statements,Tt,kt,0,Ve):(Ur(ke,Ve),Ur(ke,Bn(L.body.statements,re,qi))),fe=t.createBlock(ke,!0),Pr(fe,L.body),ut(fe,L.body)}}return fe!=null||(fe=rt(L.body,re,Jo)),U(),t.updateConstructorDeclaration(L,me,q,fe)}function Oe(L,me){return L!==me&&(uc(L,me),Pa(L,Ug(me))),L}function At(L,me,q){var lr,ai,si,Kn,Hr,bo,wi;let fe,Ve,ke,Tt,kt,nn;if(!me){const vi=Bn(L.modifiers,ye,xa);return K(),Ve=Di(L.name),ee(),{modifiers:vi,referencedName:fe,name:Ve,initializersName:ke,descriptorName:nn,thisArg:kt}}const En=dt(s7(L,me.class,!1)),nr=Bn(L.modifiers,ye,xa);if(En){const vi=he(L,"decorators"),ga=t.createArrayLiteralExpression(En),Ja=t.createAssignment(vi,ga),Qt={memberDecoratorsName:vi};(lr=me.memberInfos)!=null||(me.memberInfos=new Map),me.memberInfos.set(L,Qt),b!=null||(b=[]),b.push(Ja);const va=MA(L)||Wd(L)?aa(L)?(ai=me.staticNonFieldDecorationStatements)!=null?ai:me.staticNonFieldDecorationStatements=[]:(si=me.nonStaticNonFieldDecorationStatements)!=null?si:me.nonStaticNonFieldDecorationStatements=[]:Uo(L)&&!Wd(L)?aa(L)?(Kn=me.staticFieldDecorationStatements)!=null?Kn:me.staticFieldDecorationStatements=[]:(Hr=me.nonStaticFieldDecorationStatements)!=null?Hr:me.nonStaticFieldDecorationStatements=[]:C.fail(),Wl=rf(L)?"getter":Sp(L)?"setter":Kl(L)?"method":Wd(L)?"accessor":Uo(L)?"field":C.fail();let to;if(je(L.name)||Ji(L.name))to={computed:!1,name:L.name};else if(C_(L.name))to={computed:!0,name:t.createStringLiteralFromNode(L.name)};else{const La=L.name.expression;C_(La)&&!je(La)?to={computed:!0,name:t.createStringLiteralFromNode(La)}:(K(),{referencedName:fe,name:Ve}=Qn(L.name),to={computed:!0,name:fe},ee())}const za={kind:Wl,name:to,static:aa(L),private:Ji(L.name),access:{get:Uo(L)||rf(L)||Kl(L),set:Uo(L)||Sp(L)},metadata:me.metadataReference};if(MA(L)){const La=aa(L)?me.staticMethodExtraInitializersName:me.instanceMethodExtraInitializersName;C.assertIsDefined(La);let ys;cd(L)&&q&&(ys=q(L,Bn(nr,ca=>ti(ca,_P),xa)),Qt.memberDescriptorName=nn=he(L,"descriptor"),ys=t.createAssignment(nn,ys));const tc=r().createESDecorateHelper(t.createThis(),ys!=null?ys:t.createNull(),vi,za,t.createNull(),La),ao=t.createExpressionStatement(tc);Pa(ao,Ug(L)),va.push(ao)}else if(Uo(L)){ke=(bo=Qt.memberInitializersName)!=null?bo:Qt.memberInitializersName=he(L,"initializers"),Tt=(wi=Qt.memberExtraInitializersName)!=null?wi:Qt.memberExtraInitializersName=he(L,"extraInitializers"),aa(L)&&(kt=me.classThis);let La;cd(L)&&P_(L)&&q&&(La=q(L,void 0),Qt.memberDescriptorName=nn=he(L,"descriptor"),La=t.createAssignment(nn,La));const ys=r().createESDecorateHelper(Wd(L)?t.createThis():t.createNull(),La!=null?La:t.createNull(),vi,za,ke,Tt),tc=t.createExpressionStatement(ys);Pa(tc,Ug(L)),va.push(tc)}}return Ve===void 0&&(K(),Ve=Di(L.name),ee()),!St(nr)&&(Kl(L)||Uo(L))&&pr(Ve,1024),{modifiers:nr,referencedName:fe,name:Ve,initializersName:ke,extraInitializersName:Tt,descriptorName:nn,thisArg:kt}}function be(L){O(L);const{modifiers:me,name:q,descriptorName:fe}=At(L,p,Dt);if(fe)return U(),Oe(gn(me,q,fe),L);{const Ve=Bn(L.parameters,re,Io),ke=rt(L.body,re,Jo);return U(),Oe(t.updateMethodDeclaration(L,me,L.asteriskToken,q,void 0,void 0,Ve,void 0,ke),L)}}function Ue(L){O(L);const{modifiers:me,name:q,descriptorName:fe}=At(L,p,Ye);if(fe)return U(),Oe(hn(me,q,fe),L);{const Ve=Bn(L.parameters,re,Io),ke=rt(L.body,re,Jo);return U(),Oe(t.updateGetAccessorDeclaration(L,me,q,Ve,void 0,ke),L)}}function it(L){O(L);const{modifiers:me,name:q,descriptorName:fe}=At(L,p,_t);if(fe)return U(),Oe(dn(me,q,fe),L);{const Ve=Bn(L.parameters,re,Io),ke=rt(L.body,re,Jo);return U(),Oe(t.updateSetAccessorDeclaration(L,me,q,Ve,ke),L)}}function Ft(L){O(L);let me;if(RI(L))me=xn(L,re,e);else if(jP(L)){const q=h;h=void 0,me=xn(L,re,e),h=q}else if(L=xn(L,re,e),me=L,p&&(p.hasStaticInitializers=!0,St(p.pendingStaticInitializers))){const q=[];for(const ke of p.pendingStaticInitializers){const Tt=t.createExpressionStatement(ke);Pa(Tt,Jv(ke)),q.push(Tt)}const fe=t.createBlock(q,!0);me=[t.createClassStaticBlockDeclaration(fe),me],p.pendingStaticInitializers=void 0}return U(),me}function gt(L){var En,nr,lr;vp(L,yn)&&(L=Ap(e,L,tn(L.initializer))),O(L),C.assert(!Nj(L),"Not yet implemented.");const{modifiers:me,name:q,initializersName:fe,extraInitializersName:Ve,descriptorName:ke,thisArg:Tt}=At(L,p,P_(L)?Gt:void 0);i();let kt=rt(L.initializer,re,bt);fe&&(kt=r().createRunInitializersHelper(Tt!=null?Tt:t.createThis(),fe,kt!=null?kt:t.createVoidZero())),aa(L)&&p&&kt&&(p.hasStaticInitializers=!0);const nn=o();if(St(nn)&&(kt=t.createImmediatelyInvokedArrowFunction([...nn,t.createReturnStatement(kt)])),p&&(aa(L)?(kt=Fe(p,!0,kt),Ve&&((En=p.pendingStaticInitializers)!=null||(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper((nr=p.classThis)!=null?nr:t.createThis(),Ve)))):(kt=Fe(p,!1,kt),Ve&&((lr=p.pendingInstanceInitializers)!=null||(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Ve))))),U(),P_(L)&&ke){const ai=w_(L),si=Jv(L),Kn=L.name;let Hr=Kn,bo=Kn;if(rs(Kn)&&!Ch(Kn.expression)){const Qt=bF(Kn);if(Qt)Hr=t.updateComputedPropertyName(Kn,rt(Kn.expression,re,bt)),bo=t.updateComputedPropertyName(Kn,Qt.left);else{const va=t.createTempVariable(s);Pa(va,Kn.expression);const Wl=rt(Kn.expression,re,bt),to=t.createAssignment(va,Wl);Pa(to,Kn.expression),Hr=t.updateComputedPropertyName(Kn,to),bo=t.updateComputedPropertyName(Kn,va)}}const wi=Bn(me,Qt=>Qt.kind!==129?Qt:void 0,xa),vi=rq(t,L,wi,kt);Pr(vi,L),pr(vi,3072),Pa(vi,si),Pa(vi.name,L.name);const ga=hn(wi,Hr,ke);Pr(ga,L),uc(ga,ai),Pa(ga,si);const Ja=dn(wi,bo,ke);return Pr(Ja,L),pr(Ja,3072),Pa(Ja,si),[vi,ga,Ja]}return Oe(t.updatePropertyDeclaration(L,me,q,void 0,void 0,kt),L)}function Qe(L){return h!=null?h:L}function It(L){if(zd(L.expression)&&h){const me=rt(L.expression,re,bt),q=Bn(L.arguments,re,bt),fe=t.createFunctionCallCall(me,h,q);return Pr(fe,L),ut(fe,L),fe}return xn(L,re,e)}function on(L){if(zd(L.tag)&&h){const me=rt(L.tag,re,bt),q=t.createFunctionBindCall(me,h,[]);Pr(q,L),ut(q,L);const fe=rt(L.template,re,LA);return t.updateTaggedTemplateExpression(L,q,void 0,fe)}return xn(L,re,e)}function $t(L){if(zd(L)&&je(L.name)&&h&&f){const me=t.createStringLiteralFromNode(L.name),q=t.createReflectGetCall(f,me,h);return Pr(q,L.expression),ut(q,L.expression),q}return xn(L,re,e)}function Cn(L){if(zd(L)&&h&&f){const me=rt(L.argumentExpression,re,bt),q=t.createReflectGetCall(f,me,h);return Pr(q,L.expression),ut(q,L.expression),q}return xn(L,re,e)}function Hn(L){vp(L,yn)&&(L=Ap(e,L,tn(L.initializer)));const me=t.updateParameterDeclaration(L,void 0,L.dotDotDotToken,rt(L.name,re,vS),void 0,void 0,rt(L.initializer,re,bt));return me!==L&&(uc(me,L),ut(me,L_(L)),Pa(me,L_(L)),pr(me.name,64)),me}function yn(L){return tu(L)&&!L.name&&ge(L)}function tn(L){const me=ec(L);return tu(me)&&!me.name&&!Bv(!1,me)}function en(L){return t.updateForStatement(L,rt(L.initializer,Y,Af),rt(L.condition,re,bt),rt(L.incrementor,Y,bt),xd(L.statement,re,e))}function gi(L){return xn(L,Y,e)}function ho(L,me){if(Uv(L)){const q=wn(L.left),fe=rt(L.right,re,bt);return t.updateBinaryExpression(L,q,L.operatorToken,fe)}if(wc(L)){if(vp(L,yn))return L=Ap(e,L,tn(L.right)),xn(L,re,e);if(zd(L.left)&&h&&f){let q=$s(L.left)?rt(L.left.argumentExpression,re,bt):je(L.left.name)?t.createStringLiteralFromNode(L.left.name):void 0;if(q){let fe=rt(L.right,re,bt);if(BP(L.operatorToken.kind)){let ke=q;Ch(q)||(ke=t.createTempVariable(s),q=t.createAssignment(ke,q));const Tt=t.createReflectGetCall(f,ke,h);Pr(Tt,L.left),ut(Tt,L.left),fe=t.createBinaryExpression(Tt,GP(L.operatorToken.kind),fe),ut(fe,L)}const Ve=me?void 0:t.createTempVariable(s);return Ve&&(fe=t.createAssignment(Ve,fe),ut(Ve,L)),fe=t.createReflectSetCall(f,q,fe,h),Pr(fe,L),ut(fe,L),Ve&&(fe=t.createComma(fe,Ve),ut(fe,L)),fe}}}if(L.operatorToken.kind===28){const q=rt(L.left,Y,bt),fe=rt(L.right,me?Y:re,bt);return t.updateBinaryExpression(L,q,L.operatorToken,fe)}return xn(L,re,e)}function Gi(L,me){if(L.operator===46||L.operator===47){const q=vs(L.operand);if(zd(q)&&h&&f){let fe=$s(q)?rt(q.argumentExpression,re,bt):je(q.name)?t.createStringLiteralFromNode(q.name):void 0;if(fe){let Ve=fe;Ch(fe)||(Ve=t.createTempVariable(s),fe=t.createAssignment(Ve,fe));let ke=t.createReflectGetCall(f,Ve,h);Pr(ke,L),ut(ke,L);const Tt=me?void 0:t.createTempVariable(s);return ke=fF(t,L,ke,s,Tt),ke=t.createReflectSetCall(f,fe,ke,h),Pr(ke,L),ut(ke,L),Tt&&(ke=t.createComma(ke,Tt),ut(ke,L)),ke}}}return xn(L,re,e)}function xo(L,me){const q=me?ZF(L.elements,Y):ZF(L.elements,re,Y);return t.updateCommaListExpression(L,q)}function Qn(L){if(C_(L)||Ji(L)){const ke=t.createStringLiteralFromNode(L),Tt=rt(L,re,cc);return{referencedName:ke,name:Tt}}if(C_(L.expression)&&!je(L.expression)){const ke=t.createStringLiteralFromNode(L.expression),Tt=rt(L,re,cc);return{referencedName:ke,name:Tt}}const me=t.getGeneratedNameForNode(L);s(me);const q=r().createPropKeyHelper(rt(L.expression,re,bt)),fe=t.createAssignment(me,q),Ve=t.updateComputedPropertyName(L,le(fe));return{referencedName:me,name:Ve}}function Di(L){return rs(L)?Ir(L):rt(L,re,cc)}function Ir(L){let me=rt(L.expression,re,bt);return Ch(me)||(me=le(me)),t.updateComputedPropertyName(L,me)}function Xt(L){return vp(L,yn)&&(L=Ap(e,L,tn(L.initializer))),xn(L,re,e)}function nt(L){return vp(L,yn)&&(L=Ap(e,L,tn(L.initializer))),xn(L,re,e)}function Bt(L){return vp(L,yn)&&(L=Ap(e,L,tn(L.initializer))),xn(L,re,e)}function Dn(L){if(Wa(L)||_d(L))return wn(L);if(zd(L)&&h&&f){const me=$s(L)?rt(L.argumentExpression,re,bt):je(L.name)?t.createStringLiteralFromNode(L.name):void 0;if(me){const q=t.createTempVariable(void 0),fe=t.createAssignmentTargetWrapper(q,t.createReflectSetCall(f,me,q,h));return Pr(fe,L),ut(fe,L),fe}}return xn(L,re,e)}function oi(L){if(wc(L,!0)){vp(L,yn)&&(L=Ap(e,L,tn(L.right)));const me=Dn(L.left),q=rt(L.right,re,bt);return t.updateBinaryExpression(L,me,L.operatorToken,q)}else return Dn(L)}function yi(L){if(ep(L.expression)){const me=Dn(L.expression);return t.updateSpreadElement(L,me)}return xn(L,re,e)}function eo(L){return C.assertNode(L,bL),n_(L)?yi(L):Hc(L)?xn(L,re,e):oi(L)}function Ro(L){const me=rt(L.name,re,cc);if(wc(L.initializer,!0)){const q=oi(L.initializer);return t.updatePropertyAssignment(L,me,q)}if(ep(L.initializer)){const q=Dn(L.initializer);return t.updatePropertyAssignment(L,me,q)}return xn(L,re,e)}function fa(L){return vp(L,yn)&&(L=Ap(e,L,tn(L.objectAssignmentInitializer))),xn(L,re,e)}function Fa(L){if(ep(L.expression)){const me=Dn(L.expression);return t.updateSpreadAssignment(L,me)}return xn(L,re,e)}function An(L){return C.assertNode(L,yL),Yv(L)?Fa(L):rp(L)?fa(L):bc(L)?Ro(L):xn(L,re,e)}function wn(L){if(_d(L)){const me=Bn(L.elements,eo,bt);return t.updateArrayLiteralExpression(L,me)}else{const me=Bn(L.properties,An,Bg);return t.updateObjectLiteralExpression(L,me)}}function Je(L){return vp(L,yn)&&(L=Ap(e,L,tn(L.expression))),xn(L,re,e)}function mt(L,me){const q=me?Y:re,fe=rt(L.expression,q,bt);return t.updateParenthesizedExpression(L,fe)}function pt(L,me){const q=re,fe=rt(L.expression,q,bt);return t.updatePartiallyEmittedExpression(L,fe)}function Pt(L,me){return St(L)&&(me?Gd(me)?(L.push(me.expression),me=t.updateParenthesizedExpression(me,t.inlineExpressions(L))):(L.push(me),me=t.inlineExpressions(L)):me=t.inlineExpressions(L)),me}function le(L){const me=Pt(b,L);return C.assertIsDefined(me),me!==L&&(b=void 0),me}function Fe(L,me,q){const fe=Pt(me?L.pendingStaticInitializers:L.pendingInstanceInitializers,q);return fe!==q&&(me?L.pendingStaticInitializers=void 0:L.pendingInstanceInitializers=void 0),fe}function dt(L){if(!L)return;const me=[];return Ur(me,Ot(L.decorators,j)),me}function j(L){const me=rt(L.expression,re,bt);pr(me,3072);const q=ec(me);if(zs(q)){const{target:fe,thisArg:Ve}=t.createCallBinding(me,s,l,!0);return t.restoreOuterExpressions(me,t.createFunctionBindCall(fe,Ve,[]))}return me}function ot(L,me,q,fe,Ve,ke,Tt){const kt=t.createFunctionExpression(q,fe,void 0,void 0,ke,void 0,Tt!=null?Tt:t.createBlock([]));Pr(kt,L),Pa(kt,Ug(L)),pr(kt,3072);const nn=Ve==="get"||Ve==="set"?Ve:void 0,En=t.createStringLiteralFromNode(me,void 0),nr=r().createSetFunctionNameHelper(kt,En,nn),lr=t.createPropertyAssignment(t.createIdentifier(Ve),nr);return Pr(lr,L),Pa(lr,Ug(L)),pr(lr,3072),lr}function Dt(L,me){return t.createObjectLiteralExpression([ot(L,L.name,me,L.asteriskToken,"value",Bn(L.parameters,re,Io),rt(L.body,re,Jo))])}function Ye(L,me){return t.createObjectLiteralExpression([ot(L,L.name,me,void 0,"get",[],rt(L.body,re,Jo))])}function _t(L,me){return t.createObjectLiteralExpression([ot(L,L.name,me,void 0,"set",Bn(L.parameters,re,Io),rt(L.body,re,Jo))])}function Gt(L,me){return t.createObjectLiteralExpression([ot(L,L.name,me,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)))])),ot(L,L.name,me,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)),t.createIdentifier("value")))]))])}function gn(L,me,q){return L=Bn(L,fe=>aI(fe)?fe:void 0,xa),t.createGetAccessorDeclaration(L,me,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(q,t.createIdentifier("value")))]))}function hn(L,me,q){return L=Bn(L,fe=>aI(fe)?fe:void 0,xa),t.createGetAccessorDeclaration(L,me,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(q,t.createIdentifier("get")),t.createThis(),[]))]))}function dn(L,me,q){return L=Bn(L,fe=>aI(fe)?fe:void 0,xa),t.createSetAccessorDeclaration(L,me,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(q,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function H(L,me){const q=t.createVariableDeclaration(L,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[me?Lt(me):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([q],2))}function We(L,me){const q=t.createObjectDefinePropertyCall(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:me},!0));return pr(t.createIfStatement(me,t.createExpressionStatement(q)),1)}function Lt(L){return t.createBinaryExpression(t.createElementAccessExpression(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var HUe=T({"src/compiler/transformers/esDecorators.ts"(){ta()}});function Yle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=ls(u);let h,f=0,b,A,I,R;const M=[];let N=0;const O=e.onEmitNode,U=e.onSubstituteNode;return e.onEmitNode=gi,e.onSubstituteNode=ho,wm(e,K);function K(nt){if(nt.isDeclarationFile)return nt;ee(1,!1),ee(2,!Cj(nt,u));const Bt=xn(nt,Q,e);return Jg(Bt,e.readEmitHelpers()),Bt}function ee(nt,Bt){N=Bt?N|nt:N&~nt}function V(nt){return(N&nt)!==0}function se(){return!V(1)}function G(){return V(2)}function re(nt,Bt,Dn){const oi=nt&~N;if(oi){ee(oi,!0);const yi=Bt(Dn);return ee(oi,!1),yi}return Bt(Dn)}function _e(nt){return xn(nt,Q,e)}function ye(nt){switch(nt.kind){case 218:case 262:case 174:case 177:case 178:case 176:return nt;case 169:case 208:case 260:break;case 80:if(R&&l.isArgumentsLocalBinding(nt))return R;break}return xn(nt,ye,e)}function Q(nt){if((nt.transformFlags&256)===0)return R?ye(nt):nt;switch(nt.kind){case 134:return;case 223:return ge(nt);case 174:return re(3,qe,nt);case 262:return re(3,Ce,nt);case 218:return re(3,Oe,nt);case 219:return re(1,At,nt);case 211:return A&&Fr(nt)&&nt.expression.kind===108&&A.add(nt.name.escapedText),xn(nt,Q,e);case 212:return A&&nt.expression.kind===108&&(I=!0),xn(nt,Q,e);case 177:return re(3,Ee,nt);case 178:return re(3,Me,nt);case 176:return re(3,Ne,nt);case 263:case 231:return re(3,_e,nt);default:return xn(nt,Q,e)}}function Y(nt){if(Yie(nt))switch(nt.kind){case 243:return he(nt);case 248:return ie(nt);case 249:return Ae(nt);case 250:return de(nt);case 299:return oe(nt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return xn(nt,Y,e);default:return C.assertNever(nt,"Unhandled node.")}return Q(nt)}function oe(nt){const Bt=new Set;be(nt.variableDeclaration,Bt);let Dn;if(Bt.forEach((oi,yi)=>{b.has(yi)&&(Dn||(Dn=new Set(b)),Dn.delete(yi))}),Dn){const oi=b;b=Dn;const yi=xn(nt,Y,e);return b=oi,yi}else return xn(nt,Y,e)}function he(nt){if(Ue(nt.declarationList)){const Bt=it(nt.declarationList,!1);return Bt?t.createExpressionStatement(Bt):void 0}return xn(nt,Q,e)}function Ae(nt){return t.updateForInStatement(nt,Ue(nt.initializer)?it(nt.initializer,!0):C.checkDefined(rt(nt.initializer,Q,Af)),C.checkDefined(rt(nt.expression,Q,bt)),xd(nt.statement,Y,e))}function de(nt){return t.updateForOfStatement(nt,rt(nt.awaitModifier,Q,PH),Ue(nt.initializer)?it(nt.initializer,!0):C.checkDefined(rt(nt.initializer,Q,Af)),C.checkDefined(rt(nt.expression,Q,bt)),xd(nt.statement,Y,e))}function ie(nt){const Bt=nt.initializer;return t.updateForStatement(nt,Ue(Bt)?it(Bt,!1):rt(nt.initializer,Q,Af),rt(nt.condition,Q,bt),rt(nt.incrementor,Q,bt),xd(nt.statement,Y,e))}function ge(nt){return se()?xn(nt,Q,e):Pr(ut(t.createYieldExpression(void 0,rt(nt.expression,Q,bt)),nt),nt)}function Ne(nt){const Bt=R;R=void 0;const Dn=t.updateConstructorDeclaration(nt,Bn(nt.modifiers,Q,xa),Dl(nt.parameters,Q,e),on(nt));return R=Bt,Dn}function qe(nt){let Bt;const Dn=Uc(nt),oi=R;R=void 0;const yi=t.updateMethodDeclaration(nt,Bn(nt.modifiers,Q,sl),nt.asteriskToken,nt.name,void 0,void 0,Bt=Dn&2?Cn(nt):Dl(nt.parameters,Q,e),void 0,Dn&2?Hn(nt,Bt):on(nt));return R=oi,yi}function Ee(nt){const Bt=R;R=void 0;const Dn=t.updateGetAccessorDeclaration(nt,Bn(nt.modifiers,Q,sl),nt.name,Dl(nt.parameters,Q,e),void 0,on(nt));return R=Bt,Dn}function Me(nt){const Bt=R;R=void 0;const Dn=t.updateSetAccessorDeclaration(nt,Bn(nt.modifiers,Q,sl),nt.name,Dl(nt.parameters,Q,e),on(nt));return R=Bt,Dn}function Ce(nt){let Bt;const Dn=R;R=void 0;const oi=Uc(nt),yi=t.updateFunctionDeclaration(nt,Bn(nt.modifiers,Q,sl),nt.asteriskToken,nt.name,void 0,Bt=oi&2?Cn(nt):Dl(nt.parameters,Q,e),void 0,oi&2?Hn(nt,Bt):lf(nt.body,Q,e));return R=Dn,yi}function Oe(nt){let Bt;const Dn=R;R=void 0;const oi=Uc(nt),yi=t.updateFunctionExpression(nt,Bn(nt.modifiers,Q,xa),nt.asteriskToken,nt.name,void 0,Bt=oi&2?Cn(nt):Dl(nt.parameters,Q,e),void 0,oi&2?Hn(nt,Bt):lf(nt.body,Q,e));return R=Dn,yi}function At(nt){let Bt;const Dn=Uc(nt);return t.updateArrowFunction(nt,Bn(nt.modifiers,Q,xa),void 0,Bt=Dn&2?Cn(nt):Dl(nt.parameters,Q,e),void 0,nt.equalsGreaterThanToken,Dn&2?Hn(nt,Bt):lf(nt.body,Q,e))}function be({name:nt},Bt){if(je(nt))Bt.add(nt.escapedText);else for(const Dn of nt.elements)Hc(Dn)||be(Dn,Bt)}function Ue(nt){return!!nt&&qc(nt)&&!(nt.flags&7)&&nt.declarations.some(It)}function it(nt,Bt){Ft(nt);const Dn=HN(nt);return Dn.length===0?Bt?rt(t.converters.convertToAssignmentElementTarget(nt.declarations[0].name),Q,bt):void 0:t.inlineExpressions(Ot(Dn,Qe))}function Ft(nt){He(nt.declarations,gt)}function gt({name:nt}){if(je(nt))s(nt);else for(const Bt of nt.elements)Hc(Bt)||gt(Bt)}function Qe(nt){const Bt=Pa(t.createAssignment(t.converters.convertToAssignmentElementTarget(nt.name),nt.initializer),nt);return C.checkDefined(rt(Bt,Q,bt))}function It({name:nt}){if(je(nt))return b.has(nt.escapedText);for(const Bt of nt.elements)if(!Hc(Bt)&&It(Bt))return!0;return!1}function on(nt){C.assertIsDefined(nt.body);const Bt=A,Dn=I;A=new Set,I=!1;let oi=lf(nt.body,Q,e);const yi=Ml(nt,js);if(p>=2&&l.getNodeCheckFlags(nt)&384&&(Uc(yi)&3)!==3){if(en(),A.size){const Ro=u7(t,l,nt,A);M[cs(Ro)]=!0;const fa=oi.statements.slice();rg(fa,[Ro]),oi=t.updateBlock(oi,fa)}I&&(l.getNodeCheckFlags(nt)&256?eI(oi,Uk):l.getNodeCheckFlags(nt)&128&&eI(oi,jk))}return A=Bt,I=Dn,oi}function $t(){C.assert(R);const nt=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),Bt=t.createVariableStatement(void 0,[nt]);return Xu(Bt),k_(Bt,2097152),Bt}function Cn(nt){if(Ow(nt.parameters))return Dl(nt.parameters,Q,e);const Bt=[];for(const oi of nt.parameters){if(oi.initializer||oi.dotDotDotToken){if(nt.kind===219){const eo=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Bt.push(eo)}break}const yi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(oi.name,8));Bt.push(yi)}const Dn=t.createNodeArray(Bt);return ut(Dn,nt.parameters),Dn}function Hn(nt,Bt){const Dn=Ow(nt.parameters)?void 0:Dl(nt.parameters,Q,e);i();const yi=Ml(nt,Qo).type,eo=p<2?tn(yi):void 0,Ro=nt.kind===219,fa=R,An=(l.getNodeCheckFlags(nt)&512)!==0&&!R;An&&(R=t.createUniqueName("arguments"));let wn;if(Dn)if(Ro){const dt=[];C.assert(Bt.length<=nt.parameters.length);for(let j=0;j<nt.parameters.length;j++){C.assert(j<Bt.length);const ot=nt.parameters[j],Dt=Bt[j];if(C.assertNode(Dt.name,je),ot.initializer||ot.dotDotDotToken){C.assert(j===Bt.length-1),dt.push(t.createSpreadElement(Dt.name));break}dt.push(Dt.name)}wn=t.createArrayLiteralExpression(dt)}else wn=t.createIdentifier("arguments");const Je=b;b=new Set;for(const dt of nt.parameters)be(dt,b);const mt=A,pt=I;Ro||(A=new Set,I=!1);const Pt=G();let le=yn(nt.body);le=t.updateBlock(le,t.mergeLexicalEnvironment(le.statements,o()));let Fe;if(Ro){if(Fe=r().createAwaiterHelper(Pt,wn,eo,Dn,le),An){const dt=t.converters.convertToFunctionBlock(Fe);Fe=t.updateBlock(dt,t.mergeLexicalEnvironment(dt.statements,[$t()]))}}else{const dt=[];dt.push(t.createReturnStatement(r().createAwaiterHelper(Pt,wn,eo,Dn,le)));const j=p>=2&&l.getNodeCheckFlags(nt)&384;if(j&&(en(),A.size)){const Dt=u7(t,l,nt,A);M[cs(Dt)]=!0,rg(dt,[Dt])}An&&rg(dt,[$t()]);const ot=t.createBlock(dt,!0);ut(ot,nt.body),j&&I&&(l.getNodeCheckFlags(nt)&256?eI(ot,Uk):l.getNodeCheckFlags(nt)&128&&eI(ot,jk)),Fe=ot}return b=Je,Ro||(A=mt,I=pt,R=fa),Fe}function yn(nt,Bt){return Jo(nt)?t.updateBlock(nt,Bn(nt.statements,Y,qi,Bt)):t.converters.convertToFunctionBlock(C.checkDefined(rt(nt,Y,P4)))}function tn(nt){const Bt=nt&&zL(nt);if(Bt&&Zd(Bt)){const Dn=l.getTypeReferenceSerializationKind(Bt);if(Dn===1||Dn===0)return Bt}}function en(){(h&1)===0&&(h|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function gi(nt,Bt,Dn){if(h&1&&Ir(Bt)){const oi=l.getNodeCheckFlags(Bt)&384;if(oi!==f){const yi=f;f=oi,O(nt,Bt,Dn),f=yi;return}}else if(h&&M[cs(Bt)]){const oi=f;f=0,O(nt,Bt,Dn),f=oi;return}O(nt,Bt,Dn)}function ho(nt,Bt){return Bt=U(nt,Bt),nt===1&&f?Gi(Bt):Bt}function Gi(nt){switch(nt.kind){case 211:return xo(nt);case 212:return Qn(nt);case 213:return Di(nt)}return nt}function xo(nt){return nt.expression.kind===108?ut(t.createPropertyAccessExpression(t.createUniqueName("_super",48),nt.name),nt):nt}function Qn(nt){return nt.expression.kind===108?Xt(nt.argumentExpression,nt):nt}function Di(nt){const Bt=nt.expression;if(zd(Bt)){const Dn=Fr(Bt)?xo(Bt):Qn(Bt);return t.createCallExpression(t.createPropertyAccessExpression(Dn,"call"),void 0,[t.createThis(),...nt.arguments])}return nt}function Ir(nt){const Bt=nt.kind;return Bt===263||Bt===176||Bt===174||Bt===177||Bt===178}function Xt(nt,Bt){return f&256?ut(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[nt]),"value"),Bt):ut(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[nt]),Bt)}}function u7(e,t,r,i){const o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,u)=>{const p=ji(u),h=[];h.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,pr(e.createPropertyAccessExpression(pr(e.createSuper(),8),p),8)))),o&&h.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(pr(e.createPropertyAccessExpression(pr(e.createSuper(),8),p),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(p,e.createObjectLiteralExpression(h)))}),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(s,!0)]))],2))}var qUe=T({"src/compiler/transformers/es2017.ts"(){ta()}});function $le(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=ls(u),h=e.onEmitNode;e.onEmitNode=fa;const f=e.onSubstituteNode;e.onSubstituteNode=Fa;let b=!1,A,I,R,M=0,N=0,O,U,K,ee;const V=[];return wm(e,ye);function se(le,Fe){return N!==(N&~le|Fe)}function G(le,Fe){const dt=N;return N=(N&~le|Fe)&3,dt}function re(le){N=le}function _e(le){U=Rn(U,t.createVariableDeclaration(le))}function ye(le){if(le.isDeclarationFile)return le;O=le;const Fe=At(le);return Jg(Fe,e.readEmitHelpers()),O=void 0,U=void 0,Fe}function Q(le){return de(le,!1)}function Y(le){return de(le,!0)}function oe(le){if(le.kind!==134)return le}function he(le,Fe,dt,j){if(se(dt,j)){const ot=G(dt,j),Dt=le(Fe);return re(ot),Dt}return le(Fe)}function Ae(le){return xn(le,Q,e)}function de(le,Fe){if((le.transformFlags&128)===0)return le;switch(le.kind){case 223:return ie(le);case 229:return ge(le);case 253:return Ne(le);case 256:return qe(le);case 210:return Me(le);case 226:return Ue(le,Fe);case 361:return it(le,Fe);case 299:return Ft(le);case 243:return gt(le);case 260:return Qe(le);case 246:case 247:case 249:return he(Ae,le,0,2);case 250:return Cn(le,void 0);case 248:return he(on,le,0,2);case 222:return $t(le);case 176:return he(xo,le,2,1);case 174:return he(Ir,le,2,1);case 177:return he(Qn,le,2,1);case 178:return he(Di,le,2,1);case 262:return he(Xt,le,2,1);case 218:return he(Bt,le,2,1);case 219:return he(nt,le,2,0);case 169:return ho(le);case 244:return Ce(le);case 217:return Oe(le,Fe);case 215:return be(le);case 211:return K&&Fr(le)&&le.expression.kind===108&&K.add(le.name.escapedText),xn(le,Q,e);case 212:return K&&le.expression.kind===108&&(ee=!0),xn(le,Q,e);case 263:case 231:return he(Ae,le,2,1);default:return xn(le,Q,e)}}function ie(le){return I&2&&I&1?Pr(ut(t.createYieldExpression(void 0,r().createAwaitHelper(rt(le.expression,Q,bt))),le),le):xn(le,Q,e)}function ge(le){if(I&2&&I&1){if(le.asteriskToken){const Fe=rt(C.checkDefined(le.expression),Q,bt);return Pr(ut(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(le,le.asteriskToken,ut(r().createAsyncDelegatorHelper(ut(r().createAsyncValuesHelper(Fe),Fe)),Fe)))),le),le)}return Pr(ut(t.createYieldExpression(void 0,tn(le.expression?rt(le.expression,Q,bt):t.createVoidZero())),le),le)}return xn(le,Q,e)}function Ne(le){return I&2&&I&1?t.updateReturnStatement(le,tn(le.expression?rt(le.expression,Q,bt):t.createVoidZero())):xn(le,Q,e)}function qe(le){if(I&2){const Fe=zj(le);return Fe.kind===250&&Fe.awaitModifier?Cn(Fe,le):t.restoreEnclosingLabel(rt(Fe,Q,qi,t.liftToBlock),le)}return xn(le,Q,e)}function Ee(le){let Fe;const dt=[];for(const j of le)if(j.kind===305){Fe&&(dt.push(t.createObjectLiteralExpression(Fe)),Fe=void 0);const ot=j.expression;dt.push(rt(ot,Q,bt))}else Fe=Rn(Fe,j.kind===303?t.createPropertyAssignment(j.name,rt(j.initializer,Q,bt)):rt(j,Q,Bg));return Fe&&dt.push(t.createObjectLiteralExpression(Fe)),dt}function Me(le){if(le.transformFlags&65536){const Fe=Ee(le.properties);Fe.length&&Fe[0].kind!==210&&Fe.unshift(t.createObjectLiteralExpression());let dt=Fe[0];if(Fe.length>1){for(let j=1;j<Fe.length;j++)dt=r().createAssignHelper([dt,Fe[j]]);return dt}else return r().createAssignHelper(Fe)}return xn(le,Q,e)}function Ce(le){return xn(le,Y,e)}function Oe(le,Fe){return xn(le,Fe?Y:Q,e)}function At(le){const Fe=G(2,Cj(le,u)?0:1);b=!1;const dt=xn(le,Q,e),j=To(dt.statements,U&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(U))]),ot=t.updateSourceFile(dt,ut(t.createNodeArray(j),le.statements));return re(Fe),ot}function be(le){return _J(e,le,Q,O,_e,0)}function Ue(le,Fe){return Uv(le)&&cw(le.left)?tT(le,Q,e,1,!Fe):le.operatorToken.kind===28?t.updateBinaryExpression(le,rt(le.left,Y,bt),le.operatorToken,rt(le.right,Fe?Y:Q,bt)):xn(le,Q,e)}function it(le,Fe){if(Fe)return xn(le,Y,e);let dt;for(let ot=0;ot<le.elements.length;ot++){const Dt=le.elements[ot],Ye=rt(Dt,ot<le.elements.length-1?Y:Q,bt);(dt||Ye!==Dt)&&(dt||(dt=le.elements.slice(0,ot)),dt.push(Ye))}const j=dt?ut(t.createNodeArray(dt),le.elements):le.elements;return t.updateCommaListExpression(le,j)}function Ft(le){if(le.variableDeclaration&&Zo(le.variableDeclaration.name)&&le.variableDeclaration.name.transformFlags&65536){const Fe=t.getGeneratedNameForNode(le.variableDeclaration.name),dt=t.updateVariableDeclaration(le.variableDeclaration,le.variableDeclaration.name,void 0,void 0,Fe),j=v1(dt,Q,e,1);let ot=rt(le.block,Q,Jo);return St(j)&&(ot=t.updateBlock(ot,[t.createVariableStatement(void 0,j),...ot.statements])),t.updateCatchClause(le,t.updateVariableDeclaration(le.variableDeclaration,Fe,void 0,void 0,void 0),ot)}return xn(le,Q,e)}function gt(le){if($r(le,32)){const Fe=b;b=!0;const dt=xn(le,Q,e);return b=Fe,dt}return xn(le,Q,e)}function Qe(le){if(b){const Fe=b;b=!1;const dt=It(le,!0);return b=Fe,dt}return It(le,!1)}function It(le,Fe){return Zo(le.name)&&le.name.transformFlags&65536?v1(le,Q,e,1,void 0,Fe):xn(le,Q,e)}function on(le){return t.updateForStatement(le,rt(le.initializer,Y,Af),rt(le.condition,Q,bt),rt(le.incrementor,Y,bt),xd(le.statement,Q,e))}function $t(le){return xn(le,Y,e)}function Cn(le,Fe){const dt=G(0,2);(le.initializer.transformFlags&65536||gN(le.initializer)&&cw(le.initializer))&&(le=Hn(le));const j=le.awaitModifier?en(le,Fe,dt):t.restoreEnclosingLabel(xn(le,Q,e),Fe);return re(dt),j}function Hn(le){const Fe=vs(le.initializer);if(qc(Fe)||gN(Fe)){let dt,j;const ot=t.createTempVariable(void 0),Dt=[KH(t,Fe,ot)];return Jo(le.statement)?(Ur(Dt,le.statement.statements),dt=le.statement,j=le.statement.statements):le.statement&&(Rn(Dt,le.statement),dt=le.statement,j=le.statement),t.updateForOfStatement(le,le.awaitModifier,ut(t.createVariableDeclarationList([ut(t.createVariableDeclaration(ot),le.initializer)],1),le.initializer),le.expression,ut(t.createBlock(ut(t.createNodeArray(Dt),j),!0),dt))}return le}function yn(le,Fe,dt){const j=t.createTempVariable(s),ot=t.createAssignment(j,Fe),Dt=t.createExpressionStatement(ot);Pa(Dt,le.expression);const Ye=t.createAssignment(dt,t.createFalse()),_t=t.createExpressionStatement(Ye);Pa(_t,le.expression);const Gt=[Dt,_t],gn=KH(t,le.initializer,j);Gt.push(rt(gn,Q,qi));let hn,dn;const H=xd(le.statement,Q,e);return Jo(H)?(Ur(Gt,H.statements),hn=H,dn=H.statements):Gt.push(H),ut(t.createBlock(ut(t.createNodeArray(Gt),dn),!0),hn)}function tn(le){return I&1?t.createYieldExpression(void 0,r().createAwaitHelper(le)):t.createAwaitExpression(le)}function en(le,Fe,dt){const j=rt(le.expression,Q,bt),ot=je(j)?t.getGeneratedNameForNode(j):t.createTempVariable(void 0),Dt=je(j)?t.getGeneratedNameForNode(ot):t.createTempVariable(void 0),Ye=t.createTempVariable(void 0),_t=t.createTempVariable(s),Gt=t.createUniqueName("e"),gn=t.getGeneratedNameForNode(Gt),hn=t.createTempVariable(void 0),dn=ut(r().createAsyncValuesHelper(j),le.expression),H=t.createCallExpression(t.createPropertyAccessExpression(ot,"next"),void 0,[]),We=t.createPropertyAccessExpression(Dt,"done"),Lt=t.createPropertyAccessExpression(Dt,"value"),L=t.createFunctionCallCall(hn,ot,[]);s(Gt),s(hn);const me=dt&2?t.inlineExpressions([t.createAssignment(Gt,t.createVoidZero()),dn]):dn,q=pr(ut(t.createForStatement(pr(ut(t.createVariableDeclarationList([t.createVariableDeclaration(Ye,void 0,void 0,t.createTrue()),ut(t.createVariableDeclaration(ot,void 0,void 0,me),le.expression),t.createVariableDeclaration(Dt)]),le.expression),4194304),t.inlineExpressions([t.createAssignment(Dt,tn(H)),t.createAssignment(_t,We),t.createLogicalNot(_t)]),t.createAssignment(Ye,t.createTrue()),yn(le,Lt,Ye)),le),512);return Pr(q,le),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(q,Fe)]),t.createCatchClause(t.createVariableDeclaration(gn),pr(t.createBlock([t.createExpressionStatement(t.createAssignment(Gt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",gn)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([pr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Ye),t.createLogicalNot(_t)),t.createAssignment(hn,t.createPropertyAccessExpression(ot,"return"))),t.createExpressionStatement(tn(L))),1)]),void 0,pr(t.createBlock([pr(t.createIfStatement(Gt,t.createThrowStatement(t.createPropertyAccessExpression(Gt,"error"))),1)]),1))]))}function gi(le){return C.assertNode(le,Io),ho(le)}function ho(le){return R!=null&&R.has(le)?t.updateParameterDeclaration(le,void 0,le.dotDotDotToken,Zo(le.name)?t.getGeneratedNameForNode(le):le.name,void 0,void 0,void 0):le.transformFlags&65536?t.updateParameterDeclaration(le,void 0,le.dotDotDotToken,t.getGeneratedNameForNode(le),void 0,void 0,rt(le.initializer,Q,bt)):xn(le,Q,e)}function Gi(le){let Fe;for(const dt of le.parameters)Fe?Fe.add(dt):dt.transformFlags&65536&&(Fe=new Set);return Fe}function xo(le){const Fe=I,dt=R;I=Uc(le),R=Gi(le);const j=t.updateConstructorDeclaration(le,le.modifiers,Dl(le.parameters,gi,e),yi(le));return I=Fe,R=dt,j}function Qn(le){const Fe=I,dt=R;I=Uc(le),R=Gi(le);const j=t.updateGetAccessorDeclaration(le,le.modifiers,rt(le.name,Q,cc),Dl(le.parameters,gi,e),void 0,yi(le));return I=Fe,R=dt,j}function Di(le){const Fe=I,dt=R;I=Uc(le),R=Gi(le);const j=t.updateSetAccessorDeclaration(le,le.modifiers,rt(le.name,Q,cc),Dl(le.parameters,gi,e),yi(le));return I=Fe,R=dt,j}function Ir(le){const Fe=I,dt=R;I=Uc(le),R=Gi(le);const j=t.updateMethodDeclaration(le,I&1?Bn(le.modifiers,oe,sl):le.modifiers,I&2?void 0:le.asteriskToken,rt(le.name,Q,cc),rt(void 0,Q,$y),void 0,I&2&&I&1?Dn(le):Dl(le.parameters,gi,e),void 0,I&2&&I&1?oi(le):yi(le));return I=Fe,R=dt,j}function Xt(le){const Fe=I,dt=R;I=Uc(le),R=Gi(le);const j=t.updateFunctionDeclaration(le,I&1?Bn(le.modifiers,oe,xa):le.modifiers,I&2?void 0:le.asteriskToken,le.name,void 0,I&2&&I&1?Dn(le):Dl(le.parameters,gi,e),void 0,I&2&&I&1?oi(le):yi(le));return I=Fe,R=dt,j}function nt(le){const Fe=I,dt=R;I=Uc(le),R=Gi(le);const j=t.updateArrowFunction(le,le.modifiers,void 0,Dl(le.parameters,gi,e),void 0,le.equalsGreaterThanToken,yi(le));return I=Fe,R=dt,j}function Bt(le){const Fe=I,dt=R;I=Uc(le),R=Gi(le);const j=t.updateFunctionExpression(le,I&1?Bn(le.modifiers,oe,xa):le.modifiers,I&2?void 0:le.asteriskToken,le.name,void 0,I&2&&I&1?Dn(le):Dl(le.parameters,gi,e),void 0,I&2&&I&1?oi(le):yi(le));return I=Fe,R=dt,j}function Dn(le){if(Ow(le.parameters))return Dl(le.parameters,Q,e);const Fe=[];for(const j of le.parameters){if(j.initializer||j.dotDotDotToken)break;const ot=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(j.name,8));Fe.push(ot)}const dt=t.createNodeArray(Fe);return ut(dt,le.parameters),dt}function oi(le){const Fe=Ow(le.parameters)?void 0:Dl(le.parameters,Q,e);i();const dt=K,j=ee;K=new Set,ee=!1;const ot=[];let Dt=t.updateBlock(le.body,Bn(le.body.statements,Q,qi));Dt=t.updateBlock(Dt,t.mergeLexicalEnvironment(Dt.statements,eo(o(),le)));const Ye=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),le.name&&t.getGeneratedNameForNode(le.name),void 0,Fe!=null?Fe:[],void 0,Dt),!!(N&1))),_t=p>=2&&l.getNodeCheckFlags(le)&384;if(_t){Ro();const gn=u7(t,l,le,K);V[cs(gn)]=!0,rg(ot,[gn])}ot.push(Ye);const Gt=t.updateBlock(le.body,ot);return _t&&ee&&(l.getNodeCheckFlags(le)&256?eI(Gt,Uk):l.getNodeCheckFlags(le)&128&&eI(Gt,jk)),K=dt,ee=j,Gt}function yi(le){var Dt;i();let Fe=0;const dt=[],j=(Dt=rt(le.body,Q,P4))!=null?Dt:t.createBlock([]);Jo(j)&&(Fe=t.copyPrologue(j.statements,dt,!1,Q)),Ur(dt,eo(void 0,le));const ot=o();if(Fe>0||St(dt)||St(ot)){const Ye=t.converters.convertToFunctionBlock(j,!0);return rg(dt,ot),Ur(dt,Ye.statements.slice(Fe)),t.updateBlock(Ye,ut(t.createNodeArray(dt),Ye.statements))}return j}function eo(le,Fe){let dt=!1;for(const j of Fe.parameters)if(dt){if(Zo(j.name)){if(j.name.elements.length>0){const ot=v1(j,Q,e,0,t.getGeneratedNameForNode(j));if(St(ot)){const Dt=t.createVariableDeclarationList(ot),Ye=t.createVariableStatement(void 0,Dt);pr(Ye,2097152),le=Rn(le,Ye)}}else if(j.initializer){const ot=t.getGeneratedNameForNode(j),Dt=rt(j.initializer,Q,bt),Ye=t.createAssignment(ot,Dt),_t=t.createExpressionStatement(Ye);pr(_t,2097152),le=Rn(le,_t)}}else if(j.initializer){const ot=t.cloneNode(j.name);ut(ot,j.name),pr(ot,96);const Dt=rt(j.initializer,Q,bt);k_(Dt,3168);const Ye=t.createAssignment(ot,Dt);ut(Ye,j),pr(Ye,3072);const _t=t.createBlock([t.createExpressionStatement(Ye)]);ut(_t,j),pr(_t,3905);const Gt=t.createTypeCheck(t.cloneNode(j.name),"undefined"),gn=t.createIfStatement(Gt,_t);Xu(gn),ut(gn,j),pr(gn,2101056),le=Rn(le,gn)}}else if(j.transformFlags&65536){dt=!0;const ot=v1(j,Q,e,1,t.getGeneratedNameForNode(j),!1,!0);if(St(ot)){const Dt=t.createVariableDeclarationList(ot),Ye=t.createVariableStatement(void 0,Dt);pr(Ye,2097152),le=Rn(le,Ye)}}return le}function Ro(){(A&1)===0&&(A|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function fa(le,Fe,dt){if(A&1&&pt(Fe)){const j=l.getNodeCheckFlags(Fe)&384;if(j!==M){const ot=M;M=j,h(le,Fe,dt),M=ot;return}}else if(A&&V[cs(Fe)]){const j=M;M=0,h(le,Fe,dt),M=j;return}h(le,Fe,dt)}function Fa(le,Fe){return Fe=f(le,Fe),le===1&&M?An(Fe):Fe}function An(le){switch(le.kind){case 211:return wn(le);case 212:return Je(le);case 213:return mt(le)}return le}function wn(le){return le.expression.kind===108?ut(t.createPropertyAccessExpression(t.createUniqueName("_super",48),le.name),le):le}function Je(le){return le.expression.kind===108?Pt(le.argumentExpression,le):le}function mt(le){const Fe=le.expression;if(zd(Fe)){const dt=Fr(Fe)?wn(Fe):Je(Fe);return t.createCallExpression(t.createPropertyAccessExpression(dt,"call"),void 0,[t.createThis(),...le.arguments])}return le}function pt(le){const Fe=le.kind;return Fe===263||Fe===176||Fe===174||Fe===177||Fe===178}function Pt(le,Fe){return M&256?ut(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),"value"),Fe):ut(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),Fe)}}var JUe=T({"src/compiler/transformers/es2018.ts"(){ta()}});function Qle(e){const t=e.factory;return wm(e,r);function r(s){return s.isDeclarationFile?s:xn(s,i,e)}function i(s){if((s.transformFlags&64)===0)return s;switch(s.kind){case 299:return o(s);default:return xn(s,i,e)}}function o(s){return s.variableDeclaration?xn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),rt(s.block,i,Jo))}}var KUe=T({"src/compiler/transformers/es2019.ts"(){ta()}});function Zle(e){const{factory:t,hoistVariableDeclaration:r}=e;return wm(e,i);function i(R){return R.isDeclarationFile?R:xn(R,o,e)}function o(R){if((R.transformFlags&32)===0)return R;switch(R.kind){case 213:{const M=p(R,!1);return C.assertNotNode(M,_I),M}case 211:case 212:if(qu(R)){const M=f(R,!1,!1);return C.assertNotNode(M,_I),M}return xn(R,o,e);case 226:return R.operatorToken.kind===61?A(R):xn(R,o,e);case 220:return I(R);default:return xn(R,o,e)}}function s(R){C.assertNotNode(R,x4);const M=[R];for(;!R.questionDotToken&&!a1(R);)R=oa(Rm(R.expression),qu),C.assertNotNode(R,x4),M.unshift(R);return{expression:R.expression,chain:M}}function l(R,M,N){const O=h(R.expression,M,N);return _I(O)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,O.expression),O.thisArg):t.updateParenthesizedExpression(R,O)}function u(R,M,N){if(qu(R))return f(R,M,N);let O=rt(R.expression,o,bt);C.assertNotNode(O,_I);let U;return M&&(g1(O)?U=O:(U=t.createTempVariable(r),O=t.createAssignment(U,O))),O=R.kind===211?t.updatePropertyAccessExpression(R,O,rt(R.name,o,je)):t.updateElementAccessExpression(R,O,rt(R.argumentExpression,o,bt)),U?t.createSyntheticReferenceExpression(O,U):O}function p(R,M){if(qu(R))return f(R,M,!1);if(Gd(R.expression)&&qu(vs(R.expression))){const N=l(R.expression,!0,!1),O=Bn(R.arguments,o,bt);return _I(N)?ut(t.createFunctionCallCall(N.expression,N.thisArg,O),R):t.updateCallExpression(R,N,void 0,O)}return xn(R,o,e)}function h(R,M,N){switch(R.kind){case 217:return l(R,M,N);case 211:case 212:return u(R,M,N);case 213:return p(R,M);default:return rt(R,o,bt)}}function f(R,M,N){const{expression:O,chain:U}=s(R),K=h(Rm(O),hS(U[0]),!1);let ee=_I(K)?K.thisArg:void 0,V=_I(K)?K.expression:K,se=t.restoreOuterExpressions(O,V,8);g1(V)||(V=t.createTempVariable(r),se=t.createAssignment(V,se));let G=V,re;for(let ye=0;ye<U.length;ye++){const Q=U[ye];switch(Q.kind){case 211:case 212:ye===U.length-1&&M&&(g1(G)?re=G:(re=t.createTempVariable(r),G=t.createAssignment(re,G))),G=Q.kind===211?t.createPropertyAccessExpression(G,rt(Q.name,o,je)):t.createElementAccessExpression(G,rt(Q.argumentExpression,o,bt));break;case 213:ye===0&&ee?(al(ee)||(ee=t.cloneNode(ee),k_(ee,3072)),G=t.createFunctionCallCall(G,ee.kind===108?t.createThis():ee,Bn(Q.arguments,o,bt))):G=t.createCallExpression(G,void 0,Bn(Q.arguments,o,bt));break}Pr(G,Q)}const _e=N?t.createConditionalExpression(b(se,V,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(G)):t.createConditionalExpression(b(se,V,!0),void 0,t.createVoidZero(),void 0,G);return ut(_e,R),re?t.createSyntheticReferenceExpression(_e,re):_e}function b(R,M,N){return t.createBinaryExpression(t.createBinaryExpression(R,t.createToken(N?37:38),t.createNull()),t.createToken(N?57:56),t.createBinaryExpression(M,t.createToken(N?37:38),t.createVoidZero()))}function A(R){let M=rt(R.left,o,bt),N=M;return g1(M)||(N=t.createTempVariable(r),M=t.createAssignment(N,M)),ut(t.createConditionalExpression(b(M,N),void 0,N,void 0,rt(R.right,o,bt)),R)}function I(R){return qu(vs(R.expression))?Pr(h(R.expression,!1,!0),R):t.updateDeleteExpression(R,rt(R.expression,o,bt))}}var XUe=T({"src/compiler/transformers/es2020.ts"(){ta()}});function ece(e){const{hoistVariableDeclaration:t,factory:r}=e;return wm(e,i);function i(l){return l.isDeclarationFile?l:xn(l,o,e)}function o(l){return(l.transformFlags&16)===0?l:EU(l)?s(l):xn(l,o,e)}function s(l){const u=l.operatorToken,p=GP(u.kind);let h=vs(rt(l.left,o,ep)),f=h;const b=vs(rt(l.right,o,bt));if(zs(h)){const A=g1(h.expression),I=A?h.expression:r.createTempVariable(t),R=A?h.expression:r.createAssignment(I,h.expression);if(Fr(h))f=r.createPropertyAccessExpression(I,h.name),h=r.createPropertyAccessExpression(R,h.name);else{const M=g1(h.argumentExpression),N=M?h.argumentExpression:r.createTempVariable(t);f=r.createElementAccessExpression(I,N),h=r.createElementAccessExpression(R,M?h.argumentExpression:r.createAssignment(N,h.argumentExpression))}}return r.createBinaryExpression(h,p,r.createParenthesizedExpression(r.createAssignment(f,b)))}}var YUe=T({"src/compiler/transformers/es2021.ts"(){ta()}});function tce(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,startLexicalEnvironment:o,endLexicalEnvironment:s}=e;let l,u,p,h;return wm(e,f);function f(he){if(he.isDeclarationFile)return he;const Ae=rt(he,b,Zi);return Jg(Ae,e.readEmitHelpers()),u=void 0,l=void 0,p=void 0,Ae}function b(he){if((he.transformFlags&4)===0)return he;switch(he.kind){case 312:return A(he);case 241:return I(he);case 248:return R(he);case 250:return M(he);case 255:return O(he);default:return xn(he,b,e)}}function A(he){const Ae=gJ(he.statements);if(Ae){o(),l=new II,u=[];const de=Qxe(he.statements),ie=[];Ur(ie,kw(he.statements,b,qi,0,de));let ge=de;for(;ge<he.statements.length;){const Ee=he.statements[ge];if(ice(Ee)!==0){ge>de&&Ur(ie,Bn(he.statements,b,qi,de,ge-de));break}ge++}C.assert(ge<he.statements.length,"Should have encountered at least one 'using' statement.");const Ne=Y(),qe=U(he.statements,ge,he.statements.length,Ne,ie);return l.size&&Rn(ie,t.createExportDeclaration(void 0,!1,t.createNamedExports(Wo(l.values())))),Ur(ie,s()),u.length&&ie.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(u,1))),Ur(ie,oe(qe,Ne,Ae===2)),h&&ie.push(t.createExportAssignment(void 0,!0,h)),t.updateSourceFile(he,ie)}return xn(he,b,e)}function I(he){const Ae=gJ(he.statements);if(Ae){const de=Qxe(he.statements),ie=Y();return t.updateBlock(he,[...kw(he.statements,b,qi,0,de),...oe(U(he.statements,de,he.statements.length,ie,void 0),ie,Ae===2)])}return xn(he,b,e)}function R(he){return he.initializer&&nce(he.initializer)?rt(t.createBlock([t.createVariableStatement(void 0,he.initializer),t.updateForStatement(he,void 0,he.condition,he.incrementor,he.statement)]),b,qi):xn(he,b,e)}function M(he){if(nce(he.initializer)){const Ae=he.initializer;C.assertNode(Ae,nce),C.assert(Ae.declarations.length===1,"ForInitializer may only have one declaration");const de=Ae.declarations[0];C.assert(!de.initializer,"ForInitializer may not have an initializer");const ie=rce(Ae)===2,ge=t.getGeneratedNameForNode(de.name),Ne=t.updateVariableDeclaration(de,de.name,void 0,void 0,ge),qe=t.createVariableDeclarationList([Ne],ie?6:4),Ee=t.createVariableStatement(void 0,qe);return rt(t.updateForOfStatement(he,he.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(ge)],2),he.expression,Jo(he.statement)?t.updateBlock(he.statement,[Ee,...he.statement.statements]):t.createBlock([Ee,he.statement],!0)),b,qi)}return xn(he,b,e)}function N(he,Ae){return gJ(he.statements)!==0?$R(he)?t.updateCaseClause(he,rt(he.expression,b,bt),U(he.statements,0,he.statements.length,Ae,void 0)):t.updateDefaultClause(he,U(he.statements,0,he.statements.length,Ae,void 0)):xn(he,b,e)}function O(he){const Ae=QUe(he.caseBlock.clauses);if(Ae){const de=Y();return oe([t.updateSwitchStatement(he,rt(he.expression,b,bt),t.updateCaseBlock(he.caseBlock,he.caseBlock.clauses.map(ie=>N(ie,de))))],de,Ae===2)}return xn(he,b,e)}function U(he,Ae,de,ie,ge){var Me;const Ne=[];for(let Ce=Ae;Ce<de;Ce++){const Oe=he[Ce],At=ice(Oe);if(At){C.assertNode(Oe,kl);const Ue=[];for(let it of Oe.declarationList.declarations){if(!je(it.name)){Ue.length=0;break}vp(it)&&(it=Ap(e,it));const Ft=(Me=rt(it.initializer,b,bt))!=null?Me:t.createVoidZero();Ue.push(t.updateVariableDeclaration(it,it.name,void 0,void 0,r().createAddDisposableResourceHelper(ie,Ft,At===2)))}if(Ue.length){const it=t.createVariableDeclarationList(Ue,2);Pr(it,Oe.declarationList),ut(it,Oe.declarationList),qe(t.updateVariableStatement(Oe,void 0,it));continue}}const be=b(Oe);Ao(be)?be.forEach(qe):be&&qe(be)}return Ne;function qe(Ce){C.assertNode(Ce,qi),Rn(Ne,Ee(Ce))}function Ee(Ce){if(!ge)return Ce;switch(Ce.kind){case 272:case 271:case 278:case 262:return K(Ce,ge);case 277:return ee(Ce);case 263:return G(Ce);case 243:return re(Ce)}return Ce}}function K(he,Ae){Ae.push(he)}function ee(he){return he.isExportEquals?se(he):V(he)}function V(he){if(p)return he;p=t.createUniqueName("_default",56),Q(p,!0,"default",he);let Ae=he.expression,de=ec(Ae);vp(de)&&(de=Ap(e,de,!1,"default"),Ae=t.restoreOuterExpressions(Ae,de));const ie=t.createAssignment(p,Ae);return t.createExpressionStatement(ie)}function se(he){if(h)return he;h=t.createUniqueName("_default",56),i(h);const Ae=t.createAssignment(h,he.expression);return t.createExpressionStatement(Ae)}function G(he){if(!he.name&&p)return he;const Ae=$r(he,32),de=$r(he,2048);let ie=t.converters.convertToClassExpression(he);return he.name&&(Q(t.getLocalName(he),Ae&&!de,void 0,he),ie=t.createAssignment(t.getDeclarationName(he),ie),vp(ie)&&(ie=Ap(e,ie,!1)),Pr(ie,he),Pa(ie,he),uc(ie,he)),de&&!p&&(p=t.createUniqueName("_default",56),Q(p,!0,"default",he),ie=t.createAssignment(p,ie),vp(ie)&&(ie=Ap(e,ie,!1,"default")),Pr(ie,he)),t.createExpressionStatement(ie)}function re(he){let Ae;const de=$r(he,32);for(const ie of he.declarationList.declarations)ye(ie,de,ie),ie.initializer&&(Ae=Rn(Ae,_e(ie)));if(Ae){const ie=t.createExpressionStatement(t.inlineExpressions(Ae));return Pr(ie,he),uc(ie,he),Pa(ie,he),ie}}function _e(he){C.assertIsDefined(he.initializer);let Ae;je(he.name)?(Ae=t.cloneNode(he.name),pr(Ae,qa(Ae)&-114689)):Ae=t.converters.convertToAssignmentPattern(he.name);const de=t.createAssignment(Ae,he.initializer);return Pr(de,he),uc(de,he),Pa(de,he),de}function ye(he,Ae,de){if(Zo(he.name))for(const ie of he.name.elements)Hc(ie)||ye(ie,Ae,de);else Q(he.name,Ae,void 0,de)}function Q(he,Ae,de,ie){const ge=al(he)?he:t.cloneNode(he);if(Ae){if(de===void 0&&!Xg(ge)){const Me=t.createVariableDeclaration(ge);ie&&Pr(Me,ie),u.push(Me);return}const Ne=de!==void 0?ge:void 0,qe=de!==void 0?de:ge,Ee=t.createExportSpecifier(!1,Ne,qe);ie&&Pr(Ee,ie),l.set(ge,Ee)}i(ge)}function Y(){return t.createUniqueName("env")}function oe(he,Ae,de){const ie=[],ge=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),Ne=t.createVariableDeclaration(Ae,void 0,void 0,ge),qe=t.createVariableDeclarationList([Ne],2),Ee=t.createVariableStatement(void 0,qe);ie.push(Ee);const Me=t.createBlock(he,!0),Ce=t.createUniqueName("e"),Oe=t.createCatchClause(Ce,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ae,"error"),Ce)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ae,"hasError"),t.createTrue()))],!0));let At;if(de){const Ue=t.createUniqueName("result");At=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ue,void 0,void 0,r().createDisposeResourcesHelper(Ae))],2)),t.createIfStatement(Ue,t.createExpressionStatement(t.createAwaitExpression(Ue)))],!0)}else At=t.createBlock([t.createExpressionStatement(r().createDisposeResourcesHelper(Ae))],!0);const be=t.createTryStatement(Me,Oe,At);return ie.push(be),ie}}function Qxe(e){for(let t=0;t<e.length;t++)if(!Cm(e[t])&&!wL(e[t]))return t;return 0}function nce(e){return qc(e)&&rce(e)!==0}function rce(e){return(e.flags&7)===6?2:(e.flags&7)===4?1:0}function $Ue(e){return rce(e.declarationList)}function ice(e){return kl(e)?$Ue(e):0}function gJ(e){let t=0;for(const r of e){const i=ice(r);if(i===2)return 2;i>t&&(t=i)}return t}function QUe(e){let t=0;for(const r of e){const i=gJ(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var ZUe=T({"src/compiler/transformers/esnext.ts"(){ta()}});function oce(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return wm(e,b);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;const be=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=be,s.filenameDeclaration.name}function u(be){return i.jsx===5?"jsxDEV":be?"jsxs":"jsx"}function p(be){const Ue=u(be);return f(Ue)}function h(){return f("Fragment")}function f(be){var Ue,it;const Ft=be==="createElement"?s.importSpecifier:K3(s.importSpecifier,i),gt=(it=(Ue=s.utilizedImplicitRuntimeImports)==null?void 0:Ue.get(Ft))==null?void 0:it.get(be);if(gt)return gt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let Qe=s.utilizedImplicitRuntimeImports.get(Ft);Qe||(Qe=new Map,s.utilizedImplicitRuntimeImports.set(Ft,Qe));const It=t.createUniqueName("_".concat(be),112),on=t.createImportSpecifier(!1,t.createIdentifier(be),It);return Pae(It,on),Qe.set(be,on),It}function b(be){if(be.isDeclarationFile)return be;o=be,s={},s.importSpecifier=J3(i,be);let Ue=xn(be,A,e);Jg(Ue,e.readEmitHelpers());let it=Ue.statements;if(s.filenameDeclaration&&(it=SS(it.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[Ft,gt]of Wo(s.utilizedImplicitRuntimeImports.entries()))if(dc(be)){const Qe=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Wo(gt.values()))),t.createStringLiteral(Ft),void 0);Jy(Qe,!1),it=SS(it.slice(),Qe)}else if(zp(be)){const Qe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Wo(gt.values(),It=>t.createBindingElement(void 0,It.propertyName,It.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Ft)]))],2));Jy(Qe,!1),it=SS(it.slice(),Qe)}}return it!==Ue.statements&&(Ue=t.updateSourceFile(Ue,it)),s=void 0,Ue}function A(be){return be.transformFlags&2?I(be):be}function I(be){switch(be.kind){case 284:return U(be,!1);case 285:return K(be,!1);case 288:return ee(be,!1);case 294:return At(be);default:return xn(be,A,e)}}function R(be){switch(be.kind){case 12:return ge(be);case 294:return At(be);case 284:return U(be,!0);case 285:return K(be,!0);case 288:return ee(be,!0);default:return C.failBadSyntaxKind(be)}}function M(be){return be.properties.some(Ue=>bc(Ue)&&(je(Ue.name)&&Tr(Ue.name)==="__proto__"||Ma(Ue.name)&&Ue.name.text==="__proto__"))}function N(be){let Ue=!1;for(const it of be.attributes.properties)if(gI(it)&&(!Wa(it.expression)||it.expression.properties.some(Yv)))Ue=!0;else if(Ue&&F_(it)&&je(it.name)&&it.name.escapedText==="key")return!0;return!1}function O(be){return s.importSpecifier===void 0||N(be)}function U(be,Ue){return(O(be.openingElement)?_e:G)(be.openingElement,be.children,Ue,be)}function K(be,Ue){return(O(be)?_e:G)(be,void 0,Ue,be)}function ee(be,Ue){return(s.importSpecifier===void 0?Q:ye)(be.openingFragment,be.children,Ue,be)}function V(be){const Ue=se(be);return Ue&&t.createObjectLiteralExpression([Ue])}function se(be){const Ue=RR(be);if(Le(Ue)===1&&!Ue[0].dotDotDotToken){const Ft=R(Ue[0]);return Ft&&t.createPropertyAssignment("children",Ft)}const it=Hi(be,R);return Le(it)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(it)):void 0}function G(be,Ue,it,Ft){const gt=Ce(be),Qe=Ue&&Ue.length?se(Ue):void 0,It=Tn(be.attributes.properties,Cn=>!!Cn.name&&je(Cn.name)&&Cn.name.escapedText==="key"),on=It?rr(be.attributes.properties,Cn=>Cn!==It):be.attributes.properties,$t=Le(on)?oe(on,Qe):t.createObjectLiteralExpression(Qe?[Qe]:et);return re(gt,$t,It,Ue||et,it,Ft)}function re(be,Ue,it,Ft,gt,Qe){var It;const on=RR(Ft),$t=Le(on)>1||!!((It=on[0])!=null&&It.dotDotDotToken),Cn=[be,Ue];if(it&&Cn.push(ie(it.initializer)),i.jsx===5){const yn=Ml(o);if(yn&&Zi(yn)){it===void 0&&Cn.push(t.createVoidZero()),Cn.push($t?t.createTrue():t.createFalse());const tn=Ts(yn,Qe.pos);Cn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(tn.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(tn.character+1))])),Cn.push(t.createThis())}}const Hn=ut(t.createCallExpression(p($t),void 0,Cn),Qe);return gt&&Xu(Hn),Hn}function _e(be,Ue,it,Ft){const gt=Ce(be),Qe=be.attributes.properties,It=Le(Qe)?oe(Qe):t.createNull(),on=s.importSpecifier===void 0?JH(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,be):f("createElement"),$t=sse(t,on,gt,It,Hi(Ue,R),Ft);return it&&Xu($t),$t}function ye(be,Ue,it,Ft){let gt;if(Ue&&Ue.length){const Qe=V(Ue);Qe&&(gt=Qe)}return re(h(),gt||t.createObjectLiteralExpression([]),void 0,Ue,it,Ft)}function Q(be,Ue,it,Ft){const gt=lse(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Hi(Ue,R),be,Ft);return it&&Xu(gt),gt}function Y(be){return Wa(be.expression)&&!M(be.expression)?no(be.expression.properties,Ue=>C.checkDefined(rt(Ue,A,Bg))):t.createSpreadAssignment(C.checkDefined(rt(be.expression,A,bt)))}function oe(be,Ue){const it=ls(i);return it&&it>=5?t.createObjectLiteralExpression(he(be,Ue)):Ae(be,Ue)}function he(be,Ue){const it=ra(uG(be,gI,(Ft,gt)=>ra(Ot(Ft,Qe=>gt?Y(Qe):de(Qe)))));return Ue&&it.push(Ue),it}function Ae(be,Ue){const it=[];let Ft=[];for(const Qe of be){if(gI(Qe)){if(Wa(Qe.expression)&&!M(Qe.expression)){for(const It of Qe.expression.properties){if(Yv(It)){gt(),it.push(C.checkDefined(rt(It.expression,A,bt)));continue}Ft.push(C.checkDefined(rt(It,A)))}continue}gt(),it.push(C.checkDefined(rt(Qe.expression,A,bt)));continue}Ft.push(de(Qe))}return Ue&&Ft.push(Ue),gt(),it.length&&!Wa(it[0])&&it.unshift(t.createObjectLiteralExpression()),ch(it)||r().createAssignHelper(it);function gt(){Ft.length&&(it.push(t.createObjectLiteralExpression(Ft)),Ft=[])}}function de(be){const Ue=Oe(be),it=ie(be.initializer);return t.createPropertyAssignment(Ue,it)}function ie(be){if(be===void 0)return t.createTrue();if(be.kind===11){const Ue=be.singleQuote!==void 0?be.singleQuote:!p3(be,o),it=t.createStringLiteral(Me(be.text)||be.text,Ue);return ut(it,be)}return be.kind===294?be.expression===void 0?t.createTrue():C.checkDefined(rt(be.expression,A,bt)):mg(be)?U(be,!1):JS(be)?K(be,!1):c1(be)?ee(be,!1):C.failBadSyntaxKind(be)}function ge(be){const Ue=Ne(be.text);return Ue===void 0?void 0:t.createStringLiteral(Ue)}function Ne(be){let Ue,it=0,Ft=-1;for(let gt=0;gt<be.length;gt++){const Qe=be.charCodeAt(gt);Hu(Qe)?(it!==-1&&Ft!==-1&&(Ue=qe(Ue,be.substr(it,Ft-it+1))),it=-1):A_(Qe)||(Ft=gt,it===-1&&(it=gt))}return it!==-1?qe(Ue,be.substr(it)):Ue}function qe(be,Ue){const it=Ee(Ue);return be===void 0?it:be+" "+it}function Ee(be){return be.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(Ue,it,Ft,gt,Qe,It,on)=>{if(Qe)return Yx(parseInt(Qe,10));if(It)return Yx(parseInt(It,16));{const $t=Zxe.get(on);return $t?Yx($t):Ue}})}function Me(be){const Ue=Ee(be);return Ue===be?void 0:Ue}function Ce(be){if(be.kind===284)return Ce(be.openingElement);{const Ue=be.tagName;return je(Ue)&&CR(Ue.escapedText)?t.createStringLiteral(Tr(Ue)):r_(Ue)?t.createStringLiteral(Tr(Ue.namespace)+":"+Tr(Ue.name)):nw(t,Ue)}}function Oe(be){const Ue=be.name;if(je(Ue)){const it=Tr(Ue);return/^[A-Za-z_]\w*$/.test(it)?Ue:t.createStringLiteral(it)}return t.createStringLiteral(Tr(Ue.namespace)+":"+Tr(Ue.name))}function At(be){const Ue=rt(be.expression,A,bt);return be.dotDotDotToken?t.createSpreadElement(Ue):Ue}}var Zxe,eHe=T({"src/compiler/transformers/jsx.ts"(){ta(),Zxe=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 ace(e){const{factory:t,hoistVariableDeclaration:r}=e;return wm(e,i);function i(p){return p.isDeclarationFile?p:xn(p,o,e)}function o(p){if((p.transformFlags&512)===0)return p;switch(p.kind){case 226:return s(p);default:return xn(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return u(p);default:return xn(p,o,e)}}function l(p){let h,f;const b=rt(p.left,o,bt),A=rt(p.right,o,bt);if($s(b)){const I=t.createTempVariable(r),R=t.createTempVariable(r);h=ut(t.createElementAccessExpression(ut(t.createAssignment(I,b.expression),b.expression),ut(t.createAssignment(R,b.argumentExpression),b.argumentExpression)),b),f=ut(t.createElementAccessExpression(I,R),b)}else if(Fr(b)){const I=t.createTempVariable(r);h=ut(t.createPropertyAccessExpression(ut(t.createAssignment(I,b.expression),b.expression),b.name),b),f=ut(t.createPropertyAccessExpression(I,b.name),b)}else h=b,f=b;return ut(t.createAssignment(h,ut(t.createGlobalMethodCall("Math","pow",[f,A]),p)),p)}function u(p){const h=rt(p.left,o,bt),f=rt(p.right,o,bt);return ut(t.createGlobalMethodCall("Math","pow",[h,f]),p)}}var tHe=T({"src/compiler/transformers/es2016.ts"(){ta()}});function eRe(e,t){return{kind:e,expression:t}}function sce(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.onSubstituteNode,f=e.onEmitNode;e.onEmitNode=ff,e.onSubstituteNode=Of;let b,A,I,R;function M(te){R=Rn(R,t.createVariableDeclaration(te))}let N,O;return wm(e,U);function U(te){if(te.isDeclarationFile)return te;b=te,A=te.text;const lt=oe(te);return Jg(lt,e.readEmitHelpers()),b=void 0,A=void 0,R=void 0,I=0,lt}function K(te,lt){const zt=I;return I=(I&~te|lt)&32767,zt}function ee(te,lt,zt){I=(I&~lt|zt)&-32768|te}function V(te){return(I&8192)!==0&&te.kind===253&&!te.expression}function se(te){return te.transformFlags&4194304&&(Mm(te)||US(te)||Kae(te)||EP(te)||SP(te)||$R(te)||AP(te)||qS(te)||d1(te)||s1(te)||Wy(te,!1)||Jo(te))}function G(te){return(te.transformFlags&1024)!==0||N!==void 0||I&8192&&se(te)||Wy(te,!1)&&ao(te)||(Dm(te)&1)!==0}function re(te){return G(te)?Y(te,!1):te}function _e(te){return G(te)?Y(te,!0):te}function ye(te){if(G(te)){const lt=Ml(te);if(Uo(lt)&&vc(lt)){const zt=K(32670,16449),Jt=Y(te,!1);return ee(zt,229376,0),Jt}return Y(te,!1)}return te}function Q(te){return te.kind===108?ic(te,!0):re(te)}function Y(te,lt){switch(te.kind){case 126:return;case 263:return Ce(te);case 231:return Oe(te);case 169:return Fa(te);case 262:return hn(te);case 219:return Gt(te);case 218:return gn(te);case 260:return En(te);case 80:return Ee(te);case 261:return ke(te);case 255:return he(te);case 269:return Ae(te);case 241:return We(te);case 252:case 251:return Me(te);case 256:return ai(te);case 246:case 247:return Hr(te,void 0);case 248:return bo(te,void 0);case 249:return vi(te,void 0);case 250:return ga(te,void 0);case 244:return Lt(te);case 210:return to(te);case 299:return Ri(te);case 304:return zc(te);case 167:return Sl(te);case 209:return Is(te);case 213:return nc(te);case 214:return Jc(te);case 217:return L(te,lt);case 226:return me(te,lt);case 361:return q(te,lt);case 15:case 16:case 17:case 18:return ea(te);case 11:return rc(te);case 9:return Sc(te);case 215:return ul(te);case 228:return vl(te);case 229:return Xl(te);case 230:return Xo(te);case 108:return ic(te,!1);case 110:return Ne(te);case 236:return Kc(te);case 174:return Ho(te);case 177:case 178:return Nl(te);case 243:return Ve(te);case 253:return ge(te);case 222:return qe(te);default:return xn(te,re,e)}}function oe(te){const lt=K(8064,64),zt=[],Jt=[];i();const F=t.copyPrologue(te.statements,zt,!1,re);return Ur(Jt,Bn(te.statements,re,qi,F)),R&&Jt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(zt,s()),le(zt,te),ee(lt,0,0),t.updateSourceFile(te,ut(t.createNodeArray(To(zt,Jt)),te.statements))}function he(te){if(N!==void 0){const lt=N.allowedNonLabeledJumps;N.allowedNonLabeledJumps|=2;const zt=xn(te,re,e);return N.allowedNonLabeledJumps=lt,zt}return xn(te,re,e)}function Ae(te){const lt=K(7104,0),zt=xn(te,re,e);return ee(lt,0,0),zt}function de(te){return Pr(t.createReturnStatement(ie()),te)}function ie(){return t.createUniqueName("_this",48)}function ge(te){return N?(N.nonLocalJumps|=8,V(te)&&(te=de(te)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),te.expression?C.checkDefined(rt(te.expression,re,bt)):t.createVoidZero())]))):V(te)?de(te):xn(te,re,e)}function Ne(te){return I|=65536,I&2&&!(I&16384)&&(I|=131072),N?I&2?(N.containsLexicalThis=!0,te):N.thisName||(N.thisName=t.createUniqueName("this")):te}function qe(te){return xn(te,_e,e)}function Ee(te){return N&&p.isArgumentsLocalBinding(te)?N.argumentsName||(N.argumentsName=t.createUniqueName("arguments")):te.flags&256?Pr(ut(t.createIdentifier(ji(te.escapedText)),te),te):te}function Me(te){if(N){const lt=te.kind===252?2:4;if(!(te.label&&N.labels&&N.labels.get(Tr(te.label))||!te.label&&N.allowedNonLabeledJumps<)){let Jt;const F=te.label;F?te.kind===252?(Jt="break-".concat(F.escapedText),Z(N,!0,Tr(F),Jt)):(Jt="continue-".concat(F.escapedText),Z(N,!1,Tr(F),Jt)):te.kind===252?(N.nonLocalJumps|=2,Jt="break"):(N.nonLocalJumps|=4,Jt="continue");let De=t.createStringLiteral(Jt);if(N.loopOutParameters.length){const st=N.loopOutParameters;let Vt;for(let ir=0;ir<st.length;ir++){const ni=Rp(st[ir],1);ir===0?Vt=ni:Vt=t.createBinaryExpression(Vt,28,ni)}De=t.createBinaryExpression(Vt,28,De)}return t.createReturnStatement(De)}}return xn(te,re,e)}function Ce(te){const lt=t.createVariableDeclaration(t.getLocalName(te,!0),void 0,void 0,At(te));Pr(lt,te);const zt=[],Jt=t.createVariableStatement(void 0,t.createVariableDeclarationList([lt]));if(Pr(Jt,te),ut(Jt,te),Xu(Jt),zt.push(Jt),$r(te,32)){const F=$r(te,2048)?t.createExportDefault(t.getLocalName(te)):t.createExternalModuleExport(t.getLocalName(te));Pr(F,Jt),zt.push(F)}return uh(zt)}function Oe(te){return At(te)}function At(te){te.name&&jd();const lt=qE(te),zt=t.createFunctionExpression(void 0,void 0,void 0,void 0,lt?[t.createParameterDeclaration(void 0,void 0,Ul())]:[],void 0,be(te,lt));pr(zt,qa(te)&131072|1048576);const Jt=t.createPartiallyEmittedExpression(zt);zR(Jt,te.end),pr(Jt,3072);const F=t.createPartiallyEmittedExpression(Jt);zR(F,wa(A,te.pos)),pr(F,3072);const De=t.createParenthesizedExpression(t.createCallExpression(F,void 0,lt?[C.checkDefined(rt(lt.expression,re,bt))]:[]));return fP(De,3,"* @class "),De}function be(te,lt){const zt=[],Jt=t.getInternalName(te),F=iU(Jt)?t.getGeneratedNameForNode(Jt):Jt;i(),Ue(zt,te,lt),it(zt,te,F,lt),j(zt,te);const De=RU(wa(A,te.members.end),20),st=t.createPartiallyEmittedExpression(F);zR(st,De.end),pr(st,3072);const Vt=t.createReturnStatement(st);tP(Vt,De.pos),pr(Vt,3840),zt.push(Vt),rg(zt,s());const ir=t.createBlock(ut(t.createNodeArray(zt),te.members),!0);return pr(ir,3072),ir}function Ue(te,lt,zt){zt&&te.push(ut(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(lt))),zt))}function it(te,lt,zt,Jt){const F=N;N=void 0;const De=K(32662,73),st=cg(lt),Vt=Ud(st,Jt!==void 0),ir=t.createFunctionDeclaration(void 0,void 0,zt,void 0,Ft(st,Vt),void 0,on(st,lt,Jt,Vt));ut(ir,st||lt),Jt&&pr(ir,16),te.push(ir),ee(De,229376,0),N=F}function Ft(te,lt){return Dl(te&&!lt?te.parameters:void 0,re,e)||[]}function gt(te,lt){const zt=[];o(),t.mergeLexicalEnvironment(zt,s()),lt&&zt.push(t.createReturnStatement(fa()));const Jt=t.createNodeArray(zt);ut(Jt,te.members);const F=t.createBlock(Jt,!0);return ut(F,te),pr(F,3072),F}function Qe(te){return kl(te)&&Yn(te.declarationList.declarations,lt=>je(lt.name)&&!lt.initializer)}function It(te){if(IS(te))return!0;if(!(te.transformFlags&134217728))return!1;switch(te.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const lt=te;return rs(lt.name)?!!Vo(lt.name,It):!1}}return!!Vo(te,It)}function on(te,lt,zt,Jt){const F=!!zt&&ec(zt.expression).kind!==106;if(!te)return gt(lt,F);const De=[],st=[];o();const Vt=t.copyStandardPrologue(te.body.statements,De,0);(Jt||It(te.body))&&(I|=8192),Ur(st,Bn(te.body.statements,re,qi,Vt));const ir=F||I&8192;wn(De,te),Pt(De,te,Jt),dt(De,te),ir?Fe(De,te,Ro()):le(De,te),t.mergeLexicalEnvironment(De,s()),ir&&!eo(te.body)&&st.push(t.createReturnStatement(ie()));const ni=t.createBlock(ut(t.createNodeArray([...De,...st]),te.body.statements),!0);return ut(ni,te.body),yi(ni,te.body,Jt)}function $t(te){return al(te)&&Tr(te)==="_this"}function Cn(te){return al(te)&&Tr(te)==="_super"}function Hn(te){return kl(te)&&te.declarationList.declarations.length===1&&yn(te.declarationList.declarations[0])}function yn(te){return ki(te)&&$t(te.name)&&!!te.initializer}function tn(te){return wc(te,!0)&&$t(te.left)}function en(te){return sa(te)&&Fr(te.expression)&&Cn(te.expression.expression)&&je(te.expression.name)&&(Tr(te.expression.name)==="call"||Tr(te.expression.name)==="apply")&&te.arguments.length>=1&&te.arguments[0].kind===110}function gi(te){return mr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&en(te.left)}function ho(te){return mr(te)&&te.operatorToken.kind===56&&mr(te.left)&&te.left.operatorToken.kind===38&&Cn(te.left.left)&&te.left.right.kind===106&&en(te.right)&&Tr(te.right.expression.name)==="apply"}function Gi(te){return mr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&ho(te.left)}function xo(te){return tn(te)&&gi(te.right)}function Qn(te){return tn(te)&&Gi(te.right)}function Di(te){return en(te)||gi(te)||xo(te)||ho(te)||Gi(te)||Qn(te)}function Ir(te){for(let lt=0;lt<te.statements.length-1;lt++){const zt=te.statements[lt];if(!Hn(zt))continue;const Jt=zt.declarationList.declarations[0];if(Jt.initializer.kind!==110)continue;const F=lt;let De=lt+1;for(;De<te.statements.length;){const Ba=te.statements[De];if(nu(Ba)&&Di(ec(Ba.expression)))break;if(Qe(Ba)){De++;continue}return te}const st=te.statements[De];let Vt=st.expression;tn(Vt)&&(Vt=Vt.right);const ir=t.updateVariableDeclaration(Jt,Jt.name,void 0,void 0,Vt),ni=t.updateVariableDeclarationList(zt.declarationList,[ir]),Xr=t.createVariableStatement(zt.modifiers,ni);Pr(Xr,st),ut(Xr,st);const so=t.createNodeArray([...te.statements.slice(0,F),...te.statements.slice(F+1,De),Xr,...te.statements.slice(De+1)]);return ut(so,te.statements),t.updateBlock(te,so)}return te}function Xt(te,lt){for(const Jt of lt.statements)if(Jt.transformFlags&134217728&&!i7(Jt))return te;const zt=!(lt.transformFlags&16384)&&!(I&65536)&&!(I&131072);for(let Jt=te.statements.length-1;Jt>0;Jt--){const F=te.statements[Jt];if(Mm(F)&&F.expression&&$t(F.expression)){const De=te.statements[Jt-1];let st;if(nu(De)&&xo(ec(De.expression)))st=De.expression;else if(zt&&Hn(De)){const ni=De.declarationList.declarations[0];Di(ec(ni.initializer))&&(st=t.createAssignment(ie(),ni.initializer))}if(!st)break;const Vt=t.createReturnStatement(st);Pr(Vt,De),ut(Vt,De);const ir=t.createNodeArray([...te.statements.slice(0,Jt-1),Vt,...te.statements.slice(Jt+1)]);return ut(ir,te.statements),t.updateBlock(te,ir)}}return te}function nt(te){if(Hn(te)){if(te.declarationList.declarations[0].initializer.kind===110)return}else if(tn(te))return t.createPartiallyEmittedExpression(te.right,te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const lt=te;return rs(lt.name)?t.replacePropertyName(lt,xn(lt.name,nt,void 0)):te}}return xn(te,nt,void 0)}function Bt(te,lt){if(lt.transformFlags&16384||I&65536||I&131072)return te;for(const zt of lt.statements)if(zt.transformFlags&134217728&&!i7(zt))return te;return t.updateBlock(te,Bn(te.statements,nt,qi))}function Dn(te){if(en(te)&&te.arguments.length===2&&je(te.arguments[1])&&Tr(te.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Ul(),t.createNull()),te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const lt=te;return rs(lt.name)?t.replacePropertyName(lt,xn(lt.name,Dn,void 0)):te}}return xn(te,Dn,void 0)}function oi(te){return t.updateBlock(te,Bn(te.statements,Dn,qi))}function yi(te,lt,zt){const Jt=te;return te=Ir(te),te=Xt(te,lt),te!==Jt&&(te=Bt(te,lt)),zt&&(te=oi(te)),te}function eo(te){if(te.kind===253)return!0;if(te.kind===245){const lt=te;if(lt.elseStatement)return eo(lt.thenStatement)&&eo(lt.elseStatement)}else if(te.kind===241){const lt=el(te.statements);if(lt&&eo(lt))return!0}return!1}function Ro(){return pr(t.createThis(),8)}function fa(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Ul(),t.createNull()),t.createFunctionApplyCall(Ul(),Ro(),t.createIdentifier("arguments"))),Ro())}function Fa(te){if(!te.dotDotDotToken)return Zo(te.name)?Pr(ut(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(te),void 0,void 0,void 0),te),te):te.initializer?Pr(ut(t.createParameterDeclaration(void 0,void 0,te.name,void 0,void 0,void 0),te),te):te}function An(te){return te.initializer!==void 0||Zo(te.name)}function wn(te,lt){if(!St(lt.parameters,An))return!1;let zt=!1;for(const Jt of lt.parameters){const{name:F,initializer:De,dotDotDotToken:st}=Jt;st||(Zo(F)?zt=Je(te,Jt,F,De)||zt:De&&(mt(te,Jt,F,De),zt=!0))}return zt}function Je(te,lt,zt,Jt){return zt.elements.length>0?(SS(te,pr(t.createVariableStatement(void 0,t.createVariableDeclarationList(v1(lt,re,e,0,t.getGeneratedNameForNode(lt)))),2097152)),!0):Jt?(SS(te,pr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(lt),C.checkDefined(rt(Jt,re,bt)))),2097152)),!0):!1}function mt(te,lt,zt,Jt){Jt=C.checkDefined(rt(Jt,re,bt));const F=t.createIfStatement(t.createTypeCheck(t.cloneNode(zt),"undefined"),pr(ut(t.createBlock([t.createExpressionStatement(pr(ut(t.createAssignment(pr(Ya(ut(t.cloneNode(zt),zt),zt.parent),96),pr(Jt,96|qa(Jt)|3072)),lt),3072))]),lt),3905));Xu(F),ut(F,lt),pr(F,2101056),SS(te,F)}function pt(te,lt){return!!(te&&te.dotDotDotToken&&!lt)}function Pt(te,lt,zt){const Jt=[],F=el(lt.parameters);if(!pt(F,zt))return!1;const De=F.name.kind===80?Ya(ut(t.cloneNode(F.name),F.name),F.name.parent):t.createTempVariable(void 0);pr(De,96);const st=F.name.kind===80?t.cloneNode(F.name):De,Vt=lt.parameters.length-1,ir=t.createLoopVariable();Jt.push(pr(ut(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(De,void 0,void 0,t.createArrayLiteralExpression([]))])),F),2097152));const ni=t.createForStatement(ut(t.createVariableDeclarationList([t.createVariableDeclaration(ir,void 0,void 0,t.createNumericLiteral(Vt))]),F),ut(t.createLessThan(ir,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),F),ut(t.createPostfixIncrement(ir),F),t.createBlock([Xu(ut(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(st,Vt===0?ir:t.createSubtract(ir,t.createNumericLiteral(Vt))),t.createElementAccessExpression(t.createIdentifier("arguments"),ir))),F))]));return pr(ni,2097152),Xu(ni),Jt.push(ni),F.name.kind!==80&&Jt.push(pr(ut(t.createVariableStatement(void 0,t.createVariableDeclarationList(v1(F,re,e,0,st))),F),2097152)),Ej(te,Jt),!0}function le(te,lt){return I&131072&<.kind!==219?(Fe(te,lt,t.createThis()),!0):!1}function Fe(te,lt,zt){Nd();const Jt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie(),void 0,void 0,zt)]));pr(Jt,2100224),Pa(Jt,lt),SS(te,Jt)}function dt(te,lt){if(I&32768){let zt;switch(lt.kind){case 219:return te;case 174:case 177:case 178:zt=t.createVoidZero();break;case 176:zt=t.createPropertyAccessExpression(pr(t.createThis(),8),"constructor");break;case 262:case 218:zt=t.createConditionalExpression(t.createLogicalAnd(pr(t.createThis(),8),t.createBinaryExpression(pr(t.createThis(),8),104,t.getLocalName(lt))),void 0,t.createPropertyAccessExpression(pr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return C.failBadSyntaxKind(lt)}const Jt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,zt)]));pr(Jt,2100224),SS(te,Jt)}return te}function j(te,lt){for(const zt of lt.members)switch(zt.kind){case 240:te.push(ot(zt));break;case 174:te.push(Dt(vg(lt,zt),zt,lt));break;case 177:case 178:const Jt=wS(lt.members,zt);zt===Jt.firstAccessor&&te.push(Ye(vg(lt,zt),Jt,lt));break;case 176:case 175:break;default:C.failBadSyntaxKind(zt,b&&b.fileName);break}}function ot(te){return ut(t.createEmptyStatement(),te)}function Dt(te,lt,zt){const Jt=w_(lt),F=Jv(lt),De=dn(lt,lt,void 0,zt),st=rt(lt.name,re,cc);C.assert(st);let Vt;if(!Ji(st)&&dP(e.getCompilerOptions())){const ni=rs(st)?st.expression:je(st)?t.createStringLiteral(ji(st.escapedText)):st;Vt=t.createObjectDefinePropertyCall(te,ni,t.createPropertyDescriptor({value:De,enumerable:!1,writable:!0,configurable:!0}))}else{const ni=$S(t,te,st,lt.name);Vt=t.createAssignment(ni,De)}pr(De,3072),Pa(De,F);const ir=ut(t.createExpressionStatement(Vt),lt);return Pr(ir,lt),uc(ir,Jt),pr(ir,96),ir}function Ye(te,lt,zt){const Jt=t.createExpressionStatement(_t(te,lt,zt,!1));return pr(Jt,3072),Pa(Jt,Jv(lt.firstAccessor)),Jt}function _t(te,{firstAccessor:lt,getAccessor:zt,setAccessor:Jt},F,De){const st=Ya(ut(t.cloneNode(te),te),te.parent);pr(st,3136),Pa(st,lt.name);const Vt=rt(lt.name,re,cc);if(C.assert(Vt),Ji(Vt))return C.failBadSyntaxKind(Vt,"Encountered unhandled private identifier while transforming ES2015.");const ir=XH(t,Vt);pr(ir,3104),Pa(ir,lt.name);const ni=[];if(zt){const so=dn(zt,void 0,void 0,F);Pa(so,Jv(zt)),pr(so,1024);const Ba=t.createPropertyAssignment("get",so);uc(Ba,w_(zt)),ni.push(Ba)}if(Jt){const so=dn(Jt,void 0,void 0,F);Pa(so,Jv(Jt)),pr(so,1024);const Ba=t.createPropertyAssignment("set",so);uc(Ba,w_(Jt)),ni.push(Ba)}ni.push(t.createPropertyAssignment("enumerable",zt||Jt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Xr=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[st,ir,t.createObjectLiteralExpression(ni,!0)]);return De&&Xu(Xr),Xr}function Gt(te){te.transformFlags&16384&&!(I&16384)&&(I|=131072);const lt=N;N=void 0;const zt=K(15232,66),Jt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Dl(te.parameters,re,e),void 0,H(te));return ut(Jt,te),Pr(Jt,te),pr(Jt,16),ee(zt,0,0),N=lt,Jt}function gn(te){const lt=qa(te)&524288?K(32662,69):K(32670,65),zt=N;N=void 0;const Jt=Dl(te.parameters,re,e),F=H(te),De=I&32768?t.getLocalName(te):te.name;return ee(lt,229376,0),N=zt,t.updateFunctionExpression(te,void 0,te.asteriskToken,De,void 0,Jt,void 0,F)}function hn(te){const lt=N;N=void 0;const zt=K(32670,65),Jt=Dl(te.parameters,re,e),F=H(te),De=I&32768?t.getLocalName(te):te.name;return ee(zt,229376,0),N=lt,t.updateFunctionDeclaration(te,Bn(te.modifiers,re,xa),te.asteriskToken,De,void 0,Jt,void 0,F)}function dn(te,lt,zt,Jt){const F=N;N=void 0;const De=Jt&&ui(Jt)&&!aa(te)?K(32670,73):K(32670,65),st=Dl(te.parameters,re,e),Vt=H(te);return I&32768&&!zt&&(te.kind===262||te.kind===218)&&(zt=t.getGeneratedNameForNode(te)),ee(De,229376,0),N=F,Pr(ut(t.createFunctionExpression(void 0,te.asteriskToken,zt,void 0,st,void 0,Vt),lt),te)}function H(te){let lt=!1,zt=!1,Jt,F;const De=[],st=[],Vt=te.body;let ir;if(o(),Jo(Vt)&&(ir=t.copyStandardPrologue(Vt.statements,De,0,!1),ir=t.copyCustomPrologue(Vt.statements,st,ir,re,Y4),ir=t.copyCustomPrologue(Vt.statements,st,ir,re,$4)),lt=wn(st,te)||lt,lt=Pt(st,te,!1)||lt,Jo(Vt))ir=t.copyCustomPrologue(Vt.statements,st,ir,re),Jt=Vt.statements,Ur(st,Bn(Vt.statements,re,qi,ir)),!lt&&Vt.multiLine&&(lt=!0);else{C.assert(te.kind===219),Jt=O3(Vt,-1);const Xr=te.equalsGreaterThanToken;!Ys(Xr)&&!Ys(Vt)&&(gk(Xr,Vt,b)?zt=!0:lt=!0);const so=rt(Vt,re,bt),Ba=t.createReturnStatement(so);ut(Ba,Vt),Iae(Ba,Vt),pr(Ba,2880),st.push(Ba),F=Vt}if(t.mergeLexicalEnvironment(De,s()),dt(De,te),le(De,te),St(De)&&(lt=!0),st.unshift(...De),Jo(Vt)&&Ym(st,Vt.statements))return Vt;const ni=t.createBlock(ut(t.createNodeArray(st),Jt),lt);return ut(ni,te.body),!lt&&zt&&pr(ni,1),F&&Aae(ni,20,F),Pr(ni,te.body),ni}function We(te,lt){const zt=I&256?K(7104,512):K(6976,128),Jt=xn(te,re,e);return ee(zt,0,0),Jt}function Lt(te){return xn(te,_e,e)}function L(te,lt){return xn(te,lt?_e:re,e)}function me(te,lt){return Uv(te)?tT(te,re,e,0,!lt):te.operatorToken.kind===28?t.updateBinaryExpression(te,C.checkDefined(rt(te.left,_e,bt)),te.operatorToken,C.checkDefined(rt(te.right,lt?_e:re,bt))):xn(te,re,e)}function q(te,lt){if(lt)return xn(te,_e,e);let zt;for(let F=0;F<te.elements.length;F++){const De=te.elements[F],st=rt(De,F<te.elements.length-1?_e:re,bt);(zt||st!==De)&&(zt||(zt=te.elements.slice(0,F)),C.assert(st),zt.push(st))}const Jt=zt?ut(t.createNodeArray(zt),te.elements):te.elements;return t.updateCommaListExpression(te,Jt)}function fe(te){return te.declarationList.declarations.length===1&&!!te.declarationList.declarations[0].initializer&&!!(Dm(te.declarationList.declarations[0].initializer)&1)}function Ve(te){const lt=K(0,$r(te,32)?32:0);let zt;if(N&&(te.declarationList.flags&7)===0&&!fe(te)){let Jt;for(const F of te.declarationList.declarations)if(pu(N,F),F.initializer){let De;Zo(F.name)?De=tT(F,re,e,0):(De=t.createBinaryExpression(F.name,64,C.checkDefined(rt(F.initializer,re,bt))),ut(De,F)),Jt=Rn(Jt,De)}Jt?zt=ut(t.createExpressionStatement(t.inlineExpressions(Jt)),te):zt=void 0}else zt=xn(te,re,e);return ee(lt,0,0),zt}function ke(te){if(te.flags&7||te.transformFlags&524288){te.flags&7&&jd();const lt=Bn(te.declarations,te.flags&1?nn:En,ki),zt=t.createVariableDeclarationList(lt);return Pr(zt,te),ut(zt,te),uc(zt,te),te.transformFlags&524288&&(Zo(te.declarations[0].name)||Zo(es(te.declarations).name))&&Pa(zt,Tt(lt)),zt}return xn(te,re,e)}function Tt(te){let lt=-1,zt=-1;for(const Jt of te)lt=lt===-1?Jt.pos:Jt.pos===-1?lt:Math.min(lt,Jt.pos),zt=Math.max(zt,Jt.end);return xf(lt,zt)}function kt(te){const lt=p.getNodeCheckFlags(te),zt=lt&16384,Jt=lt&32768;return!((I&64)!==0||zt&&Jt&&(I&512)!==0)&&(I&4096)===0&&(!p.isDeclarationWithCollidingName(te)||Jt&&!zt&&(I&6144)===0)}function nn(te){const lt=te.name;return Zo(lt)?En(te):!te.initializer&&kt(te)?t.updateVariableDeclaration(te,te.name,void 0,void 0,t.createVoidZero()):xn(te,re,e)}function En(te){const lt=K(32,0);let zt;return Zo(te.name)?zt=v1(te,re,e,0,void 0,(lt&32)!==0):zt=xn(te,re,e),ee(lt,0,0),zt}function nr(te){N.labels.set(Tr(te.label),!0)}function lr(te){N.labels.set(Tr(te.label),!1)}function ai(te){N&&!N.labels&&(N.labels=new Map);const lt=zj(te,N&&nr);return Wy(lt,!1)?si(lt,te):t.restoreEnclosingLabel(C.checkDefined(rt(lt,re,qi,t.liftToBlock)),te,N&&lr)}function si(te,lt){switch(te.kind){case 246:case 247:return Hr(te,lt);case 248:return bo(te,lt);case 249:return vi(te,lt);case 250:return ga(te,lt)}}function Kn(te,lt,zt,Jt,F){const De=K(te,lt),st=Rs(zt,Jt,De,F);return ee(De,0,0),st}function Hr(te,lt){return Kn(0,1280,te,lt)}function bo(te,lt){return Kn(5056,3328,te,lt)}function wi(te){return t.updateForStatement(te,rt(te.initializer,_e,Af),rt(te.condition,re,bt),rt(te.incrementor,_e,bt),C.checkDefined(rt(te.statement,re,qi,t.liftToBlock)))}function vi(te,lt){return Kn(3008,5376,te,lt)}function ga(te,lt){return Kn(3008,5376,te,lt,u.downlevelIteration?Wl:va)}function Ja(te,lt,zt){const Jt=[],F=te.initializer;if(qc(F)){te.initializer.flags&7&&jd();const De=$c(F.declarations);if(De&&Zo(De.name)){const st=v1(De,re,e,0,lt),Vt=ut(t.createVariableDeclarationList(st),te.initializer);Pr(Vt,te.initializer),Pa(Vt,xf(st[0].pos,es(st).end)),Jt.push(t.createVariableStatement(void 0,Vt))}else Jt.push(ut(t.createVariableStatement(void 0,Pr(ut(t.createVariableDeclarationList([t.createVariableDeclaration(De?De.name:t.createTempVariable(void 0),void 0,void 0,lt)]),T0(F,-1)),F)),O3(F,-1)))}else{const De=t.createAssignment(F,lt);Uv(De)?Jt.push(t.createExpressionStatement(me(De,!0))):(zR(De,F.end),Jt.push(ut(t.createExpressionStatement(C.checkDefined(rt(De,re,bt))),O3(F,-1))))}if(zt)return Qt(Ur(Jt,zt));{const De=rt(te.statement,re,qi,t.liftToBlock);return C.assert(De),Jo(De)?t.updateBlock(De,ut(t.createNodeArray(To(Jt,De.statements)),De.statements)):(Jt.push(De),Qt(Jt))}}function Qt(te){return pr(t.createBlock(t.createNodeArray(te),!0),864)}function va(te,lt,zt){const Jt=rt(te.expression,re,bt);C.assert(Jt);const F=t.createLoopVariable(),De=je(Jt)?t.getGeneratedNameForNode(Jt):t.createTempVariable(void 0);pr(Jt,96|qa(Jt));const st=ut(t.createForStatement(pr(ut(t.createVariableDeclarationList([ut(t.createVariableDeclaration(F,void 0,void 0,t.createNumericLiteral(0)),T0(te.expression,-1)),ut(t.createVariableDeclaration(De,void 0,void 0,Jt),te.expression)]),te.expression),4194304),ut(t.createLessThan(F,t.createPropertyAccessExpression(De,"length")),te.expression),ut(t.createPostfixIncrement(F),te.expression),Ja(te,t.createElementAccessExpression(De,F),zt)),te);return pr(st,512),ut(st,te),t.restoreEnclosingLabel(st,lt,N&&lr)}function Wl(te,lt,zt,Jt){const F=rt(te.expression,re,bt);C.assert(F);const De=je(F)?t.getGeneratedNameForNode(F):t.createTempVariable(void 0),st=je(F)?t.getGeneratedNameForNode(De):t.createTempVariable(void 0),Vt=t.createUniqueName("e"),ir=t.getGeneratedNameForNode(Vt),ni=t.createTempVariable(void 0),Xr=ut(r().createValuesHelper(F),te.expression),so=t.createCallExpression(t.createPropertyAccessExpression(De,"next"),void 0,[]);l(Vt),l(ni);const Ba=Jt&1024?t.inlineExpressions([t.createAssignment(Vt,t.createVoidZero()),Xr]):Xr,Ga=pr(ut(t.createForStatement(pr(ut(t.createVariableDeclarationList([ut(t.createVariableDeclaration(De,void 0,void 0,Ba),te.expression),t.createVariableDeclaration(st,void 0,void 0,so)]),te.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(st,"done")),t.createAssignment(st,so),Ja(te,t.createPropertyAccessExpression(st,"value"),zt)),te),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(Ga,lt,N&&lr)]),t.createCatchClause(t.createVariableDeclaration(ir),pr(t.createBlock([t.createExpressionStatement(t.createAssignment(Vt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",ir)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([pr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(st,t.createLogicalNot(t.createPropertyAccessExpression(st,"done"))),t.createAssignment(ni,t.createPropertyAccessExpression(De,"return"))),t.createExpressionStatement(t.createFunctionCallCall(ni,De,[]))),1)]),void 0,pr(t.createBlock([pr(t.createIfStatement(Vt,t.createThrowStatement(t.createPropertyAccessExpression(Vt,"error"))),1)]),1))]))}function to(te){const lt=te.properties;let zt=-1,Jt=!1;for(let Vt=0;Vt<lt.length;Vt++){const ir=lt[Vt];if(ir.transformFlags&1048576&&I&4||(Jt=C.checkDefined(ir.name).kind===167)){zt=Vt;break}}if(zt<0)return xn(te,re,e);const F=t.createTempVariable(l),De=[],st=t.createAssignment(F,pr(t.createObjectLiteralExpression(Bn(lt,re,Bg,0,zt),te.multiLine),Jt?131072:0));return te.multiLine&&Xu(st),De.push(st),pn(De,te,F,zt),De.push(te.multiLine?Xu(Ya(ut(t.cloneNode(F),F),F.parent)):F),t.inlineExpressions(De)}function za(te){return(p.getNodeCheckFlags(te)&8192)!==0}function La(te){return HS(te)&&!!te.initializer&&za(te.initializer)}function ys(te){return HS(te)&&!!te.condition&&za(te.condition)}function tc(te){return HS(te)&&!!te.incrementor&&za(te.incrementor)}function ao(te){return ca(te)||La(te)}function ca(te){return(p.getNodeCheckFlags(te)&4096)!==0}function pu(te,lt){te.hoistedLocalVariables||(te.hoistedLocalVariables=[]),zt(lt.name);function zt(Jt){if(Jt.kind===80)te.hoistedLocalVariables.push(Jt);else for(const F of Jt.elements)Hc(F)||zt(F.name)}}function Rs(te,lt,zt,Jt){if(!ao(te)){let Xr;N&&(Xr=N.allowedNonLabeledJumps,N.allowedNonLabeledJumps=6);const so=Jt?Jt(te,lt,void 0,zt):t.restoreEnclosingLabel(HS(te)?wi(te):xn(te,re,e),lt,N&&lr);return N&&(N.allowedNonLabeledJumps=Xr),so}const F=Mo(te),De=[],st=N;N=F;const Vt=La(te)?iu(te,F):void 0,ir=ca(te)?fu(te,F,st):void 0;N=st,Vt&&De.push(Vt.functionDeclaration),ir&&De.push(ir.functionDeclaration),an(De,F,st),Vt&&De.push(Cc(Vt.functionName,Vt.containsYield));let ni;if(ir)if(Jt)ni=Jt(te,lt,ir.part,zt);else{const Xr=ka(te,Vt,t.createBlock(ir.part,!0));ni=t.restoreEnclosingLabel(Xr,lt,N&&lr)}else{const Xr=ka(te,Vt,C.checkDefined(rt(te.statement,re,qi,t.liftToBlock)));ni=t.restoreEnclosingLabel(Xr,lt,N&&lr)}return De.push(ni),De}function ka(te,lt,zt){switch(te.kind){case 248:return _l(te,lt,zt);case 249:return pc(te,zt);case 250:return wf(te,zt);case 246:return Cl(te,zt);case 247:return cl(te,zt);default:return C.failBadSyntaxKind(te,"IterationStatement expected")}}function _l(te,lt,zt){const Jt=te.condition&&za(te.condition),F=Jt||te.incrementor&&za(te.incrementor);return t.updateForStatement(te,rt(lt?lt.part:te.initializer,_e,Af),rt(Jt?void 0:te.condition,re,bt),rt(F?void 0:te.incrementor,_e,bt),zt)}function wf(te,lt){return t.updateForOfStatement(te,void 0,C.checkDefined(rt(te.initializer,re,Af)),C.checkDefined(rt(te.expression,re,bt)),lt)}function pc(te,lt){return t.updateForInStatement(te,C.checkDefined(rt(te.initializer,re,Af)),C.checkDefined(rt(te.expression,re,bt)),lt)}function Cl(te,lt){return t.updateDoStatement(te,lt,C.checkDefined(rt(te.expression,re,bt)))}function cl(te,lt){return t.updateWhileStatement(te,C.checkDefined(rt(te.expression,re,bt)),lt)}function Mo(te){let lt;switch(te.kind){case 248:case 249:case 250:const De=te.initializer;De&&De.kind===261&&(lt=De);break}const zt=[],Jt=[];if(lt&&Wv(lt)&7){const De=La(te)||ys(te)||tc(te);for(const st of lt.declarations)yt(te,st,zt,Jt,De)}const F={loopParameters:zt,loopOutParameters:Jt};return N&&(N.argumentsName&&(F.argumentsName=N.argumentsName),N.thisName&&(F.thisName=N.thisName),N.hoistedLocalVariables&&(F.hoistedLocalVariables=N.hoistedLocalVariables)),F}function an(te,lt,zt){let Jt;if(lt.argumentsName&&(zt?zt.argumentsName=lt.argumentsName:(Jt||(Jt=[])).push(t.createVariableDeclaration(lt.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),lt.thisName&&(zt?zt.thisName=lt.thisName:(Jt||(Jt=[])).push(t.createVariableDeclaration(lt.thisName,void 0,void 0,t.createIdentifier("this")))),lt.hoistedLocalVariables)if(zt)zt.hoistedLocalVariables=lt.hoistedLocalVariables;else{Jt||(Jt=[]);for(const F of lt.hoistedLocalVariables)Jt.push(t.createVariableDeclaration(F))}if(lt.loopOutParameters.length){Jt||(Jt=[]);for(const F of lt.loopOutParameters)Jt.push(t.createVariableDeclaration(F.outParamName))}lt.conditionVariable&&(Jt||(Jt=[]),Jt.push(t.createVariableDeclaration(lt.conditionVariable,void 0,void 0,t.createFalse()))),Jt&&te.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(Jt)))}function Hs(te){return t.createVariableDeclaration(te.originalName,void 0,void 0,te.outParamName)}function iu(te,lt){const zt=t.createUniqueName("_loop_init"),Jt=(te.initializer.transformFlags&1048576)!==0;let F=0;lt.containsLexicalThis&&(F|=16),Jt&&I&4&&(F|=524288);const De=[];De.push(t.createVariableStatement(void 0,te.initializer)),Ws(lt.loopOutParameters,2,1,De);const st=t.createVariableStatement(void 0,pr(t.createVariableDeclarationList([t.createVariableDeclaration(zt,void 0,void 0,pr(t.createFunctionExpression(void 0,Jt?t.createToken(42):void 0,void 0,void 0,void 0,void 0,C.checkDefined(rt(t.createBlock(De,!0),re,Jo))),F))]),4194304)),Vt=t.createVariableDeclarationList(Ot(lt.loopOutParameters,Hs));return{functionName:zt,containsYield:Jt,functionDeclaration:st,part:Vt}}function fu(te,lt,zt){const Jt=t.createUniqueName("_loop");i();const F=rt(te.statement,re,qi,t.liftToBlock),De=s(),st=[];(ys(te)||tc(te))&&(lt.conditionVariable=t.createUniqueName("inc"),te.incrementor?st.push(t.createIfStatement(lt.conditionVariable,t.createExpressionStatement(C.checkDefined(rt(te.incrementor,re,bt))),t.createExpressionStatement(t.createAssignment(lt.conditionVariable,t.createTrue())))):st.push(t.createIfStatement(t.createLogicalNot(lt.conditionVariable),t.createExpressionStatement(t.createAssignment(lt.conditionVariable,t.createTrue())))),ys(te)&&st.push(t.createIfStatement(t.createPrefixUnaryExpression(54,C.checkDefined(rt(te.condition,re,bt))),C.checkDefined(rt(t.createBreakStatement(),re,qi))))),C.assert(F),Jo(F)?Ur(st,F.statements):st.push(F),Ws(lt.loopOutParameters,1,1,st),rg(st,De);const Vt=t.createBlock(st,!0);Jo(F)&&Pr(Vt,F);const ir=(te.statement.transformFlags&1048576)!==0;let ni=1048576;lt.containsLexicalThis&&(ni|=16),ir&&(I&4)!==0&&(ni|=524288);const Xr=t.createVariableStatement(void 0,pr(t.createVariableDeclarationList([t.createVariableDeclaration(Jt,void 0,void 0,pr(t.createFunctionExpression(void 0,ir?t.createToken(42):void 0,void 0,void 0,lt.loopParameters,void 0,Vt),ni))]),4194304)),so=pe(Jt,lt,zt,ir);return{functionName:Jt,containsYield:ir,functionDeclaration:Xr,part:so}}function Rp(te,lt){const zt=lt===0?te.outParamName:te.originalName,Jt=lt===0?te.originalName:te.outParamName;return t.createBinaryExpression(Jt,64,zt)}function Ws(te,lt,zt,Jt){for(const F of te)F.flags<&&Jt.push(t.createExpressionStatement(Rp(F,zt)))}function Cc(te,lt){const zt=t.createCallExpression(te,void 0,[]),Jt=lt?t.createYieldExpression(t.createToken(42),pr(zt,8388608)):zt;return t.createExpressionStatement(Jt)}function pe(te,lt,zt,Jt){const F=[],De=!(lt.nonLocalJumps&-5)&&!lt.labeledNonLocalBreaks&&!lt.labeledNonLocalContinues,st=t.createCallExpression(te,void 0,Ot(lt.loopParameters,ir=>ir.name)),Vt=Jt?t.createYieldExpression(t.createToken(42),pr(st,8388608)):st;if(De)F.push(t.createExpressionStatement(Vt)),Ws(lt.loopOutParameters,1,0,F);else{const ir=t.createUniqueName("state"),ni=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ir,void 0,void 0,Vt)]));if(F.push(ni),Ws(lt.loopOutParameters,1,0,F),lt.nonLocalJumps&8){let Xr;zt?(zt.nonLocalJumps|=8,Xr=t.createReturnStatement(ir)):Xr=t.createReturnStatement(t.createPropertyAccessExpression(ir,"value")),F.push(t.createIfStatement(t.createTypeCheck(ir,"object"),Xr))}if(lt.nonLocalJumps&2&&F.push(t.createIfStatement(t.createStrictEquality(ir,t.createStringLiteral("break")),t.createBreakStatement())),lt.labeledNonLocalBreaks||lt.labeledNonLocalContinues){const Xr=[];we(lt.labeledNonLocalBreaks,!0,ir,zt,Xr),we(lt.labeledNonLocalContinues,!1,ir,zt,Xr),F.push(t.createSwitchStatement(ir,t.createCaseBlock(Xr)))}}return F}function Z(te,lt,zt,Jt){lt?(te.labeledNonLocalBreaks||(te.labeledNonLocalBreaks=new Map),te.labeledNonLocalBreaks.set(zt,Jt)):(te.labeledNonLocalContinues||(te.labeledNonLocalContinues=new Map),te.labeledNonLocalContinues.set(zt,Jt))}function we(te,lt,zt,Jt,F){te&&te.forEach((De,st)=>{const Vt=[];if(!Jt||Jt.labels&&Jt.labels.get(st)){const ir=t.createIdentifier(st);Vt.push(lt?t.createBreakStatement(ir):t.createContinueStatement(ir))}else Z(Jt,lt,st,De),Vt.push(t.createReturnStatement(zt));F.push(t.createCaseClause(t.createStringLiteral(De),Vt))})}function yt(te,lt,zt,Jt,F){const De=lt.name;if(Zo(De))for(const st of De.elements)Hc(st)||yt(te,st,zt,Jt,F);else{zt.push(t.createParameterDeclaration(void 0,void 0,De));const st=p.getNodeCheckFlags(lt);if(st&65536||F){const Vt=t.createUniqueName("out_"+Tr(De));let ir=0;st&65536&&(ir|=1),HS(te)&&(te.initializer&&p.isBindingCapturedByNode(te.initializer,lt)&&(ir|=2),(te.condition&&p.isBindingCapturedByNode(te.condition,lt)||te.incrementor&&p.isBindingCapturedByNode(te.incrementor,lt))&&(ir|=1)),Jt.push({flags:ir,originalName:De,outParamName:Vt})}}}function pn(te,lt,zt,Jt){const F=lt.properties,De=F.length;for(let st=Jt;st<De;st++){const Vt=F[st];switch(Vt.kind){case 177:case 178:const ir=wS(lt.properties,Vt);Vt===ir.firstAccessor&&te.push(_t(zt,ir,lt,!!lt.multiLine));break;case 174:te.push(qr(Vt,zt,lt,lt.multiLine));break;case 303:te.push(gr(Vt,zt,lt.multiLine));break;case 304:te.push(br(Vt,zt,lt.multiLine));break;default:C.failBadSyntaxKind(lt);break}}}function gr(te,lt,zt){const Jt=t.createAssignment($S(t,lt,C.checkDefined(rt(te.name,re,cc))),C.checkDefined(rt(te.initializer,re,bt)));return ut(Jt,te),zt&&Xu(Jt),Jt}function br(te,lt,zt){const Jt=t.createAssignment($S(t,lt,C.checkDefined(rt(te.name,re,cc))),t.cloneNode(te.name));return ut(Jt,te),zt&&Xu(Jt),Jt}function qr(te,lt,zt,Jt){const F=t.createAssignment($S(t,lt,C.checkDefined(rt(te.name,re,cc))),dn(te,te,void 0,zt));return ut(F,te),Jt&&Xu(F),F}function Ri(te){const lt=K(7104,0);let zt;if(C.assert(!!te.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),Zo(te.variableDeclaration.name)){const Jt=t.createTempVariable(void 0),F=t.createVariableDeclaration(Jt);ut(F,te.variableDeclaration);const De=v1(te.variableDeclaration,re,e,0,Jt),st=t.createVariableDeclarationList(De);ut(st,te.variableDeclaration);const Vt=t.createVariableStatement(void 0,st);zt=t.updateCatchClause(te,F,hr(te.block,Vt))}else zt=xn(te,re,e);return ee(lt,0,0),zt}function hr(te,lt){const zt=Bn(te.statements,re,qi);return t.updateBlock(te,[lt,...zt])}function Ho(te){C.assert(!rs(te.name));const lt=dn(te,T0(te,-1),void 0,void 0);return pr(lt,1024|qa(lt)),ut(t.createPropertyAssignment(te.name,lt),te)}function Nl(te){C.assert(!rs(te.name));const lt=N;N=void 0;const zt=K(32670,65);let Jt;const F=Dl(te.parameters,re,e),De=H(te);return te.kind===177?Jt=t.updateGetAccessorDeclaration(te,te.modifiers,te.name,F,te.type,De):Jt=t.updateSetAccessorDeclaration(te,te.modifiers,te.name,F,De),ee(zt,229376,0),N=lt,Jt}function zc(te){return ut(t.createPropertyAssignment(te.name,Ee(t.cloneNode(te.name))),te)}function Sl(te){return xn(te,re,e)}function Xl(te){return xn(te,re,e)}function Is(te){return St(te.elements,n_)?Cd(te.elements,!1,!!te.multiLine,!!te.elements.hasTrailingComma):xn(te,re,e)}function nc(te){if(Dm(te)&1)return op(te);const lt=ec(te.expression);return lt.kind===108||zd(lt)||St(te.arguments,n_)?ap(te):t.updateCallExpression(te,C.checkDefined(rt(te.expression,Q,bt)),void 0,Bn(te.arguments,re,bt))}function op(te){const lt=oa(oa(ec(te.expression),Us).body,Jo),zt=Hd=>kl(Hd)&&!!Xa(Hd.declarationList.declarations).initializer,Jt=N;N=void 0;const F=Bn(lt.statements,ye,qi);N=Jt;const De=rr(F,zt),st=rr(F,Hd=>!zt(Hd)),ir=oa(Xa(De),kl).declarationList.declarations[0],ni=ec(ir.initializer);let Xr=ti(ni,wc);!Xr&&mr(ni)&&ni.operatorToken.kind===28&&(Xr=ti(ni.left,wc));const so=oa(Xr?ec(Xr.right):ni,sa),Ba=oa(ec(so.expression),Bs),Ga=Ba.body.statements;let Fl=0,mu=-1;const Nc=[];if(Xr){const Hd=ti(Ga[Fl],nu);Hd&&(Nc.push(Hd),Fl++),Nc.push(Ga[Fl]),Fl++,Nc.push(t.createExpressionStatement(t.createAssignment(Xr.left,oa(ir.name,je))))}for(;!Mm(kv(Ga,mu));)mu--;Ur(Nc,Ga,Fl,mu),mu<-1&&Ur(Nc,Ga,mu+1);const Cp=ti(kv(Ga,mu),Mm);for(const Hd of st)Mm(Hd)&&(Cp!=null&&Cp.expression)&&!je(Cp.expression)?Nc.push(Cp):Nc.push(Hd);return Ur(Nc,De,1),t.restoreOuterExpressions(te.expression,t.restoreOuterExpressions(ir.initializer,t.restoreOuterExpressions(Xr&&Xr.right,t.updateCallExpression(so,t.restoreOuterExpressions(so.expression,t.updateFunctionExpression(Ba,void 0,void 0,void 0,void 0,Ba.parameters,void 0,t.updateBlock(Ba.body,Nc))),void 0,so.arguments))))}function ap(te,lt){if(te.transformFlags&32768||te.expression.kind===108||zd(ec(te.expression))){const{target:zt,thisArg:Jt}=t.createCallBinding(te.expression,l);te.expression.kind===108&&pr(Jt,8);let F;if(te.transformFlags&32768?F=t.createFunctionApplyCall(C.checkDefined(rt(zt,Q,bt)),te.expression.kind===108?Jt:C.checkDefined(rt(Jt,re,bt)),Cd(te.arguments,!0,!1,!1)):F=ut(t.createFunctionCallCall(C.checkDefined(rt(zt,Q,bt)),te.expression.kind===108?Jt:C.checkDefined(rt(Jt,re,bt)),Bn(te.arguments,re,bt)),te),te.expression.kind===108){const De=t.createLogicalOr(F,Ro());F=t.createAssignment(ie(),De)}return Pr(F,te)}return IS(te)&&(I|=131072),xn(te,re,e)}function Jc(te){if(St(te.arguments,n_)){const{target:lt,thisArg:zt}=t.createCallBinding(t.createPropertyAccessExpression(te.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(C.checkDefined(rt(lt,re,bt)),zt,Cd(t.createNodeArray([t.createVoidZero(),...te.arguments]),!0,!1,!1)),void 0,[])}return xn(te,re,e)}function Cd(te,lt,zt,Jt){const F=te.length,De=ra(uG(te,Pe,(ni,Xr,so,Ba)=>Xr(ni,zt,Jt&&Ba===F)));if(De.length===1){const ni=De[0];if(lt&&!u.downlevelIteration||qU(ni.expression)||mP(ni.expression,"___spreadArray"))return ni.expression}const st=r(),Vt=De[0].kind!==0;let ir=Vt?t.createArrayLiteralExpression():De[0].expression;for(let ni=Vt?0:1;ni<De.length;ni++){const Xr=De[ni];ir=st.createSpreadArrayHelper(ir,Xr.expression,Xr.kind===1&&!lt)}return ir}function Pe(te){return n_(te)?Wt:Eo}function Wt(te){return Ot(te,qn)}function qn(te){C.assertNode(te,n_);let lt=rt(te.expression,re,bt);C.assert(lt);const zt=mP(lt,"___read");let Jt=zt||qU(lt)?2:1;return u.downlevelIteration&&Jt===1&&!_d(lt)&&!zt&&(lt=r().createReadHelper(lt,void 0),Jt=2),eRe(Jt,lt)}function Eo(te,lt,zt){const Jt=t.createArrayLiteralExpression(Bn(t.createNodeArray(te,zt),re,bt),lt);return eRe(0,Jt)}function Xo(te){return rt(te.expression,re,bt)}function ea(te){return ut(t.createStringLiteral(te.text),te)}function rc(te){return te.hasExtendedUnicodeEscape?ut(t.createStringLiteral(te.text),te):te}function Sc(te){return te.numericLiteralFlags&384?ut(t.createNumericLiteral(te.text),te):te}function ul(te){return _J(e,te,re,b,M,1)}function vl(te){let lt=t.createStringLiteral(te.head.text);for(const zt of te.templateSpans){const Jt=[C.checkDefined(rt(zt.expression,re,bt))];zt.literal.text.length>0&&Jt.push(t.createStringLiteral(zt.literal.text)),lt=t.createCallExpression(t.createPropertyAccessExpression(lt,"concat"),void 0,Jt)}return ut(lt,te)}function Ul(){return t.createUniqueName("_super",48)}function ic(te,lt){const zt=I&8&&!lt?t.createPropertyAccessExpression(Pr(Ul(),te),"prototype"):Ul();return Pr(zt,te),uc(zt,te),Pa(zt,te),zt}function Kc(te){return te.keywordToken===105&&te.name.escapedText==="target"?(I|=32768,t.createUniqueName("_newTarget",48)):te}function ff(te,lt,zt){if(O&1&&Qo(lt)){const Jt=K(32670,qa(lt)&16?81:65);f(te,lt,zt),ee(Jt,0,0);return}f(te,lt,zt)}function jd(){(O&2)===0&&(O|=2,e.enableSubstitution(80))}function Nd(){(O&1)===0&&(O|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function Of(te,lt){return lt=h(te,lt),te===1?ev(lt):je(lt)?U_(lt):lt}function U_(te){if(O&2&&!YH(te)){const lt=Do(te,je);if(lt&&Mh(lt))return ut(t.getGeneratedNameForNode(lt),te)}return te}function Mh(te){switch(te.parent.kind){case 208:case 263:case 266:case 260:return te.parent.name===te&&p.isDeclarationWithCollidingName(te.parent)}return!1}function ev(te){switch(te.kind){case 80:return Bu(te);case 110:return Dp(te)}return te}function Bu(te){if(O&2&&!YH(te)){const lt=p.getReferencedDeclarationWithCollidingName(te);if(lt&&!(ui(lt)&&tv(lt,te)))return ut(t.getGeneratedNameForNode(Po(lt)),te)}return te}function tv(te,lt){let zt=Do(lt);if(!zt||zt===te||zt.end<=te.pos||zt.pos>=te.end)return!1;const Jt=vh(te);for(;zt;){if(zt===Jt||zt===te)return!1;if(Zc(zt)&&zt.parent===te)return!0;zt=zt.parent}return!1}function Dp(te){return O&1&&I&16?ut(ie(),te):te}function vg(te,lt){return aa(lt)?t.getInternalName(te):t.createPropertyAccessExpression(t.getInternalName(te),"prototype")}function Ud(te,lt){if(!te||!lt||St(te.parameters))return!1;const zt=$c(te.body.statements);if(!zt||!Ys(zt)||zt.kind!==244)return!1;const Jt=zt.expression;if(!Ys(Jt)||Jt.kind!==213)return!1;const F=Jt.expression;if(!Ys(F)||F.kind!==108)return!1;const De=ch(Jt.arguments);if(!De||!Ys(De)||De.kind!==230)return!1;const st=De.expression;return je(st)&&st.escapedText==="arguments"}}var nHe=T({"src/compiler/transformers/es2015.ts"(){ta()}});function lce(e){const{factory:t}=e,r=e.getCompilerOptions();let i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);const s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),wm(e,l);function l(A){return A}function u(A,I,R){switch(I.kind){case 286:case 287:case 285:const M=I.tagName;o[Wu(M)]=!0;break}i(A,I,R)}function p(A,I){return I.id&&o&&o[I.id]?s(A,I):(I=s(A,I),Fr(I)?h(I):bc(I)?f(I):I)}function h(A){if(Ji(A.name))return A;const I=b(A.name);return I?ut(t.createElementAccessExpression(A.expression,I),A):A}function f(A){const I=je(A.name)&&b(A.name);return I?t.updatePropertyAssignment(A,I,A.initializer):A}function b(A){const I=p0(A);if(I!==void 0&&I>=83&&I<=118)return ut(t.createStringLiteralFromNode(A),A)}}var rHe=T({"src/compiler/transformers/es5.ts"(){ta()}});function iHe(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}}function cce(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=ls(u),h=e.getEmitResolver(),f=e.onSubstituteNode;e.onSubstituteNode=Lt;let b,A,I,R,M,N,O,U,K,ee,V=1,se,G,re,_e,ye=0,Q=0,Y,oe,he,Ae,de,ie,ge,Ne;return wm(e,qe);function qe(Pe){if(Pe.isDeclarationFile||(Pe.transformFlags&2048)===0)return Pe;const Wt=xn(Pe,Ee,e);return Jg(Wt,e.readEmitHelpers()),Wt}function Ee(Pe){const Wt=Pe.transformFlags;return R?Me(Pe):I?Ce(Pe):js(Pe)&&Pe.asteriskToken?At(Pe):Wt&2048?xn(Pe,Ee,e):Pe}function Me(Pe){switch(Pe.kind){case 246:return fa(Pe);case 247:return An(Pe);case 255:return _t(Pe);case 256:return gn(Pe);default:return Ce(Pe)}}function Ce(Pe){switch(Pe.kind){case 262:return be(Pe);case 218:return Ue(Pe);case 177:case 178:return it(Pe);case 243:return gt(Pe);case 248:return Je(Pe);case 249:return pt(Pe);case 252:return dt(Pe);case 251:return le(Pe);case 253:return ot(Pe);default:return Pe.transformFlags&1048576?Oe(Pe):Pe.transformFlags&4196352?xn(Pe,Ee,e):Pe}}function Oe(Pe){switch(Pe.kind){case 226:return Qe(Pe);case 361:return Cn(Pe);case 227:return yn(Pe);case 229:return tn(Pe);case 209:return en(Pe);case 210:return ho(Pe);case 212:return Gi(Pe);case 213:return xo(Pe);case 214:return Qn(Pe);default:return xn(Pe,Ee,e)}}function At(Pe){switch(Pe.kind){case 262:return be(Pe);case 218:return Ue(Pe);default:return C.failBadSyntaxKind(Pe)}}function be(Pe){if(Pe.asteriskToken)Pe=Pr(ut(t.createFunctionDeclaration(Pe.modifiers,void 0,Pe.name,void 0,Dl(Pe.parameters,Ee,e),void 0,Ft(Pe.body)),Pe),Pe);else{const Wt=I,qn=R;I=!1,R=!1,Pe=xn(Pe,Ee,e),I=Wt,R=qn}if(I){s(Pe);return}else return Pe}function Ue(Pe){if(Pe.asteriskToken)Pe=Pr(ut(t.createFunctionExpression(void 0,void 0,Pe.name,void 0,Dl(Pe.parameters,Ee,e),void 0,Ft(Pe.body)),Pe),Pe);else{const Wt=I,qn=R;I=!1,R=!1,Pe=xn(Pe,Ee,e),I=Wt,R=qn}return Pe}function it(Pe){const Wt=I,qn=R;return I=!1,R=!1,Pe=xn(Pe,Ee,e),I=Wt,R=qn,Pe}function Ft(Pe){const Wt=[],qn=I,Eo=R,Xo=M,ea=N,rc=O,Sc=U,ul=K,vl=ee,Ul=V,ic=se,Kc=G,ff=re,jd=_e;I=!0,R=!1,M=void 0,N=void 0,O=void 0,U=void 0,K=void 0,ee=void 0,V=1,se=void 0,G=void 0,re=void 0,_e=t.createTempVariable(void 0),i();const Nd=t.copyPrologue(Pe.statements,Wt,!1,Ee);Di(Pe.statements,Nd);const Of=Z();return rg(Wt,o()),Wt.push(t.createReturnStatement(Of)),I=qn,R=Eo,M=Xo,N=ea,O=rc,U=Sc,K=ul,ee=vl,V=Ul,se=ic,G=Kc,re=ff,_e=jd,ut(t.createBlock(Wt,Pe.multiLine),Pe)}function gt(Pe){if(Pe.transformFlags&1048576){oi(Pe.declarationList);return}else{if(qa(Pe)&2097152)return Pe;for(const qn of Pe.declarationList.declarations)l(qn.name);const Wt=HN(Pe.declarationList);return Wt.length===0?void 0:Pa(t.createExpressionStatement(t.inlineExpressions(Ot(Wt,yi))),Pe)}}function Qe(Pe){const Wt=lU(Pe);switch(Wt){case 0:return on(Pe);case 1:return It(Pe);default:return C.assertNever(Wt)}}function It(Pe){const{left:Wt,right:qn}=Pe;if(H(qn)){let Eo;switch(Wt.kind){case 211:Eo=t.updatePropertyAccessExpression(Wt,q(C.checkDefined(rt(Wt.expression,Ee,ep))),Wt.name);break;case 212:Eo=t.updateElementAccessExpression(Wt,q(C.checkDefined(rt(Wt.expression,Ee,ep))),q(C.checkDefined(rt(Wt.argumentExpression,Ee,bt))));break;default:Eo=C.checkDefined(rt(Wt,Ee,bt));break}const Xo=Pe.operatorToken.kind;return BP(Xo)?ut(t.createAssignment(Eo,ut(t.createBinaryExpression(q(Eo),GP(Xo),C.checkDefined(rt(qn,Ee,bt))),Pe)),Pe):t.updateBinaryExpression(Pe,Eo,Pe.operatorToken,C.checkDefined(rt(qn,Ee,bt)))}return xn(Pe,Ee,e)}function on(Pe){return H(Pe.right)?Eoe(Pe.operatorToken.kind)?Hn(Pe):Pe.operatorToken.kind===28?$t(Pe):t.updateBinaryExpression(Pe,q(C.checkDefined(rt(Pe.left,Ee,bt))),Pe.operatorToken,C.checkDefined(rt(Pe.right,Ee,bt))):xn(Pe,Ee,e)}function $t(Pe){let Wt=[];return qn(Pe.left),qn(Pe.right),t.inlineExpressions(Wt);function qn(Eo){mr(Eo)&&Eo.operatorToken.kind===28?(qn(Eo.left),qn(Eo.right)):(H(Eo)&&Wt.length>0&&(pe(1,[t.createExpressionStatement(t.inlineExpressions(Wt))]),Wt=[]),Wt.push(C.checkDefined(rt(Eo,Ee,bt))))}}function Cn(Pe){let Wt=[];for(const qn of Pe.elements)mr(qn)&&qn.operatorToken.kind===28?Wt.push($t(qn)):(H(qn)&&Wt.length>0&&(pe(1,[t.createExpressionStatement(t.inlineExpressions(Wt))]),Wt=[]),Wt.push(C.checkDefined(rt(qn,Ee,bt))));return t.inlineExpressions(Wt)}function Hn(Pe){const Wt=Ve(),qn=fe();return cl(qn,C.checkDefined(rt(Pe.left,Ee,bt)),Pe.left),Pe.operatorToken.kind===56?Hs(Wt,qn,Pe.left):an(Wt,qn,Pe.left),cl(qn,C.checkDefined(rt(Pe.right,Ee,bt)),Pe.right),ke(Wt),qn}function yn(Pe){if(H(Pe.whenTrue)||H(Pe.whenFalse)){const Wt=Ve(),qn=Ve(),Eo=fe();return Hs(Wt,C.checkDefined(rt(Pe.condition,Ee,bt)),Pe.condition),cl(Eo,C.checkDefined(rt(Pe.whenTrue,Ee,bt)),Pe.whenTrue),Mo(qn),ke(Wt),cl(Eo,C.checkDefined(rt(Pe.whenFalse,Ee,bt)),Pe.whenFalse),ke(qn),Eo}return xn(Pe,Ee,e)}function tn(Pe){const Wt=Ve(),qn=rt(Pe.expression,Ee,bt);if(Pe.asteriskToken){const Eo=(qa(Pe.expression)&8388608)===0?ut(r().createValuesHelper(qn),Pe):qn;iu(Eo,Pe)}else fu(qn,Pe);return ke(Wt),wf(Pe)}function en(Pe){return gi(Pe.elements,void 0,void 0,Pe.multiLine)}function gi(Pe,Wt,qn,Eo){const Xo=We(Pe);let ea;if(Xo>0){ea=fe();const ul=Bn(Pe,Ee,bt,0,Xo);cl(ea,t.createArrayLiteralExpression(Wt?[Wt,...ul]:ul)),Wt=void 0}const rc=od(Pe,Sc,[],Xo);return ea?t.createArrayConcatCall(ea,[t.createArrayLiteralExpression(rc,Eo)]):ut(t.createArrayLiteralExpression(Wt?[Wt,...rc]:rc,Eo),qn);function Sc(ul,vl){if(H(vl)&&ul.length>0){const Ul=ea!==void 0;ea||(ea=fe()),cl(ea,Ul?t.createArrayConcatCall(ea,[t.createArrayLiteralExpression(ul,Eo)]):t.createArrayLiteralExpression(Wt?[Wt,...ul]:ul,Eo)),Wt=void 0,ul=[]}return ul.push(C.checkDefined(rt(vl,Ee,bt))),ul}}function ho(Pe){const Wt=Pe.properties,qn=Pe.multiLine,Eo=We(Wt),Xo=fe();cl(Xo,t.createObjectLiteralExpression(Bn(Wt,Ee,Bg,0,Eo),qn));const ea=od(Wt,rc,[],Eo);return ea.push(qn?Xu(Ya(ut(t.cloneNode(Xo),Xo),Xo.parent)):Xo),t.inlineExpressions(ea);function rc(Sc,ul){H(ul)&&Sc.length>0&&(Cl(t.createExpressionStatement(t.inlineExpressions(Sc))),Sc=[]);const vl=cse(t,Pe,ul,Xo),Ul=rt(vl,Ee,bt);return Ul&&(qn&&Xu(Ul),Sc.push(Ul)),Sc}}function Gi(Pe){return H(Pe.argumentExpression)?t.updateElementAccessExpression(Pe,q(C.checkDefined(rt(Pe.expression,Ee,ep))),C.checkDefined(rt(Pe.argumentExpression,Ee,bt))):xn(Pe,Ee,e)}function xo(Pe){if(!Bp(Pe)&&He(Pe.arguments,H)){const{target:Wt,thisArg:qn}=t.createCallBinding(Pe.expression,l,p,!0);return Pr(ut(t.createFunctionApplyCall(q(C.checkDefined(rt(Wt,Ee,ep))),qn,gi(Pe.arguments)),Pe),Pe)}return xn(Pe,Ee,e)}function Qn(Pe){if(He(Pe.arguments,H)){const{target:Wt,thisArg:qn}=t.createCallBinding(t.createPropertyAccessExpression(Pe.expression,"bind"),l);return Pr(ut(t.createNewExpression(t.createFunctionApplyCall(q(C.checkDefined(rt(Wt,Ee,bt))),qn,gi(Pe.arguments,t.createVoidZero())),void 0,[]),Pe),Pe)}return xn(Pe,Ee,e)}function Di(Pe,Wt=0){const qn=Pe.length;for(let Eo=Wt;Eo<qn;Eo++)Xt(Pe[Eo])}function Ir(Pe){Jo(Pe)?Di(Pe.statements):Xt(Pe)}function Xt(Pe){const Wt=R;R||(R=H(Pe)),nt(Pe),R=Wt}function nt(Pe){switch(Pe.kind){case 241:return Bt(Pe);case 244:return Dn(Pe);case 245:return eo(Pe);case 246:return Ro(Pe);case 247:return Fa(Pe);case 248:return wn(Pe);case 249:return mt(Pe);case 251:return Pt(Pe);case 252:return Fe(Pe);case 253:return j(Pe);case 254:return Dt(Pe);case 255:return Ye(Pe);case 256:return Gt(Pe);case 257:return hn(Pe);case 258:return dn(Pe);default:return Cl(rt(Pe,Ee,qi))}}function Bt(Pe){H(Pe)?Di(Pe.statements):Cl(rt(Pe,Ee,qi))}function Dn(Pe){Cl(rt(Pe,Ee,qi))}function oi(Pe){for(const ea of Pe.declarations){const rc=t.cloneNode(ea.name);uc(rc,ea.name),l(rc)}const Wt=HN(Pe),qn=Wt.length;let Eo=0,Xo=[];for(;Eo<qn;){for(let ea=Eo;ea<qn;ea++){const rc=Wt[ea];if(H(rc.initializer)&&Xo.length>0)break;Xo.push(yi(rc))}Xo.length&&(Cl(t.createExpressionStatement(t.inlineExpressions(Xo))),Eo+=Xo.length,Xo=[])}}function yi(Pe){return Pa(t.createAssignment(Pa(t.cloneNode(Pe.name),Pe.name),C.checkDefined(rt(Pe.initializer,Ee,bt))),Pe)}function eo(Pe){if(H(Pe))if(H(Pe.thenStatement)||H(Pe.elseStatement)){const Wt=Ve(),qn=Pe.elseStatement?Ve():void 0;Hs(Pe.elseStatement?qn:Wt,C.checkDefined(rt(Pe.expression,Ee,bt)),Pe.expression),Ir(Pe.thenStatement),Pe.elseStatement&&(Mo(Wt),ke(qn),Ir(Pe.elseStatement)),ke(Wt)}else Cl(rt(Pe,Ee,qi));else Cl(rt(Pe,Ee,qi))}function Ro(Pe){if(H(Pe)){const Wt=Ve(),qn=Ve();wi(Wt),ke(qn),Ir(Pe.statement),ke(Wt),an(qn,C.checkDefined(rt(Pe.expression,Ee,bt))),vi()}else Cl(rt(Pe,Ee,qi))}function fa(Pe){return R?(bo(),Pe=xn(Pe,Ee,e),vi(),Pe):xn(Pe,Ee,e)}function Fa(Pe){if(H(Pe)){const Wt=Ve(),qn=wi(Wt);ke(Wt),Hs(qn,C.checkDefined(rt(Pe.expression,Ee,bt))),Ir(Pe.statement),Mo(Wt),vi()}else Cl(rt(Pe,Ee,qi))}function An(Pe){return R?(bo(),Pe=xn(Pe,Ee,e),vi(),Pe):xn(Pe,Ee,e)}function wn(Pe){if(H(Pe)){const Wt=Ve(),qn=Ve(),Eo=wi(qn);if(Pe.initializer){const Xo=Pe.initializer;qc(Xo)?oi(Xo):Cl(ut(t.createExpressionStatement(C.checkDefined(rt(Xo,Ee,bt))),Xo))}ke(Wt),Pe.condition&&Hs(Eo,C.checkDefined(rt(Pe.condition,Ee,bt))),Ir(Pe.statement),ke(qn),Pe.incrementor&&Cl(ut(t.createExpressionStatement(C.checkDefined(rt(Pe.incrementor,Ee,bt))),Pe.incrementor)),Mo(Wt),vi()}else Cl(rt(Pe,Ee,qi))}function Je(Pe){R&&bo();const Wt=Pe.initializer;if(Wt&&qc(Wt)){for(const Eo of Wt.declarations)l(Eo.name);const qn=HN(Wt);Pe=t.updateForStatement(Pe,qn.length>0?t.inlineExpressions(Ot(qn,yi)):void 0,rt(Pe.condition,Ee,bt),rt(Pe.incrementor,Ee,bt),xd(Pe.statement,Ee,e))}else Pe=xn(Pe,Ee,e);return R&&vi(),Pe}function mt(Pe){if(H(Pe)){const Wt=fe(),qn=fe(),Eo=fe(),Xo=t.createLoopVariable(),ea=Pe.initializer;l(Xo),cl(Wt,C.checkDefined(rt(Pe.expression,Ee,bt))),cl(qn,t.createArrayLiteralExpression()),Cl(t.createForInStatement(Eo,Wt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(qn,"push"),void 0,[Eo])))),cl(Xo,t.createNumericLiteral(0));const rc=Ve(),Sc=Ve(),ul=wi(Sc);ke(rc),Hs(ul,t.createLessThan(Xo,t.createPropertyAccessExpression(qn,"length"))),cl(Eo,t.createElementAccessExpression(qn,Xo)),Hs(Sc,t.createBinaryExpression(Eo,103,Wt));let vl;if(qc(ea)){for(const Ul of ea.declarations)l(Ul.name);vl=t.cloneNode(ea.declarations[0].name)}else vl=C.checkDefined(rt(ea,Ee,bt)),C.assert(ep(vl));cl(vl,Eo),Ir(Pe.statement),ke(Sc),Cl(t.createExpressionStatement(t.createPostfixIncrement(Xo))),Mo(rc),vi()}else Cl(rt(Pe,Ee,qi))}function pt(Pe){R&&bo();const Wt=Pe.initializer;if(qc(Wt)){for(const qn of Wt.declarations)l(qn.name);Pe=t.updateForInStatement(Pe,Wt.declarations[0].name,C.checkDefined(rt(Pe.expression,Ee,bt)),C.checkDefined(rt(Pe.statement,Ee,qi,t.liftToBlock)))}else Pe=xn(Pe,Ee,e);return R&&vi(),Pe}function Pt(Pe){const Wt=ca(Pe.label?Tr(Pe.label):void 0);Wt>0?Mo(Wt,Pe):Cl(Pe)}function le(Pe){if(R){const Wt=ca(Pe.label&&Tr(Pe.label));if(Wt>0)return ka(Wt,Pe)}return xn(Pe,Ee,e)}function Fe(Pe){const Wt=ao(Pe.label?Tr(Pe.label):void 0);Wt>0?Mo(Wt,Pe):Cl(Pe)}function dt(Pe){if(R){const Wt=ao(Pe.label&&Tr(Pe.label));if(Wt>0)return ka(Wt,Pe)}return xn(Pe,Ee,e)}function j(Pe){Rp(rt(Pe.expression,Ee,bt),Pe)}function ot(Pe){return _l(rt(Pe.expression,Ee,bt),Pe)}function Dt(Pe){H(Pe)?(nr(q(C.checkDefined(rt(Pe.expression,Ee,bt)))),Ir(Pe.statement),lr()):Cl(rt(Pe,Ee,qi))}function Ye(Pe){if(H(Pe.caseBlock)){const Wt=Pe.caseBlock,qn=Wt.clauses.length,Eo=Ja(),Xo=q(C.checkDefined(rt(Pe.expression,Ee,bt))),ea=[];let rc=-1;for(let vl=0;vl<qn;vl++){const Ul=Wt.clauses[vl];ea.push(Ve()),Ul.kind===297&&rc===-1&&(rc=vl)}let Sc=0,ul=[];for(;Sc<qn;){let vl=0;for(let Ul=Sc;Ul<qn;Ul++){const ic=Wt.clauses[Ul];if(ic.kind===296){if(H(ic.expression)&&ul.length>0)break;ul.push(t.createCaseClause(C.checkDefined(rt(ic.expression,Ee,bt)),[ka(ea[Ul],ic.expression)]))}else vl++}ul.length&&(Cl(t.createSwitchStatement(Xo,t.createCaseBlock(ul))),Sc+=ul.length,ul=[]),vl>0&&(Sc+=vl,vl=0)}rc>=0?Mo(ea[rc]):Mo(Eo);for(let vl=0;vl<qn;vl++)ke(ea[vl]),Di(Wt.clauses[vl].statements);Qt()}else Cl(rt(Pe,Ee,qi))}function _t(Pe){return R&&ga(),Pe=xn(Pe,Ee,e),R&&Qt(),Pe}function Gt(Pe){H(Pe)?(Wl(Tr(Pe.label)),Ir(Pe.statement),to()):Cl(rt(Pe,Ee,qi))}function gn(Pe){return R&&va(Tr(Pe.label)),Pe=xn(Pe,Ee,e),R&&to(),Pe}function hn(Pe){var Wt;Ws(C.checkDefined(rt((Wt=Pe.expression)!=null?Wt:t.createVoidZero(),Ee,bt)),Pe)}function dn(Pe){H(Pe)?(ai(),Ir(Pe.tryBlock),Pe.catchClause&&(si(Pe.catchClause.variableDeclaration),Ir(Pe.catchClause.block)),Pe.finallyBlock&&(Kn(),Ir(Pe.finallyBlock)),Hr()):Cl(xn(Pe,Ee,e))}function H(Pe){return!!Pe&&(Pe.transformFlags&1048576)!==0}function We(Pe){const Wt=Pe.length;for(let qn=0;qn<Wt;qn++)if(H(Pe[qn]))return qn;return-1}function Lt(Pe,Wt){return Wt=f(Pe,Wt),Pe===1?L(Wt):Wt}function L(Pe){return je(Pe)?me(Pe):Pe}function me(Pe){if(!al(Pe)&&b&&b.has(Tr(Pe))){const Wt=Ml(Pe);if(je(Wt)&&Wt.parent){const qn=h.getReferencedValueDeclaration(Wt);if(qn){const Eo=A[Wu(qn)];if(Eo){const Xo=Ya(ut(t.cloneNode(Eo),Eo),Eo.parent);return Pa(Xo,Pe),uc(Xo,Pe),Xo}}}}return Pe}function q(Pe){if(al(Pe)||qa(Pe)&8192)return Pe;const Wt=t.createTempVariable(l);return cl(Wt,Pe,Pe),Wt}function fe(Pe){const Wt=Pe?t.createUniqueName(Pe):t.createTempVariable(void 0);return l(Wt),Wt}function Ve(){K||(K=[]);const Pe=V;return V++,K[Pe]=-1,Pe}function ke(Pe){C.assert(K!==void 0,"No labels were defined."),K[Pe]=se?se.length:0}function Tt(Pe){M||(M=[],O=[],N=[],U=[]);const Wt=O.length;return O[Wt]=0,N[Wt]=se?se.length:0,M[Wt]=Pe,U.push(Pe),Wt}function kt(){const Pe=nn();if(Pe===void 0)return C.fail("beginBlock was never called.");const Wt=O.length;return O[Wt]=1,N[Wt]=se?se.length:0,M[Wt]=Pe,U.pop(),Pe}function nn(){return el(U)}function En(){const Pe=nn();return Pe&&Pe.kind}function nr(Pe){const Wt=Ve(),qn=Ve();ke(Wt),Tt({kind:1,expression:Pe,startLabel:Wt,endLabel:qn})}function lr(){C.assert(En()===1);const Pe=kt();ke(Pe.endLabel)}function ai(){const Pe=Ve(),Wt=Ve();return ke(Pe),Tt({kind:0,state:0,startLabel:Pe,endLabel:Wt}),pc(),Wt}function si(Pe){C.assert(En()===0);let Wt;if(al(Pe.name))Wt=Pe.name,l(Pe.name);else{const ea=Tr(Pe.name);Wt=fe(ea),b||(b=new Map,A=[],e.enableSubstitution(80)),b.set(ea,!0),A[Wu(Pe)]=Wt}const qn=nn();C.assert(qn.state<1);const Eo=qn.endLabel;Mo(Eo);const Xo=Ve();ke(Xo),qn.state=1,qn.catchVariable=Wt,qn.catchLabel=Xo,cl(Wt,t.createCallExpression(t.createPropertyAccessExpression(_e,"sent"),void 0,[])),pc()}function Kn(){C.assert(En()===0);const Pe=nn();C.assert(Pe.state<2);const Wt=Pe.endLabel;Mo(Wt);const qn=Ve();ke(qn),Pe.state=2,Pe.finallyLabel=qn}function Hr(){C.assert(En()===0);const Pe=kt();Pe.state<2?Mo(Pe.endLabel):Cc(),ke(Pe.endLabel),pc(),Pe.state=3}function bo(){Tt({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function wi(Pe){const Wt=Ve();return Tt({kind:3,isScript:!1,breakLabel:Wt,continueLabel:Pe}),Wt}function vi(){C.assert(En()===3);const Pe=kt(),Wt=Pe.breakLabel;Pe.isScript||ke(Wt)}function ga(){Tt({kind:2,isScript:!0,breakLabel:-1})}function Ja(){const Pe=Ve();return Tt({kind:2,isScript:!1,breakLabel:Pe}),Pe}function Qt(){C.assert(En()===2);const Pe=kt(),Wt=Pe.breakLabel;Pe.isScript||ke(Wt)}function va(Pe){Tt({kind:4,isScript:!0,labelText:Pe,breakLabel:-1})}function Wl(Pe){const Wt=Ve();Tt({kind:4,isScript:!1,labelText:Pe,breakLabel:Wt})}function to(){C.assert(En()===4);const Pe=kt();Pe.isScript||ke(Pe.breakLabel)}function za(Pe){return Pe.kind===2||Pe.kind===3}function La(Pe){return Pe.kind===4}function ys(Pe){return Pe.kind===3}function tc(Pe,Wt){for(let qn=Wt;qn>=0;qn--){const Eo=U[qn];if(La(Eo)){if(Eo.labelText===Pe)return!0}else break}return!1}function ao(Pe){if(U)if(Pe)for(let Wt=U.length-1;Wt>=0;Wt--){const qn=U[Wt];if(La(qn)&&qn.labelText===Pe)return qn.breakLabel;if(za(qn)&&tc(Pe,Wt-1))return qn.breakLabel}else for(let Wt=U.length-1;Wt>=0;Wt--){const qn=U[Wt];if(za(qn))return qn.breakLabel}return 0}function ca(Pe){if(U)if(Pe)for(let Wt=U.length-1;Wt>=0;Wt--){const qn=U[Wt];if(ys(qn)&&tc(Pe,Wt-1))return qn.continueLabel}else for(let Wt=U.length-1;Wt>=0;Wt--){const qn=U[Wt];if(ys(qn))return qn.continueLabel}return 0}function pu(Pe){if(Pe!==void 0&&Pe>0){ee===void 0&&(ee=[]);const Wt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return ee[Pe]===void 0?ee[Pe]=[Wt]:ee[Pe].push(Wt),Wt}return t.createOmittedExpression()}function Rs(Pe){const Wt=t.createNumericLiteral(Pe);return EW(Wt,3,iHe(Pe)),Wt}function ka(Pe,Wt){return C.assertLessThan(0,Pe,"Invalid label"),ut(t.createReturnStatement(t.createArrayLiteralExpression([Rs(3),pu(Pe)])),Wt)}function _l(Pe,Wt){return ut(t.createReturnStatement(t.createArrayLiteralExpression(Pe?[Rs(2),Pe]:[Rs(2)])),Wt)}function wf(Pe){return ut(t.createCallExpression(t.createPropertyAccessExpression(_e,"sent"),void 0,[]),Pe)}function pc(){pe(0)}function Cl(Pe){Pe?pe(1,[Pe]):pc()}function cl(Pe,Wt,qn){pe(2,[Pe,Wt],qn)}function Mo(Pe,Wt){pe(3,[Pe],Wt)}function an(Pe,Wt,qn){pe(4,[Pe,Wt],qn)}function Hs(Pe,Wt,qn){pe(5,[Pe,Wt],qn)}function iu(Pe,Wt){pe(7,[Pe],Wt)}function fu(Pe,Wt){pe(6,[Pe],Wt)}function Rp(Pe,Wt){pe(8,[Pe],Wt)}function Ws(Pe,Wt){pe(9,[Pe],Wt)}function Cc(){pe(10)}function pe(Pe,Wt,qn){se===void 0&&(se=[],G=[],re=[]),K===void 0&&ke(Ve());const Eo=se.length;se[Eo]=Pe,G[Eo]=Wt,re[Eo]=qn}function Z(){ye=0,Q=0,Y=void 0,oe=!1,he=!1,Ae=void 0,de=void 0,ie=void 0,ge=void 0,Ne=void 0;const Pe=we();return r().createGeneratorHelper(pr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,_e)],void 0,t.createBlock(Pe,Pe.length>0)),1048576))}function we(){if(se){for(let Pe=0;Pe<se.length;Pe++)Ho(Pe);pn(se.length)}else pn(0);if(Ae){const Pe=t.createPropertyAccessExpression(_e,"label"),Wt=t.createSwitchStatement(Pe,t.createCaseBlock(Ae));return[Xu(Wt)]}return de||[]}function yt(){de&&(br(!oe),oe=!1,he=!1,Q++)}function pn(Pe){gr(Pe)&&(qr(Pe),Ne=void 0,Xl(void 0,void 0)),de&&Ae&&br(!1),Ri()}function gr(Pe){if(!he)return!0;if(!K||!ee)return!1;for(let Wt=0;Wt<K.length;Wt++)if(K[Wt]===Pe&&ee[Wt])return!0;return!1}function br(Pe){if(Ae||(Ae=[]),de){if(Ne)for(let Wt=Ne.length-1;Wt>=0;Wt--){const qn=Ne[Wt];de=[t.createWithStatement(qn.expression,t.createBlock(de))]}if(ge){const{startLabel:Wt,catchLabel:qn,finallyLabel:Eo,endLabel:Xo}=ge;de.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(_e,"trys"),"push"),void 0,[t.createArrayLiteralExpression([pu(Wt),pu(qn),pu(Eo),pu(Xo)])]))),ge=void 0}Pe&&de.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(_e,"label"),t.createNumericLiteral(Q+1))))}Ae.push(t.createCaseClause(t.createNumericLiteral(Q),de||[])),de=void 0}function qr(Pe){if(K)for(let Wt=0;Wt<K.length;Wt++)K[Wt]===Pe&&(yt(),Y===void 0&&(Y=[]),Y[Q]===void 0?Y[Q]=[Wt]:Y[Q].push(Wt))}function Ri(){if(ee!==void 0&&Y!==void 0)for(let Pe=0;Pe<Y.length;Pe++){const Wt=Y[Pe];if(Wt!==void 0)for(const qn of Wt){const Eo=ee[qn];if(Eo!==void 0)for(const Xo of Eo)Xo.text=String(Pe)}}}function hr(Pe){if(M)for(;ye<O.length&&N[ye]<=Pe;ye++){const Wt=M[ye],qn=O[ye];switch(Wt.kind){case 0:qn===0?(ie||(ie=[]),de||(de=[]),ie.push(ge),ge=Wt):qn===1&&(ge=ie.pop());break;case 1:qn===0?(Ne||(Ne=[]),Ne.push(Wt)):qn===1&&Ne.pop();break}}}function Ho(Pe){if(qr(Pe),hr(Pe),oe)return;oe=!1,he=!1;const Wt=se[Pe];if(Wt===0)return;if(Wt===10)return Cd();const qn=G[Pe];if(Wt===1)return Nl(qn[0]);const Eo=re[Pe];switch(Wt){case 2:return zc(qn[0],qn[1],Eo);case 3:return Is(qn[0],Eo);case 4:return nc(qn[0],qn[1],Eo);case 5:return op(qn[0],qn[1],Eo);case 6:return ap(qn[0],Eo);case 7:return Jc(qn[0],Eo);case 8:return Xl(qn[0],Eo);case 9:return Sl(qn[0],Eo)}}function Nl(Pe){Pe&&(de?de.push(Pe):de=[Pe])}function zc(Pe,Wt,qn){Nl(ut(t.createExpressionStatement(t.createAssignment(Pe,Wt)),qn))}function Sl(Pe,Wt){oe=!0,he=!0,Nl(ut(t.createThrowStatement(Pe),Wt))}function Xl(Pe,Wt){oe=!0,he=!0,Nl(pr(ut(t.createReturnStatement(t.createArrayLiteralExpression(Pe?[Rs(2),Pe]:[Rs(2)])),Wt),768))}function Is(Pe,Wt){oe=!0,Nl(pr(ut(t.createReturnStatement(t.createArrayLiteralExpression([Rs(3),pu(Pe)])),Wt),768))}function nc(Pe,Wt,qn){Nl(pr(t.createIfStatement(Wt,pr(ut(t.createReturnStatement(t.createArrayLiteralExpression([Rs(3),pu(Pe)])),qn),768)),1))}function op(Pe,Wt,qn){Nl(pr(t.createIfStatement(t.createLogicalNot(Wt),pr(ut(t.createReturnStatement(t.createArrayLiteralExpression([Rs(3),pu(Pe)])),qn),768)),1))}function ap(Pe,Wt){oe=!0,Nl(pr(ut(t.createReturnStatement(t.createArrayLiteralExpression(Pe?[Rs(4),Pe]:[Rs(4)])),Wt),768))}function Jc(Pe,Wt){oe=!0,Nl(pr(ut(t.createReturnStatement(t.createArrayLiteralExpression([Rs(5),Pe])),Wt),768))}function Cd(){oe=!0,Nl(t.createReturnStatement(t.createArrayLiteralExpression([Rs(7)])))}}var oHe=T({"src/compiler/transformers/generators.ts"(){ta()}});function vJ(e){function t(H){switch(H){case 2:return se;case 3:return G;default:return V}}const{factory:r,getEmitHelperFactory:i,startLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.getEmitHost(),f=ls(u),b=wu(u),A=e.onSubstituteNode,I=e.onEmitNode;e.onSubstituteNode=ot,e.onEmitNode=j,e.enableSubstitution(213),e.enableSubstitution(215),e.enableSubstitution(80),e.enableSubstitution(226),e.enableSubstitution(304),e.enableEmitNotification(312);const R=[];let M,N;const O=[];let U;return wm(e,K);function K(H){if(H.isDeclarationFile||!(wA(H,u)||H.transformFlags&8388608||rm(H)&&U3(u)&&Os(u)))return H;M=H,N=sJ(e,H),R[Wu(H)]=N;const Lt=t(b)(H);return M=void 0,N=void 0,U=!1,Lt}function ee(){return!!(!N.exportEquals&&dc(M))}function V(H){o();const We=[],Lt=fd(u,"alwaysStrict")||!u.noImplicitUseStrict&&dc(M),L=r.copyPrologue(H.statements,We,Lt&&!rm(H),Y);if(ee()&&Rn(We,Pt()),Le(N.exportedNames))for(let fe=0;fe<N.exportedNames.length;fe+=50)Rn(We,r.createExpressionStatement(od(N.exportedNames.slice(fe,fe+50),(Ve,ke)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Tr(ke))),Ve),r.createVoidZero())));Rn(We,rt(N.externalHelpersImportDeclaration,Y,qi)),Ur(We,Bn(H.statements,Y,qi,L)),Q(We,!1),rg(We,s());const me=r.updateSourceFile(H,ut(r.createNodeArray(We),H.statements));return Jg(me,e.readEmitHelpers()),me}function se(H){const We=r.createIdentifier("define"),Lt=ow(r,H,h,u),L=rm(H)&&H,{aliasedModuleNames:me,unaliasedModuleNames:q,importAliasNames:fe}=re(H,!0),Ve=r.updateSourceFile(H,ut(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(We,void 0,[...Lt?[Lt]:[],r.createArrayLiteralExpression(L?et:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...me,...q]),L?L.statements.length?L.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...fe],void 0,ye(H))]))]),H.statements));return Jg(Ve,e.readEmitHelpers()),Ve}function G(H){const{aliasedModuleNames:We,unaliasedModuleNames:Lt,importAliasNames:L}=re(H,!1),me=ow(r,H,h,u),q=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,ut(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),pr(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...me?[me]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...We,...Lt]),r.createIdentifier("factory")]))])))],!0),void 0)),fe=r.updateSourceFile(H,ut(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(q,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...L],void 0,ye(H))]))]),H.statements));return Jg(fe,e.readEmitHelpers()),fe}function re(H,We){const Lt=[],L=[],me=[];for(const q of H.amdDependencies)q.name?(Lt.push(r.createStringLiteral(q.path)),me.push(r.createParameterDeclaration(void 0,void 0,q.name))):L.push(r.createStringLiteral(q.path));for(const q of N.externalImports){const fe=yI(r,q,M,h,p,u),Ve=rD(r,q,M);fe&&(We&&Ve?(pr(Ve,8),Lt.push(fe),me.push(r.createParameterDeclaration(void 0,void 0,Ve))):L.push(fe))}return{aliasedModuleNames:Lt,unaliasedModuleNames:L,importAliasNames:me}}function _e(H){if(ru(H)||Zl(H)||!yI(r,H,M,h,p,u))return;const We=rD(r,H,M),Lt=xo(H,We);if(Lt!==We)return r.createExpressionStatement(r.createAssignment(We,Lt))}function ye(H){o();const We=[],Lt=r.copyPrologue(H.statements,We,!u.noImplicitUseStrict,Y);ee()&&Rn(We,Pt()),Le(N.exportedNames)&&Rn(We,r.createExpressionStatement(od(N.exportedNames,(me,q)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Tr(q))),me),r.createVoidZero()))),Rn(We,rt(N.externalHelpersImportDeclaration,Y,qi)),b===2&&Ur(We,Hi(N.externalImports,_e)),Ur(We,Bn(H.statements,Y,qi,Lt)),Q(We,!0),rg(We,s());const L=r.createBlock(We,!0);return U&&eI(L,tRe),L}function Q(H,We){if(N.exportEquals){const Lt=rt(N.exportEquals.expression,Ae,bt);if(Lt)if(We){const L=r.createReturnStatement(Lt);ut(L,N.exportEquals),pr(L,3840),H.push(L)}else{const L=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Lt));ut(L,N.exportEquals),pr(L,3072),H.push(L)}}}function Y(H){switch(H.kind){case 272:return Qn(H);case 271:return Ir(H);case 278:return Xt(H);case 277:return nt(H);default:return oe(H)}}function oe(H){switch(H.kind){case 243:return oi(H);case 262:return Bt(H);case 263:return Dn(H);case 248:return Ne(H,!0);case 249:return qe(H);case 250:return Ee(H);case 246:return Me(H);case 247:return Ce(H);case 256:return Oe(H);case 254:return At(H);case 245:return be(H);case 255:return Ue(H);case 269:return it(H);case 296:return Ft(H);case 297:return gt(H);case 258:return Qe(H);case 299:return It(H);case 241:return on(H);default:return Ae(H)}}function he(H,We){if(!(H.transformFlags&276828160))return H;switch(H.kind){case 248:return Ne(H,!1);case 244:return $t(H);case 217:return Cn(H,We);case 360:return Hn(H,We);case 213:if(Bp(H)&&M.impliedNodeFormat===void 0)return tn(H);break;case 226:if(Uv(H))return ge(H,We);break;case 224:case 225:return yn(H,We)}return xn(H,Ae,e)}function Ae(H){return he(H,!1)}function de(H){return he(H,!0)}function ie(H){if(Wa(H))for(const We of H.properties)switch(We.kind){case 303:if(ie(We.initializer))return!0;break;case 304:if(ie(We.name))return!0;break;case 305:if(ie(We.expression))return!0;break;case 174:case 177:case 178:return!1;default:C.assertNever(We,"Unhandled object member kind")}else if(_d(H)){for(const We of H.elements)if(n_(We)){if(ie(We.expression))return!0}else if(ie(We))return!0}else if(je(H))return Le(dn(H))>(mF(H)?1:0);return!1}function ge(H,We){return ie(H.left)?tT(H,Ae,e,0,!We,yi):xn(H,Ae,e)}function Ne(H,We){if(We&&H.initializer&&qc(H.initializer)&&!(H.initializer.flags&7)){const Lt=An(void 0,H.initializer,!1);if(Lt){const L=[],me=rt(H.initializer,de,qc),q=r.createVariableStatement(void 0,me);L.push(q),Ur(L,Lt);const fe=rt(H.condition,Ae,bt),Ve=rt(H.incrementor,de,bt),ke=xd(H.statement,We?oe:Ae,e);return L.push(r.updateForStatement(H,void 0,fe,Ve,ke)),L}}return r.updateForStatement(H,rt(H.initializer,de,Af),rt(H.condition,Ae,bt),rt(H.incrementor,de,bt),xd(H.statement,We?oe:Ae,e))}function qe(H){if(qc(H.initializer)&&!(H.initializer.flags&7)){const We=An(void 0,H.initializer,!0);if(St(We)){const Lt=rt(H.initializer,de,Af),L=rt(H.expression,Ae,bt),me=xd(H.statement,oe,e),q=Jo(me)?r.updateBlock(me,[...We,...me.statements]):r.createBlock([...We,me],!0);return r.updateForInStatement(H,Lt,L,q)}}return r.updateForInStatement(H,rt(H.initializer,de,Af),rt(H.expression,Ae,bt),xd(H.statement,oe,e))}function Ee(H){if(qc(H.initializer)&&!(H.initializer.flags&7)){const We=An(void 0,H.initializer,!0),Lt=rt(H.initializer,de,Af),L=rt(H.expression,Ae,bt);let me=xd(H.statement,oe,e);return St(We)&&(me=Jo(me)?r.updateBlock(me,[...We,...me.statements]):r.createBlock([...We,me],!0)),r.updateForOfStatement(H,H.awaitModifier,Lt,L,me)}return r.updateForOfStatement(H,H.awaitModifier,rt(H.initializer,de,Af),rt(H.expression,Ae,bt),xd(H.statement,oe,e))}function Me(H){return r.updateDoStatement(H,xd(H.statement,oe,e),rt(H.expression,Ae,bt))}function Ce(H){return r.updateWhileStatement(H,rt(H.expression,Ae,bt),xd(H.statement,oe,e))}function Oe(H){return r.updateLabeledStatement(H,H.label,C.checkDefined(rt(H.statement,oe,qi,r.liftToBlock)))}function At(H){return r.updateWithStatement(H,rt(H.expression,Ae,bt),C.checkDefined(rt(H.statement,oe,qi,r.liftToBlock)))}function be(H){return r.updateIfStatement(H,rt(H.expression,Ae,bt),C.checkDefined(rt(H.thenStatement,oe,qi,r.liftToBlock)),rt(H.elseStatement,oe,qi,r.liftToBlock))}function Ue(H){return r.updateSwitchStatement(H,rt(H.expression,Ae,bt),C.checkDefined(rt(H.caseBlock,oe,SP)))}function it(H){return r.updateCaseBlock(H,Bn(H.clauses,oe,L4))}function Ft(H){return r.updateCaseClause(H,rt(H.expression,Ae,bt),Bn(H.statements,oe,qi))}function gt(H){return xn(H,oe,e)}function Qe(H){return xn(H,oe,e)}function It(H){return r.updateCatchClause(H,H.variableDeclaration,C.checkDefined(rt(H.block,oe,Jo)))}function on(H){return H=xn(H,oe,e),H}function $t(H){return r.updateExpressionStatement(H,rt(H.expression,de,bt))}function Cn(H,We){return r.updateParenthesizedExpression(H,rt(H.expression,We?de:Ae,bt))}function Hn(H,We){return r.updatePartiallyEmittedExpression(H,rt(H.expression,We?de:Ae,bt))}function yn(H,We){if((H.operator===46||H.operator===47)&&je(H.operand)&&!al(H.operand)&&!Xg(H.operand)&&!CU(H.operand)){const Lt=dn(H.operand);if(Lt){let L,me=rt(H.operand,Ae,bt);tb(H)?me=r.updatePrefixUnaryExpression(H,me):(me=r.updatePostfixUnaryExpression(H,me),We||(L=r.createTempVariable(l),me=r.createAssignment(L,me),ut(me,H)),me=r.createComma(me,r.cloneNode(H.operand)),ut(me,H));for(const q of Lt)O[cs(me)]=!0,me=Fe(q,me),ut(me,H);return L&&(O[cs(me)]=!0,me=r.createComma(me,L),ut(me,H)),me}}return xn(H,Ae,e)}function tn(H){if(b===0&&f>=7)return xn(H,Ae,e);const We=yI(r,H,M,h,p,u),Lt=rt($c(H.arguments),Ae,bt),L=We&&(!Lt||!Ma(Lt)||Lt.text!==We.text)?We:Lt,me=!!(H.transformFlags&16384);switch(u.module){case 2:return gi(L,me);case 3:return en(L!=null?L:r.createVoidZero(),me);case 1:default:return ho(L)}}function en(H,We){if(U=!0,g1(H)){const Lt=al(H)?H:Ma(H)?r.createStringLiteralFromNode(H):pr(ut(r.cloneNode(H),H),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,ho(H),void 0,gi(Lt,We))}else{const Lt=r.createTempVariable(l);return r.createComma(r.createAssignment(Lt,H),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,ho(Lt,!0),void 0,gi(Lt,We)))}}function gi(H,We){const Lt=r.createUniqueName("resolve"),L=r.createUniqueName("reject"),me=[r.createParameterDeclaration(void 0,void 0,Lt),r.createParameterDeclaration(void 0,void 0,L)],q=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([H||r.createOmittedExpression()]),Lt,L]))]);let fe;f>=2?fe=r.createArrowFunction(void 0,void 0,me,void 0,void 0,q):(fe=r.createFunctionExpression(void 0,void 0,void 0,void 0,me,void 0,q),We&&pr(fe,16));const Ve=r.createNewExpression(r.createIdentifier("Promise"),void 0,[fe]);return Eh(u)?r.createCallExpression(r.createPropertyAccessExpression(Ve,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Ve}function ho(H,We){const Lt=H&&!Ch(H)&&!We,L=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Lt?f>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(H,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[H])]:[]);let me=r.createCallExpression(r.createIdentifier("require"),void 0,Lt?[r.createIdentifier("s")]:H?[H]:[]);Eh(u)&&(me=i().createImportStarHelper(me));const q=Lt?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let fe;return f>=2?fe=r.createArrowFunction(void 0,void 0,q,void 0,void 0,me):fe=r.createFunctionExpression(void 0,void 0,void 0,void 0,q,void 0,r.createBlock([r.createReturnStatement(me)])),r.createCallExpression(r.createPropertyAccessExpression(L,"then"),void 0,[fe])}function Gi(H,We){return!Eh(u)||Dm(H)&2?We:Ple(H)?i().createImportStarHelper(We):We}function xo(H,We){return!Eh(u)||Dm(H)&2?We:r7(H)?i().createImportStarHelper(We):aJ(H)?i().createImportDefaultHelper(We):We}function Qn(H){let We;const Lt=ER(H);if(b!==2)if(H.importClause){const L=[];Lt&&!WA(H)?L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,xo(H,Di(H)))):(L.push(r.createVariableDeclaration(r.getGeneratedNameForNode(H),void 0,void 0,xo(H,Di(H)))),Lt&&WA(H)&&L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(H)))),We=Rn(We,Pr(ut(r.createVariableStatement(void 0,r.createVariableDeclarationList(L,f>=2?2:0)),H),H))}else return Pr(ut(r.createExpressionStatement(Di(H)),H),H);else Lt&&WA(H)&&(We=Rn(We,r.createVariableStatement(void 0,r.createVariableDeclarationList([Pr(ut(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(H)),H),H)],f>=2?2:0))));return We=Ro(We,H),uh(We)}function Di(H){const We=yI(r,H,M,h,p,u),Lt=[];return We&&Lt.push(We),r.createCallExpression(r.createIdentifier("require"),void 0,Lt)}function Ir(H){C.assert(v0(H),"import= for internal module references should be handled in an earlier transformer.");let We;return b!==2?$r(H,32)?We=Rn(We,Pr(ut(r.createExpressionStatement(Fe(H.name,Di(H))),H),H)):We=Rn(We,Pr(ut(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(H.name),void 0,void 0,Di(H))],f>=2?2:0)),H),H)):$r(H,32)&&(We=Rn(We,Pr(ut(r.createExpressionStatement(Fe(r.getExportName(H),r.getLocalName(H))),H),H))),We=fa(We,H),uh(We)}function Xt(H){if(!H.moduleSpecifier)return;const We=r.getGeneratedNameForNode(H);if(H.exportClause&&Pf(H.exportClause)){const Lt=[];b!==2&&Lt.push(Pr(ut(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(We,void 0,void 0,Di(H))])),H),H));for(const L of H.exportClause.elements)if(f===0)Lt.push(Pr(ut(r.createExpressionStatement(i().createCreateBindingHelper(We,r.createStringLiteralFromNode(L.propertyName||L.name),L.propertyName?r.createStringLiteralFromNode(L.name):void 0)),L),L));else{const me=!!Eh(u)&&!(Dm(H)&2)&&Tr(L.propertyName||L.name)==="default",q=r.createPropertyAccessExpression(me?i().createImportDefaultHelper(We):We,L.propertyName||L.name);Lt.push(Pr(ut(r.createExpressionStatement(Fe(r.getExportName(L),q,void 0,!0)),L),L))}return uh(Lt)}else if(H.exportClause){const Lt=[];return Lt.push(Pr(ut(r.createExpressionStatement(Fe(r.cloneNode(H.exportClause.name),Gi(H,b!==2?Di(H):U4(H)?We:r.createIdentifier(Tr(H.exportClause.name))))),H),H)),uh(Lt)}else return Pr(ut(r.createExpressionStatement(i().createExportStarHelper(b!==2?Di(H):We)),H),H)}function nt(H){if(!H.isExportEquals)return le(r.createIdentifier("default"),rt(H.expression,Ae,bt),H,!0)}function Bt(H){let We;return $r(H,32)?We=Rn(We,Pr(ut(r.createFunctionDeclaration(Bn(H.modifiers,dt,xa),H.asteriskToken,r.getDeclarationName(H,!0,!0),void 0,Bn(H.parameters,Ae,Io),void 0,xn(H.body,Ae,e)),H),H)):We=Rn(We,xn(H,Ae,e)),We=Je(We,H),uh(We)}function Dn(H){let We;return $r(H,32)?We=Rn(We,Pr(ut(r.createClassDeclaration(Bn(H.modifiers,dt,sl),r.getDeclarationName(H,!0,!0),void 0,Bn(H.heritageClauses,Ae,of),Bn(H.members,Ae,Zc)),H),H)):We=Rn(We,xn(H,Ae,e)),We=Je(We,H),uh(We)}function oi(H){let We,Lt,L;if($r(H,32)){let me,q=!1;for(const fe of H.declarationList.declarations)if(je(fe.name)&&Xg(fe.name))if(me||(me=Bn(H.modifiers,dt,xa)),fe.initializer){const Ve=r.updateVariableDeclaration(fe,fe.name,void 0,void 0,Fe(fe.name,rt(fe.initializer,Ae,bt)));Lt=Rn(Lt,Ve)}else Lt=Rn(Lt,fe);else if(fe.initializer)if(!Zo(fe.name)&&(Us(fe.initializer)||Bs(fe.initializer)||tu(fe.initializer))){const Ve=r.createAssignment(ut(r.createPropertyAccessExpression(r.createIdentifier("exports"),fe.name),fe.name),r.createIdentifier(om(fe.name))),ke=r.createVariableDeclaration(fe.name,fe.exclamationToken,fe.type,rt(fe.initializer,Ae,bt));Lt=Rn(Lt,ke),L=Rn(L,Ve),q=!0}else L=Rn(L,eo(fe));if(Lt&&(We=Rn(We,r.updateVariableStatement(H,me,r.updateVariableDeclarationList(H.declarationList,Lt)))),L){const fe=Pr(ut(r.createExpressionStatement(r.inlineExpressions(L)),H),H);q&&Fk(fe),We=Rn(We,fe)}}else We=Rn(We,xn(H,Ae,e));return We=Fa(We,H),uh(We)}function yi(H,We,Lt){const L=dn(H);if(L){let me=mF(H)?We:r.createAssignment(H,We);for(const q of L)pr(me,8),me=Fe(q,me,Lt);return me}return r.createAssignment(H,We)}function eo(H){return Zo(H.name)?tT(rt(H,Ae,vk),Ae,e,0,!1,yi):r.createAssignment(ut(r.createPropertyAccessExpression(r.createIdentifier("exports"),H.name),H.name),H.initializer?rt(H.initializer,Ae,bt):r.createVoidZero())}function Ro(H,We){if(N.exportEquals)return H;const Lt=We.importClause;if(!Lt)return H;const L=new II;Lt.name&&(H=mt(H,L,Lt));const me=Lt.namedBindings;if(me)switch(me.kind){case 274:H=mt(H,L,me);break;case 275:for(const q of me.elements)H=mt(H,L,q,!0);break}return H}function fa(H,We){return N.exportEquals?H:mt(H,new II,We)}function Fa(H,We){return An(H,We.declarationList,!1)}function An(H,We,Lt){if(N.exportEquals)return H;for(const L of We.declarations)H=wn(H,L,Lt);return H}function wn(H,We,Lt){if(N.exportEquals)return H;if(Zo(We.name))for(const L of We.name.elements)Hc(L)||(H=wn(H,L,Lt));else!al(We.name)&&(!ki(We)||We.initializer||Lt)&&(H=mt(H,new II,We));return H}function Je(H,We){if(N.exportEquals)return H;const Lt=new II;if($r(We,32)){const L=$r(We,2048)?r.createIdentifier("default"):r.getDeclarationName(We);H=pt(H,Lt,L,r.getLocalName(We),We)}return We.name&&(H=mt(H,Lt,We)),H}function mt(H,We,Lt,L){const me=r.getDeclarationName(Lt),q=N.exportSpecifiers.get(me);if(q)for(const fe of q)H=pt(H,We,fe.name,me,fe.name,void 0,L);return H}function pt(H,We,Lt,L,me,q,fe){return We.has(Lt)||(We.set(Lt,!0),H=Rn(H,le(Lt,L,me,q,fe))),H}function Pt(){let H;return f===0?H=r.createExpressionStatement(Fe(r.createIdentifier("__esModule"),r.createTrue())):H=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),pr(H,2097152),H}function le(H,We,Lt,L,me){const q=ut(r.createExpressionStatement(Fe(H,We,void 0,me)),Lt);return Xu(q),L||pr(q,3072),q}function Fe(H,We,Lt,L){return ut(L&&f!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(H),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(We)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(H)),We),Lt)}function dt(H){switch(H.kind){case 95:case 90:return}return H}function j(H,We,Lt){We.kind===312?(M=We,N=R[Wu(M)],I(H,We,Lt),M=void 0,N=void 0):I(H,We,Lt)}function ot(H,We){return We=A(H,We),We.id&&O[We.id]?We:H===1?Ye(We):rp(We)?Dt(We):We}function Dt(H){const We=H.name,Lt=gn(We);if(Lt!==We){if(H.objectAssignmentInitializer){const L=r.createAssignment(Lt,H.objectAssignmentInitializer);return ut(r.createPropertyAssignment(We,L),H)}return ut(r.createPropertyAssignment(We,Lt),H)}return H}function Ye(H){switch(H.kind){case 80:return gn(H);case 213:return _t(H);case 215:return Gt(H);case 226:return hn(H)}return H}function _t(H){if(je(H.expression)){const We=gn(H.expression);if(O[cs(We)]=!0,!je(We)&&!(qa(H.expression)&8192))return QA(r.updateCallExpression(H,We,void 0,H.arguments),16)}return H}function Gt(H){if(je(H.tag)){const We=gn(H.tag);if(O[cs(We)]=!0,!je(We)&&!(qa(H.tag)&8192))return QA(r.updateTaggedTemplateExpression(H,We,void 0,H.template),16)}return H}function gn(H){var We,Lt;if(qa(H)&8192){const L=iw(M);return L?r.createPropertyAccessExpression(L,H):H}else if(!(al(H)&&!(H.emitNode.autoGenerate.flags&64))&&!Xg(H)){const L=p.getReferencedExportContainer(H,mF(H));if(L&&L.kind===312)return ut(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(H)),H);const me=p.getReferencedImportDeclaration(H);if(me){if(Ah(me))return ut(r.createPropertyAccessExpression(r.getGeneratedNameForNode(me.parent),r.createIdentifier("default")),H);if(np(me)){const q=me.propertyName||me.name;return ut(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Lt=(We=me.parent)==null?void 0:We.parent)==null?void 0:Lt.parent)||me),r.cloneNode(q)),H)}}}return H}function hn(H){if(jv(H.operatorToken.kind)&&je(H.left)&&(!al(H.left)||hL(H.left))&&!Xg(H.left)){const We=dn(H.left);if(We){let Lt=H;for(const L of We)O[cs(Lt)]=!0,Lt=Fe(L,Lt,H);return Lt}}return H}function dn(H){if(al(H)){if(hL(H)){const We=N==null?void 0:N.exportSpecifiers.get(H);if(We){const Lt=[];for(const L of We)Lt.push(L.name);return Lt}}}else{const We=p.getReferencedImportDeclaration(H);if(We)return N==null?void 0:N.exportedBindings[Wu(We)];const Lt=new Set,L=p.getReferencedValueDeclarations(H);if(L){for(const me of L){const q=N==null?void 0:N.exportedBindings[Wu(me)];if(q)for(const fe of q)Lt.add(fe)}if(Lt.size)return Wo(Lt)}}}}var tRe,aHe=T({"src/compiler/transformers/module/module.ts"(){ta(),tRe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}});function uce(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),p=e.onSubstituteNode,h=e.onEmitNode;e.onSubstituteNode=Fe,e.onEmitNode=le,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const f=[],b=[],A=[],I=[];let R,M,N,O,U,K,ee;return wm(e,V);function V(H){if(H.isDeclarationFile||!(wA(H,s)||H.transformFlags&8388608))return H;const We=Wu(H);R=H,K=H,M=f[We]=sJ(e,H),N=t.createUniqueName("exports"),b[We]=N,O=I[We]=t.createUniqueName("context");const Lt=se(M.externalImports),L=G(H,Lt),me=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,N),t.createParameterDeclaration(void 0,void 0,O)],void 0,L),q=ow(t,H,u,s),fe=t.createArrayLiteralExpression(Ot(Lt,ke=>ke.name)),Ve=pr(t.updateSourceFile(H,ut(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,q?[q,fe,me]:[fe,me]))]),H.statements)),2048);return Os(s)||Dae(Ve,L,ke=>!ke.scoped),ee&&(A[We]=ee,ee=void 0),R=void 0,M=void 0,N=void 0,O=void 0,U=void 0,K=void 0,Ve}function se(H){const We=new Map,Lt=[];for(const L of H){const me=yI(t,L,R,u,l,s);if(me){const q=me.text,fe=We.get(q);fe!==void 0?Lt[fe].externalImports.push(L):(We.set(q,Lt.length),Lt.push({name:me,externalImports:[L]}))}}return Lt}function G(H,We){const Lt=[];r();const L=fd(s,"alwaysStrict")||!s.noImplicitUseStrict&&dc(R),me=t.copyPrologue(H.statements,Lt,L,Q);Lt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(O,t.createPropertyAccessExpression(O,"id")))]))),rt(M.externalHelpersImportDeclaration,Q,qi);const q=Bn(H.statements,Q,qi,me);Ur(Lt,U),rg(Lt,i());const fe=re(Lt),Ve=H.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,ke=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ye(fe,We)),t.createPropertyAssignment("execute",t.createFunctionExpression(Ve,void 0,void 0,void 0,[],void 0,t.createBlock(q,!0)))],!0);return Lt.push(t.createReturnStatement(ke)),t.createBlock(Lt,!0)}function re(H){if(!M.hasExportStarsToExportValues)return;if(!M.exportedNames&&M.exportSpecifiers.size===0){let me=!1;for(const q of M.externalImports)if(q.kind===278&&q.exportClause){me=!0;break}if(!me){const q=_e(void 0);return H.push(q),q.name}}const We=[];if(M.exportedNames)for(const me of M.exportedNames)me.escapedText!=="default"&&We.push(t.createPropertyAssignment(t.createStringLiteralFromNode(me),t.createTrue()));const Lt=t.createUniqueName("exportedNames");H.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Lt,void 0,void 0,t.createObjectLiteralExpression(We,!0))])));const L=_e(Lt);return H.push(L),L.name}function _e(H){const We=t.createUniqueName("exportStar"),Lt=t.createIdentifier("m"),L=t.createIdentifier("n"),me=t.createIdentifier("exports");let q=t.createStrictInequality(L,t.createStringLiteral("default"));return H&&(q=t.createLogicalAnd(q,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(H,"hasOwnProperty"),void 0,[L])))),t.createFunctionDeclaration(void 0,void 0,We,void 0,[t.createParameterDeclaration(void 0,void 0,Lt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(me,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(L)]),Lt,t.createBlock([pr(t.createIfStatement(q,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(me,L),t.createElementAccessExpression(Lt,L)))),1)])),t.createExpressionStatement(t.createCallExpression(N,void 0,[me]))],!0))}function ye(H,We){const Lt=[];for(const L of We){const me=He(L.externalImports,Ve=>rD(t,Ve,R)),q=me?t.getGeneratedNameForNode(me):t.createUniqueName(""),fe=[];for(const Ve of L.externalImports){const ke=rD(t,Ve,R);switch(Ve.kind){case 272:if(!Ve.importClause)break;case 271:C.assert(ke!==void 0),fe.push(t.createExpressionStatement(t.createAssignment(ke,q))),$r(Ve,32)&&fe.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createStringLiteral(Tr(ke)),q])));break;case 278:if(C.assert(ke!==void 0),Ve.exportClause)if(Pf(Ve.exportClause)){const Tt=[];for(const kt of Ve.exportClause.elements)Tt.push(t.createPropertyAssignment(t.createStringLiteral(Tr(kt.name)),t.createElementAccessExpression(q,t.createStringLiteral(Tr(kt.propertyName||kt.name)))));fe.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createObjectLiteralExpression(Tt,!0)])))}else fe.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createStringLiteral(Tr(Ve.exportClause.name)),q])));else fe.push(t.createExpressionStatement(t.createCallExpression(H,void 0,[q])));break}}Lt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,q)],void 0,t.createBlock(fe,!0)))}return t.createArrayLiteralExpression(Lt,!0)}function Q(H){switch(H.kind){case 272:return Y(H);case 271:return he(H);case 278:return oe(H);case 277:return Ae(H);default:return $t(H)}}function Y(H){let We;return H.importClause&&o(rD(t,H,R)),uh(At(We,H))}function oe(H){C.assertIsDefined(H)}function he(H){C.assert(v0(H),"import= for internal module references should be handled in an earlier transformer.");let We;return o(rD(t,H,R)),uh(be(We,H))}function Ae(H){if(H.isExportEquals)return;const We=rt(H.expression,eo,bt);return It(t.createIdentifier("default"),We,!0)}function de(H){$r(H,32)?U=Rn(U,t.updateFunctionDeclaration(H,Bn(H.modifiers,Pt,sl),H.asteriskToken,t.getDeclarationName(H,!0,!0),void 0,Bn(H.parameters,eo,Io),void 0,rt(H.body,eo,Jo))):U=Rn(U,xn(H,eo,e)),U=Ft(U,H)}function ie(H){let We;const Lt=t.getLocalName(H);return o(Lt),We=Rn(We,ut(t.createExpressionStatement(t.createAssignment(Lt,ut(t.createClassExpression(Bn(H.modifiers,Pt,sl),H.name,void 0,Bn(H.heritageClauses,eo,of),Bn(H.members,eo,Zc)),H))),H)),We=Ft(We,H),uh(We)}function ge(H){if(!qe(H.declarationList))return rt(H,eo,qi);let We;if(kL(H.declarationList)||LL(H.declarationList)){const Lt=Bn(H.modifiers,Pt,sl),L=[];for(const q of H.declarationList.declarations)L.push(t.updateVariableDeclaration(q,t.getGeneratedNameForNode(q.name),void 0,void 0,Ee(q,!1)));const me=t.updateVariableDeclarationList(H.declarationList,L);We=Rn(We,t.updateVariableStatement(H,Lt,me))}else{let Lt;const L=$r(H,32);for(const me of H.declarationList.declarations)me.initializer?Lt=Rn(Lt,Ee(me,L)):Ne(me);Lt&&(We=Rn(We,ut(t.createExpressionStatement(t.inlineExpressions(Lt)),H)))}return We=Ue(We,H,!1),uh(We)}function Ne(H){if(Zo(H.name))for(const We of H.name.elements)Hc(We)||Ne(We);else o(t.cloneNode(H.name))}function qe(H){return(qa(H)&4194304)===0&&(K.kind===312||(Ml(H).flags&7)===0)}function Ee(H,We){const Lt=We?Me:Ce;return Zo(H.name)?tT(H,eo,e,0,!1,Lt):H.initializer?Lt(H.name,rt(H.initializer,eo,bt)):H.name}function Me(H,We,Lt){return Oe(H,We,Lt,!0)}function Ce(H,We,Lt){return Oe(H,We,Lt,!1)}function Oe(H,We,Lt,L){return o(t.cloneNode(H)),L?on(H,hn(ut(t.createAssignment(H,We),Lt))):hn(ut(t.createAssignment(H,We),Lt))}function At(H,We){if(M.exportEquals)return H;const Lt=We.importClause;if(!Lt)return H;Lt.name&&(H=gt(H,Lt));const L=Lt.namedBindings;if(L)switch(L.kind){case 274:H=gt(H,L);break;case 275:for(const me of L.elements)H=gt(H,me);break}return H}function be(H,We){return M.exportEquals?H:gt(H,We)}function Ue(H,We,Lt){if(M.exportEquals)return H;for(const L of We.declarationList.declarations)(L.initializer||Lt)&&(H=it(H,L));return H}function it(H,We,Lt){if(M.exportEquals)return H;if(Zo(We.name))for(const L of We.name.elements)Hc(L)||(H=it(H,L));else al(We.name)||(H=gt(H,We,void 0));return H}function Ft(H,We){if(M.exportEquals)return H;let Lt;if($r(We,32)){const L=$r(We,2048)?t.createStringLiteral("default"):We.name;H=Qe(H,L,t.getLocalName(We)),Lt=om(L)}return We.name&&(H=gt(H,We,Lt)),H}function gt(H,We,Lt){if(M.exportEquals)return H;const L=t.getDeclarationName(We),me=M.exportSpecifiers.get(L);if(me)for(const q of me)q.name.escapedText!==Lt&&(H=Qe(H,q.name,L));return H}function Qe(H,We,Lt,L){return H=Rn(H,It(We,Lt,L)),H}function It(H,We,Lt){const L=t.createExpressionStatement(on(H,We));return Xu(L),Lt||pr(L,3072),L}function on(H,We){const Lt=je(H)?t.createStringLiteralFromNode(H):H;return pr(We,qa(We)|3072),uc(t.createCallExpression(N,void 0,[Lt,We]),We)}function $t(H){switch(H.kind){case 243:return ge(H);case 262:return de(H);case 263:return ie(H);case 248:return Cn(H,!0);case 249:return Hn(H);case 250:return yn(H);case 246:return gi(H);case 247:return ho(H);case 256:return Gi(H);case 254:return xo(H);case 245:return Qn(H);case 255:return Di(H);case 269:return Ir(H);case 296:return Xt(H);case 297:return nt(H);case 258:return Bt(H);case 299:return Dn(H);case 241:return oi(H);default:return eo(H)}}function Cn(H,We){const Lt=K;return K=H,H=t.updateForStatement(H,rt(H.initializer,We?en:Ro,Af),rt(H.condition,eo,bt),rt(H.incrementor,Ro,bt),xd(H.statement,We?$t:eo,e)),K=Lt,H}function Hn(H){const We=K;return K=H,H=t.updateForInStatement(H,en(H.initializer),rt(H.expression,eo,bt),xd(H.statement,$t,e)),K=We,H}function yn(H){const We=K;return K=H,H=t.updateForOfStatement(H,H.awaitModifier,en(H.initializer),rt(H.expression,eo,bt),xd(H.statement,$t,e)),K=We,H}function tn(H){return qc(H)&&qe(H)}function en(H){if(tn(H)){let We;for(const Lt of H.declarations)We=Rn(We,Ee(Lt,!1)),Lt.initializer||Ne(Lt);return We?t.inlineExpressions(We):t.createOmittedExpression()}else return rt(H,Ro,Af)}function gi(H){return t.updateDoStatement(H,xd(H.statement,$t,e),rt(H.expression,eo,bt))}function ho(H){return t.updateWhileStatement(H,rt(H.expression,eo,bt),xd(H.statement,$t,e))}function Gi(H){return t.updateLabeledStatement(H,H.label,C.checkDefined(rt(H.statement,$t,qi,t.liftToBlock)))}function xo(H){return t.updateWithStatement(H,rt(H.expression,eo,bt),C.checkDefined(rt(H.statement,$t,qi,t.liftToBlock)))}function Qn(H){return t.updateIfStatement(H,rt(H.expression,eo,bt),C.checkDefined(rt(H.thenStatement,$t,qi,t.liftToBlock)),rt(H.elseStatement,$t,qi,t.liftToBlock))}function Di(H){return t.updateSwitchStatement(H,rt(H.expression,eo,bt),C.checkDefined(rt(H.caseBlock,$t,SP)))}function Ir(H){const We=K;return K=H,H=t.updateCaseBlock(H,Bn(H.clauses,$t,L4)),K=We,H}function Xt(H){return t.updateCaseClause(H,rt(H.expression,eo,bt),Bn(H.statements,$t,qi))}function nt(H){return xn(H,$t,e)}function Bt(H){return xn(H,$t,e)}function Dn(H){const We=K;return K=H,H=t.updateCatchClause(H,H.variableDeclaration,C.checkDefined(rt(H.block,$t,Jo))),K=We,H}function oi(H){const We=K;return K=H,H=xn(H,$t,e),K=We,H}function yi(H,We){if(!(H.transformFlags&276828160))return H;switch(H.kind){case 248:return Cn(H,!1);case 244:return fa(H);case 217:return Fa(H,We);case 360:return An(H,We);case 226:if(Uv(H))return Je(H,We);break;case 213:if(Bp(H))return wn(H);break;case 224:case 225:return pt(H,We)}return xn(H,eo,e)}function eo(H){return yi(H,!1)}function Ro(H){return yi(H,!0)}function fa(H){return t.updateExpressionStatement(H,rt(H.expression,Ro,bt))}function Fa(H,We){return t.updateParenthesizedExpression(H,rt(H.expression,We?Ro:eo,bt))}function An(H,We){return t.updatePartiallyEmittedExpression(H,rt(H.expression,We?Ro:eo,bt))}function wn(H){const We=yI(t,H,R,u,l,s),Lt=rt($c(H.arguments),eo,bt),L=We&&(!Lt||!Ma(Lt)||Lt.text!==We.text)?We:Lt;return t.createCallExpression(t.createPropertyAccessExpression(O,t.createIdentifier("import")),void 0,L?[L]:[])}function Je(H,We){return mt(H.left)?tT(H,eo,e,0,!We):xn(H,eo,e)}function mt(H){if(wc(H,!0))return mt(H.left);if(n_(H))return mt(H.expression);if(Wa(H))return St(H.properties,mt);if(_d(H))return St(H.elements,mt);if(rp(H))return mt(H.name);if(bc(H))return mt(H.initializer);if(je(H)){const We=l.getReferencedExportContainer(H);return We!==void 0&&We.kind===312}else return!1}function pt(H,We){if((H.operator===46||H.operator===47)&&je(H.operand)&&!al(H.operand)&&!Xg(H.operand)&&!CU(H.operand)){const Lt=Gt(H.operand);if(Lt){let L,me=rt(H.operand,eo,bt);tb(H)?me=t.updatePrefixUnaryExpression(H,me):(me=t.updatePostfixUnaryExpression(H,me),We||(L=t.createTempVariable(o),me=t.createAssignment(L,me),ut(me,H)),me=t.createComma(me,t.cloneNode(H.operand)),ut(me,H));for(const q of Lt)me=on(q,hn(me));return L&&(me=t.createComma(me,L),ut(me,H)),me}}return xn(H,eo,e)}function Pt(H){switch(H.kind){case 95:case 90:return}return H}function le(H,We,Lt){if(We.kind===312){const L=Wu(We);R=We,M=f[L],N=b[L],ee=A[L],O=I[L],ee&&delete A[L],h(H,We,Lt),R=void 0,M=void 0,N=void 0,O=void 0,ee=void 0}else h(H,We,Lt)}function Fe(H,We){return We=p(H,We),dn(We)?We:H===1?ot(We):H===4?dt(We):We}function dt(H){switch(H.kind){case 304:return j(H)}return H}function j(H){var We,Lt;const L=H.name;if(!al(L)&&!Xg(L)){const me=l.getReferencedImportDeclaration(L);if(me){if(Ah(me))return ut(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(me.parent),t.createIdentifier("default"))),H);if(np(me))return ut(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(We=me.parent)==null?void 0:We.parent)==null?void 0:Lt.parent)||me),t.cloneNode(me.propertyName||me.name))),H)}}return H}function ot(H){switch(H.kind){case 80:return Dt(H);case 226:return Ye(H);case 236:return _t(H)}return H}function Dt(H){var We,Lt;if(qa(H)&8192){const L=iw(R);return L?t.createPropertyAccessExpression(L,H):H}if(!al(H)&&!Xg(H)){const L=l.getReferencedImportDeclaration(H);if(L){if(Ah(L))return ut(t.createPropertyAccessExpression(t.getGeneratedNameForNode(L.parent),t.createIdentifier("default")),H);if(np(L))return ut(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(We=L.parent)==null?void 0:We.parent)==null?void 0:Lt.parent)||L),t.cloneNode(L.propertyName||L.name)),H)}}return H}function Ye(H){if(jv(H.operatorToken.kind)&&je(H.left)&&(!al(H.left)||hL(H.left))&&!Xg(H.left)){const We=Gt(H.left);if(We){let Lt=H;for(const L of We)Lt=on(L,hn(Lt));return Lt}}return H}function _t(H){return pR(H)?t.createPropertyAccessExpression(O,t.createIdentifier("meta")):H}function Gt(H){let We;const Lt=gn(H);if(Lt){const L=l.getReferencedExportContainer(H,!1);L&&L.kind===312&&(We=Rn(We,t.getDeclarationName(Lt))),We=Ur(We,M==null?void 0:M.exportedBindings[Wu(Lt)])}else if(al(H)&&hL(H)){const L=M==null?void 0:M.exportSpecifiers.get(H);if(L){const me=[];for(const q of L)me.push(q.name);return me}}return We}function gn(H){if(!al(H)){const We=l.getReferencedImportDeclaration(H);if(We)return We;const Lt=l.getReferencedValueDeclaration(H);if(Lt&&(M!=null&&M.exportedBindings[Wu(Lt)]))return Lt;const L=l.getReferencedValueDeclarations(H);if(L){for(const me of L)if(me!==Lt&&(M!=null&&M.exportedBindings[Wu(me)]))return me}return Lt}}function hn(H){return ee===void 0&&(ee=[]),ee[cs(H)]=!0,H}function dn(H){return ee&&H.id&&ee[H.id]}}var sHe=T({"src/compiler/transformers/module/system.ts"(){ta()}});function yJ(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=ls(s),u=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=ee,e.onSubstituteNode=V,e.enableEmitNotification(312),e.enableSubstitution(80);let h,f,b;return wm(e,A);function A(G){if(G.isDeclarationFile)return G;if(dc(G)||um(s)){f=G,b=void 0;let re=I(G);return f=void 0,b&&(re=t.updateSourceFile(re,ut(t.createNodeArray(Ej(re.statements.slice(),b)),re.statements))),!dc(G)||wu(s)===200||St(re.statements,EL)?re:t.updateSourceFile(re,ut(t.createNodeArray([...re.statements,tw(t)]),re.statements))}return G}function I(G){const re=QH(t,r(),G,s);if(re){const _e=[],ye=t.copyPrologue(G.statements,_e);return Rn(_e,re),Ur(_e,Bn(G.statements,R,qi,ye)),t.updateSourceFile(G,ut(t.createNodeArray(_e),G.statements))}else return xn(G,R,e)}function R(G){switch(G.kind){case 271:return wu(s)>=100?N(G):void 0;case 277:return U(G);case 278:return K(G)}return G}function M(G){const re=yI(t,G,C.checkDefined(f),i,o,s),_e=[];if(re&&_e.push(re),wu(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,_e);if(!b){const Q=t.createUniqueName("_createRequire",48),Y=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),Q)])),t.createStringLiteral("module"),void 0),oe=t.createUniqueName("__require",48),he=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(oe,void 0,void 0,t.createCallExpression(t.cloneNode(Q),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));b=[Y,he]}const ye=b[1].declarationList.declarations[0].name;return C.assertNode(ye,je),t.createCallExpression(t.cloneNode(ye),void 0,_e)}function N(G){C.assert(v0(G),"import= for internal module references should be handled in an earlier transformer.");let re;return re=Rn(re,Pr(ut(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(G.name),void 0,void 0,M(G))],l>=2?2:0)),G),G)),re=O(re,G),uh(re)}function O(G,re){return $r(re,32)&&(G=Rn(G,t.createExportDeclaration(void 0,re.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Tr(re.name))])))),G}function U(G){return G.isExportEquals?wu(s)===200?Pr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),G.expression)),G):void 0:G}function K(G){if(s.module!==void 0&&s.module>5||!G.exportClause||!Ih(G.exportClause)||!G.moduleSpecifier)return G;const re=G.exportClause.name,_e=t.getGeneratedNameForNode(re),ye=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(_e)),G.moduleSpecifier,G.attributes);Pr(ye,G.exportClause);const Q=U4(G)?t.createExportDefault(_e):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,_e,re)]));return Pr(Q,G),[ye,Q]}function ee(G,re,_e){Zi(re)?((dc(re)||um(s))&&s.importHelpers&&(h=new Map),u(G,re,_e),h=void 0):u(G,re,_e)}function V(G,re){return re=p(G,re),h&&je(re)&&qa(re)&8192?se(re):re}function se(G){const re=Tr(G);let _e=h.get(re);return _e||h.set(re,_e=t.createUniqueName(re,48)),_e}}var lHe=T({"src/compiler/transformers/module/esnextAnd2015.ts"(){ta()}});function dce(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=yJ(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const l=vJ(e),u=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=f,e.onEmitNode=b,e.enableSubstitution(312),e.enableEmitNotification(312);let h;return R;function f(N,O){return Zi(O)?(h=O,t(N,O)):h?h.impliedNodeFormat===99?o(N,O):u(N,O):t(N,O)}function b(N,O,U){return Zi(O)&&(h=O),h?h.impliedNodeFormat===99?s(N,O,U):p(N,O,U):r(N,O,U)}function A(N){return N.impliedNodeFormat===99?i:l}function I(N){if(N.isDeclarationFile)return N;h=N;const O=A(N)(N);return h=void 0,C.assert(Zi(O)),O}function R(N){return N.kind===312?I(N):M(N)}function M(N){return e.factory.createBundle(Ot(N.sourceFiles,I),N.prepends)}}var cHe=T({"src/compiler/transformers/module/node.ts"(){ta()}});function d7(e){return ki(e)||Uo(e)||Ep(e)||ns(e)||zv(e)||Fy(e)||Jk(e)||sI(e)||Kl(e)||Sh(e)||xc(e)||Io(e)||gl(e)||Xv(e)||ru(e)||Lm(e)||Ll(e)||r1(e)||Fr(e)||$s(e)||mr(e)||im(e)}function pce(e){if(zv(e)||Fy(e))return t;return Sh(e)||Kl(e)?i:$v(e);function t(s){const l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return aa(e)?s.errorModuleName?s.accessibility===2?m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?m.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){const l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return aa(e)?s.errorModuleName?s.accessibility===2?m.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?m.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?m.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function $v(e){if(ki(e)||Uo(e)||Ep(e)||Fr(e)||$s(e)||mr(e)||ns(e)||Ll(e))return r;return zv(e)||Fy(e)?i:Jk(e)||sI(e)||Kl(e)||Sh(e)||xc(e)||r1(e)?o:Io(e)?hp(e,e.parent)&&$r(e.parent,2)?r:s:gl(e)?u:Xv(e)?p:ru(e)?h:Lm(e)||im(e)?f:C.assertNever(e,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(C.formatSyntaxKind(e.kind)));function t(b){if(e.kind===260||e.kind===208)return b.errorModuleName?b.accessibility===2?m.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:m.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&$r(e.parent,2))return aa(e)?b.errorModuleName?b.accessibility===2?m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?b.errorModuleName?b.accessibility===2?m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_property_0_of_exported_class_has_or_is_using_private_name_1:b.errorModuleName?m.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(b){const A=t(b);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function i(b){let A;return e.kind===178?aa(e)?A=b.errorModuleName?m.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:A=b.errorModuleName?m.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:aa(e)?A=b.errorModuleName?b.accessibility===2?m.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:A=b.errorModuleName?b.accessibility===2?m.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:A,errorNode:e.name,typeName:e.name}}function o(b){let A;switch(e.kind){case 180:A=b.errorModuleName?m.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:A=b.errorModuleName?m.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:A=b.errorModuleName?m.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:aa(e)?A=b.errorModuleName?b.accessibility===2?m.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:m.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?A=b.errorModuleName?b.accessibility===2?m.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:m.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:A=b.errorModuleName?m.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:A=b.errorModuleName?b.accessibility===2?m.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:m.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return C.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:A,errorNode:e.name||e}}function s(b){const A=l(b);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function l(b){switch(e.parent.kind){case 176:return b.errorModuleName?b.accessibility===2?m.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return b.errorModuleName?m.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return b.errorModuleName?m.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return b.errorModuleName?m.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return aa(e.parent)?b.errorModuleName?b.accessibility===2?m.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?b.errorModuleName?b.accessibility===2?m.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b.errorModuleName?m.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return b.errorModuleName?b.accessibility===2?m.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return b.errorModuleName?b.accessibility===2?m.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return C.fail("Unknown parent for parameter: ".concat(C.formatSyntaxKind(e.parent.kind)))}}function u(){let b;switch(e.parent.kind){case 263:b=m.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:b=m.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:b=m.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:b=m.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:b=m.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:aa(e.parent)?b=m.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?b=m.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b=m.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:b=m.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:b=m.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:b=m.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return C.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:b,errorNode:e,typeName:e.name}}function p(){let b;return Rc(e.parent.parent)?b=of(e.parent)&&e.parent.token===119?m.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?m.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:m.extends_clause_of_exported_class_has_or_is_using_private_name_0:b=m.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:b,errorNode:e,typeName:Po(e.parent.parent)}}function h(){return{diagnosticMessage:m.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function f(b){return{diagnosticMessage:b.errorModuleName?m.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:m.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:im(e)?C.checkDefined(e.typeExpression):e.type,typeName:im(e)?Po(e):e.name}}}var uHe=T({"src/compiler/transformers/declarations/diagnostics.ts"(){ta()}});function fce(e,t,r){const i=e.getCompilerOptions();return Fw(t,e,w,i,r?[r]:rr(e.getSourceFiles(),jj),[bJ],!1).diagnostics}function bJ(e){const t=()=>C.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,l=!1,u=!1,p,h,f,b,A,I;const{factory:R}=e,M=e.getEmitHost(),N={trackSymbol:de,reportInaccessibleThisError:Ee,reportInaccessibleUniqueSymbolError:Ne,reportCyclicStructureError:qe,reportPrivateInBaseOfClassExpression:ie,reportLikelyUnsafeImportRequiredError:Me,reportTruncationError:Ce,moduleResolverHost:M,trackReferencedAmbientModule:Y,trackExternalModuleSymbolOfImportTypeNode:Ae,reportNonlocalAugmentation:Oe,reportNonSerializableProperty:At};let O,U,K,ee,V,se;const G=e.getEmitResolver(),re=e.getCompilerOptions(),{noResolve:_e,stripInternal:ye}=re;return Ue;function Q(j){if(j){h=h||new Set;for(const ot of j)h.add(ot)}}function Y(j,ot){const Dt=G.getTypeReferenceDirectivesForSymbol(ot,-1);if(Le(Dt))return Q(Dt);const Ye=jn(j);ee.set(Wu(Ye),Ye)}function oe(j){const ot=yR(j),Dt=ot&&G.tryFindAmbientModule(ot);if(Dt!=null&&Dt.declarations)for(const Ye of Dt.declarations)ku(Ye)&&jn(Ye)!==K&&Y(Ye,Dt)}function he(j){if(j.accessibility===0){if(j.aliasesToMakeVisible)if(!f)f=j.aliasesToMakeVisible;else for(const ot of j.aliasesToMakeVisible)Tf(f,ot)}else{const ot=r(j);if(ot)return ot.typeName?e.addDiagnostic(Or(j.errorNode||ot.errorNode,ot.diagnosticMessage,gc(ot.typeName),j.errorSymbolName,j.errorModuleName)):e.addDiagnostic(Or(j.errorNode||ot.errorNode,ot.diagnosticMessage,j.errorSymbolName,j.errorModuleName)),!0}return!1}function Ae(j){o||(I||(I=[])).push(j)}function de(j,ot,Dt){if(j.flags&262144)return!1;const Ye=he(G.isSymbolAccessible(j,ot,Dt,!0));return Q(G.getTypeReferenceDirectivesForSymbol(j,Dt)),Ye}function ie(j){(O||U)&&e.addDiagnostic(Or(O||U,m.Property_0_of_exported_class_expression_may_not_be_private_or_protected,j))}function ge(){return O?Ns(O):U&&Po(U)?Ns(Po(U)):U&&wl(U)?U.isExportEquals?"export=":"default":"(Missing)"}function Ne(){(O||U)&&e.addDiagnostic(Or(O||U,m.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ge(),"unique symbol"))}function qe(){(O||U)&&e.addDiagnostic(Or(O||U,m.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ge()))}function Ee(){(O||U)&&e.addDiagnostic(Or(O||U,m.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ge(),"this"))}function Me(j){(O||U)&&e.addDiagnostic(Or(O||U,m.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ge(),j))}function Ce(){(O||U)&&e.addDiagnostic(Or(O||U,m.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Oe(j,ot,Dt){var Ye;const _t=(Ye=ot.declarations)==null?void 0:Ye.find(gn=>jn(gn)===j),Gt=rr(Dt.declarations,gn=>jn(gn)!==j);if(_t&&Gt)for(const gn of Gt)e.addDiagnostic(Oa(Or(gn,m.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Or(_t,m.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function At(j){(O||U)&&e.addDiagnostic(Or(O||U,m.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,j))}function be(j,ot){const Dt=r;r=_t=>_t.errorNode&&d7(_t.errorNode)?$v(_t.errorNode)(_t):{diagnosticMessage:_t.errorModuleName?m.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:m.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:_t.errorNode||j};const Ye=G.getDeclarationStatementsForSourceFile(j,nT,N,ot);return r=Dt,Ye}function Ue(j){if(j.kind===312&&j.isDeclarationFile)return j;if(j.kind===313){o=!0,ee=new Map,V=new Map;let We=!1;const Lt=R.createBundle(Ot(j.sourceFiles,q=>{if(q.isDeclarationFile)return;if(We=We||q.hasNoDefaultLib,K=q,p=q,f=void 0,A=!1,b=new Map,r=t,l=!1,u=!1,it(q,ee),Ft(q,V),zp(q)||rm(q)){s=!1,i=!1;const Ve=dd(q)?R.createNodeArray(be(q,!0)):Bn(q.statements,oi,qi);return R.updateSourceFile(q,[R.createModuleDeclaration([R.createModifier(138)],R.createStringLiteral(T3(e.getEmitHost(),q)),R.createModuleBlock(ut(R.createNodeArray(nt(Ve)),q.statements)))],!0,[],[],!1,[])}i=!0;const fe=dd(q)?R.createNodeArray(be(q)):Bn(q.statements,oi,qi);return R.updateSourceFile(q,nt(fe),!0,[],[],!1,[])}),Hi(j.prepends,q=>{if(q.kind===315){const fe=hH(q,"dts",ye);return We=We||!!fe.hasNoDefaultLib,it(fe,ee),Q(Ot(fe.typeReferenceDirectives,Ve=>[Ve.fileName,Ve.resolutionMode])),Ft(fe,V),fe}return q}));Lt.syntheticFileReferences=[],Lt.syntheticTypeReferences=hn(),Lt.syntheticLibReferences=gn(),Lt.hasNoDefaultLib=We;const L=ri(Lu(XP(j,M,!0).declarationFilePath)),me=H(Lt.syntheticFileReferences,L);return ee.forEach(me),Lt}i=!0,l=!1,u=!1,p=j,K=j,r=t,o=!1,s=!1,A=!1,f=void 0,b=new Map,h=void 0,ee=it(K,new Map),V=Ft(K,new Map);const ot=[],Dt=ri(Lu(XP(j,M,!0).declarationFilePath)),Ye=H(ot,Dt);let _t;if(dd(K))_t=R.createNodeArray(be(j)),ee.forEach(Ye),se=rr(_t,TS);else{const We=Bn(j.statements,oi,qi);_t=ut(R.createNodeArray(nt(We)),j.statements),ee.forEach(Ye),se=rr(_t,TS),dc(j)&&(!s||l&&!u)&&(_t=ut(R.createNodeArray([..._t,tw(R)]),_t))}const Gt=R.updateSourceFile(j,_t,!0,ot,hn(),j.hasNoDefaultLib,gn());return Gt.exportedModulesFromDeclarationEmit=I,Gt;function gn(){return Wo(V.keys(),We=>({fileName:We,pos:-1,end:-1}))}function hn(){return h?Hi(Wo(h.keys()),dn):[]}function dn([We,Lt]){if(se){for(const L of se)if(ru(L)&&xh(L.moduleReference)){const me=L.moduleReference.expression;if(ds(me)&&me.text===We)return}else if(Oc(L)&&Ma(L.moduleSpecifier)&&L.moduleSpecifier.text===We)return}return{fileName:We,pos:-1,end:-1,...Lt?{resolutionMode:Lt}:void 0}}function H(We,Lt){return L=>{if(I!=null&&I.includes(L.symbol))return;let me;if(L.isDeclarationFile)me=L.fileName;else{if(o&&Nr(j.sourceFiles,L))return;const q=XP(L,M,!0);me=q.declarationFilePath||q.jsFilePath||L.fileName}if(me){const q=HF(re,K,yo(Lt,M.getCurrentDirectory()),yo(me,M.getCurrentDirectory()),M);if(!Wp(q)){Q([[q,void 0]]);return}let fe=RA(Lt,me,M.getCurrentDirectory(),M.getCanonicalFileName,!1);if(po(fe,"./")&&xA(fe)&&(fe=fe.substring(2)),po(fe,"node_modules/")||w0(fe))return;We.push({pos:-1,end:-1,fileName:fe})}}}}function it(j,ot){return _e||!KS(j)&&dd(j)||He(j.referencedFiles,Dt=>{const Ye=M.getSourceFileFromReference(j,Dt);Ye&&ot.set(Wu(Ye),Ye)}),ot}function Ft(j,ot){return He(j.libReferenceDirectives,Dt=>{M.getLibFileFromReference(Dt)&&ot.set(dh(Dt.fileName),!0)}),ot}function gt(j){if(j.kind===80)return j;return j.kind===207?R.updateArrayBindingPattern(j,Bn(j.elements,ot,C4)):R.updateObjectBindingPattern(j,Bn(j.elements,ot,ns));function ot(Dt){return Dt.kind===232?Dt:(Dt.propertyName&&rs(Dt.propertyName)&&jl(Dt.propertyName.expression)&&Gi(Dt.propertyName.expression,p),R.updateBindingElement(Dt,Dt.dotDotDotToken,Dt.propertyName,gt(Dt.name),It(Dt)?Dt.initializer:void 0))}}function Qe(j,ot,Dt){let Ye;A||(Ye=r,r=$v(j));const _t=R.updateParameterDeclaration(j,pHe(R,j,ot),j.dotDotDotToken,gt(j.name),G.isOptionalParameter(j)?j.questionToken||R.createToken(58):void 0,$t(j,Dt||j.type,!0),on(j));return A||(r=Ye),_t}function It(j){return fHe(j)&&G.isLiteralConstDeclaration(Do(j))}function on(j){if(It(j))return G.createLiteralConstValue(Do(j),N)}function $t(j,ot,Dt){if(!Dt&&yp(j,2)||It(j))return;const Ye=j.kind===169&&(G.isRequiredInitializedParameter(j)||G.isOptionalUninitializedParameterProperty(j));if(ot&&!Ye)return rt(ot,Bt,Ui);if(!Do(j))return ot?rt(ot,Bt,Ui):R.createKeywordTypeNode(133);if(j.kind===178)return R.createKeywordTypeNode(133);O=j.name;let _t;if(A||(_t=r,r=$v(j)),j.kind===260||j.kind===208)return Gt(G.createTypeOfDeclaration(j,p,nT,N));if(j.kind===169||j.kind===172||j.kind===171)return Ep(j)||!j.initializer?Gt(G.createTypeOfDeclaration(j,p,nT,N,Ye)):Gt(G.createTypeOfDeclaration(j,p,nT,N,Ye)||G.createTypeOfExpression(j.initializer,p,nT,N));return Gt(G.createReturnTypeOfSignatureDeclaration(j,p,nT,N));function Gt(gn){return O=void 0,A||(r=_t),gn||R.createKeywordTypeNode(133)}}function Cn(j){switch(j=Do(j),j.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!G.isDeclarationVisible(j);case 260:return!yn(j);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Hn(j){var ot;if(j.body)return!0;const Dt=(ot=j.symbol.declarations)==null?void 0:ot.filter(Ye=>xc(Ye)&&!Ye.body);return!Dt||Dt.indexOf(j)===Dt.length-1}function yn(j){return Hc(j)?!1:Zo(j.name)?St(j.name.elements,yn):G.isDeclarationVisible(j)}function tn(j,ot,Dt){if(yp(j,2))return R.createNodeArray();const Ye=Ot(ot,_t=>Qe(_t,Dt));return Ye?R.createNodeArray(Ye,ot.hasTrailingComma):R.createNodeArray()}function en(j,ot){let Dt;if(!ot){const Ye=KE(j);Ye&&(Dt=[Qe(Ye)])}if(Sp(j)){let Ye;if(!ot){const _t=FN(j);if(_t){const Gt=Fe(j,G.getAllAccessorDeclarations(j));Ye=Qe(_t,void 0,Gt)}}Ye||(Ye=R.createParameterDeclaration(void 0,void 0,"value")),Dt=Rn(Dt,Ye)}return R.createNodeArray(Dt||et)}function gi(j,ot){return yp(j,2)?void 0:Bn(ot,Bt,gl)}function ho(j){return Zi(j)||Lm(j)||Ql(j)||Rc(j)||hd(j)||Qo(j)||r1(j)||KR(j)}function Gi(j,ot){const Dt=G.isEntityNameVisible(j,ot);he(Dt),Q(G.getTypeReferenceDirectivesForEntityName(j))}function xo(j,ot){return Fp(j)&&Fp(ot)&&(j.jsDoc=ot.jsDoc),uc(j,w_(ot))}function Qn(j,ot){if(ot){if(s=s||j.kind!==267&&j.kind!==205,ds(ot))if(o){const Dt=ioe(e.getEmitHost(),G,j);if(Dt)return R.createStringLiteral(Dt)}else{const Dt=G.getSymbolOfExternalModuleSpecifier(ot);Dt&&(I||(I=[])).push(Dt)}return ot}}function Di(j){if(G.isDeclarationVisible(j))if(j.moduleReference.kind===283){const ot=xN(j);return R.updateImportEqualsDeclaration(j,j.modifiers,j.isTypeOnly,j.name,R.updateExternalModuleReference(j.moduleReference,Qn(j,ot)))}else{const ot=r;return r=$v(j),Gi(j.moduleReference,p),r=ot,j}}function Ir(j){if(!j.importClause)return R.updateImportDeclaration(j,j.modifiers,j.importClause,Qn(j,j.moduleSpecifier),Xt(j.attributes));const ot=j.importClause&&j.importClause.name&&G.isDeclarationVisible(j.importClause)?j.importClause.name:void 0;if(!j.importClause.namedBindings)return ot&&R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,void 0),Qn(j,j.moduleSpecifier),Xt(j.attributes));if(j.importClause.namedBindings.kind===274){const Ye=G.isDeclarationVisible(j.importClause.namedBindings)?j.importClause.namedBindings:void 0;return ot||Ye?R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,Ye),Qn(j,j.moduleSpecifier),Xt(j.attributes)):void 0}const Dt=Hi(j.importClause.namedBindings.elements,Ye=>G.isDeclarationVisible(Ye)?Ye:void 0);if(Dt&&Dt.length||ot)return R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,Dt&&Dt.length?R.updateNamedImports(j.importClause.namedBindings,Dt):void 0),Qn(j,j.moduleSpecifier),Xt(j.attributes));if(G.isImportRequiredByAugmentation(j))return R.updateImportDeclaration(j,j.modifiers,void 0,Qn(j,j.moduleSpecifier),Xt(j.attributes))}function Xt(j){const ot=gD(j);return j&&ot!==void 0?j:void 0}function nt(j){for(;Le(f);){const Dt=f.shift();if(!q4(Dt))return C.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(C.formatSyntaxKind(Dt.kind)));const Ye=i;i=Dt.parent&&Zi(Dt.parent)&&!(dc(Dt.parent)&&o);const _t=Ro(Dt);i=Ye,b.set(Wu(Dt),_t)}return Bn(j,ot,qi);function ot(Dt){if(q4(Dt)){const Ye=Wu(Dt);if(b.has(Ye)){const _t=b.get(Ye);return b.delete(Ye),_t&&((Ao(_t)?St(_t,N4):N4(_t))&&(l=!0),Zi(Dt.parent)&&(Ao(_t)?St(_t,EL):EL(_t))&&(s=!0)),_t}}return Dt}}function Bt(j){if(Je(j)||Ju(j)&&(Cn(j)||jy(j)&&!G.isLateBound(Do(j)))||Qo(j)&&G.isImplementationOfOverload(j)||Jae(j))return;let ot;ho(j)&&(ot=p,p=j);const Dt=r,Ye=d7(j),_t=A;let Gt=(j.kind===187||j.kind===200)&&j.parent.kind!==265;if((Kl(j)||Sh(j))&&yp(j,2))return j.symbol&&j.symbol.declarations&&j.symbol.declarations[0]!==j?void 0:gn(R.createPropertyDeclaration(Pt(j),j.name,void 0,void 0,void 0));if(Ye&&!A&&(r=$v(j)),lI(j)&&Gi(j.exprName,p),Gt&&(A=!0),_He(j))switch(j.kind){case 233:{(Zd(j.expression)||jl(j.expression))&&Gi(j.expression,p);const hn=xn(j,Bt,e);return gn(R.updateExpressionWithTypeArguments(hn,hn.expression,hn.typeArguments))}case 183:{Gi(j.typeName,p);const hn=xn(j,Bt,e);return gn(R.updateTypeReferenceNode(hn,hn.typeName,hn.typeArguments))}case 180:return gn(R.updateConstructSignature(j,gi(j,j.typeParameters),tn(j,j.parameters),$t(j,j.type)));case 176:{const hn=R.createConstructorDeclaration(Pt(j),tn(j,j.parameters,0),void 0);return gn(hn)}case 174:{if(Ji(j.name))return gn(void 0);const hn=R.createMethodDeclaration(Pt(j),void 0,j.name,j.questionToken,gi(j,j.typeParameters),tn(j,j.parameters),$t(j,j.type),void 0);return gn(hn)}case 177:{if(Ji(j.name))return gn(void 0);const hn=Fe(j,G.getAllAccessorDeclarations(j));return gn(R.updateGetAccessorDeclaration(j,Pt(j),j.name,en(j,yp(j,2)),$t(j,hn),void 0))}case 178:return Ji(j.name)?gn(void 0):gn(R.updateSetAccessorDeclaration(j,Pt(j),j.name,en(j,yp(j,2)),void 0));case 172:return Ji(j.name)?gn(void 0):gn(R.updatePropertyDeclaration(j,Pt(j),j.name,j.questionToken,$t(j,j.type),on(j)));case 171:return Ji(j.name)?gn(void 0):gn(R.updatePropertySignature(j,Pt(j),j.name,j.questionToken,$t(j,j.type)));case 173:return Ji(j.name)?gn(void 0):gn(R.updateMethodSignature(j,Pt(j),j.name,j.questionToken,gi(j,j.typeParameters),tn(j,j.parameters),$t(j,j.type)));case 179:return gn(R.updateCallSignature(j,gi(j,j.typeParameters),tn(j,j.parameters),$t(j,j.type)));case 181:return gn(R.updateIndexSignature(j,Pt(j),tn(j,j.parameters),rt(j.type,Bt,Ui)||R.createKeywordTypeNode(133)));case 260:return Zo(j.name)?Fa(j.name):(Gt=!0,A=!0,gn(R.updateVariableDeclaration(j,j.name,void 0,$t(j,j.type),on(j))));case 168:return Dn(j)&&(j.default||j.constraint)?gn(R.updateTypeParameterDeclaration(j,j.modifiers,j.name,void 0,void 0)):gn(xn(j,Bt,e));case 194:{const hn=rt(j.checkType,Bt,Ui),dn=rt(j.extendsType,Bt,Ui),H=p;p=j.trueType;const We=rt(j.trueType,Bt,Ui);p=H;const Lt=rt(j.falseType,Bt,Ui);return C.assert(hn),C.assert(dn),C.assert(We),C.assert(Lt),gn(R.updateConditionalTypeNode(j,hn,dn,We,Lt))}case 184:return gn(R.updateFunctionTypeNode(j,Bn(j.typeParameters,Bt,gl),tn(j,j.parameters),C.checkDefined(rt(j.type,Bt,Ui))));case 185:return gn(R.updateConstructorTypeNode(j,Pt(j),Bn(j.typeParameters,Bt,gl),tn(j,j.parameters),C.checkDefined(rt(j.type,Bt,Ui))));case 205:return Vy(j)?(oe(j),gn(R.updateImportTypeNode(j,R.updateLiteralTypeNode(j.argument,Qn(j,j.argument.literal)),j.attributes,j.qualifier,Bn(j.typeArguments,Bt,Ui),j.isTypeOf))):gn(j);default:C.assertNever(j,"Attempted to process unhandled node kind: ".concat(C.formatSyntaxKind(j.kind)))}return cI(j)&&Ts(K,j.pos).line===Ts(K,j.end).line&&pr(j,1),gn(xn(j,Bt,e));function gn(hn){return hn&&Ye&&jy(j)&&wn(j),ho(j)&&(p=ot),Ye&&!A&&(r=Dt),Gt&&(A=_t),hn===j?hn:hn&&Pr(xo(hn,j),j)}}function Dn(j){return j.parent.kind===174&&yp(j.parent,2)}function oi(j){if(!mHe(j)||Je(j))return;switch(j.kind){case 278:return Zi(j.parent)&&(s=!0),u=!0,oe(j),R.updateExportDeclaration(j,j.modifiers,j.isTypeOnly,j.exportClause,Qn(j,j.moduleSpecifier),Xt(j.attributes));case 277:{if(Zi(j.parent)&&(s=!0),u=!0,j.expression.kind===80)return j;{const Dt=R.createUniqueName("_default",16);r=()=>({diagnosticMessage:m.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:j}),U=j;const Ye=R.createVariableDeclaration(Dt,void 0,G.createTypeOfExpression(j.expression,j,nT,N),void 0);U=void 0;const _t=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([Ye],2));return xo(_t,j),Fk(j),[_t,R.updateExportAssignment(j,j.modifiers,Dt)]}}}const ot=Ro(j);return b.set(Wu(j),ot),j}function yi(j){if(ru(j)||yp(j,2048)||!km(j))return j;const ot=R.createModifiersFromModifierFlags(pd(j)&131039);return R.replaceModifiers(j,ot)}function eo(j,ot,Dt,Ye){const _t=R.updateModuleDeclaration(j,ot,Dt,Ye);if(ku(_t)||_t.flags&32)return _t;const Gt=R.createModuleDeclaration(_t.modifiers,_t.name,_t.body,_t.flags|32);return Pr(Gt,_t),ut(Gt,_t),Gt}function Ro(j){if(f)for(;Vx(f,j););if(Je(j))return;switch(j.kind){case 271:{const gn=Di(j);return gn&&oe(j),gn}case 272:{const gn=Ir(j);return gn&&oe(j),gn}}if(Ju(j)&&Cn(j)||Qo(j)&&G.isImplementationOfOverload(j))return;let ot;ho(j)&&(ot=p,p=j);const Dt=d7(j),Ye=r;Dt&&(r=$v(j));const _t=i;switch(j.kind){case 265:{i=!1;const gn=Gt(R.updateTypeAliasDeclaration(j,Pt(j),j.name,Bn(j.typeParameters,Bt,gl),C.checkDefined(rt(j.type,Bt,Ui))));return i=_t,gn}case 264:return Gt(R.updateInterfaceDeclaration(j,Pt(j),j.name,gi(j,j.typeParameters),dt(j.heritageClauses),Bn(j.members,Bt,yS)));case 262:{const gn=Gt(R.updateFunctionDeclaration(j,Pt(j),void 0,j.name,gi(j,j.typeParameters),tn(j,j.parameters),$t(j,j.type),void 0));if(gn&&G.isExpandoFunctionDeclaration(j)&&Hn(j)){const hn=G.getPropertiesOfContainerFunction(j),dn=Rh.createModuleDeclaration(void 0,gn.name||R.createIdentifier("_default"),R.createModuleBlock([]),32);Ya(dn,p),dn.locals=ua(hn),dn.symbol=hn[0].parent;const H=[];let We=Hi(hn,Ve=>{if(!lW(Ve.valueDeclaration))return;const ke=ji(Ve.escapedName);if(!tf(ke,99))return;r=$v(Ve.valueDeclaration);const Tt=G.createTypeOfDeclaration(Ve.valueDeclaration,dn,nT,N);r=Ye;const kt=GA(ke),nn=kt?R.getGeneratedNameForNode(Ve.valueDeclaration):R.createIdentifier(ke);kt&&H.push([nn,ke]);const En=R.createVariableDeclaration(nn,void 0,Tt,void 0);return R.createVariableStatement(kt?void 0:[R.createToken(95)],R.createVariableDeclarationList([En]))});H.length?We.push(R.createExportDeclaration(void 0,!1,R.createNamedExports(Ot(H,([Ve,ke])=>R.createExportSpecifier(!1,Ve,ke))))):We=Hi(We,Ve=>R.replaceModifiers(Ve,0));const Lt=R.createModuleDeclaration(Pt(j),j.name,R.createModuleBlock(We),32);if(!yp(gn,2048))return[gn,Lt];const L=R.createModifiersFromModifierFlags(pd(gn)&-2081|128),me=R.updateFunctionDeclaration(gn,L,void 0,gn.name,gn.typeParameters,gn.parameters,gn.type,void 0),q=R.updateModuleDeclaration(Lt,L,Lt.name,Lt.body),fe=R.createExportAssignment(void 0,!1,Lt.name);return Zi(j.parent)&&(s=!0),u=!0,[me,q,fe]}else return gn}case 267:{i=!1;const gn=j.body;if(gn&&gn.kind===268){const hn=l,dn=u;u=!1,l=!1;const H=Bn(gn.statements,oi,qi);let We=nt(H);j.flags&33554432&&(l=!1),!R_(j)&&!pt(We)&&!u&&(l?We=R.createNodeArray([...We,tw(R)]):We=Bn(We,yi,qi));const Lt=R.updateModuleBlock(gn,We);i=_t,l=hn,u=dn;const L=Pt(j);return Gt(eo(j,L,zE(j)?Qn(j,j.name):j.name,Lt))}else{i=_t;const hn=Pt(j);i=!1,rt(gn,oi);const dn=Wu(gn),H=b.get(dn);return b.delete(dn),Gt(eo(j,hn,j.name,H))}}case 263:{O=j.name,U=j;const gn=R.createNodeArray(Pt(j)),hn=gi(j,j.typeParameters),dn=cg(j);let H;if(dn){const fe=r;H=WM(Pi(dn.parameters,Ve=>{if(!$r(Ve,31)||Je(Ve))return;if(r=$v(Ve),Ve.name.kind===80)return xo(R.createPropertyDeclaration(Pt(Ve),Ve.name,Ve.questionToken,$t(Ve,Ve.type),on(Ve)),Ve);return ke(Ve.name);function ke(Tt){let kt;for(const nn of Tt.elements)Hc(nn)||(Zo(nn.name)&&(kt=To(kt,ke(nn.name))),kt=kt||[],kt.push(R.createPropertyDeclaration(Pt(Ve),nn.name,void 0,$t(nn,void 0),void 0)));return kt}})),r=fe}const Lt=St(j.members,fe=>!!fe.name&&Ji(fe.name))?[R.createPropertyDeclaration(void 0,R.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,L=To(To(Lt,H),Bn(j.members,Bt,Zc)),me=R.createNodeArray(L),q=D_(j);if(q&&!jl(q.expression)&&q.expression.kind!==106){const fe=j.name?ji(j.name.escapedText):"default",Ve=R.createUniqueName("".concat(fe,"_base"),16);r=()=>({diagnosticMessage:m.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:q,typeName:j.name});const ke=R.createVariableDeclaration(Ve,void 0,G.createTypeOfExpression(q.expression,j,nT,N),void 0),Tt=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([ke],2)),kt=R.createNodeArray(Ot(j.heritageClauses,nn=>{if(nn.token===96){const En=r;r=$v(nn.types[0]);const nr=R.updateHeritageClause(nn,Ot(nn.types,lr=>R.updateExpressionWithTypeArguments(lr,Ve,Bn(lr.typeArguments,Bt,Ui))));return r=En,nr}return R.updateHeritageClause(nn,Bn(R.createNodeArray(rr(nn.types,En=>jl(En.expression)||En.expression.kind===106)),Bt,Xv))}));return[Tt,Gt(R.updateClassDeclaration(j,gn,j.name,hn,kt,me))]}else{const fe=dt(j.heritageClauses);return Gt(R.updateClassDeclaration(j,gn,j.name,hn,fe,me))}}case 243:return Gt(fa(j));case 266:return Gt(R.updateEnumDeclaration(j,R.createNodeArray(Pt(j)),j.name,R.createNodeArray(Hi(j.members,gn=>{if(Je(gn))return;const hn=G.getConstantValue(gn),dn=hn===void 0?void 0:typeof hn=="string"?R.createStringLiteral(hn):hn<0?R.createPrefixUnaryExpression(41,R.createNumericLiteral(-hn)):R.createNumericLiteral(hn);return xo(R.updateEnumMember(gn,gn.name,dn),gn)}))))}return C.assertNever(j,"Unhandled top-level node in declaration emit: ".concat(C.formatSyntaxKind(j.kind)));function Gt(gn){return ho(j)&&(p=ot),Dt&&(r=Ye),j.kind===267&&(i=_t),gn===j?gn:(U=void 0,O=void 0,gn&&Pr(xo(gn,j),j))}}function fa(j){if(!He(j.declarationList.declarations,yn))return;const ot=Bn(j.declarationList.declarations,Bt,ki);if(!Le(ot))return;const Dt=R.createNodeArray(Pt(j));let Ye;return kL(j.declarationList)||LL(j.declarationList)?(Ye=R.createVariableDeclarationList(ot,2),Pr(Ye,j.declarationList),ut(Ye,j.declarationList),uc(Ye,j.declarationList)):Ye=R.updateVariableDeclarationList(j.declarationList,ot),R.updateVariableStatement(j,Dt,Ye)}function Fa(j){return ra(Hi(j.elements,ot=>An(ot)))}function An(j){if(j.kind!==232&&j.name)return yn(j)?Zo(j.name)?Fa(j.name):R.createVariableDeclaration(j.name,void 0,$t(j,void 0),void 0):void 0}function wn(j){let ot;A||(ot=r,r=pce(j)),O=j.name,C.assert(G.isLateBound(Do(j)));const Ye=j.name.expression;Gi(Ye,p),A||(r=ot),O=void 0}function Je(j){return!!ye&&!!j&&gj(j,K)}function mt(j){return wl(j)||Zl(j)}function pt(j){return St(j,mt)}function Pt(j){const ot=pd(j),Dt=le(j);return ot===Dt?kw(j.modifiers,Ye=>ti(Ye,xa),xa):R.createModifiersFromModifierFlags(Dt)}function le(j){let ot=130030,Dt=i&&!dHe(j)?128:0;const Ye=j.parent.kind===312;return(!Ye||o&&Ye&&dc(j.parent))&&(ot^=128,Dt=0),nRe(j,ot,Dt)}function Fe(j,ot){let Dt=mce(j);return!Dt&&j!==ot.firstAccessor&&(Dt=mce(ot.firstAccessor),r=$v(ot.firstAccessor)),!Dt&&ot.secondAccessor&&j!==ot.secondAccessor&&(Dt=mce(ot.secondAccessor),r=$v(ot.secondAccessor)),Dt}function dt(j){return R.createNodeArray(rr(Ot(j,ot=>R.updateHeritageClause(ot,Bn(R.createNodeArray(rr(ot.types,Dt=>jl(Dt.expression)||ot.token===96&&Dt.expression.kind===106)),Bt,Xv))),ot=>ot.types&&!!ot.types.length))}}function dHe(e){return e.kind===264}function pHe(e,t,r,i){return e.createModifiersFromModifierFlags(nRe(t,r,i))}function nRe(e,t=131070,r=0){let i=pd(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function mce(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function fHe(e){switch(e.kind){case 172:case 171:return!yp(e,2);case 169:case 260:return!0}return!1}function mHe(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function _He(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var nT,hHe=T({"src/compiler/transformers/declarations.ts"(){ta(),yle(),nT=531469}});function gHe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return yJ;case 4:return uce;case 100:case 199:return dce;default:return vJ}}function EJ(e,t,r){return{scriptTransformers:vHe(e,t,r),declarationTransformers:yHe(t)}}function vHe(e,t,r){if(r)return et;const i=ls(e),o=wu(e),s=dP(e),l=[];return Ur(l,t&&Ot(t.before,iRe)),l.push(Hle),e.experimentalDecorators&&l.push(Kle),q3(e)&&l.push(oce),i<99&&l.push(tce),!e.experimentalDecorators&&(i<99||!s)&&l.push(Xle),l.push(qle),i<8&&l.push(ece),i<7&&l.push(Zle),i<6&&l.push(Qle),i<5&&l.push($le),i<4&&l.push(Yle),i<3&&l.push(ace),i<2&&(l.push(sce),l.push(cce)),l.push(gHe(o)),i<1&&l.push(lce),Ur(l,t&&Ot(t.after,iRe)),l}function yHe(e){const t=[];return t.push(bJ),Ur(t,e&&Ot(e.afterDeclarations,EHe)),t}function bHe(e){return t=>FH(t)?e.transformBundle(t):e.transformSourceFile(t)}function rRe(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):bHe(i)}}function iRe(e){return rRe(e,wm)}function EHe(e){return rRe(e,(t,r)=>r)}function qP(e,t){return t}function Ww(e,t,r){r(e,t)}function Fw(e,t,r,i,o,s,l){var u,p;const h=new Array(363);let f,b,A,I=0,R=[],M=[],N=[],O=[],U=0,K=!1,ee=[],V=0,se,G,re=qP,_e=Ww,ye=0;const Q=[],Y={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Sd(()=>Lae(Y)),startLexicalEnvironment:be,suspendLexicalEnvironment:Ue,resumeLexicalEnvironment:it,endLexicalEnvironment:Ft,setLexicalEnvironmentFlags:gt,getLexicalEnvironmentFlags:Qe,hoistVariableDeclaration:Ce,hoistFunctionDeclaration:Oe,addInitializationStatement:At,startBlockScope:It,endBlockScope:on,addBlockScopedVariable:$t,requestEmitHelper:Cn,readEmitHelpers:Hn,enableSubstitution:ie,enableEmitNotification:qe,isSubstitutionEnabled:ge,isEmitNotificationEnabled:Ee,get onSubstituteNode(){return re},set onSubstituteNode(tn){C.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(tn!==void 0,"Value must not be 'undefined'"),re=tn},get onEmitNode(){return _e},set onEmitNode(tn){C.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(tn!==void 0,"Value must not be 'undefined'"),_e=tn},addDiagnostic(tn){Q.push(tn)}};for(const tn of o)bH(jn(Do(tn)));rl("beforeTransform");const oe=s.map(tn=>tn(Y)),he=tn=>{for(const en of oe)tn=en(tn);return tn};ye=1;const Ae=[];for(const tn of o)(u=ar)==null||u.push(ar.Phase.Emit,"transformNodes",tn.kind===312?{path:tn.path}:{kind:tn.kind,pos:tn.pos,end:tn.end}),Ae.push((l?he:de)(tn)),(p=ar)==null||p.pop();return ye=2,rl("afterTransform"),ef("transformTime","beforeTransform","afterTransform"),{transformed:Ae,substituteNode:Ne,emitNodeWithNotification:Me,isEmitNotificationEnabled:Ee,dispose:yn,diagnostics:Q};function de(tn){return tn&&(!Zi(tn)||!tn.isDeclarationFile)?he(tn):tn}function ie(tn){C.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),h[tn]|=1}function ge(tn){return(h[tn.kind]&1)!==0&&(qa(tn)&8)===0}function Ne(tn,en){return C.assert(ye<3,"Cannot substitute a node after the result is disposed."),en&&ge(en)&&re(tn,en)||en}function qe(tn){C.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),h[tn]|=2}function Ee(tn){return(h[tn.kind]&2)!==0||(qa(tn)&4)!==0}function Me(tn,en,gi){C.assert(ye<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),en&&(Ee(en)?_e(tn,en,gi):gi(tn,en))}function Ce(tn){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed.");const en=pr(r.createVariableDeclaration(tn),128);f?f.push(en):f=[en],I&1&&(I|=2)}function Oe(tn){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),pr(tn,2097152),b?b.push(tn):b=[tn]}function At(tn){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),pr(tn,2097152),A?A.push(tn):A=[tn]}function be(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!K,"Lexical environment is suspended."),R[U]=f,M[U]=b,N[U]=A,O[U]=I,U++,f=void 0,b=void 0,A=void 0,I=0}function Ue(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!K,"Lexical environment is already suspended."),K=!0}function it(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(K,"Lexical environment is not suspended."),K=!1}function Ft(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!K,"Lexical environment is suspended.");let tn;if(f||b||A){if(b&&(tn=[...b]),f){const en=r.createVariableStatement(void 0,r.createVariableDeclarationList(f));pr(en,2097152),tn?tn.push(en):tn=[en]}A&&(tn?tn=[...tn,...A]:tn=[...A])}return U--,f=R[U],b=M[U],A=N[U],I=O[U],U===0&&(R=[],M=[],N=[],O=[]),tn}function gt(tn,en){I=en?I|tn:I&~tn}function Qe(){return I}function It(){C.assert(ye>0,"Cannot start a block scope during initialization."),C.assert(ye<2,"Cannot start a block scope after transformation has completed."),ee[V]=se,V++,se=void 0}function on(){C.assert(ye>0,"Cannot end a block scope during initialization."),C.assert(ye<2,"Cannot end a block scope after transformation has completed.");const tn=St(se)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(se.map(en=>r.createVariableDeclaration(en)),1))]:void 0;return V--,se=ee[V],V===0&&(ee=[]),tn}function $t(tn){C.assert(V>0,"Cannot add a block scoped variable outside of an iteration body."),(se||(se=[])).push(tn)}function Cn(tn){if(C.assert(ye>0,"Cannot modify the transformation context during initialization."),C.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),C.assert(!tn.scoped,"Cannot request a scoped emit helper."),tn.dependencies)for(const en of tn.dependencies)Cn(en);G=Rn(G,tn)}function Hn(){C.assert(ye>0,"Cannot modify the transformation context during initialization."),C.assert(ye<2,"Cannot modify the transformation context after transformation has completed.");const tn=G;return G=void 0,tn}function yn(){if(ye<3){for(const tn of o)bH(jn(Do(tn)));f=void 0,R=void 0,b=void 0,M=void 0,re=void 0,_e=void 0,G=void 0,ye=3}}}var SJ,JP,SHe=T({"src/compiler/transformer.ts"(){ta(),fS(),SJ={scriptTransformers:et,declarationTransformers:et},JP={factory:w,getCompilerOptions:()=>({}),getEmitResolver:qo,getEmitHost:qo,getEmitHelperFactory:qo,startLexicalEnvironment:ts,resumeLexicalEnvironment:ts,suspendLexicalEnvironment:ts,endLexicalEnvironment:o0,setLexicalEnvironmentFlags:ts,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:ts,hoistFunctionDeclaration:ts,addInitializationStatement:ts,startBlockScope:ts,endBlockScope:o0,addBlockScopedVariable:ts,requestEmitHelper:ts,readEmitHelpers:qo,enableSubstitution:ts,enableEmitNotification:ts,isSubstitutionEnabled:qo,isEmitNotificationEnabled:qo,onSubstituteNode:qP,onEmitNode:Ww,addDiagnostic:ts}}});function _ce(e){return Il(e,".tsbuildinfo")}function TJ(e,t,r,i=!1,o,s){const l=Ao(r)?r:hU(e,r,i),u=e.getCompilerOptions();if(Os(u)){const p=e.getPrependNodes();if(l.length||p.length){const h=w.createBundle(l,p),f=t(XP(h,e,i),h);if(f)return f}}else{if(!o)for(const p of l){const h=t(XP(p,e,i),p);if(h)return h}if(s){const p=Qv(u);if(p)return t({buildInfoPath:p},void 0)}}}function Qv(e){const t=e.configFilePath;if(!uP(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=Os(e);let i;if(r)i=Ad(r);else{if(!t)return;const o=Ad(t);i=e.outDir?e.rootDir?Py(e.outDir,Im(e.rootDir,o,!0)):Yr(e.outDir,lc(o)):o}return i+".tsbuildinfo"}function KP(e,t){const r=Os(e),i=e.emitDeclarationOnly?void 0:r,o=i&&oRe(i,e),s=t||Cf(e)?Ad(r)+".d.ts":void 0,l=s&&Pk(e)?s+".map":void 0,u=Qv(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:u}}function XP(e,t,r){const i=t.getCompilerOptions();if(e.kind===313)return KP(i,r);{const o=ooe(e.fileName,t,p7(e.fileName,i)),s=rm(e),l=s&&Og(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,p=!u||rm(e)?void 0:oRe(u,i),h=r||Cf(i)&&!s?aoe(e.fileName,t):void 0,f=h&&Pk(i)?h+".map":void 0;return{jsFilePath:u,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:f,buildInfoPath:void 0}}}function oRe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function p7(e,t){return Il(e,".json")?".json":t.jsx===1&&Ic(e,[".jsx",".tsx"])?".jsx":Ic(e,[".mts",".mjs"])?".mjs":Ic(e,[".cts",".cjs"])?".cjs":".js"}function aRe(e,t,r,i){return r?Py(r,Im(i(),e,t)):e}function YP(e,t,r,i=()=>hD(t,r)){return AJ(e,t.options,r,i)}function AJ(e,t,r,i){return A0(aRe(e,r,t.declarationDir||t.outDir,i),I3(e))}function sRe(e,t,r,i=()=>hD(t,r)){if(t.options.emitDeclarationOnly)return;const o=Il(e,".json"),s=IJ(e,t.options,r,i);return!o||Og(e,s,C.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function IJ(e,t,r,i){return A0(aRe(e,r,t.outDir,i),p7(e,t))}function lRe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||et}}function cRe(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=KP(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function uRe(e,t,r,i,o){if(Tu(t))return;const s=sRe(t,e,r,o);if(i(s),!Il(t,".json")&&(s&&e.options.sourceMap&&i("".concat(s,".map")),Cf(e.options))){const l=YP(t,e,r,o);i(l),e.options.declarationMap&&i("".concat(l,".map"))}}function $P(e,t,r,i,o){let s;return e.rootDir?(s=yo(e.rootDir,r),o==null||o(e.rootDir)):e.composite&&e.configFilePath?(s=ri(Lu(e.configFilePath)),o==null||o(s)):s=Ece(t(),r,i),s&&s[s.length-1]!==ol&&(s+=ol),s}function hD({options:e,fileNames:t},r){return $P(e,()=>rr(t,i=>!(e.noEmitForJsFiles&&Ic(i,jR))&&!Tu(i)),ri(Lu(C.checkDefined(e.configFilePath))),Mu(!r))}function f7(e,t){const{addOutput:r,getOutputs:i}=lRe();if(Os(e.options))cRe(e,r);else{const o=Sd(()=>hD(e,t));for(const s of e.fileNames)uRe(e,s,t,r,o);r(Qv(e.options))}return i()}function dRe(e,t,r){t=ha(t),C.assert(Nr(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=lRe();return Os(e.options)?cRe(e,i):uRe(e,t,r,i),o()}function xJ(e,t){if(Os(e.options)){const{jsFilePath:o,declarationFilePath:s}=KP(e.options,!1);return C.checkDefined(o||s,"project ".concat(e.options.configFilePath," expected to have at least one output"))}const r=Sd(()=>hD(e,t));for(const o of e.fileNames){if(Tu(o))continue;const s=sRe(o,e,t,r);if(s)return s;if(!Il(o,".json")&&Cf(e.options))return YP(o,e,t,r)}const i=Qv(e.options);return i||C.fail("project ".concat(e.options.configFilePath," expected to have at least one output"))}function m7(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u){var p=t.getCompilerOptions(),h=p.sourceMap||p.inlineSourceMap||Pk(p)?[]:void 0,f=p.listEmittedFiles?[]:void 0,b=DR(),A=Hv(p),I=pk(A),{enter:R,exit:M}=LG("printTime","beforePrint","afterPrint"),N,O=!1;return R(),TJ(t,U,hU(t,r,u),u,l,!r),M(),{emitSkipped:O,diagnostics:b.getDiagnostics(),emittedFiles:f,sourceMaps:h};function U({jsFilePath:Y,sourceMapFilePath:oe,declarationFilePath:he,declarationMapPath:Ae,buildInfoPath:de},ie){var ge,Ne,qe,Ee,Me,Ce;let Oe;de&&ie&&FH(ie)&&(Oe=ri(yo(de,t.getCurrentDirectory())),N={commonSourceDirectory:At(t.getCommonSourceDirectory()),sourceFiles:ie.sourceFiles.map(be=>At(yo(be.fileName,t.getCurrentDirectory())))}),(ge=ar)==null||ge.push(ar.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Y}),ee(ie,Y,oe,At),(Ne=ar)==null||Ne.pop(),(qe=ar)==null||qe.push(ar.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:he}),V(ie,he,Ae,At),(Ee=ar)==null||Ee.pop(),(Me=ar)==null||Me.push(ar.Phase.Emit,"emitBuildInfo",{buildInfoPath:de}),K(N,de),(Ce=ar)==null||Ce.pop();function At(be){return ME(Im(Oe,be,t.getCanonicalFileName))}}function K(Y,oe){if(!oe||r||O)return;if(t.isEmitBlocked(oe)){O=!0;return}const he=t.getBuildInfo(Y)||zw(void 0,Y);ON(t,b,oe,hce(he),!1,void 0,{buildInfo:he}),f==null||f.push(oe)}function ee(Y,oe,he,Ae){if(!Y||s||!oe)return;if(t.isEmitBlocked(oe)||p.noEmit){O=!0;return}const de=Fw(e,t,w,p,[Y],i,!1),ie={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!N,relativeToBuildInfo:Ae},ge=O0(ie,{hasGlobalName:e.hasGlobalName,onEmitNode:de.emitNodeWithNotification,isEmitNotificationEnabled:de.isEmitNotificationEnabled,substituteNode:de.substituteNode});C.assert(de.transformed.length===1,"Should only see one output from the transform"),G(oe,he,de,ge,p),de.dispose(),N&&(N.js=ge.bundleFileInfo),f&&(f.push(oe),he&&f.push(he))}function V(Y,oe,he,Ae){if(!Y||s===0)return;if(!oe){(s||p.emitDeclarationOnly)&&(O=!0);return}const de=Zi(Y)?[Y]:Y.sourceFiles,ie=u?de:rr(de,jj),ge=Os(p)?[w.createBundle(ie,Zi(Y)?void 0:Y.prepends)]:ie;s&&!Cf(p)&&ie.forEach(se);const Ne=Fw(e,t,w,p,ge,o,!1);if(Le(Ne.diagnostics))for(const Ee of Ne.diagnostics)b.add(Ee);const qe=!!Ne.diagnostics&&!!Ne.diagnostics.length||!!t.isEmitBlocked(oe)||!!p.noEmit;if(O=O||qe,!qe||u){C.assert(Ne.transformed.length===1,"Should only see one output from the decl transform");const Ee={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!u&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!N,recordInternalSection:!!N,relativeToBuildInfo:Ae},Me=O0(Ee,{hasGlobalName:e.hasGlobalName,onEmitNode:Ne.emitNodeWithNotification,isEmitNotificationEnabled:Ne.isEmitNotificationEnabled,substituteNode:Ne.substituteNode});G(oe,he,Ne,Me,{sourceMap:Ee.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),f&&(f.push(oe),he&&f.push(he)),N&&(N.dts=Me.bundleFileInfo)}Ne.dispose()}function se(Y){if(wl(Y)){Y.expression.kind===80&&e.collectLinkedAliases(Y.expression,!0);return}else if(Ku(Y)){e.collectLinkedAliases(Y.propertyName||Y.name,!0);return}Vo(Y,se)}function G(Y,oe,he,Ae,de){const ie=he.transformed[0],ge=ie.kind===313?ie:void 0,Ne=ie.kind===312?ie:void 0,qe=ge?ge.sourceFiles:[Ne];let Ee;re(de,ie)&&(Ee=xle(t,lc(Lu(Y)),_e(de),ye(de,Y,Ne),de)),ge?Ae.writeBundle(ge,I,Ee):Ae.writeFile(Ne,I,Ee);let Me;if(Ee){h&&h.push({inputSourceFileNames:Ee.getSources(),sourceMap:Ee.toJSON()});const Oe=Q(de,Ee,Y,oe,Ne);if(Oe&&(I.isAtStartOfLine()||I.rawWrite(A),Me=I.getTextPos(),I.writeComment("//# sourceMappingURL=".concat(Oe))),oe){const At=Ee.toString();ON(t,b,oe,At,!1,qe),Ae.bundleFileInfo&&(Ae.bundleFileInfo.mapHash=iT(At,t))}}else I.writeLine();const Ce=I.getText();ON(t,b,Y,Ce,!!p.emitBOM,qe,{sourceMapUrlPos:Me,diagnostics:he.diagnostics}),Ae.bundleFileInfo&&(Ae.bundleFileInfo.hash=iT(Ce,t)),I.clear()}function re(Y,oe){return(Y.sourceMap||Y.inlineSourceMap)&&(oe.kind!==312||!Il(oe.fileName,".json"))}function _e(Y){const oe=Lu(Y.sourceRoot||"");return oe&&Vc(oe)}function ye(Y,oe,he){if(Y.sourceRoot)return t.getCommonSourceDirectory();if(Y.mapRoot){let Ae=Lu(Y.mapRoot);return he&&(Ae=ri(R3(he.fileName,t,Ae))),mh(Ae)===0&&(Ae=Yr(t.getCommonSourceDirectory(),Ae)),Ae}return ri(ha(oe))}function Q(Y,oe,he,Ae,de){if(Y.inlineSourceMap){const ge=oe.toString(),Ne=xoe(vu,ge);return"data:application/json;base64,".concat(Ne)}const ie=lc(Lu(C.checkDefined(Ae)));if(Y.mapRoot){let ge=Lu(Y.mapRoot);return de&&(ge=ri(R3(de.fileName,t,ge))),mh(ge)===0?(ge=Yr(t.getCommonSourceDirectory(),ge),encodeURI(RA(ri(ha(he)),Yr(ge,ie),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Yr(ge,ie))}return encodeURI(ie)}}function zw(e,t){return{bundle:t,program:e,version:Te}}function hce(e){return JSON.stringify(e)}function _7(e,t){return xU(e,t)}function THe(e,t,r){var i;const o=C.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&PE(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,u)=>{var A,I;const p=s==null?void 0:s.get(u),h=p==null?void 0:p.directives.map(R=>{const M=ut(w.createStringLiteral(R.expression.text),R.expression),N=ut(w.createExpressionStatement(M),R);return Ya(M,N),N}),f=w.createToken(1),b=w.createSourceFile(h!=null?h:[],f,0);return b.fileName=Im(r.getCurrentDirectory(),yo(l,t),!r.useCaseSensitiveFileNames()),b.text=(A=p==null?void 0:p.text)!=null?A:"",nP(b,0,(I=p==null?void 0:p.text.length)!=null?I:0),BR(b.statements,b),nP(f,b.end,0),Ya(f,b),b})}function gce(e,t,r,i){var o,s;(o=ar)==null||o.push(ar.Phase.Emit,"emitUsingBuildInfo",{},!0),rl("beforeEmit");const l=AHe(e,t,r,i);return rl("afterEmit"),ef("Emit","beforeEmit","afterEmit"),(s=ar)==null||s.pop(),l}function AHe(e,t,r,i){const{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:u,declarationMapPath:p}=KP(e.options,!1),h=t.getBuildInfo(o,e.options.configFilePath);if(!h||!h.bundle||!h.bundle.js||u&&!h.bundle.dts)return o;const f=t.readFile(C.checkDefined(s));if(!f||iT(f,t)!==h.bundle.js.hash)return s;const b=l&&t.readFile(l);if(l&&!b||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&iT(b,t)!==h.bundle.js.mapHash)return l;const A=u&&t.readFile(u);if(u&&!A||u&&iT(A,t)!==h.bundle.dts.hash)return u;const I=p&&t.readFile(p);if(p&&!I||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&iT(I,t)!==h.bundle.dts.mapHash)return p;const R=ri(yo(o,t.getCurrentDirectory())),M=vH(s,f,l,b,u,A,p,I,o,h,!0),N=[],O=XJ(e.projectReferences,r,se=>t.readFile(se),t),U=THe(h.bundle,R,t);let K,ee;const V={getPrependNodes:Sd(()=>[...O,M]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>yo(h.bundle.commonSourceDirectory,R),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:o0,getSourceFileByPath:o0,getSourceFiles:()=>U,getLibFileFromReference:qo,isSourceFileFromExternalLibrary:$m,getResolvedProjectReferenceToRedirect:o0,getProjectReferenceRedirect:o0,isSourceOfProjectReferenceRedirect:$m,writeFile:(se,G,re,_e,ye,Q)=>{switch(se){case s:if(f===G)return;break;case l:if(b===G)return;break;case o:break;case u:if(A===G)return;K=G,ee=Q;break;case p:if(I===G)return;break;default:C.fail("Unexpected path: ".concat(se))}N.push({name:se,text:G,writeByteOrderMark:re,data:Q})},isEmitBlocked:$m,readFile:se=>t.readFile(se),fileExists:se=>t.fileExists(se),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:se=>{const G=h.program;G&&K!==void 0&&e.options.composite&&(G.outSignature=iT(K,t,ee));const{js:re,dts:_e,sourceFiles:ye}=h.bundle;return se.js.sources=re.sources,_e&&(se.dts.sources=_e.sources),se.sourceFiles=ye,zw(G,se)},getSourceFileFromReference:o0,redirectTargetsMap:Zp(),getFileIncludeReasons:qo,createHash:ia(t,t.createHash)};return m7(h7,V,void 0,EJ(e.options,i)),N}function O0(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Ww,isEmitNotificationEnabled:o,substituteNode:s=qP,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:h,onBeforeEmitToken:f,onAfterEmitToken:b}=t,A=!!e.extendedDiagnostics,I=!!e.omitBraceSourceMapPositions,R=Hv(e),M=wu(e),N=new Map,O,U,K,ee,V,se,G,re,_e,ye,Q,Y,oe,he,Ae,de=e.preserveSourceNewlines,ie,ge,Ne,qe=RT,Ee,Me=e.writeBundleFileInfo?{sections:[]}:void 0,Ce=Me?C.checkDefined(e.relativeToBuildInfo):void 0,Oe=e.recordInternalSection,At=0,be="text",Ue=!0,it,Ft,gt=-1,Qe,It=-1,on=-1,$t=-1,Cn=-1,Hn,yn,tn=!1,en=!!e.removeComments,gi,ho,{enter:Gi,exit:xo}=U1e(A,"commentTime","beforeComment","afterComment"),Qn=w.parenthesizer,Di={select:D=>D===0?Qn.parenthesizeLeadingTypeArgument:void 0},Ir=tv();return ot(),{printNode:Xt,printList:nt,printFile:Dn,printBundle:Bt,writeNode:yi,writeList:eo,writeFile:pt,writeBundle:Je,bundleFileInfo:Me};function Xt(D,ae,ht){switch(D){case 0:C.assert(Zi(ae),"Expected a SourceFile node.");break;case 2:C.assert(je(ae),"Expected an Identifier node.");break;case 1:C.assert(bt(ae),"Expected an Expression node.");break}switch(ae.kind){case 312:return Dn(ae);case 313:return Bt(ae);case 314:return oi(ae)}return yi(D,ae,ht,Pt()),le()}function nt(D,ae,ht){return eo(D,ae,ht,Pt()),le()}function Bt(D){return Je(D,Pt(),void 0),le()}function Dn(D){return pt(D,Pt(),void 0),le()}function oi(D){return mt(D,Pt()),le()}function yi(D,ae,ht,ln){const kr=ge;j(ln,void 0),Fe(D,ae,ht),ot(),ge=kr}function eo(D,ae,ht,ln){const kr=ge;j(ln,void 0),ht&&dt(ht),Qs(void 0,ae,D),ot(),ge=kr}function Ro(){return ge.getTextPosWithWriteLine?ge.getTextPosWithWriteLine():ge.getTextPos()}function fa(D,ae,ht){const ln=el(Me.sections);ln&&ln.kind===ht?ln.end=ae:Me.sections.push({pos:D,end:ae,kind:ht})}function Fa(D){if(Oe&&Me&&O&&(Ju(D)||kl(D))&&gj(D,O)&&be!=="internal"){const ae=be;return wn(ge.getTextPos()),At=Ro(),be="internal",ae}}function An(D){D&&(wn(ge.getTextPos()),At=Ro(),be=D)}function wn(D){return At<D?(fa(At,D,be),!0):!1}function Je(D,ae,ht){Ee=!1;const ln=ge;j(ae,ht),yb(D),av(D),nn(D),d_(D);for(const kr of D.prepends){Xc();const Ni=ge.getTextPos(),bi=Me&&Me.sections;if(bi&&(Me.sections=[]),Fe(4,kr,void 0),Me){const io=Me.sections;Me.sections=bi,kr.oldFileOfCurrentEmit?Me.sections.push(...io):(io.forEach(ya=>C.assert(woe(ya))),Me.sections.push({pos:Ni,end:ge.getTextPos(),kind:"prepend",data:Ce(kr.fileName),texts:io}))}}At=Ro();for(const kr of D.sourceFiles)Fe(0,kr,kr);if(Me&&D.sourceFiles.length){const kr=ge.getTextPos();if(wn(kr)){const Ni=L2(D);Ni&&(Me.sources||(Me.sources={}),Me.sources.prologues=Ni);const bi=kt(D);bi&&(Me.sources||(Me.sources={}),Me.sources.helpers=bi)}}ot(),ge=ln}function mt(D,ae){const ht=ge;j(ae,void 0),Fe(4,D,void 0),ot(),ge=ht}function pt(D,ae,ht){Ee=!0;const ln=ge;j(ae,ht),yb(D),av(D),Fe(0,D,D),ot(),ge=ln}function Pt(){return Ne||(Ne=pk(R))}function le(){const D=Ne.getText();return Ne.clear(),D}function Fe(D,ae,ht){ht&&dt(ht),H(D,ae,void 0)}function dt(D){O=D,Hn=void 0,yn=void 0,D&&dv(D)}function j(D,ae){D&&e.omitTrailingSemicolon&&(D=mU(D)),ge=D,it=ae,Ue=!ge||!it}function ot(){U=[],K=[],ee=[],V=new Set,se=[],G=new Map,re=[],_e=0,ye=[],Q=0,Y=[],oe=void 0,he=[],Ae=void 0,O=void 0,Hn=void 0,yn=void 0,j(void 0,void 0)}function Dt(){return Hn||(Hn=Wg(C.checkDefined(O)))}function Ye(D,ae){if(D===void 0)return;const ht=Fa(D);H(4,D,ae),An(ht)}function _t(D){D!==void 0&&H(2,D,void 0)}function Gt(D,ae){D!==void 0&&H(1,D,ae)}function gn(D){H(Ma(D)?6:4,D)}function hn(D){de&&Dm(D)&4&&(de=!1)}function dn(D){de=D}function H(D,ae,ht){ho=ht,L(0,D,ae)(D,ae),ho=void 0}function We(D){return!en&&!Zi(D)}function Lt(D){return!Ue&&!Zi(D)&&!c3(D)&&!KS(D)&&!Qae(D)}function L(D,ae,ht){switch(D){case 0:if(i!==Ww&&(!o||o(ht)))return q;case 1:if(s!==qP&&(gi=s(ae,ht)||ht)!==ht)return ho&&(gi=ho(gi)),Tt;case 2:if(We(ht))return fC;case 3:if(Lt(ht))return iE;case 4:return fe;default:return C.assertNever(D)}}function me(D,ae,ht){return L(D+1,ae,ht)}function q(D,ae){const ht=me(0,D,ae);i(D,ae,ht)}function fe(D,ae){if(l==null||l(ae),de){const ht=de;hn(ae),Ve(D,ae),dn(ht)}else Ve(D,ae);u==null||u(ae),ho=void 0}function Ve(D,ae,ht=!0){if(ht){const ln=EH(ae);if(ln)return bo(D,ae,ln)}if(D===0)return ix(oa(ae,Zi));if(D===2)return ga(oa(ae,je));if(D===6)return lr(oa(ae,Ma),!0);if(D===3)return ke(oa(ae,gl));if(D===7)return $I(oa(ae,mI));if(D===5)return C.assertNode(ae,wH),so(!0);if(D===4){switch(ae.kind){case 16:case 17:case 18:return lr(ae,!1);case 80:return ga(ae);case 81:return Ja(ae);case 166:return Qt(ae);case 167:return Wl(ae);case 168:return to(ae);case 169:return za(ae);case 170:return La(ae);case 171:return ys(ae);case 172:return tc(ae);case 173:return ao(ae);case 174:return ca(ae);case 175:return pu(ae);case 176:return Rs(ae);case 177:case 178:return ka(ae);case 179:return _l(ae);case 180:return wf(ae);case 181:return pc(ae);case 182:return Mo(ae);case 183:return an(ae);case 184:return Hs(ae);case 185:return Cc(ae);case 186:return pe(ae);case 187:return Z(ae);case 188:return we(ae);case 189:return pn(ae);case 190:return br(ae);case 192:return qr(ae);case 193:return Ri(ae);case 194:return hr(ae);case 195:return Ho(ae);case 196:return Nl(ae);case 233:return zt(ae);case 197:return zc();case 198:return Sl(ae);case 199:return Xl(ae);case 200:return Is(ae);case 201:return nc(ae);case 202:return gr(ae);case 203:return op(ae);case 204:return Cl(ae);case 205:return ap(ae);case 206:return Jc(ae);case 207:return Cd(ae);case 208:return Pe(ae);case 239:return Vt(ae);case 240:return cl();case 241:return ir(ae);case 243:return Xr(ae);case 242:return so(!1);case 244:return Ba(ae);case 245:return Ga(ae);case 246:return mu(ae);case 247:return Nc(ae);case 248:return Cp(ae);case 249:return Hd(ae);case 250:return pb(ae);case 251:return Wf(ae);case 252:return Ff(ae);case 253:return mb(ae);case 254:return mf(ae);case 255:return H_(ae);case 256:return _f(ae);case 257:return nv(ae);case 258:return ze(ae);case 259:return Ze(ae);case 260:return Nt(ae);case 261:return Ut(ae);case 262:return vn(ae);case 263:return Yo(ae);case 264:return Zu(ae);case 265:return _u(ae);case 266:return rv(ae);case 267:return H0(ae);case 268:return JI(ae);case 269:return q0(ae);case 270:return ZI(ae);case 271:return ZD(ae);case 272:return tC(ae);case 273:return hT(ae);case 274:return D1(ae);case 280:return C1(ae);case 275:return KI(ae);case 276:return nC(ae);case 277:return XI(ae);case 278:return YI(ae);case 279:return N1(ae);case 281:return _b(ae);case 300:return QI(ae);case 301:return gT(ae);case 282:return;case 283:return J0(ae);case 12:return iv(ae);case 286:case 289:return K0(ae);case 287:case 290:return kh(ae);case 291:return qd(ae);case 292:return Bf(ae);case 293:return Np(ae);case 294:return iC(ae);case 295:return ex(ae);case 296:return X0(ae);case 297:return tx(ae);case 298:return ly(ae);case 299:return nx(ae);case 303:return l_(ae);case 304:return bT(ae);case 305:return Xe(ae);case 306:return c_(ae);case 307:return si(ae);case 314:case 308:return ai(ae);case 309:case 310:return Kn(ae);case 311:return Hr(ae);case 312:return ix(ae);case 313:return C.fail("Bundles should be printed using printBundle");case 315:return C.fail("InputFiles should not be printed");case 316:return ov(ae);case 317:return vb(ae);case 319:return vr("*");case 320:return vr("?");case 321:return fu(ae);case 322:return Rp(ae);case 323:return Ws(ae);case 324:return iu(ae);case 191:case 325:return yt(ae);case 326:return;case 327:return hu(ae);case 329:return ST(ae);case 330:return $0(ae);case 334:case 339:case 344:return ET(ae);case 335:case 336:return cy(ae);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Za(ae);case 346:return u_(ae);case 348:case 355:return TT(ae);case 347:case 349:case 350:case 351:case 356:case 357:return Y0(ae);case 352:return uy(ae);case 353:return P2(ae);case 354:return rx(ae);case 359:return}if(bt(ae)&&(D=1,s!==qP)){const ln=s(D,ae)||ae;ln!==ae&&(ae=ln,ho&&(ae=ho(ae)))}}if(D===1)switch(ae.kind){case 9:case 10:return nr(ae);case 11:case 14:case 15:return lr(ae,!1);case 80:return ga(ae);case 81:return Ja(ae);case 209:return Wt(ae);case 210:return qn(ae);case 211:return Eo(ae);case 212:return ea(ae);case 213:return rc(ae);case 214:return Sc(ae);case 215:return ul(ae);case 216:return vl(ae);case 217:return Ul(ae);case 218:return ic(ae);case 219:return Kc(ae);case 220:return jd(ae);case 221:return Nd(ae);case 222:return Of(ae);case 223:return U_(ae);case 224:return Mh(ae);case 225:return Bu(ae);case 226:return Ir(ae);case 227:return Dp(ae);case 228:return vg(ae);case 229:return Ud(ae);case 230:return te(ae);case 231:return lt(ae);case 232:return;case 234:return Jt(ae);case 235:return F(ae);case 233:return zt(ae);case 238:return De(ae);case 236:return st(ae);case 237:return C.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return os(ae);case 285:return vT(ae);case 288:return rC(ae);case 358:return C.fail("SyntaxList should not be printed");case 359:return;case 360:return Qr(ae);case 361:return wh(ae);case 362:return C.fail("SyntheticReferenceExpression should not be printed")}if(Bd(ae.kind))return w1(ae,ro);if(ij(ae.kind))return w1(ae,vr);C.fail("Unhandled SyntaxKind: ".concat(C.formatSyntaxKind(ae.kind),"."))}function ke(D){Ye(D.name),ur(),ro("in"),ur(),Ye(D.constraint)}function Tt(D,ae){const ht=me(1,D,ae);C.assertIsDefined(gi),ae=gi,gi=void 0,ht(D,ae)}function kt(D){let ae;if(M===0||e.noEmitHelpers)return;const ht=new Map;for(const ln of D.sourceFiles){const kr=iw(ln)!==void 0,Ni=En(ln);if(Ni)for(const bi of Ni)!bi.scoped&&!kr&&!ht.get(bi.name)&&(ht.set(bi.name,!0),(ae||(ae=[])).push(bi.name))}return ae}function nn(D){let ae=!1;const ht=D.kind===313?D:void 0;if(ht&&M===0)return;const ln=ht?ht.prepends.length:0,kr=ht?ht.sourceFiles.length+ln:1;for(let Ni=0;Ni<kr;Ni++){const bi=ht?Ni<ln?ht.prepends[Ni]:ht.sourceFiles[Ni-ln]:D,io=Zi(bi)?bi:KS(bi)?void 0:O,ya=e.noEmitHelpers||!!io&&pse(io),ed=(Zi(bi)||KS(bi))&&!Ee,Md=KS(bi)?bi.helpers:En(bi);if(Md)for(const jf of Md){if(jf.scoped){if(ht)continue}else{if(ya)continue;if(ed){if(N.get(jf.name))continue;N.set(jf.name,!0)}}const Db=Ro();typeof jf.text=="string"?CT(jf.text):CT(jf.text(lx)),Me&&Me.sections.push({pos:Db,end:ge.getTextPos(),kind:"emitHelpers",data:jf.name}),ae=!0}}return ae}function En(D){const ae=SW(D);return ae&&Cv(ae,kae)}function nr(D){lr(D,!1)}function lr(D,ae){const ht=MT(D,e.neverAsciiEscape,ae);(e.sourceMap||e.inlineSourceMap)&&(D.kind===11||wy(D.kind))?Eb(ht):cC(ht)}function ai(D){for(const ae of D.texts)Xc(),Ye(ae)}function si(D){ge.rawWrite(D.parent.text.substring(D.pos,D.end))}function Kn(D){const ae=Ro();si(D),Me&&fa(ae,ge.getTextPos(),D.kind===309?"text":"internal")}function Hr(D){const ae=Ro();if(si(D),Me){const ht=vG(D.section);ht.pos=ae,ht.end=ge.getTextPos(),Me.sections.push(ht)}}function bo(D,ae,ht){switch(ht.kind){case 1:wi(D,ae,ht);break;case 0:vi(D,ae,ht);break}}function wi(D,ae,ht){Q0("${".concat(ht.order,":")),Ve(D,ae,!1),Q0("}")}function vi(D,ae,ht){C.assert(ae.kind===242,"A tab stop cannot be attached to a node of kind ".concat(C.formatSyntaxKind(ae.kind),".")),C.assert(D!==5,"A tab stop cannot be attached to an embedded statement."),Q0("$".concat(ht.order))}function ga(D){(D.symbol?k2:qe)(Bc(D,!1),D.symbol),Qs(D,zS(D),53776)}function Ja(D){qe(Bc(D,!1))}function Qt(D){va(D.left),vr("."),Ye(D.right)}function va(D){D.kind===80?Gt(D):Ye(D)}function Wl(D){const ae=_e,ht=Ae;Ab(),vr("["),Gt(D.expression,Qn.parenthesizeExpressionOfComputedPropertyName),vr("]"),Gf(ae,ht)}function to(D){Eg(D,D.modifiers),Ye(D.name),D.constraint&&(ur(),ro("extends"),ur(),Ye(D.constraint)),D.default&&(ur(),hf("="),ur(),Ye(D.default))}function za(D){Up(D,D.modifiers,!0),Ye(D.dotDotDotToken),yl(D.name,py),Ye(D.questionToken),D.parent&&D.parent.kind===324&&!D.name?Ye(D.type):hm(D.type),bb(D.initializer,D.type?D.type.end:D.questionToken?D.questionToken.end:D.name?D.name.end:D.modifiers?D.modifiers.end:D.pos,D,Qn.parenthesizeExpressionForDisallowedComma)}function La(D){vr("@"),Gt(D.expression,Qn.parenthesizeLeftSideOfAccess)}function ys(D){Eg(D,D.modifiers),yl(D.name,DT),Ye(D.questionToken),hm(D.type),ou()}function tc(D){Up(D,D.modifiers,!0),Ye(D.name),Ye(D.questionToken),Ye(D.exclamationToken),hm(D.type),bb(D.initializer,D.type?D.type.end:D.questionToken?D.questionToken.end:D.name.end,D),ou()}function ao(D){Iu(D),Eg(D,D.modifiers),Ye(D.name),Ye(D.questionToken),q_(D,D.typeParameters),dy(D,D.parameters),hm(D.type),ou(),lp(D)}function ca(D){Up(D,D.modifiers,!0),Ye(D.asteriskToken),Ye(D.name),Ye(D.questionToken),bn(D,$n)}function pu(D){ro("static"),cr(D.body)}function Rs(D){Up(D,D.modifiers,!1),ro("constructor"),bn(D,$n)}function ka(D){const ae=Up(D,D.modifiers,!0),ht=D.kind===177?139:153;Vi(ht,ae,ro,D),ur(),Ye(D.name),bn(D,$n)}function _l(D){Iu(D),q_(D,D.typeParameters),dy(D,D.parameters),hm(D.type),ou(),lp(D)}function wf(D){Iu(D),ro("new"),ur(),q_(D,D.typeParameters),dy(D,D.parameters),hm(D.type),ou(),lp(D)}function pc(D){Up(D,D.modifiers,!1),lC(D,D.parameters),hm(D.type),ou()}function Cl(D){Ye(D.type),Ye(D.literal)}function cl(){ou()}function Mo(D){D.assertsModifier&&(Ye(D.assertsModifier),ur()),Ye(D.parameterName),D.type&&(ur(),ro("is"),ur(),Ye(D.type))}function an(D){Ye(D.typeName),Tg(D,D.typeArguments)}function Hs(D){Iu(D),q_(D,D.typeParameters),sC(D,D.parameters),ur(),vr("=>"),ur(),Ye(D.type),lp(D)}function iu(D){ro("function"),dy(D,D.parameters),vr(":"),Ye(D.type)}function fu(D){vr("?"),Ye(D.type)}function Rp(D){vr("!"),Ye(D.type)}function Ws(D){Ye(D.type),vr("=")}function Cc(D){Iu(D),Eg(D,D.modifiers),ro("new"),ur(),q_(D,D.typeParameters),dy(D,D.parameters),ur(),vr("=>"),ur(),Ye(D.type),lp(D)}function pe(D){ro("typeof"),ur(),Ye(D.exprName),Tg(D,D.typeArguments)}function Z(D){Gf(0,void 0),vr("{");const ae=qa(D)&1?768:32897;Qs(D,D.members,ae|524288),vr("}"),Ab()}function we(D){Ye(D.elementType,Qn.parenthesizeNonArrayTypeOfPostfixType),vr("["),vr("]")}function yt(D){vr("..."),Ye(D.type)}function pn(D){Vi(23,D.pos,vr,D);const ae=qa(D)&1?528:657;Qs(D,D.elements,ae|524288,Qn.parenthesizeElementTypeOfTupleType),Vi(24,D.elements.end,vr,D)}function gr(D){Ye(D.dotDotDotToken),Ye(D.name),Ye(D.questionToken),Vi(59,D.name.end,vr,D),ur(),Ye(D.type)}function br(D){Ye(D.type,Qn.parenthesizeTypeOfOptionalType),vr("?")}function qr(D){Qs(D,D.types,516,Qn.parenthesizeConstituentTypeOfUnionType)}function Ri(D){Qs(D,D.types,520,Qn.parenthesizeConstituentTypeOfIntersectionType)}function hr(D){Ye(D.checkType,Qn.parenthesizeCheckTypeOfConditionalType),ur(),ro("extends"),ur(),Ye(D.extendsType,Qn.parenthesizeExtendsTypeOfConditionalType),ur(),vr("?"),ur(),Ye(D.trueType),ur(),vr(":"),ur(),Ye(D.falseType)}function Ho(D){ro("infer"),ur(),Ye(D.typeParameter)}function Nl(D){vr("("),Ye(D.type),vr(")")}function zc(){ro("this")}function Sl(D){Sb(D.operator,ro),ur();const ae=D.operator===148?Qn.parenthesizeOperandOfReadonlyTypeOperator:Qn.parenthesizeOperandOfTypeOperator;Ye(D.type,ae)}function Xl(D){Ye(D.objectType,Qn.parenthesizeNonArrayTypeOfPostfixType),vr("["),Ye(D.indexType),vr("]")}function Is(D){const ae=qa(D);vr("{"),ae&1?ur():(Xc(),Oh()),D.readonlyToken&&(Ye(D.readonlyToken),D.readonlyToken.kind!==148&&ro("readonly"),ur()),vr("["),H(3,D.typeParameter),D.nameType&&(ur(),ro("as"),ur(),Ye(D.nameType)),vr("]"),D.questionToken&&(Ye(D.questionToken),D.questionToken.kind!==58&&vr("?")),vr(":"),ur(),Ye(D.type),ou(),ae&1?ur():(Xc(),Bm()),Qs(D,D.members,2),vr("}")}function nc(D){Gt(D.literal)}function op(D){Ye(D.head),Qs(D,D.templateSpans,262144)}function ap(D){D.isTypeOf&&(ro("typeof"),ur()),ro("import"),vr("("),Ye(D.argument),D.attributes&&(vr(","),ur(),H(7,D.attributes)),vr(")"),D.qualifier&&(vr("."),Ye(D.qualifier)),Tg(D,D.typeArguments)}function Jc(D){vr("{"),Qs(D,D.elements,525136),vr("}")}function Cd(D){vr("["),Qs(D,D.elements,524880),vr("]")}function Pe(D){Ye(D.dotDotDotToken),D.propertyName&&(Ye(D.propertyName),vr(":"),ur()),Ye(D.name),bb(D.initializer,D.name.end,D,Qn.parenthesizeExpressionForDisallowedComma)}function Wt(D){const ae=D.elements,ht=D.multiLine?65536:0;L1(D,ae,8914|ht,Qn.parenthesizeExpressionForDisallowedComma)}function qn(D){Gf(0,void 0),He(D.properties,sx);const ae=qa(D)&131072;ae&&Oh();const ht=D.multiLine?65536:0,ln=O&&O.languageVersion>=1&&!rm(O)?64:0;Qs(D,D.properties,526226|ln|ht),ae&&Bm(),Ab()}function Eo(D){Gt(D.expression,Qn.parenthesizeLeftSideOfAccess);const ae=D.questionDotToken||bh(w.createToken(25),D.expression.end,D.name.pos),ht=Hp(D,D.expression,ae),ln=Hp(D,ae,D.name);Gm(ht,!1),ae.kind!==29&&Xo(D.expression)&&!ge.hasTrailingComment()&&!ge.hasTrailingWhitespace()&&vr("."),D.questionDotToken?Ye(ae):Vi(ae.kind,D.expression.end,vr,D),Gm(ln,!1),Ye(D.name),Z0(ht,ln)}function Xo(D){if(D=Rm(D),bp(D)){const ae=MT(D,!0,!1);return!(D.numericLiteralFlags&448)&&!ae.includes(pa(25))&&!ae.includes("E")&&!ae.includes("e")}else if(zs(D)){const ae=xae(D);return typeof ae=="number"&&isFinite(ae)&&ae>=0&&Math.floor(ae)===ae}}function ea(D){Gt(D.expression,Qn.parenthesizeLeftSideOfAccess),Ye(D.questionDotToken),Vi(23,D.expression.end,vr,D),Gt(D.argumentExpression),Vi(24,D.argumentExpression.end,vr,D)}function rc(D){const ae=Dm(D)&16;ae&&(vr("("),Eb("0"),vr(","),ur()),Gt(D.expression,Qn.parenthesizeLeftSideOfAccess),ae&&vr(")"),Ye(D.questionDotToken),Tg(D,D.typeArguments),L1(D,D.arguments,2576,Qn.parenthesizeExpressionForDisallowedComma)}function Sc(D){Vi(105,D.pos,ro,D),ur(),Gt(D.expression,Qn.parenthesizeExpressionOfNew),Tg(D,D.typeArguments),L1(D,D.arguments,18960,Qn.parenthesizeExpressionForDisallowedComma)}function ul(D){const ae=Dm(D)&16;ae&&(vr("("),Eb("0"),vr(","),ur()),Gt(D.tag,Qn.parenthesizeLeftSideOfAccess),ae&&vr(")"),Tg(D,D.typeArguments),ur(),Gt(D.template)}function vl(D){vr("<"),Ye(D.type),vr(">"),Gt(D.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Ul(D){const ae=Vi(21,D.pos,vr,D),ht=uC(D.expression,D);Gt(D.expression,void 0),O1(D.expression,D),Z0(ht),Vi(22,D.expression?D.expression.end:ae,vr,D)}function ic(D){qp(D.name),Jn(D)}function Kc(D){Eg(D,D.modifiers),bn(D,ff)}function ff(D){q_(D,D.typeParameters),sC(D,D.parameters),hm(D.type),ur(),Ye(D.equalsGreaterThanToken)}function jd(D){Vi(91,D.pos,ro,D),ur(),Gt(D.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Nd(D){Vi(114,D.pos,ro,D),ur(),Gt(D.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Of(D){Vi(116,D.pos,ro,D),ur(),Gt(D.expression,Qn.parenthesizeOperandOfPrefixUnary)}function U_(D){Vi(135,D.pos,ro,D),ur(),Gt(D.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Mh(D){Sb(D.operator,hf),ev(D)&&ur(),Gt(D.operand,Qn.parenthesizeOperandOfPrefixUnary)}function ev(D){const ae=D.operand;return ae.kind===224&&(D.operator===40&&(ae.operator===40||ae.operator===46)||D.operator===41&&(ae.operator===41||ae.operator===47))}function Bu(D){Gt(D.operand,Qn.parenthesizeOperandOfPostfixUnary),Sb(D.operator,hf)}function tv(){return yF(D,ae,ht,ln,kr,void 0);function D(bi,io){if(io){io.stackIndex++,io.preserveSourceNewlinesStack[io.stackIndex]=de,io.containerPosStack[io.stackIndex]=on,io.containerEndStack[io.stackIndex]=$t,io.declarationListContainerEndStack[io.stackIndex]=Cn;const ya=io.shouldEmitCommentsStack[io.stackIndex]=We(bi),ed=io.shouldEmitSourceMapsStack[io.stackIndex]=Lt(bi);l==null||l(bi),ya&&OT(bi),ed&&px(bi),hn(bi)}else io={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return io}function ae(bi,io,ya){return Ni(bi,ya,"left")}function ht(bi,io,ya){const ed=bi.kind!==28,Md=Hp(ya,ya.left,bi),jf=Hp(ya,bi,ya.right);Gm(Md,ed),Ig(bi.pos),w1(bi,bi.kind===103?ro:hf),Vm(bi.end,!0),Gm(jf,!0)}function ln(bi,io,ya){return Ni(bi,ya,"right")}function kr(bi,io){const ya=Hp(bi,bi.left,bi.operatorToken),ed=Hp(bi,bi.operatorToken,bi.right);if(Z0(ya,ed),io.stackIndex>0){const Md=io.preserveSourceNewlinesStack[io.stackIndex],jf=io.containerPosStack[io.stackIndex],Db=io.containerEndStack[io.stackIndex],Si=io.declarationListContainerEndStack[io.stackIndex],zh=io.shouldEmitCommentsStack[io.stackIndex],Un=io.shouldEmitSourceMapsStack[io.stackIndex];dn(Md),Un&&zT(bi),zh&&mC(bi,jf,Db,Si),u==null||u(bi),io.stackIndex--}}function Ni(bi,io,ya){const ed=ya==="left"?Qn.getParenthesizeLeftSideOfBinaryForOperator(io.operatorToken.kind):Qn.getParenthesizeRightSideOfBinaryForOperator(io.operatorToken.kind);let Md=L(0,1,bi);if(Md===Tt&&(C.assertIsDefined(gi),bi=ed(oa(gi,bt)),Md=me(1,1,bi),gi=void 0),(Md===fC||Md===iE||Md===fe)&&mr(bi))return bi;ho=ed,Md(1,bi)}}function Dp(D){const ae=Hp(D,D.condition,D.questionToken),ht=Hp(D,D.questionToken,D.whenTrue),ln=Hp(D,D.whenTrue,D.colonToken),kr=Hp(D,D.colonToken,D.whenFalse);Gt(D.condition,Qn.parenthesizeConditionOfConditionalExpression),Gm(ae,!0),Ye(D.questionToken),Gm(ht,!0),Gt(D.whenTrue,Qn.parenthesizeBranchOfConditionalExpression),Z0(ae,ht),Gm(ln,!0),Ye(D.colonToken),Gm(kr,!0),Gt(D.whenFalse,Qn.parenthesizeBranchOfConditionalExpression),Z0(ln,kr)}function vg(D){Ye(D.head),Qs(D,D.templateSpans,262144)}function Ud(D){Vi(127,D.pos,ro,D),Ye(D.asteriskToken),M1(D.expression&&zf(D.expression),fb)}function te(D){Vi(26,D.pos,vr,D),Gt(D.expression,Qn.parenthesizeExpressionForDisallowedComma)}function lt(D){qp(D.name),Qa(D)}function zt(D){Gt(D.expression,Qn.parenthesizeLeftSideOfAccess),Tg(D,D.typeArguments)}function Jt(D){Gt(D.expression,void 0),D.type&&(ur(),ro("as"),ur(),Ye(D.type))}function F(D){Gt(D.expression,Qn.parenthesizeLeftSideOfAccess),hf("!")}function De(D){Gt(D.expression,void 0),D.type&&(ur(),ro("satisfies"),ur(),Ye(D.type))}function st(D){k1(D.keywordToken,D.pos,vr),vr("."),Ye(D.name)}function Vt(D){Gt(D.expression),Ye(D.literal)}function ir(D){ni(D,!D.multiLine&&PT(D))}function ni(D,ae){Vi(19,D.pos,vr,D);const ht=ae||qa(D)&1?768:129;Qs(D,D.statements,ht),Vi(20,D.statements.end,vr,D,!!(ht&1))}function Xr(D){Up(D,D.modifiers,!1),Ye(D.declarationList),ou()}function so(D){D?vr(";"):ou()}function Ba(D){Gt(D.expression,Qn.parenthesizeExpressionOfExpressionStatement),(!O||!rm(O)||Ys(D.expression))&&ou()}function Ga(D){const ae=Vi(101,D.pos,ro,D);ur(),Vi(21,ae,vr,D),Gt(D.expression),Vi(22,D.expression.end,vr,D),Sg(D,D.thenStatement),D.elseStatement&&(lv(D,D.thenStatement,D.elseStatement),Vi(93,D.thenStatement.end,ro,D),D.elseStatement.kind===245?(ur(),Ye(D.elseStatement)):Sg(D,D.elseStatement))}function Fl(D,ae){const ht=Vi(117,ae,ro,D);ur(),Vi(21,ht,vr,D),Gt(D.expression),Vi(22,D.expression.end,vr,D)}function mu(D){Vi(92,D.pos,ro,D),Sg(D,D.statement),Jo(D.statement)&&!de?ur():lv(D,D.statement,D.expression),Fl(D,D.statement.end),ou()}function Nc(D){Fl(D,D.pos),Sg(D,D.statement)}function Cp(D){const ae=Vi(99,D.pos,ro,D);ur();let ht=Vi(21,ae,vr,D);ps(D.initializer),ht=Vi(27,D.initializer?D.initializer.end:ht,vr,D),M1(D.condition),ht=Vi(27,D.condition?D.condition.end:ht,vr,D),M1(D.incrementor),Vi(22,D.incrementor?D.incrementor.end:ht,vr,D),Sg(D,D.statement)}function Hd(D){const ae=Vi(99,D.pos,ro,D);ur(),Vi(21,ae,vr,D),ps(D.initializer),ur(),Vi(103,D.initializer.end,ro,D),ur(),Gt(D.expression),Vi(22,D.expression.end,vr,D),Sg(D,D.statement)}function pb(D){const ae=Vi(99,D.pos,ro,D);ur(),AT(D.awaitModifier),Vi(21,ae,vr,D),ps(D.initializer),ur(),Vi(165,D.initializer.end,ro,D),ur(),Gt(D.expression),Vi(22,D.expression.end,vr,D),Sg(D,D.statement)}function ps(D){D!==void 0&&(D.kind===261?Ye(D):Gt(D))}function Wf(D){Vi(88,D.pos,ro,D),sv(D.label),ou()}function Ff(D){Vi(83,D.pos,ro,D),sv(D.label),ou()}function Vi(D,ae,ht,ln,kr){const Ni=Do(ln),bi=Ni&&Ni.kind===ln.kind,io=ae;if(bi&&O&&(ae=wa(O.text,ae)),bi&&ln.pos!==io){const ya=kr&&O&&!Rf(io,ae,O);ya&&Oh(),Ig(io),ya&&Bm()}if(!I&&(D===19||D===20)?ae=k1(D,ae,ht,ln):ae=Sb(D,ht,ae),bi&&ln.end!==ae){const ya=ln.kind===294;Vm(ae,!ya,ya)}return ae}function Lh(D){return D.kind===2||!!D.hasTrailingNewLine}function yg(D){if(!O)return!1;const ae=Zh(O.text,D.pos);if(ae){const ht=Do(D);if(ht&&Gd(ht.parent))return!0}return St(ae,Lh)||St(UR(D),Lh)?!0:oF(D)?D.pos!==D.expression.pos&&St(l0(O.text,D.expression.pos),Lh)?!0:yg(D.expression):!1}function zf(D){if(!en&&oF(D)&&yg(D)){const ae=Do(D);if(ae&&Gd(ae)){const ht=w.createParenthesizedExpression(D.expression);return Pr(ht,D),ut(ht,ae),ht}return w.createParenthesizedExpression(D)}return D}function fb(D){return zf(Qn.parenthesizeExpressionForDisallowedComma(D))}function mb(D){Vi(107,D.pos,ro,D),M1(D.expression&&zf(D.expression),zf),ou()}function mf(D){const ae=Vi(118,D.pos,ro,D);ur(),Vi(21,ae,vr,D),Gt(D.expression),Vi(22,D.expression.end,vr,D),Sg(D,D.statement)}function H_(D){const ae=Vi(109,D.pos,ro,D);ur(),Vi(21,ae,vr,D),Gt(D.expression),Vi(22,D.expression.end,vr,D),ur(),Ye(D.caseBlock)}function _f(D){Ye(D.label),Vi(59,D.label.end,vr,D),ur(),Ye(D.statement)}function nv(D){Vi(111,D.pos,ro,D),M1(zf(D.expression),zf),ou()}function ze(D){Vi(113,D.pos,ro,D),ur(),Ye(D.tryBlock),D.catchClause&&(lv(D,D.tryBlock,D.catchClause),Ye(D.catchClause)),D.finallyBlock&&(lv(D,D.catchClause||D.tryBlock,D.finallyBlock),Vi(98,(D.catchClause||D.tryBlock).end,ro,D),ur(),Ye(D.finallyBlock))}function Ze(D){k1(89,D.pos,ro),ou()}function Nt(D){var kr,Ni;var ae,ht,ln;Ye(D.name),Ye(D.exclamationToken),hm(D.type),bb(D.initializer,(Ni=(kr=(ae=D.type)==null?void 0:ae.end)!=null?kr:(ln=(ht=D.name.emitNode)==null?void 0:ht.typeNode)==null?void 0:ln.end)!=null?Ni:D.name.end,D,Qn.parenthesizeExpressionForDisallowedComma)}function Ut(D){if(LL(D))ro("await"),ur(),ro("using");else{const ae=X4(D)?"let":dR(D)?"const":kL(D)?"using":"var";ro(ae)}ur(),Qs(D,D.declarations,528)}function vn(D){Jn(D)}function Jn(D){Up(D,D.modifiers,!1),ro("function"),Ye(D.asteriskToken),ur(),_t(D.name),bn(D,$n)}function bn(D,ae){const ht=D.body;if(ht)if(Jo(ht)){const ln=qa(D)&131072;ln&&Oh(),Iu(D),He(D.parameters,au),au(D.body),ae(D),cr(ht),lp(D),ln&&Bm()}else ae(D),ur(),Gt(ht,Qn.parenthesizeConciseBodyOfArrowFunction);else ae(D),ou()}function $n(D){q_(D,D.typeParameters),dy(D,D.parameters),hm(D.type)}function fi(D){if(qa(D)&1)return!0;if(D.multiLine||!Ys(D)&&O&&!OS(D,O)||Ag(D,$c(D.statements),2)||ax(D,el(D.statements),2,D.statements))return!1;let ae;for(const ht of D.statements){if(Tb(ae,ht,2)>0)return!1;ae=ht}return!0}function cr(D){l==null||l(D),ur(),vr("{"),Oh();const ae=fi(D)?ei:fr;xr(D,D.statements,ae),Bm(),k1(20,D.statements.end,vr,D),u==null||u(D)}function ei(D){fr(D,!0)}function fr(D,ae){const ht=Jd(D.statements),ln=ge.getTextPos();nn(D),ht===0&&ln===ge.getTextPos()&&ae?(Bm(),Qs(D,D.statements,768),Oh()):Qs(D,D.statements,1,void 0,ht)}function Yo(D){Qa(D)}function Qa(D){Gf(0,void 0),He(D.members,sx),Up(D,D.modifiers,!0),Vi(86,L_(D).pos,ro,D),D.name&&(ur(),_t(D.name));const ae=qa(D)&131072;ae&&Oh(),q_(D,D.typeParameters),Qs(D,D.heritageClauses,0),ur(),vr("{"),Qs(D,D.members,129),vr("}"),ae&&Bm(),Ab()}function Zu(D){Gf(0,void 0),Up(D,D.modifiers,!1),ro("interface"),ur(),Ye(D.name),q_(D,D.typeParameters),Qs(D,D.heritageClauses,512),ur(),vr("{"),Qs(D,D.members,129),vr("}"),Ab()}function _u(D){Up(D,D.modifiers,!1),ro("type"),ur(),Ye(D.name),q_(D,D.typeParameters),ur(),vr("="),ur(),Ye(D.type),ou()}function rv(D){Up(D,D.modifiers,!1),ro("enum"),ur(),Ye(D.name),ur(),vr("{"),Qs(D,D.members,145),vr("}")}function H0(D){Up(D,D.modifiers,!1),~D.flags&2048&&(ro(D.flags&32?"namespace":"module"),ur()),Ye(D.name);let ae=D.body;if(!ae)return ou();for(;ae&&Ql(ae);)vr("."),Ye(ae.name),ae=ae.body;ur(),Ye(ae)}function JI(D){Iu(D),He(D.statements,au),ni(D,PT(D)),lp(D)}function q0(D){Vi(19,D.pos,vr,D),Qs(D,D.clauses,129),Vi(20,D.clauses.end,vr,D,!0)}function ZD(D){Up(D,D.modifiers,!1),Vi(102,D.modifiers?D.modifiers.end:D.pos,ro,D),ur(),D.isTypeOnly&&(Vi(156,D.pos,ro,D),ur()),Ye(D.name),ur(),Vi(64,D.name.end,vr,D),ur(),eC(D.moduleReference),ou()}function eC(D){D.kind===80?Gt(D):Ye(D)}function tC(D){Up(D,D.modifiers,!1),Vi(102,D.modifiers?D.modifiers.end:D.pos,ro,D),ur(),D.importClause&&(Ye(D.importClause),ur(),Vi(161,D.importClause.end,ro,D),ur()),Gt(D.moduleSpecifier),D.attributes&&sv(D.attributes),ou()}function hT(D){D.isTypeOnly&&(Vi(156,D.pos,ro,D),ur()),Ye(D.name),D.name&&D.namedBindings&&(Vi(28,D.name.end,vr,D),ur()),Ye(D.namedBindings)}function D1(D){const ae=Vi(42,D.pos,vr,D);ur(),Vi(130,ae,ro,D),ur(),Ye(D.name)}function KI(D){hb(D)}function nC(D){bg(D)}function XI(D){const ae=Vi(95,D.pos,ro,D);ur(),D.isExportEquals?Vi(64,ae,hf,D):Vi(90,ae,ro,D),ur(),Gt(D.expression,D.isExportEquals?Qn.getParenthesizeRightSideOfBinaryForOperator(64):Qn.parenthesizeExpressionOfExportDefault),ou()}function YI(D){Up(D,D.modifiers,!1);let ae=Vi(95,D.pos,ro,D);if(ur(),D.isTypeOnly&&(ae=Vi(156,ae,ro,D),ur()),D.exportClause?Ye(D.exportClause):ae=Vi(42,ae,vr,D),D.moduleSpecifier){ur();const ht=D.exportClause?D.exportClause.end:ae;Vi(161,ht,ro,D),ur(),Gt(D.moduleSpecifier)}D.attributes&&sv(D.attributes),ou()}function $I(D){vr("{"),ur(),ro(D.token===132?"assert":"with"),vr(":"),ur();const ae=D.elements;Qs(D,ae,526226),ur(),vr("}")}function QI(D){Vi(D.token,D.pos,ro,D),ur();const ae=D.elements;Qs(D,ae,526226)}function gT(D){Ye(D.name),vr(":"),ur();const ae=D.value;if((qa(ae)&1024)===0){const ht=w_(ae);Vm(ht.pos)}Ye(ae)}function ZI(D){let ae=Vi(95,D.pos,ro,D);ur(),ae=Vi(130,ae,ro,D),ur(),ae=Vi(145,ae,ro,D),ur(),Ye(D.name),ou()}function C1(D){const ae=Vi(42,D.pos,vr,D);ur(),Vi(130,ae,ro,D),ur(),Ye(D.name)}function N1(D){hb(D)}function _b(D){bg(D)}function hb(D){vr("{"),Qs(D,D.elements,525136),vr("}")}function bg(D){D.isTypeOnly&&(ro("type"),ur()),D.propertyName&&(Ye(D.propertyName),ur(),Vi(130,D.propertyName.end,ro,D),ur()),Ye(D.name)}function J0(D){ro("require"),vr("("),Gt(D.expression),vr(")")}function os(D){Ye(D.openingElement),Qs(D,D.children,262144),Ye(D.closingElement)}function vT(D){vr("<"),gb(D.tagName),Tg(D,D.typeArguments),ur(),Ye(D.attributes),vr("/>")}function rC(D){Ye(D.openingFragment),Qs(D,D.children,262144),Ye(D.closingFragment)}function K0(D){if(vr("<"),W_(D)){const ae=uC(D.tagName,D);gb(D.tagName),Tg(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&ur(),Ye(D.attributes),O1(D.attributes,D),Z0(ae)}vr(">")}function iv(D){ge.writeLiteral(D.text)}function kh(D){vr("</"),l1(D)&&gb(D.tagName),vr(">")}function Bf(D){Qs(D,D.properties,262656)}function qd(D){Ye(D.name),Fm("=",vr,D.initializer,gn)}function Np(D){vr("{..."),Gt(D.expression),vr("}")}function sp(D){let ae=!1;return iL((O==null?void 0:O.text)||"",D+1,()=>ae=!0),ae}function sy(D){let ae=!1;return rL((O==null?void 0:O.text)||"",D+1,()=>ae=!0),ae}function yT(D){return sp(D)||sy(D)}function iC(D){var ae;if(D.expression||!en&&!Ys(D)&&yT(D.pos)){const ht=O&&!Ys(D)&&Ts(O,D.pos).line!==Ts(O,D.end).line;ht&&ge.increaseIndent();const ln=Vi(19,D.pos,vr,D);Ye(D.dotDotDotToken),Gt(D.expression),Vi(20,((ae=D.expression)==null?void 0:ae.end)||ln,vr,D),ht&&ge.decreaseIndent()}}function ex(D){_t(D.namespace),vr(":"),_t(D.name)}function gb(D){D.kind===80?Gt(D):Ye(D)}function X0(D){Vi(84,D.pos,ro,D),ur(),Gt(D.expression,Qn.parenthesizeExpressionForDisallowedComma),Tc(D,D.statements,D.expression.end)}function tx(D){const ae=Vi(90,D.pos,ro,D);Tc(D,D.statements,ae)}function Tc(D,ae,ht){const ln=ae.length===1&&(!O||Ys(D)||Ys(ae[0])||W3(D,ae[0],O));let kr=163969;ln?(k1(59,ht,vr,D),ur(),kr&=-130):Vi(59,ht,vr,D),Qs(D,ae,kr)}function ly(D){ur(),Sb(D.token,ro),ur(),Qs(D,D.types,528)}function nx(D){const ae=Vi(85,D.pos,ro,D);ur(),D.variableDeclaration&&(Vi(21,ae,vr,D),Ye(D.variableDeclaration),Vi(22,D.variableDeclaration.end,vr,D),ur()),Ye(D.block)}function l_(D){Ye(D.name),vr(":"),ur();const ae=D.initializer;if((qa(ae)&1024)===0){const ht=w_(ae);Vm(ht.pos)}Gt(ae,Qn.parenthesizeExpressionForDisallowedComma)}function bT(D){Ye(D.name),D.objectAssignmentInitializer&&(ur(),vr("="),ur(),Gt(D.objectAssignmentInitializer,Qn.parenthesizeExpressionForDisallowedComma))}function Xe(D){D.expression&&(Vi(26,D.pos,vr,D),Gt(D.expression,Qn.parenthesizeExpressionForDisallowedComma))}function c_(D){Ye(D.name),bb(D.initializer,D.name.end,D,Qn.parenthesizeExpressionForDisallowedComma)}function hu(D){if(qe("/**"),D.comment){const ae=fL(D.comment);if(ae){const ht=ae.split(/\r\n?|\n/g);for(const ln of ht)Xc(),ur(),vr("*"),ur(),qe(ln)}}D.tags&&(D.tags.length===1&&D.tags[0].kind===351&&!D.comment?(ur(),Ye(D.tags[0])):Qs(D,D.tags,33)),ur(),qe("*/")}function Y0(D){mm(D.tagName),ov(D.typeExpression),_m(D.comment)}function rx(D){mm(D.tagName),Ye(D.name),_m(D.comment)}function vb(D){ur(),vr("{"),Ye(D.name),vr("}")}function cy(D){mm(D.tagName),ur(),vr("{"),Ye(D.class),vr("}"),_m(D.comment)}function uy(D){mm(D.tagName),ov(D.constraint),ur(),Qs(D,D.typeParameters,528),_m(D.comment)}function P2(D){mm(D.tagName),D.typeExpression&&(D.typeExpression.kind===316?ov(D.typeExpression):(ur(),vr("{"),qe("Object"),D.typeExpression.isArrayType&&(vr("["),vr("]")),vr("}"))),D.fullName&&(ur(),Ye(D.fullName)),_m(D.comment),D.typeExpression&&D.typeExpression.kind===329&&ST(D.typeExpression)}function Za(D){mm(D.tagName),D.name&&(ur(),Ye(D.name)),_m(D.comment),$0(D.typeExpression)}function u_(D){_m(D.comment),$0(D.typeExpression)}function ET(D){mm(D.tagName),_m(D.comment)}function ST(D){Qs(D,w.createNodeArray(D.jsDocPropertyTags),33)}function $0(D){D.typeParameters&&Qs(D,w.createNodeArray(D.typeParameters),33),D.parameters&&Qs(D,w.createNodeArray(D.parameters),33),D.type&&(Xc(),ur(),vr("*"),ur(),Ye(D.type))}function TT(D){mm(D.tagName),ov(D.typeExpression),ur(),D.isBracketed&&vr("["),Ye(D.name),D.isBracketed&&vr("]"),_m(D.comment)}function mm(D){vr("@"),Ye(D)}function _m(D){const ae=fL(D);ae&&(ur(),qe(ae))}function ov(D){D&&(ur(),vr("{"),Ye(D.type),vr("}"))}function ix(D){Xc();const ae=D.statements;if(ae.length===0||!Cm(ae[0])||Ys(ae[0])){xr(D,ae,Xi);return}Xi(D)}function d_(D){P1(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[]);for(const ae of D.prepends)if(KS(ae)&&ae.syntheticReferences)for(const ht of ae.syntheticReferences)Ye(ht),Xc()}function oC(D){D.isDeclarationFile&&P1(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function P1(D,ae,ht,ln){if(D){const kr=ge.getTextPos();J_('/// <reference no-default-lib="true"/>'),Me&&Me.sections.push({pos:kr,end:ge.getTextPos(),kind:"no-default-lib"}),Xc()}if(O&&O.moduleName&&(J_('/// <amd-module name="'.concat(O.moduleName,'" />')),Xc()),O&&O.amdDependencies)for(const kr of O.amdDependencies)kr.name?J_('/// <amd-dependency name="'.concat(kr.name,'" path="').concat(kr.path,'" />')):J_('/// <amd-dependency path="'.concat(kr.path,'" />')),Xc();for(const kr of ae){const Ni=ge.getTextPos();J_('/// <reference path="'.concat(kr.fileName,'" />')),Me&&Me.sections.push({pos:Ni,end:ge.getTextPos(),kind:"reference",data:kr.fileName}),Xc()}for(const kr of ht){const Ni=ge.getTextPos(),bi=kr.resolutionMode&&kr.resolutionMode!==(O==null?void 0:O.impliedNodeFormat)?'resolution-mode="'.concat(kr.resolutionMode===99?"import":"require",'"'):"";J_('/// <reference types="'.concat(kr.fileName,'" ').concat(bi,"/>")),Me&&Me.sections.push({pos:Ni,end:ge.getTextPos(),kind:kr.resolutionMode?kr.resolutionMode===99?"type-import":"type-require":"type",data:kr.fileName}),Xc()}for(const kr of ln){const Ni=ge.getTextPos();J_('/// <reference lib="'.concat(kr.fileName,'" />')),Me&&Me.sections.push({pos:Ni,end:ge.getTextPos(),kind:"lib",data:kr.fileName}),Xc()}}function Xi(D){const ae=D.statements;Iu(D),He(D.statements,au),nn(D);const ht=Br(ae,ln=>!Cm(ln));oC(D),Qs(D,ae,1,void 0,ht===-1?ae.length:ht),lp(D)}function Qr(D){const ae=qa(D);!(ae&1024)&&D.pos!==D.expression.pos&&Vm(D.expression.pos),Gt(D.expression),!(ae&2048)&&D.end!==D.expression.end&&Ig(D.expression.end)}function wh(D){L1(D,D.elements,528,void 0)}function Jd(D,ae,ht,ln){let kr=!!ae;for(let Ni=0;Ni<D.length;Ni++){const bi=D[Ni];if(Cm(bi)){if(ht?!ht.has(bi.expression.text):!0){kr&&(kr=!1,dt(ae)),Xc();const ya=ge.getTextPos();Ye(bi),ln&&Me&&Me.sections.push({pos:ya,end:ge.getTextPos(),kind:"prologue",data:bi.expression.text}),ht&&ht.add(bi.expression.text)}}else return Ni}return D.length}function M2(D,ae){for(const ht of D)if(!ae.has(ht.data)){Xc();const ln=ge.getTextPos();Ye(ht),Me&&Me.sections.push({pos:ln,end:ge.getTextPos(),kind:"prologue",data:ht.data}),ae&&ae.add(ht.data)}}function av(D){if(Zi(D))Jd(D.statements,D);else{const ae=new Set;for(const ht of D.prepends)M2(ht.prologues,ae);for(const ht of D.sourceFiles)Jd(ht.statements,ht,ae,!0);dt(void 0)}}function L2(D){const ae=new Set;let ht;for(let ln=0;ln<D.sourceFiles.length;ln++){const kr=D.sourceFiles[ln];let Ni,bi=0;for(const io of kr.statements){if(!Cm(io))break;ae.has(io.expression.text)||(ae.add(io.expression.text),(Ni||(Ni=[])).push({pos:io.pos,end:io.end,expression:{pos:io.expression.pos,end:io.expression.end,text:io.expression.text}}),bi=bi<io.end?io.end:bi)}Ni&&(ht||(ht=[])).push({file:ln,text:kr.text.substring(0,bi),directives:Ni})}return ht}function yb(D){if(Zi(D)||KS(D)){const ae=h4(D.text);if(ae)return J_(ae),Xc(),!0}else{for(const ae of D.prepends)if(C.assertNode(ae,KS),yb(ae))return!0;for(const ae of D.sourceFiles)if(yb(ae))return!0}}function yl(D,ae){if(!D)return;const ht=qe;qe=ae,Ye(D),qe=ht}function Up(D,ae,ht){if(ae!=null&&ae.length){if(Yn(ae,xa))return Eg(D,ae);if(Yn(ae,Su))return ht?ox(D,ae):D.pos;p==null||p(ae);let ln,kr,Ni=0,bi=0,io;for(;Ni<ae.length;){for(;bi<ae.length;){if(io=ae[bi],kr=Su(io)?"decorators":"modifiers",ln===void 0)ln=kr;else if(kr!==ln)break;bi++}const ya={pos:-1,end:-1};Ni===0&&(ya.pos=ae.pos),bi===ae.length-1&&(ya.end=ae.end),(ln==="modifiers"||ht)&&zm(Ye,D,ae,ln==="modifiers"?2359808:2146305,void 0,Ni,bi-Ni,!1,ya),Ni=bi,ln=kr,bi++}if(h==null||h(ae),io&&!t_(io.end))return io.end}return D.pos}function Eg(D,ae){Qs(D,ae,2359808);const ht=el(ae);return ht&&!t_(ht.end)?ht.end:D.pos}function hm(D){D&&(vr(":"),ur(),Ye(D))}function bb(D,ae,ht,ln){D&&(ur(),Vi(64,ae,hf,ht),ur(),Gt(D,ln))}function Fm(D,ae,ht,ln){ht&&(ae(D),ln(ht))}function sv(D){D&&(ur(),Ye(D))}function M1(D,ae){D&&(ur(),Gt(D,ae))}function AT(D){D&&(Ye(D),ur())}function Sg(D,ae){Jo(ae)||qa(D)&1||de&&!Ag(D,ae,0)?(ur(),Ye(ae)):(Xc(),Oh(),wH(ae)?H(5,ae):Ye(ae),Bm())}function ox(D,ae){Qs(D,ae,2146305);const ht=el(ae);return ht&&!t_(ht.end)?ht.end:D.pos}function Tg(D,ae){Qs(D,ae,53776,Di)}function q_(D,ae){if(Qo(D)&&D.typeArguments)return Tg(D,D.typeArguments);Qs(D,ae,53776)}function dy(D,ae){Qs(D,ae,2576)}function aC(D,ae){const ht=ch(ae);return ht&&ht.pos===D.pos&&Us(D)&&!D.type&&!St(D.modifiers)&&!St(D.typeParameters)&&!St(ht.modifiers)&&!ht.dotDotDotToken&&!ht.questionToken&&!ht.type&&!ht.initializer&&je(ht.name)}function sC(D,ae){aC(D,ae)?Qs(D,ae,528):dy(D,ae)}function lC(D,ae){Qs(D,ae,8848)}function IT(D){switch(D&60){case 0:break;case 16:vr(",");break;case 4:ur(),vr("|");break;case 32:ur(),vr("*"),ur();break;case 8:ur(),vr("&");break}}function Qs(D,ae,ht,ln,kr,Ni){xT(Ye,D,ae,ht|(D&&qa(D)&2?65536:0),ln,kr,Ni)}function L1(D,ae,ht,ln,kr,Ni){xT(Gt,D,ae,ht,ln,kr,Ni)}function xT(D,ae,ht,ln,kr,Ni=0,bi=ht?ht.length-Ni:0){if(ht===void 0&&ln&16384)return;const ya=ht===void 0||Ni>=ht.length||bi===0;if(ya&&ln&32768){p==null||p(ht),h==null||h(ht);return}ln&15360&&(vr(xHe(ln)),ya&&ht&&Vm(ht.pos,!0)),p==null||p(ht),ya?ln&1&&!(de&&(!ae||O&&OS(ae,O)))?Xc():ln&256&&!(ln&524288)&&ur():zm(D,ae,ht,ln,kr,Ni,bi,ht.hasTrailingComma,ht),h==null||h(ht),ln&15360&&(ya&&ht&&Ig(ht.end),vr(RHe(ln)))}function zm(D,ae,ht,ln,kr,Ni,bi,io,ya){const ed=(ln&262144)===0;let Md=ed;const jf=Ag(ae,ht[Ni],ln);jf?(Xc(jf),Md=!1):ln&256&&ur(),ln&128&&Oh();const Db=PHe(D,kr);let Si,zh,Un=!1;for(let j1=0;j1<bi;j1++){const X_=ht[Ni+j1];if(ln&32)Xc(),IT(ln);else if(Si){ln&60&&Si.end!==(ae?ae.end:-1)&&(qa(Si)&2048||Ig(Si.end)),IT(ln),An(zh);const Bh=Tb(Si,X_,ln);if(Bh>0){if((ln&131)===0&&(Oh(),Un=!0),Md&&ln&60&&!t_(X_.pos)){const vC=w_(X_);Vm(vC.pos,!!(ln&512),!0)}Xc(Bh),Md=!1}else Si&&ln&512&&ur()}if(zh=Fa(X_),Md){const Bh=w_(X_);Vm(Bh.pos)}else Md=ed;ie=X_.pos,Db(X_,D,kr,j1),Un&&(Bm(),Un=!1),Si=X_}const fx=Si?qa(Si):0,Cb=en||!!(fx&2048),Nb=io&&ln&64&&ln&16;Nb&&(Si&&!Cb?Vi(28,Si.end,vr,Si):vr(",")),Si&&(ae?ae.end:-1)!==Si.end&&ln&60&&!Cb&&Ig(Nb&&(ya!=null&&ya.end)?ya.end:Si.end),ln&128&&Bm(),An(zh);const BT=ax(ae,ht[Ni+bi-1],ln,ya);BT?Xc(BT):ln&2097408&&ur()}function Eb(D){ge.writeLiteral(D)}function cC(D){ge.writeStringLiteral(D)}function RT(D){ge.write(D)}function k2(D,ae){ge.writeSymbol(D,ae)}function vr(D){ge.writePunctuation(D)}function ou(){ge.writeTrailingSemicolon(";")}function ro(D){ge.writeKeyword(D)}function hf(D){ge.writeOperator(D)}function py(D){ge.writeParameter(D)}function J_(D){ge.writeComment(D)}function ur(){ge.writeSpace(" ")}function DT(D){ge.writeProperty(D)}function Q0(D){ge.nonEscapingWrite?ge.nonEscapingWrite(D):ge.write(D)}function Xc(D=1){for(let ae=0;ae<D;ae++)ge.writeLine(ae>0)}function Oh(){ge.increaseIndent()}function Bm(){ge.decreaseIndent()}function k1(D,ae,ht,ln){return Ue?Sb(D,ht,ae):V1(ln,D,ht,ae,Sb)}function w1(D,ae){f&&f(D),ae(pa(D.kind)),b&&b(D)}function Sb(D,ae,ht){const ln=pa(D);return ae(ln),ht<0?ht:ht+ln.length}function lv(D,ae,ht){if(qa(D)&1)ur();else if(de){const ln=Hp(D,ae,ht);ln?Xc(ln):ur()}else Xc()}function CT(D){const ae=D.split(/\r\n?|\n/g),ht=aie(ae);for(const ln of ae){const kr=ht?ln.slice(ht):ln;kr.length&&(Xc(),qe(kr))}}function Gm(D,ae){D?(Oh(),Xc(D)):ae&&ur()}function Z0(D,ae){D&&Bm(),ae&&Bm()}function Ag(D,ae,ht){if(ht&2||de){if(ht&65536)return 1;if(ae===void 0)return!D||O&&OS(D,O)?0:1;if(ae.pos===ie||ae.kind===12)return 0;if(O&&D&&!t_(D.pos)&&!Ys(ae)&&(!ae.parent||Ml(ae.parent)===Ml(D)))return de?eE(ln=>Poe(ae.pos,D.pos,O,ln)):W3(D,ae,O)?0:1;if(NT(ae,ht))return 1}return ht&1?1:0}function Tb(D,ae,ht){if(ht&2||de){if(D===void 0||ae===void 0||ae.kind===12)return 0;if(O&&!Ys(D)&&!Ys(ae))return de&&Pd(D,ae)?eE(ln=>DU(D,ae,O,ln)):!de&&gf(D,ae)?gk(D,ae,O)?0:1:ht&65536?1:0;if(NT(D,ht)||NT(ae,ht))return 1}else if(pP(ae))return 1;return ht&1?1:0}function ax(D,ae,ht,ln){if(ht&2||de){if(ht&65536)return 1;if(ae===void 0)return!D||O&&OS(D,O)?0:1;if(O&&D&&!t_(D.pos)&&!Ys(ae)&&(!ae.parent||ae.parent===D)){if(de){const kr=ln&&!t_(ln.end)?ln.end:ae.end;return eE(Ni=>Moe(kr,D.end,O,Ni))}return Doe(D,ae,O)?0:1}if(NT(ae,ht))return 1}return ht&1&&!(ht&131072)?1:0}function eE(D){C.assert(!!de);const ae=D(!0);return ae===0?D(!1):ae}function uC(D,ae){const ht=de&&Ag(ae,D,0);return ht&&Gm(ht,!1),!!ht}function O1(D,ae){const ht=de&&ax(ae,D,0,void 0);ht&&Xc(ht)}function NT(D,ae){if(Ys(D)){const ht=pP(D);return ht===void 0?(ae&65536)!==0:ht}return(ae&65536)!==0}function Hp(D,ae,ht){return qa(D)&262144?0:(D=Hl(D),ae=Hl(ae),ht=Hl(ht),pP(ht)?1:O&&!Ys(D)&&!Ys(ae)&&!Ys(ht)?de?eE(ln=>DU(ae,ht,O,ln)):gk(ae,ht,O)?0:1:0)}function PT(D){return D.statements.length===0&&(!O||gk(D,D,O))}function Hl(D){for(;D.kind===217&&Ys(D);)D=D.expression;return D}function Bc(D,ae){if(al(D)||gS(D))return LT(D);if(Ma(D)&&D.textSourceNode)return Bc(D.textSourceNode,ae);const ht=O,ln=!!ht&&!!D.parent&&!Ys(D);if(tg(D)){if(!ln||jn(D)!==Ml(ht))return Tr(D)}else if(r_(D)){if(!ln||jn(D)!==Ml(ht))return lP(D)}else if(C.assertNode(D,OE),!ln)return D.text;return FE(ht,D,ae)}function MT(D,ae,ht){if(D.kind===11&&D.textSourceNode){const kr=D.textSourceNode;if(je(kr)||Ji(kr)||bp(kr)||r_(kr)){const Ni=bp(kr)?kr.text:Bc(kr);return ht?'"'.concat(fU(Ni),'"'):ae||qa(D)&16777216?'"'.concat(lg(Ni),'"'):'"'.concat(dk(Ni),'"')}else return MT(kr,ae,ht)}const ln=(ae?1:0)|(ht?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return gie(D,O,ln)}function Iu(D){D&&qa(D)&1048576||(ye.push(Q),Q=0,se.push(G),G=void 0,Y.push(oe))}function lp(D){D&&qa(D)&1048576||(Q=ye.pop(),G=se.pop(),oe=Y.pop())}function tE(D){(!oe||oe===el(Y))&&(oe=new Set),oe.add(D)}function Gf(D,ae){re.push(_e),_e=D,he.push(oe),Ae=ae}function Ab(){_e=re.pop(),Ae=he.pop()}function Ib(D){(!Ae||Ae===el(he))&&(Ae=new Set),Ae.add(D)}function au(D){if(D)switch(D.kind){case 241:He(D.statements,au);break;case 256:case 254:case 246:case 247:au(D.statement);break;case 245:au(D.thenStatement),au(D.elseStatement);break;case 248:case 250:case 249:au(D.initializer),au(D.statement);break;case 255:au(D.caseBlock);break;case 269:He(D.clauses,au);break;case 296:case 297:He(D.statements,au);break;case 258:au(D.tryBlock),au(D.catchClause),au(D.finallyBlock);break;case 299:au(D.variableDeclaration),au(D.block);break;case 243:au(D.declarationList);break;case 261:He(D.declarations,au);break;case 260:case 169:case 208:case 263:qp(D.name);break;case 262:qp(D.name),qa(D)&1048576&&(He(D.parameters,au),au(D.body));break;case 206:case 207:He(D.elements,au);break;case 272:au(D.importClause);break;case 273:qp(D.name),au(D.namedBindings);break;case 274:qp(D.name);break;case 280:qp(D.name);break;case 275:He(D.elements,au);break;case 276:qp(D.propertyName||D.name);break}}function sx(D){if(D)switch(D.kind){case 303:case 304:case 172:case 174:case 177:case 178:qp(D.name);break}}function qp(D){D&&(al(D)||gS(D)?LT(D):Zo(D)&&au(D))}function LT(D){const ae=D.emitNode.autoGenerate;if((ae.flags&7)===4)return kT(lw(D),Ji(D),ae.flags,ae.prefix,ae.suffix);{const ht=ae.id;return ee[ht]||(ee[ht]=pC(D))}}function kT(D,ae,ht,ln,kr){const Ni=cs(D),bi=ae?K:U;return bi[Ni]||(bi[Ni]=wT(D,ae,ht!=null?ht:0,oD(ln,LT),oD(kr)))}function qs(D,ae){return nE(D)&&!dC(D,ae)&&!V.has(D)}function dC(D,ae){return ae?!!(Ae!=null&&Ae.has(D)):!!(oe!=null&&oe.has(D))}function nE(D,ae){return O?V4(O,D,r):!0}function W1(D,ae){for(let ht=ae;ht&&HE(ht,ae);ht=ht.nextContainer)if(_h(ht)&&ht.locals){const ln=ht.locals.get(hl(D));if(ln&&ln.flags&3257279)return!1}return!0}function w2(D){var ae;switch(D){case"":return Q;case"#":return _e;default:return(ae=G==null?void 0:G.get(D))!=null?ae:0}}function gd(D,ae){switch(D){case"":Q=ae;break;case"#":_e=ae;break;default:G!=null||(G=new Map),G.set(D,ae);break}}function cv(D,ae,ht,ln,kr){ln.length>0&&ln.charCodeAt(0)===35&&(ln=ln.slice(1));const Ni=P0(ht,ln,"",kr);let bi=w2(Ni);if(D&&!(bi&D)){const ya=P0(ht,ln,D===268435456?"_i":"_n",kr);if(qs(ya,ht))return bi|=D,ht?Ib(ya):ae&&tE(ya),gd(Ni,bi),ya}for(;;){const io=bi&268435455;if(bi++,io!==8&&io!==13){const ya=io<26?"_"+String.fromCharCode(97+io):"_"+(io-26),ed=P0(ht,ln,ya,kr);if(qs(ed,ht))return ht?Ib(ed):ae&&tE(ed),gd(Ni,bi),ed}}}function K_(D,ae=qs,ht,ln,kr,Ni,bi){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),Ni.length>0&&Ni.charCodeAt(0)===35&&(Ni=Ni.slice(1)),ht){const ya=P0(kr,Ni,D,bi);if(ae(ya,kr))return kr?Ib(ya):ln?tE(ya):V.add(ya),ya}D.charCodeAt(D.length-1)!==95&&(D+="_");let io=1;for(;;){const ya=P0(kr,Ni,D+io,bi);if(ae(ya,kr))return kr?Ib(ya):ln?tE(ya):V.add(ya),ya;io++}}function lx(D){return K_(D,nE,!0,!1,!1,"","")}function Pp(D){const ae=Bc(D.name);return W1(ae,ti(D,_h))?ae:K_(ae,qs,!1,!1,!1,"","")}function cx(D){const ae=bR(D),ht=Ma(ae)?yie(ae.text):"module";return K_(ht,qs,!1,!1,!1,"","")}function cp(){return K_("default",qs,!1,!1,!1,"","")}function ux(){return K_("class",qs,!1,!1,!1,"","")}function fy(D,ae,ht,ln){return je(D.name)?kT(D.name,ae):cv(0,!1,ae,ht,ln)}function wT(D,ae,ht,ln,kr){switch(D.kind){case 80:case 81:return K_(Bc(D),qs,!!(ht&16),!!(ht&8),ae,ln,kr);case 267:case 266:return C.assert(!ln&&!kr&&!ae),Pp(D);case 272:case 278:return C.assert(!ln&&!kr&&!ae),cx(D);case 262:case 263:{C.assert(!ln&&!kr&&!ae);const Ni=D.name;return Ni&&!al(Ni)?wT(Ni,!1,ht,ln,kr):cp()}case 277:return C.assert(!ln&&!kr&&!ae),cp();case 231:return C.assert(!ln&&!kr&&!ae),ux();case 174:case 177:case 178:return fy(D,ae,ln,kr);case 167:return cv(0,!0,ae,ln,kr);default:return cv(0,!1,ae,ln,kr)}}function pC(D){const ae=D.emitNode.autoGenerate,ht=oD(ae.prefix,LT),ln=oD(ae.suffix);switch(ae.flags&7){case 1:return cv(0,!!(ae.flags&8),Ji(D),ht,ln);case 2:return C.assertNode(D,je),cv(268435456,!!(ae.flags&8),!1,ht,ln);case 3:return K_(Tr(D),ae.flags&32?nE:qs,!!(ae.flags&16),!!(ae.flags&8),Ji(D),ht,ln)}return C.fail("Unsupported GeneratedIdentifierKind: ".concat(C.formatEnum(ae.flags&7,Y6,!0),"."))}function fC(D,ae){const ht=me(2,D,ae),ln=on,kr=$t,Ni=Cn;OT(ae),ht(D,ae),mC(ae,ln,kr,Ni)}function OT(D){const ae=qa(D),ht=w_(D);xb(D,ae,ht.pos,ht.end),ae&4096&&(en=!0)}function mC(D,ae,ht,ln){const kr=qa(D),Ni=w_(D);kr&4096&&(en=!1),Mp(D,kr,Ni.pos,Ni.end,ae,ht,ln);const bi=Nae(D);bi&&Mp(D,kr,bi.pos,bi.end,ae,ht,ln)}function xb(D,ae,ht,ln){Gi(),tn=!1;const kr=ht<0||(ae&1024)!==0||D.kind===12,Ni=ln<0||(ae&2048)!==0||D.kind===12;(ht>0||ln>0)&&ht!==ln&&(kr||F1(ht,D.kind!==359),(!kr||ht>=0&&(ae&1024)!==0)&&(on=ht),(!Ni||ln>=0&&(ae&2048)!==0)&&($t=ln,D.kind===261&&(Cn=ln))),He(UR(D),Wh),xo()}function Mp(D,ae,ht,ln,kr,Ni,bi){Gi();const io=ln<0||(ae&2048)!==0||D.kind===12;He(Bk(D),_C),(ht>0||ln>0)&&ht!==ln&&(on=kr,$t=Ni,Cn=bi,!io&&D.kind!==359&&p_(ln)),xo()}function Wh(D){(D.hasLeadingNewline||D.kind===2)&&ge.writeLine(),WT(D),D.hasTrailingNewLine||D.kind===2?ge.writeLine():ge.writeSpace(" ")}function _C(D){ge.isAtStartOfLine()||ge.writeSpace(" "),WT(D),D.hasTrailingNewLine&&ge.writeLine()}function WT(D){const ae=ss(D),ht=D.kind===3?DA(ae):void 0;MR(ae,ht,ge,0,ae.length,R)}function ss(D){return D.kind===3?"/*".concat(D.text,"*/"):"//".concat(D.text)}function xr(D,ae,ht){Gi();const{pos:ln,end:kr}=ae,Ni=qa(D),bi=ln<0||(Ni&1024)!==0,io=en||kr<0||(Ni&2048)!==0;bi||Vf(ae),xo(),Ni&4096&&!en?(en=!0,ht(D),en=!1):ht(D),Gi(),io||(F1(ae.end,!0),tn&&!ge.isAtStartOfLine()&&ge.writeLine()),xo()}function gf(D,ae){return D=Ml(D),D.parent&&D.parent===Ml(ae).parent}function Pd(D,ae){if(ae.pos<D.end)return!1;D=Ml(D),ae=Ml(ae);const ht=D.parent;if(!ht||ht!==ae.parent)return!1;const ln=sae(D),kr=ln==null?void 0:ln.indexOf(D);return kr!==void 0&&kr>-1&&ln.indexOf(ae)===kr+1}function F1(D,ae){tn=!1,ae?D===0&&(O!=null&&O.isDeclarationFile)?Rg(D,rE):Rg(D,FT):D===0&&Rg(D,hC)}function hC(D,ae,ht,ln,kr){yf(D,ae)&&FT(D,ae,ht,ln,kr)}function rE(D,ae,ht,ln,kr){yf(D,ae)||FT(D,ae,ht,ln,kr)}function z1(D,ae){return e.onlyPrintJsDocStyle?oq(D,ae)||j4(D,ae):!0}function FT(D,ae,ht,ln,kr){!O||!z1(O.text,D)||(tn||(foe(Dt(),ge,kr,D),tn=!0),Fs(D),MR(O.text,Dt(),ge,D,ae,R),Fs(ae),ln?ge.writeLine():ht===3&&ge.writeSpace(" "))}function Ig(D){en||D===-1||F1(D,!0)}function p_(D){dx(D,vf)}function vf(D,ae,ht,ln){!O||!z1(O.text,D)||(ge.isAtStartOfLine()||ge.writeSpace(" "),Fs(D),MR(O.text,Dt(),ge,D,ae,R),Fs(ae),ln&&ge.writeLine())}function Vm(D,ae,ht){en||(Gi(),dx(D,ae?vf:ht?uv:xg),xo())}function uv(D,ae,ht){O&&(Fs(D),MR(O.text,Dt(),ge,D,ae,R),Fs(ae),ht===2&&ge.writeLine())}function xg(D,ae,ht,ln){O&&(Fs(D),MR(O.text,Dt(),ge,D,ae,R),Fs(ae),ln?ge.writeLine():ge.writeSpace(" "))}function Rg(D,ae){O&&(on===-1||D!==on)&&(fc(D)?gC(ae):rL(O.text,D,ae,D))}function dx(D,ae){O&&($t===-1||D!==$t&&D!==Cn)&&iL(O.text,D,ae)}function fc(D){return yn!==void 0&&es(yn).nodePos===D}function gC(D){if(!O)return;const ae=es(yn).detachedCommentEndPos;yn.length-1?yn.pop():yn=void 0,rL(O.text,ae,D,ae)}function Vf(D){const ae=O&&_oe(O.text,Dt(),ge,Fh,D,R,en);ae&&(yn?yn.push(ae):yn=[ae])}function Fh(D,ae,ht,ln,kr,Ni){!O||!z1(O.text,ln)||(Fs(ln),MR(D,ae,ht,ln,kr,Ni),Fs(kr))}function yf(D,ae){return!!O&&Sj(O.text,D,ae)}function B1(D){return D.parsedSourceMap===void 0&&D.sourceMapText!==void 0&&(D.parsedSourceMap=rJ(D.sourceMapText)||!1),D.parsedSourceMap||void 0}function iE(D,ae){const ht=me(3,D,ae);px(ae),ht(D,ae),zT(ae)}function px(D){const ae=qa(D),ht=Jv(D);if(rj(D)){C.assertIsDefined(D.parent,"UnparsedNodes must have parent pointers");const ln=B1(D.parent);ln&&it&&it.appendSourceMap(ge.getLine(),ge.getColumn(),ln,D.parent.sourceMapPath,D.parent.getLineAndCharacterOfPosition(D.pos),D.parent.getLineAndCharacterOfPosition(D.end))}else{const ln=ht.source||Ft;D.kind!==359&&(ae&32)===0&&ht.pos>=0&&G1(ht.source||Ft,bf(ln,ht.pos)),ae&128&&(Ue=!0)}}function zT(D){const ae=qa(D),ht=Jv(D);rj(D)||(ae&128&&(Ue=!1),D.kind!==359&&(ae&64)===0&&ht.end>=0&&G1(ht.source||Ft,ht.end))}function bf(D,ae){return D.skipTrivia?D.skipTrivia(ae):wa(D.text,ae)}function Fs(D){if(Ue||t_(D)||oE(Ft))return;const{line:ae,character:ht}=Ts(Ft,D);it.addMapping(ge.getLine(),ge.getColumn(),gt,ae,ht,void 0)}function G1(D,ae){if(D!==Ft){const ht=Ft,ln=gt;dv(D),Fs(ae),Rb(ht,ln)}else Fs(ae)}function V1(D,ae,ht,ln,kr){if(Ue||D&&c3(D))return kr(ae,ht,ln);const Ni=D&&D.emitNode,bi=Ni&&Ni.flags||0,io=Ni&&Ni.tokenSourceMapRanges&&Ni.tokenSourceMapRanges[ae],ya=io&&io.source||Ft;return ln=bf(ya,io?io.pos:ln),(bi&256)===0&&ln>=0&&G1(ya,ln),ln=kr(ae,ht,ln),io&&(ln=io.end),(bi&512)===0&&ln>=0&&G1(ya,ln),ln}function dv(D){if(!Ue){if(Ft=D,D===Qe){gt=It;return}oE(D)||(gt=it.addSource(D.fileName),e.inlineSources&&it.setSourceContent(gt,D.text),Qe=D,It=gt)}}function Rb(D,ae){Ft=D,gt=ae}function oE(D){return Il(D.fileName,".json")}}function IHe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function xHe(e){return vce[e&15360][0]}function RHe(e){return vce[e&15360][1]}function DHe(e,t,r,i){t(e)}function CHe(e,t,r,i){t(e,r.select(i))}function NHe(e,t,r,i){t(e,r)}function PHe(e,t){return e.length===1?DHe:typeof t=="object"?CHe:NHe}var vce,h7,RJ,y1,DJ,Bw,MHe=T({"src/compiler/emitter.ts"(){ta(),ta(),fS(),vce=IHe(),h7={hasGlobalName:qo,getReferencedExportContainer:qo,getReferencedImportDeclaration:qo,getReferencedDeclarationWithCollidingName:qo,isDeclarationWithCollidingName:qo,isValueAliasDeclaration:qo,isReferencedAliasDeclaration:qo,isTopLevelValueImportEqualsWithEntityName:qo,getNodeCheckFlags:qo,isDeclarationVisible:qo,isLateBound:e=>!1,collectLinkedAliases:qo,isImplementationOfOverload:qo,isRequiredInitializedParameter:qo,isOptionalUninitializedParameterProperty:qo,isExpandoFunctionDeclaration:qo,getPropertiesOfContainerFunction:qo,createTypeOfDeclaration:qo,createReturnTypeOfSignatureDeclaration:qo,createTypeOfExpression:qo,createLiteralConstValue:qo,isSymbolAccessible:qo,isEntityNameVisible:qo,getConstantValue:qo,getReferencedValueDeclaration:qo,getReferencedValueDeclarations:qo,getTypeReferenceSerializationKind:qo,isOptionalParameter:qo,moduleExportsSomeValue:qo,isArgumentsLocalBinding:qo,getExternalModuleFileFromDeclaration:qo,getTypeReferenceDirectivesForEntityName:qo,getTypeReferenceDirectivesForSymbol:qo,isLiteralConstDeclaration:qo,getJsxFactoryEntity:qo,getJsxFragmentFactoryEntity:qo,getAllAccessorDeclarations:qo,getSymbolOfExternalModuleSpecifier:qo,isBindingCapturedByNode:qo,getDeclarationStatementsForSourceFile:qo,isImportRequiredByAugmentation:qo,tryFindAmbientModule:qo},RJ=Sd(()=>O0({})),y1=Sd(()=>O0({removeComments:!0})),DJ=Sd(()=>O0({removeComments:!0,neverAsciiEscape:!0})),Bw=Sd(()=>O0({removeComments:!0,omitTrailingSemicolon:!0}))}});function g7(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=Mu(r);return{useCaseSensitiveFileNames:r,fileExists:I,readFile:(G,re)=>e.readFile(G,re),directoryExists:e.directoryExists&&R,getDirectories:N,readDirectory:O,createDirectory:e.createDirectory&&M,writeFile:e.writeFile&&A,addOrDeleteFileOrDirectory:K,addOrDeleteFile:ee,clearCache:se,realpath:e.realpath&&U};function s(G){return il(G,t,o)}function l(G){return i.get(Vc(G))}function u(G){const re=l(ri(G));return re&&(re.sortedAndCanonicalizedFiles||(re.sortedAndCanonicalizedFiles=re.files.map(o).sort(),re.sortedAndCanonicalizedDirectories=re.directories.map(o).sort()),re)}function p(G){return lc(ha(G))}function h(G,re){var _e;if(!e.realpath||Vc(s(e.realpath(G)))===re){const ye={files:Ot(e.readDirectory(G,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(G)||[]};return i.set(Vc(re),ye),ye}if((_e=e.directoryExists)!=null&&_e.call(e,G))return i.set(re,!1),!1}function f(G,re){re=Vc(re);const _e=l(re);if(_e)return _e;try{return h(G,re)}catch(ye){C.assert(!i.has(Vc(re)));return}}function b(G,re){return Nv(G,re,tl,Uu)>=0}function A(G,re,_e){const ye=s(G),Q=u(ye);return Q&&V(Q,p(G),!0),e.writeFile(G,re,_e)}function I(G){const re=s(G),_e=u(re);return _e&&b(_e.sortedAndCanonicalizedFiles,o(p(G)))||e.fileExists(G)}function R(G){const re=s(G);return i.has(Vc(re))||e.directoryExists(G)}function M(G){const re=s(G),_e=u(re);if(_e){const ye=p(G),Q=o(ye),Y=_e.sortedAndCanonicalizedDirectories;xy(Y,Q,Uu)&&_e.directories.push(ye)}e.createDirectory(G)}function N(G){const re=s(G),_e=f(G,re);return _e?_e.directories.slice():e.getDirectories(G)}function O(G,re,_e,ye,Q){const Y=s(G),oe=f(G,Y);let he;if(oe!==void 0)return BU(G,re,_e,ye,r,t,Q,Ae,U);return e.readDirectory(G,re,_e,ye,Q);function Ae(ie){const ge=s(ie);if(ge===Y)return oe||de(ie,ge);const Ne=f(ie,ge);return Ne!==void 0?Ne||de(ie,ge):gW}function de(ie,ge){if(he&&ge===Y)return he;const Ne={files:Ot(e.readDirectory(ie,void 0,void 0,["*.*"]),p)||et,directories:e.getDirectories(ie)||et};return ge===Y&&(he=Ne),Ne}}function U(G){return e.realpath?e.realpath(G):G}function K(G,re){if(l(re)!==void 0){se();return}const ye=u(re);if(!ye)return;if(!e.directoryExists){se();return}const Q=p(G),Y={fileExists:e.fileExists(G),directoryExists:e.directoryExists(G)};return Y.directoryExists||b(ye.sortedAndCanonicalizedDirectories,o(Q))?se():V(ye,Q,Y.fileExists),Y}function ee(G,re,_e){if(_e===1)return;const ye=u(re);ye&&V(ye,p(G),_e===0)}function V(G,re,_e){const ye=G.sortedAndCanonicalizedFiles,Q=o(re);if(_e)xy(ye,Q,Uu)&&G.files.push(re);else{const Y=Nv(ye,Q,tl,Uu);if(Y>=0){ye.splice(Y,1);const oe=G.files.findIndex(he=>o(he)===Q);G.files.splice(oe,1)}}}function se(){i.clear()}}function v7(e,t,r,i,o){var s;const l=PE(((s=t==null?void 0:t.configFile)==null?void 0:s.extendedSourceFiles)||et,o);r.forEach((u,p)=>{l.has(p)||(u.projects.delete(e),u.close())}),l.forEach((u,p)=>{const h=r.get(p);h?h.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(u,p),close:()=>{const f=r.get(p);!f||f.projects.size!==0||(f.watcher.close(),r.delete(p))}})})}function CJ(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function y7(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&y7(e,o,r)})}function NJ(e,t,r){JN(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:e_})}function Gw(e,t,r){t?JN(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Mf,onExistingValue:o}):tp(e,Mf);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,u){s.flags!==l&&(s.watcher.close(),e.set(u,i(u,l)))}}function Vw({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:p,writeLog:h,toPath:f,getScriptKind:b}){const A=P7(r);if(!A)return h("Project: ".concat(i," Detected ignored path: ").concat(t)),!0;if(r=A,r===e)return!1;if(xA(r)&&!(Zoe(t,o,l)||O()))return h("Project: ".concat(i," Detected file add/remove of non supported extension: ").concat(t)),!0;if(wse(t,o.configFile.configFileSpecs,yo(ri(i),u),p,u))return h("Project: ".concat(i," Detected excluded file: ").concat(t)),!0;if(!s||Os(o)||o.outDir)return!1;if(Tu(r)){if(o.declarationDir)return!1}else if(!Ic(r,jR))return!1;const I=Ad(r),R=Ao(s)?void 0:LHe(s)?s.getProgramOrUndefined():s,M=!R&&!Ao(s)?s:void 0;if(N(I+".ts")||N(I+".tsx"))return h("Project: ".concat(i," Detected output file: ").concat(t)),!0;return!1;function N(U){return R?!!R.getSourceFileByPath(U):M?M.getState().fileInfos.has(U):!!Tn(s,K=>f(K)===U)}function O(){if(!b)return!1;switch(b(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Xy(o);case 6:return x0(o);case 0:return!1}}}function LHe(e){return!!e.getState}function yce(e,t){return e?e.isEmittedFile(t):!1}function PJ(e,t,r,i){rre(t===2?r:ts);const o={watchFile:(M,N,O,U)=>e.watchFile(M,N,O,U),watchDirectory:(M,N,O,U)=>e.watchDirectory(M,N,(O&1)!==0,U)},s=t!==0?{watchFile:I("watchFile"),watchDirectory:I("watchDirectory")}:void 0,l=t===2?{watchFile:b,watchDirectory:A}:s||o,u=t===2?f:AD;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(M){return(N,O,U,K,ee,V)=>{var se;return RF(N,M==="watchFile"?K==null?void 0:K.excludeFiles:K==null?void 0:K.excludeDirectories,h(),((se=e.getCurrentDirectory)==null?void 0:se.call(e))||"")?u(N,U,K,ee,V):l[M].call(void 0,N,O,U,K,ee,V)}}function h(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function f(M,N,O,U,K){return r("ExcludeWatcher:: Added:: ".concat(R(M,N,O,U,K,i))),{close:()=>r("ExcludeWatcher:: Close:: ".concat(R(M,N,O,U,K,i)))}}function b(M,N,O,U,K,ee){r("FileWatcher:: Added:: ".concat(R(M,O,U,K,ee,i)));const V=s.watchFile(M,N,O,U,K,ee);return{close:()=>{r("FileWatcher:: Close:: ".concat(R(M,O,U,K,ee,i))),V.close()}}}function A(M,N,O,U,K,ee){const V="DirectoryWatcher:: Added:: ".concat(R(M,O,U,K,ee,i));r(V);const se=Xs(),G=s.watchDirectory(M,N,O,U,K,ee),re=Xs()-se;return r("Elapsed:: ".concat(re,"ms ").concat(V)),{close:()=>{const _e="DirectoryWatcher:: Close:: ".concat(R(M,O,U,K,ee,i));r(_e);const ye=Xs();G.close();const Q=Xs()-ye;r("Elapsed:: ".concat(Q,"ms ").concat(_e))}}}function I(M){return(N,O,U,K,ee,V)=>o[M].call(void 0,N,(...se)=>{const G="".concat(M==="watchFile"?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(se[0]," ").concat(se[1]!==void 0?se[1]:"",":: ").concat(R(N,U,K,ee,V,i));r(G);const re=Xs();O.call(void 0,...se);const _e=Xs()-re;r("Elapsed:: ".concat(_e,"ms ").concat(G))},U,K,ee,V)}function R(M,N,O,U,K,ee){return"WatchInfo: ".concat(M," ").concat(N," ").concat(JSON.stringify(O)," ").concat(ee?ee(U,K):K===void 0?U:"".concat(U," ").concat(K))}}function jw(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Mf(e){e.watcher.close()}var MJ,LJ,kHe=T({"src/compiler/watchUtilities.ts"(){ta(),MJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(MJ||{}),LJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(LJ||{})}});function bce(e,t,r="tsconfig.json"){return xm(e,i=>{const o=Yr(i,r);return t(o)?o:void 0})}function b7(e,t){const r=ri(t),i=_p(e)?e:Yr(r,e);return ha(i)}function Ece(e,t,r){let i;return He(e,s=>{const l=YM(s,t);if(l.pop(),!i){i=l;return}const u=Math.min(i.length,l.length);for(let p=0;p<u;p++)if(r(i[p])!==r(l[p])){if(p===0)return!0;i.length=p;break}l.length<i.length&&(i.length=l.length)})?"":i?Ny(i):t}function Sce(e,t){return OJ(e,t)}function kJ(e,t,r){return(i,o,s)=>{let l;try{rl("beforeIORead"),l=e(i,t().charset),rl("afterIORead"),ef("I/O Read","beforeIORead","afterIORead")}catch(u){s&&s(u.message),l=""}return l!==void 0?dw(i,l,o,r):void 0}}function wJ(e,t,r){return(i,o,s,l)=>{try{rl("beforeIOWrite"),gU(i,o,s,e,t,r),rl("afterIOWrite"),ef("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function OJ(e,t,r=vu){const i=new Map,o=Mu(r.useCaseSensitiveFileNames);function s(f){return i.has(f)?!0:(h.directoryExists||r.directoryExists)(f)?(i.set(f,!0),!0):!1}function l(){return ri(ha(r.getExecutingFilePath()))}const u=Hv(e),p=r.realpath&&(f=>r.realpath(f)),h={getSourceFile:kJ(f=>h.readFile(f),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:f=>Yr(l(),aL(f)),writeFile:wJ((f,b,A)=>r.writeFile(f,b,A),f=>(h.createDirectory||r.createDirectory)(f),f=>s(f)),getCurrentDirectory:Sd(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>u,fileExists:f=>r.fileExists(f),readFile:f=>r.readFile(f),trace:f=>r.write(f+u),directoryExists:f=>r.directoryExists(f),getEnvironmentVariable:f=>r.getEnvironmentVariable?r.getEnvironmentVariable(f):"",getDirectories:f=>r.getDirectories(f),realpath:p,readDirectory:(f,b,A,I,R)=>r.readDirectory(f,b,A,I,R),createDirectory:f=>r.createDirectory(f),createHash:ia(r,r.createHash)};return h}function Uw(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,p=new Map,h=new Map,f=new Map,b=new Map,A=M=>{const N=t(M),O=p.get(N);return O!==void 0?O!==!1?O:void 0:I(N,M)},I=(M,N)=>{const O=i.call(e,N);return p.set(M,O!==void 0?O:!1),O};e.readFile=M=>{const N=t(M),O=p.get(N);return O!==void 0?O!==!1?O:void 0:!Il(M,".json")&&!_ce(M)?i.call(e,M):I(N,M)};const R=r?(M,N,O,U)=>{const K=t(M),ee=typeof N=="object"?N.impliedNodeFormat:void 0,V=b.get(ee),se=V==null?void 0:V.get(K);if(se)return se;const G=r(M,N,O,U);return G&&(Tu(M)||Il(M,".json"))&&b.set(ee,(V||new Map).set(K,G)),G}:void 0;return e.fileExists=M=>{const N=t(M),O=h.get(N);if(O!==void 0)return O;const U=o.call(e,M);return h.set(N,!!U),U},u&&(e.writeFile=(M,N,...O)=>{const U=t(M);h.delete(U);const K=p.get(U);K!==void 0&&K!==N?(p.delete(U),b.forEach(ee=>ee.delete(U))):R&&b.forEach(ee=>{const V=ee.get(U);V&&V.text!==N&&ee.delete(U)}),u.call(e,M,N,...O)}),s&&(e.directoryExists=M=>{const N=t(M),O=f.get(N);if(O!==void 0)return O;const U=s.call(e,M);return f.set(N,!!U),U},l&&(e.createDirectory=M=>{const N=t(M);f.delete(N),l.call(e,M)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:R,readFileWithCache:A}}function pRe(e,t,r){let i;return i=Ur(i,e.getConfigFileParsingDiagnostics()),i=Ur(i,e.getOptionsDiagnostics(r)),i=Ur(i,e.getSyntacticDiagnostics(t,r)),i=Ur(i,e.getGlobalDiagnostics(r)),i=Ur(i,e.getSemanticDiagnostics(t,r)),Cf(e.getCompilerOptions())&&(i=Ur(i,e.getDeclarationDiagnostics(t,r))),$x(i||et)}function fRe(e,t){let r="";for(const i of e)r+=WJ(i,t);return r}function WJ(e,t){const r="".concat(mS(e)," TS").concat(e.code,": ").concat(z_(e.messageText,t.getNewLine())).concat(t.getNewLine());if(e.file){const{line:i,character:o}=Ts(e.file,e.start),s=e.file.fileName,l=rN(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u));return"".concat(l,"(").concat(i+1,",").concat(o+1,"): ")+r}return r}function mRe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return C.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function b1(e,t){return t+e+xce}function _Re(e,t,r,i,o,s){const{line:l,character:u}=Ts(e,t),{line:p,character:h}=Ts(e,t+r),f=Ts(e,e.text.length).line,b=p-l>=4;let A=(p+1+"").length;b&&(A=Math.max(Rce.length,A));let I="";for(let R=l;R<=p;R++){I+=s.getNewLine(),b&&l+1<R&&R<p-1&&(I+=i+b1(Rce.padStart(A),QJ)+ZJ+s.getNewLine(),R=p-1);const M=tL(e,R,0),N=R<f?tL(e,R+1,0):e.text.length;let O=e.text.slice(M,N);if(O=O.trimEnd(),O=O.replace(/\t/g," "),I+=i+b1((R+1+"").padStart(A),QJ)+ZJ,I+=O+s.getNewLine(),I+=i+b1("".padStart(A),QJ)+ZJ,I+=o,R===l){const U=R===p?h:void 0;I+=O.slice(0,u).replace(/\S/g," "),I+=O.slice(u,U).replace(/./g,"~")}else R===p?I+=O.slice(0,h).replace(/./g,"~"):I+=O.replace(/./g,"~");I+=xce}return I}function FJ(e,t,r,i=b1){const{line:o,character:s}=Ts(e,t),l=r?rN(e.fileName,r.getCurrentDirectory(),p=>r.getCanonicalFileName(p)):e.fileName;let u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i("".concat(o+1),"\x1B[93m"),u+=":",u+=i("".concat(s+1),"\x1B[93m"),u}function Tce(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=FJ(o,s,t),r+=" - "}if(r+=b1(mS(i),mRe(i.category)),r+=b1(" TS".concat(i.code,": "),"\x1B[90m"),r+=z_(i.messageText,t.getNewLine()),i.file&&i.code!==m.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=_Re(i.file,i.start,i.length,"",mRe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:o,start:s,length:l,messageText:u}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=vRe+FJ(o,s,t),r+=_Re(o,s,l,Dce,"\x1B[96m",t)),r+=t.getNewLine(),r+=Dce+z_(u,t.getNewLine())}r+=t.getNewLine()}return r}function z_(e,t,r=0){if(No(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;o<r;o++)i+=" "}if(i+=e.messageText,r++,e.next)for(const o of e.next)i+=z_(o,t,r);return i}function Hw(e,t){return(No(e)?t:e.resolutionMode)||t}function Ace(e,t,r){return GJ(e,Kw(e,t),r)}function zJ(e){var t;return Zl(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function BJ(e,t,r){return GJ(e,t,r)}function GJ(e,t,r){var i;if((Oc(t.parent)||Zl(t.parent))&&zJ(t.parent)){const l=gD(t.parent.attributes);if(l)return l}if(t.parent.parent&&fg(t.parent.parent)){const s=gD(t.parent.parent.attributes);if(s)return s}if(r&&wu(r)===200)return t.parent.parent&&ru(t.parent.parent)||Td(t.parent,!1)?1:99;if(e.impliedNodeFormat===void 0)return;if(e.impliedNodeFormat!==99)return Bp(Gv(t.parent))?99:1;const o=(i=Gv(t.parent))==null?void 0:i.parent;return o&&ru(o)?1:99}function gD(e,t){if(!e)return;if(Le(e.elements)!==1){t==null||t(e,e.token===118?m.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:m.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}const r=e.elements[0];if(ds(r.name)){if(r.name.text!=="resolution-mode"){t==null||t(r.name,e.token===118?m.resolution_mode_is_the_only_valid_key_for_type_import_attributes:m.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(ds(r.value)){if(r.value.text!=="import"&&r.value.text!=="require"){t==null||t(r.value,m.resolution_mode_should_be_either_require_or_import);return}return r.value.text==="import"?99:1}}}function Ice(e){return e.text}function VJ(e,t,r,i,o){return{nameAndMode:R7,resolve:(s,l)=>dD(s,e,r,i,o,t,l)}}function jJ(e){return No(e)?e:dh(e.fileName)}function E7(e,t,r,i,o){return{nameAndMode:yRe,resolve:(s,l)=>Yse(s,e,r,i,t,o,l)}}function qw(e,t,r,i,o,s,l,u){if(e.length===0)return et;const p=[],h=new Map,f=u(t,r,i,s,l);for(const b of e){const A=f.nameAndMode.getName(b),I=f.nameAndMode.getMode(b,o,(r==null?void 0:r.commandLine.options)||i),R=WP(A,I);let M=h.get(R);M||h.set(R,M=f.resolve(A,I)),p.push(M)}return p}function UJ(e,t){return S7(void 0,e,(r,i)=>r&&t(r,i))}function S7(e,t,r,i){let o;return s(e,t,void 0);function s(l,u,p){if(i){const h=i(l,p);if(h)return h}return He(u,(h,f)=>{if(h&&(o!=null&&o.has(h.sourceFile.path)))return;const b=r(h,p,f);return b||!h?b:((o||(o=new Set)).add(h.sourceFile.path),s(h.commandLine.projectReferences,h.references,h))})}}function T7(e,t,r){const i=e.configFilePath?ri(e.configFilePath):t;return Yr(i,"__lib_node_modules_lookup_".concat(r,"__.ts"))}function HJ(e){const t=e.split(".");let r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function hRe(e){const t=dh(e.fileName),r=DF.get(t);return{libName:t,libFileName:r}}function W0(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function vD(e){return e.pos!==void 0}function QP(e,t){var r,i,o,s;const l=C.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:p}=t;let h,f,b,A;switch(u){case 3:const I=Kw(l,p);if(b=(i=(r=e.getResolvedModule(l,I.text,e.getModeForUsageLocation(l,I)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,I.pos===-1)return{file:l,packageId:b,text:I.text};h=wa(l.text,I.pos),f=I.end;break;case 4:({pos:h,end:f}=l.referencedFiles[p]);break;case 5:({pos:h,end:f,resolutionMode:A}=l.typeReferenceDirectives[p]),b=(s=(o=e.getResolvedTypeReferenceDirective(l,dh(l.typeReferenceDirectives[p].fileName),A||l.impliedNodeFormat))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:h,end:f}=l.libReferenceDirectives[p]);break;default:return C.assertNever(u)}return{file:l,pos:h,end:f,packageId:b}}function qJ(e,t,r,i,o,s,l,u,p,h){if(!e||u!=null&&u()||!Ym(e.getRootFileNames(),t))return!1;let f;if(!Ym(e.getProjectReferences(),h,M)||e.getSourceFiles().some(I))return!1;const b=e.getMissingFilePaths();if(b&&jc(b,o))return!1;const A=e.getCompilerOptions();if(!NU(A,r)||e.resolvedLibReferences&&jc(e.resolvedLibReferences,(O,U)=>l(U)))return!1;if(A.configFile&&r.configFile)return A.configFile.text===r.configFile.text;return!0;function I(O){return!R(O)||s(O.path)}function R(O){return O.version===i(O.resolvedPath,O.fileName)}function M(O,U,K){return yj(O,U)&&N(e.getResolvedProjectReferences()[K],O)}function N(O,U){if(O){if(Nr(f,O))return!0;const ee=yD(U),V=p(ee);return!V||O.commandLine.options.configFile!==V.options.configFile||!Ym(O.commandLine.fileNames,V.fileNames)?!1:((f||(f=[])).push(O),!He(O.references,(se,G)=>!N(se,O.commandLine.projectReferences[G])))}const K=yD(U);return!p(K)}}function rT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Jw(e,t,r,i){const o=JJ(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function JJ(e,t,r,i){switch(md(i)){case 3:case 99:return Ic(e,[".d.mts",".mts",".mjs"])?99:Ic(e,[".d.cts",".cts",".cjs"])?1:Ic(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){const s=Rw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;const u=Dw(e,s);return{impliedNodeFormat:(u==null?void 0:u.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:l,packageJsonScope:u}}}function wHe(e,t){return e?aR(e.getCompilerOptions(),t,NF):!1}function OHe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function A7(e,t,r,i,o){var s,l,u,p,h,f,b,A,I,R,M,N,O,U,K,ee;const V=Ao(e)?OHe(e,t,r,i,o):e,{rootNames:se,options:G,configFileParsingDiagnostics:re,projectReferences:_e,typeScriptVersion:ye}=V;let{oldProgram:Q}=V;const Y=Sd(()=>Wf("ignoreDeprecations",m.Invalid_value_for_ignoreDeprecations));let oe,he,Ae,de,ie,ge,Ne;const qe=new Map;let Ee=Zp();const Me={},Ce={};let Oe=TI(),At,be,Ue,it,Ft,gt,Qe,It,on,$t;const Cn=typeof G.maxNodeModuleJsDepth=="number"?G.maxNodeModuleJsDepth:0;let Hn=0;const yn=new Map,tn=new Map;(s=ar)==null||s.push(ar.Phase.Program,"createProgram",{configFilePath:G.configFilePath,rootDir:G.rootDir},!0),rl("beforeProgram");const en=V.host||Sce(G),gi=x7(en);let ho=G.noLib;const Gi=Sd(()=>en.getDefaultLibFileName(G)),xo=en.getDefaultLibLocation?en.getDefaultLibLocation():ri(Gi()),Qn=DR(),Di=en.getCurrentDirectory(),Ir=YN(G),Xt=Ek(G,Ir),nt=new Map;let Bt,Dn,oi;const yi=en.hasInvalidatedResolutions||$m;en.resolveModuleNameLiterals?(oi=en.resolveModuleNameLiterals.bind(en),Dn=(l=en.getModuleResolutionCache)==null?void 0:l.call(en)):en.resolveModuleNames?(oi=(ze,Ze,Nt,Ut,vn,Jn)=>en.resolveModuleNames(ze.map(Ice),Ze,Jn==null?void 0:Jn.map(Ice),Nt,Ut,vn).map(bn=>bn?bn.extension!==void 0?{resolvedModule:bn}:{resolvedModule:{...bn,extension:QN(bn.resolvedFileName)}}:Cce),Dn=(u=en.getModuleResolutionCache)==null?void 0:u.call(en)):(Dn=uD(Di,te,G),oi=(ze,Ze,Nt,Ut,vn)=>qw(ze,Ze,Nt,Ut,vn,en,Dn,VJ));let eo;if(en.resolveTypeReferenceDirectiveReferences)eo=en.resolveTypeReferenceDirectiveReferences.bind(en);else if(en.resolveTypeReferenceDirectives)eo=(ze,Ze,Nt,Ut,vn)=>en.resolveTypeReferenceDirectives(ze.map(jJ),Ze,Nt,Ut,vn==null?void 0:vn.impliedNodeFormat).map(Jn=>({resolvedTypeReferenceDirective:Jn}));else{const ze=zF(Di,te,void 0,Dn==null?void 0:Dn.getPackageJsonInfoCache(),Dn==null?void 0:Dn.optionsToRedirectsKey);eo=(Ze,Nt,Ut,vn,Jn)=>qw(Ze,Nt,Ut,vn,Jn,en,ze,E7)}const Ro=en.hasInvalidatedLibResolutions||$m;let fa;if(en.resolveLibrary)fa=en.resolveLibrary.bind(en);else{const ze=uD(Di,te,G,Dn==null?void 0:Dn.getPackageJsonInfoCache());fa=(Ze,Nt,Ut)=>BF(Ze,Nt,Ut,en,ze)}const Fa=new Map;let An=new Map,wn=Zp(),Je=!1;const mt=new Map;let pt=new Map;const Pt=en.useCaseSensitiveFileNames()?new Map:void 0;let le,Fe,dt,j;const ot=!!((p=en.useSourceOfProjectReferenceRedirect)!=null&&p.call(en))&&!G.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Dt,fileExists:Ye,directoryExists:_t}=WHe({compilerHost:en,getSymlinkCache:H_,useSourceOfProjectReferenceRedirect:ot,toPath:Kn,getResolvedProjectReferences:to,getSourceOfProjectReferenceRedirect:Nd,forEachResolvedProjectReference:jd}),Gt=en.readFile.bind(en);(h=ar)==null||h.push(ar.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Q});const gn=wHe(Q,G);(f=ar)==null||f.pop();let hn;if((b=ar)==null||b.push(ar.Phase.Program,"tryReuseStructureFromOldProgram",{}),hn=Ja(),(A=ar)==null||A.pop(),hn!==2){if(oe=[],he=[],_e&&(le||(le=_e.map(Jt)),se.length&&(le==null||le.forEach((ze,Ze)=>{if(!ze)return;const Nt=Os(ze.commandLine.options);if(ot){if(Nt||wu(ze.commandLine.options)===0)for(const Ut of ze.commandLine.fileNames)Wt(Ut,{kind:1,index:Ze})}else if(Nt)Wt(A0(Nt,".d.ts"),{kind:2,index:Ze});else if(wu(ze.commandLine.options)===0){const Ut=Sd(()=>hD(ze.commandLine,!en.useCaseSensitiveFileNames()));for(const vn of ze.commandLine.fileNames)!Tu(vn)&&!Il(vn,".json")&&Wt(YP(vn,ze.commandLine,!en.useCaseSensitiveFileNames(),Ut),{kind:2,index:Ze})}}))),(I=ar)==null||I.push(ar.Phase.Program,"processRootFiles",{count:se.length}),He(se,(ze,Ze)=>Sl(ze,!1,!1,{kind:0,index:Ze})),(R=ar)==null||R.pop(),be!=null||(be=se.length?WF(G,en):et),Ue=TI(),be.length){(M=ar)==null||M.push(ar.Phase.Program,"processTypeReferences",{count:be.length});const ze=G.configFilePath?ri(G.configFilePath):Di,Ze=Yr(ze,bD),Nt=vi(be,Ze);for(let Ut=0;Ut<be.length;Ut++)Ue.set(be[Ut],void 0,Nt[Ut]),Bu(be[Ut],void 0,Nt[Ut],{kind:8,typeReference:be[Ut],packageId:(O=(N=Nt[Ut])==null?void 0:N.resolvedTypeReferenceDirective)==null?void 0:O.packageId});(U=ar)==null||U.pop()}if(se.length&&!ho){const ze=Gi();!G.lib&&ze?Sl(ze,!0,!1,{kind:6}):He(G.lib,(Ze,Nt)=>{Sl(Dp(Ze),!0,!1,{kind:6,index:Nt})})}Ae=Cv(oe,ai).concat(he),oe=void 0,he=void 0}if(Q&&en.onReleaseOldSourceFile){const ze=Q.getSourceFiles();for(const Ze of ze){const Nt=_l(Ze.resolvedPath);(gn||!Nt||Nt.impliedNodeFormat!==Ze.impliedNodeFormat||Ze.resolvedPath===Ze.path&&Nt.resolvedPath!==Ze.path)&&en.onReleaseOldSourceFile(Ze,Q.getCompilerOptions(),!!_l(Ze.path))}en.getParsedCommandLine||Q.forEachResolvedProjectReference(Ze=>{U_(Ze.sourceFile.path)||en.onReleaseOldSourceFile(Ze.sourceFile,Q.getCompilerOptions(),!1)})}Q&&en.onReleaseParsedCommandLine&&S7(Q.getProjectReferences(),Q.getResolvedProjectReferences(),(ze,Ze,Nt)=>{const Ut=(Ze==null?void 0:Ze.commandLine.projectReferences[Nt])||Q.getProjectReferences()[Nt],vn=yD(Ut);Fe!=null&&Fe.has(Kn(vn))||en.onReleaseParsedCommandLine(vn,ze,Q.getCompilerOptions())}),Q=void 0,Ft=void 0,Qe=void 0,on=void 0;const dn={getRootFileNames:()=>se,getSourceFile:ka,getSourceFileByPath:_l,getSourceFiles:()=>Ae,getMissingFilePaths:()=>pt,getModuleResolutionCache:()=>Dn,getFilesByNameMap:()=>mt,getCompilerOptions:()=>G,getSyntacticDiagnostics:pc,getOptionsDiagnostics:hr,getGlobalDiagnostics:Nl,getSemanticDiagnostics:Cl,getCachedSemanticDiagnostics:cl,getSuggestionDiagnostics:we,getDeclarationDiagnostics:Hs,getBindAndCheckDiagnostics:Mo,getProgramDiagnostics:an,getTypeChecker:ao,getClassifiableNames:bo,getCommonSourceDirectory:Hr,emit:ca,getCurrentDirectory:()=>Di,getNodeCount:()=>ao().getNodeCount(),getIdentifierCount:()=>ao().getIdentifierCount(),getSymbolCount:()=>ao().getSymbolCount(),getTypeCount:()=>ao().getTypeCount(),getInstantiationCount:()=>ao().getInstantiationCount(),getRelationCacheSizes:()=>ao().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>At,getResolvedTypeReferenceDirectives:()=>Oe,getAutomaticTypeDirectiveNames:()=>be,getAutomaticTypeDirectiveResolutions:()=>Ue,isSourceFileFromExternalLibrary:ys,isSourceFileDefaultLibrary:tc,getModeForUsageLocation:_f,getModeForResolutionAtIndex:nv,getSourceFileFromReference:Jc,getLibFileFromReference:ap,sourceFileToPackageName:An,redirectTargetsMap:wn,usesUriStyleNodeCoreModules:Je,resolvedModules:gt,resolvedTypeReferenceDirectiveNames:It,resolvedLibReferences:it,getResolvedModule:H,getResolvedModuleFromModuleSpecifier:We,getResolvedTypeReferenceDirective:Lt,forEachResolvedModule:L,forEachResolvedTypeReferenceDirective:me,getCurrentPackagesMap:()=>$t,typesPackageExists:Ve,packageBundlesTypes:ke,isEmittedFile:mb,getConfigFileParsingDiagnostics:zc,getProjectReferences:za,getResolvedProjectReferences:to,getProjectReferenceRedirect:Ul,getResolvedProjectReferenceToRedirect:ff,getResolvedProjectReferenceByPath:U_,forEachResolvedProjectReference:jd,isSourceOfProjectReferenceRedirect:Of,emitBuildInfo:Wl,fileExists:Ye,readFile:Gt,directoryExists:_t,getSymlinkCache:H_,realpath:(K=en.realpath)==null?void 0:K.bind(en),useCaseSensitiveFileNames:()=>en.useCaseSensitiveFileNames(),getCanonicalFileName:te,getFileIncludeReasons:()=>Ee,structureIsReused:hn,writeFile:va};return Dt(),At==null||At.forEach(ze=>{switch(ze.kind){case 1:return Qn.add(ni(ze.file&&_l(ze.file),ze.fileProcessingReason,ze.diagnostic,ze.args||et));case 0:const{file:Ze,pos:Nt,end:Ut}=QP(dn,ze.reason);return Qn.add(eu(Ze,C.checkDefined(Nt),C.checkDefined(Ut)-Nt,ze.diagnostic,...ze.args||et));case 2:return ze.diagnostics.forEach(vn=>Qn.add(vn));default:C.assertNever(ze)}}),F(),rl("afterProgram"),ef("Program","beforeProgram","afterProgram"),(ee=ar)==null||ee.pop(),dn;function H(ze,Ze,Nt){var Ut;return(Ut=gt==null?void 0:gt.get(ze.path))==null?void 0:Ut.get(Ze,Nt)}function We(ze){const Ze=jn(ze);return C.assertIsDefined(Ze,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),H(Ze,ze.text,_f(Ze,ze))}function Lt(ze,Ze,Nt){var Ut;return(Ut=It==null?void 0:It.get(ze.path))==null?void 0:Ut.get(Ze,Nt)}function L(ze,Ze){q(gt,ze,Ze)}function me(ze,Ze){q(It,ze,Ze)}function q(ze,Ze,Nt){var Ut;Nt?(Ut=ze==null?void 0:ze.get(Nt.path))==null||Ut.forEach((vn,Jn,bn)=>Ze(vn,Jn,bn,Nt.path)):ze==null||ze.forEach((vn,Jn)=>vn.forEach((bn,$n,fi)=>Ze(bn,$n,fi,Jn)))}function fe(){return $t||($t=new Map,L(({resolvedModule:ze})=>{ze!=null&&ze.packageId&&$t.set(ze.packageId.name,ze.extension===".d.ts"||!!$t.get(ze.packageId.name))}),$t)}function Ve(ze){return fe().has(jF(ze))}function ke(ze){return!!fe().get(ze)}function Tt(ze){var Ze;(Ze=ze.resolutionDiagnostics)!=null&&Ze.length&&(At!=null?At:At=[]).push({kind:2,diagnostics:ze.resolutionDiagnostics})}function kt(ze,Ze,Nt,Ut){if(en.resolveModuleNameLiterals||!en.resolveModuleNames)return Tt(Nt);if(!Dn||Qc(Ze))return;const vn=yo(ze.originalFileName,Di),Jn=ri(vn),bn=nr(ze),$n=Dn.getFromNonRelativeNameCache(Ze,Ut,Jn,bn);$n&&Tt($n)}function nn(ze,Ze,Nt){var Ut,vn;if(!ze.length)return et;const Jn=yo(Ze.originalFileName,Di),bn=nr(Ze);(Ut=ar)==null||Ut.push(ar.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Jn}),rl("beforeResolveModule");const $n=oi(ze,Jn,bn,G,Ze,Nt);return rl("afterResolveModule"),ef("ResolveModule","beforeResolveModule","afterResolveModule"),(vn=ar)==null||vn.pop(),$n}function En(ze,Ze,Nt){var Ut,vn;if(!ze.length)return[];const Jn=No(Ze)?void 0:Ze,bn=No(Ze)?Ze:yo(Ze.originalFileName,Di),$n=Jn&&nr(Jn);(Ut=ar)==null||Ut.push(ar.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:bn}),rl("beforeResolveTypeReference");const fi=eo(ze,bn,$n,G,Jn,Nt);return rl("afterResolveTypeReference"),ef("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(vn=ar)==null||vn.pop(),fi}function nr(ze){const Ze=ff(ze.originalFileName);if(Ze||!Tu(ze.originalFileName))return Ze;const Nt=lr(ze.path);if(Nt)return Nt;if(!en.realpath||!G.preserveSymlinks||!ze.originalFileName.includes(Dh))return;const Ut=Kn(en.realpath(ze.originalFileName));return Ut===ze.path?void 0:lr(Ut)}function lr(ze){const Ze=Nd(ze);if(No(Ze))return ff(Ze);if(Ze)return jd(Nt=>{const Ut=Os(Nt.commandLine.options);if(Ut)return Kn(Ut)===ze?Nt:void 0})}function ai(ze,Ze){return nl(si(ze),si(Ze))}function si(ze){if(Am(xo,ze.fileName,!1)){const Ze=lc(ze.fileName);if(Ze==="lib.d.ts"||Ze==="lib.es6.d.ts")return 0;const Nt=Gx(QC(Ze,"lib."),".d.ts"),Ut=yw.indexOf(Nt);if(Ut!==-1)return Ut+1}return yw.length+2}function Kn(ze){return il(ze,Di,te)}function Hr(){if(ie===void 0){const ze=rr(Ae,Ze=>MS(Ze,dn));ie=$P(G,()=>Hi(ze,Ze=>Ze.isDeclarationFile?void 0:Ze.fileName),Di,te,Ze=>zt(ze,Ze))}return ie}function bo(){var ze;if(!Ne){ao(),Ne=new Set;for(const Ze of Ae)(ze=Ze.classifiableNames)==null||ze.forEach(Nt=>Ne.add(Nt))}return Ne}function wi(ze,Ze){if(hn===0&&!Ze.ambientModuleNames.length)return nn(ze,Ze,void 0);let Nt,Ut,vn;const Jn=Cce,bn=Q&&Q.getSourceFile(Ze.fileName);for(let ei=0;ei<ze.length;ei++){const fr=ze[ei];if(Ze===bn&&!yi(Ze.path)){const Qa=Q==null?void 0:Q.getResolvedModule(Ze,fr.text,_f(Ze,fr));if(Qa!=null&&Qa.resolvedModule){Yg(G,en)&&So(en,Qa.resolvedModule.packageId?m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,fr.text,yo(Ze.originalFileName,Di),Qa.resolvedModule.resolvedFileName,Qa.resolvedModule.packageId&&By(Qa.resolvedModule.packageId)),(Ut!=null?Ut:Ut=new Array(ze.length))[ei]=Qa,(vn!=null?vn:vn=[]).push(fr);continue}}let Yo=!1;Nr(Ze.ambientModuleNames,fr.text)?(Yo=!0,Yg(G,en)&&So(en,m.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,fr.text,yo(Ze.originalFileName,Di))):Yo=cr(fr),Yo?(Ut||(Ut=new Array(ze.length)))[ei]=Jn:(Nt!=null?Nt:Nt=[]).push(fr)}const $n=Nt&&Nt.length?nn(Nt,Ze,vn):et;if(!Ut)return C.assert($n.length===ze.length),$n;let fi=0;for(let ei=0;ei<Ut.length;ei++)Ut[ei]||(Ut[ei]=$n[fi],fi++);return C.assert(fi===$n.length),Ut;function cr(ei){var fr;const Yo=(fr=Q==null?void 0:Q.getResolvedModule(Ze,ei.text,_f(Ze,ei)))==null?void 0:fr.resolvedModule,Qa=Yo&&Q.getSourceFile(Yo.resolvedFileName);if(Yo&&Qa)return!1;const Zu=qe.get(ei.text);return Zu?(Yg(G,en)&&So(en,m.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,ei.text,Zu),!0):!1}}function vi(ze,Ze){var Nt;if(hn===0)return En(ze,Ze,void 0);let Ut,vn,Jn;const bn=No(Ze)?void 0:Ze,$n=No(Ze)?void 0:Q&&Q.getSourceFile(Ze.fileName),fi=No(Ze)?!yi(Kn(Ze)):Ze===$n&&!yi(Ze.path);for(let fr=0;fr<ze.length;fr++){const Yo=ze[fr];if(fi){const Qa=jJ(Yo),Zu=Hw(Yo,bn==null?void 0:bn.impliedNodeFormat),_u=No(Ze)?(Nt=Q==null?void 0:Q.getAutomaticTypeDirectiveResolutions())==null?void 0:Nt.get(Qa,Zu):Q==null?void 0:Q.getResolvedTypeReferenceDirective(Ze,Qa,Zu);if(_u!=null&&_u.resolvedTypeReferenceDirective){Yg(G,en)&&So(en,_u.resolvedTypeReferenceDirective.packageId?m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Qa,No(Ze)?Ze:yo(Ze.originalFileName,Di),_u.resolvedTypeReferenceDirective.resolvedFileName,_u.resolvedTypeReferenceDirective.packageId&&By(_u.resolvedTypeReferenceDirective.packageId)),(vn!=null?vn:vn=new Array(ze.length))[fr]=_u,(Jn!=null?Jn:Jn=[]).push(Yo);continue}}(Ut!=null?Ut:Ut=[]).push(Yo)}if(!Ut)return vn||et;const cr=En(Ut,Ze,Jn);if(!vn)return C.assert(cr.length===ze.length),cr;let ei=0;for(let fr=0;fr<vn.length;fr++)vn[fr]||(vn[fr]=cr[ei],ei++);return C.assert(ei===cr.length),vn}function ga(){return!S7(Q.getProjectReferences(),Q.getResolvedProjectReferences(),(ze,Ze,Nt)=>{const Ut=(Ze?Ze.commandLine.projectReferences:_e)[Nt],vn=Jt(Ut);return ze?!vn||vn.sourceFile!==ze.sourceFile||!Ym(ze.commandLine.fileNames,vn.commandLine.fileNames):vn!==void 0},(ze,Ze)=>{const Nt=Ze?U_(Ze.sourceFile.path).commandLine.projectReferences:_e;return!Ym(ze,Nt,yj)})}function Ja(){var ze;if(!Q)return 0;const Ze=Q.getCompilerOptions();if(W4(Ze,G))return 0;const Nt=Q.getRootFileNames();if(!Ym(Nt,se)||!ga())return 0;_e&&(le=_e.map(Jt));const Ut=[],vn=[];if(hn=2,jc(Q.getMissingFilePaths(),cr=>en.fileExists(cr)))return 0;const Jn=Q.getSourceFiles();let bn;(cr=>{cr[cr.Exists=0]="Exists",cr[cr.Modified=1]="Modified"})(bn||(bn={}));const $n=new Map;for(const cr of Jn){const ei=ea(cr.fileName,Dn,en,G);let fr=en.getSourceFileByPath?en.getSourceFileByPath(cr.fileName,cr.resolvedPath,ei,void 0,gn):en.getSourceFile(cr.fileName,ei,void 0,gn);if(!fr)return 0;fr.packageJsonLocations=(ze=ei.packageJsonLocations)!=null&&ze.length?ei.packageJsonLocations:void 0,fr.packageJsonScope=ei.packageJsonScope,C.assert(!fr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Yo;if(cr.redirectInfo){if(fr!==cr.redirectInfo.unredirected)return 0;Yo=!1,fr=cr}else if(Q.redirectTargetsMap.has(cr.path)){if(fr!==cr)return 0;Yo=!1}else Yo=fr!==cr;fr.path=cr.path,fr.originalFileName=cr.originalFileName,fr.resolvedPath=cr.resolvedPath,fr.fileName=cr.fileName;const Qa=Q.sourceFileToPackageName.get(cr.path);if(Qa!==void 0){const Zu=$n.get(Qa),_u=Yo?1:0;if(Zu!==void 0&&_u===1||Zu===1)return 0;$n.set(Qa,_u)}if(Yo)cr.impliedNodeFormat!==fr.impliedNodeFormat?hn=1:Ym(cr.libReferenceDirectives,fr.libReferenceDirectives,Xl)?cr.hasNoDefaultLib!==fr.hasNoDefaultLib?hn=1:Ym(cr.referencedFiles,fr.referencedFiles,Xl)?(op(fr),Ym(cr.imports,fr.imports,Is)&&Ym(cr.moduleAugmentations,fr.moduleAugmentations,Is)?(cr.flags&12582912)!==(fr.flags&12582912)?hn=1:Ym(cr.typeReferenceDirectives,fr.typeReferenceDirectives,Xl)||(hn=1):hn=1):hn=1:hn=1,vn.push(fr);else if(yi(cr.path))hn=1,vn.push(fr);else for(const Zu of cr.ambientModuleNames)qe.set(Zu,cr.fileName);Ut.push(fr)}if(hn!==2)return hn;for(const cr of vn){const ei=gRe(cr),fr=wi(ei,cr);(Qe!=null?Qe:Qe=new Map).set(cr.path,fr),bj(ei,fr,rv=>Q.getResolvedModule(cr,rv.text,_f(cr,rv)),pie)&&(hn=1);const Qa=cr.typeReferenceDirectives,Zu=vi(Qa,cr);(on!=null?on:on=new Map).set(cr.path,Zu),bj(Qa,Zu,rv=>Q.getResolvedTypeReferenceDirective(cr,jJ(rv),Hw(rv,cr.impliedNodeFormat)),fie)&&(hn=1)}if(hn!==2)return hn;if(uie(Ze,G)||Q.resolvedLibReferences&&jc(Q.resolvedLibReferences,(cr,ei)=>vg(ei).actual!==cr.actual))return 1;if(en.hasChangedAutomaticTypeDirectiveNames){if(en.hasChangedAutomaticTypeDirectiveNames())return 1}else if(be=WF(G,en),!Ym(Q.getAutomaticTypeDirectiveNames(),be))return 1;pt=Q.getMissingFilePaths(),C.assert(Ut.length===Q.getSourceFiles().length);for(const cr of Ut)mt.set(cr.path,cr);return Q.getFilesByNameMap().forEach((cr,ei)=>{if(!cr){mt.set(ei,cr);return}if(cr.path===ei){Q.isSourceFileFromExternalLibrary(cr)&&tn.set(cr.path,!0);return}mt.set(ei,mt.get(cr.path))}),Ae=Ut,Ee=Q.getFileIncludeReasons(),At=Q.getFileProcessingDiagnostics(),Oe=Q.getResolvedTypeReferenceDirectives(),be=Q.getAutomaticTypeDirectiveNames(),Ue=Q.getAutomaticTypeDirectiveResolutions(),An=Q.sourceFileToPackageName,wn=Q.redirectTargetsMap,Je=Q.usesUriStyleNodeCoreModules,gt=Q.resolvedModules,It=Q.resolvedTypeReferenceDirectiveNames,it=Q.resolvedLibReferences,$t=Q.getCurrentPackagesMap(),2}function Qt(ze){return{getPrependNodes:La,getCanonicalFileName:te,getCommonSourceDirectory:dn.getCommonSourceDirectory,getCompilerOptions:dn.getCompilerOptions,getCurrentDirectory:()=>Di,getSourceFile:dn.getSourceFile,getSourceFileByPath:dn.getSourceFileByPath,getSourceFiles:dn.getSourceFiles,getLibFileFromReference:dn.getLibFileFromReference,isSourceFileFromExternalLibrary:ys,getResolvedProjectReferenceToRedirect:ff,getProjectReferenceRedirect:Ul,isSourceOfProjectReferenceRedirect:Of,getSymlinkCache:H_,writeFile:ze||va,isEmitBlocked:pu,readFile:Ze=>en.readFile(Ze),fileExists:Ze=>{const Nt=Kn(Ze);return _l(Nt)?!0:pt.has(Nt)?!1:en.fileExists(Ze)},useCaseSensitiveFileNames:()=>en.useCaseSensitiveFileNames(),getBuildInfo:Ze=>{var Nt;return(Nt=dn.getBuildInfo)==null?void 0:Nt.call(dn,Ze)},getSourceFileFromReference:(Ze,Nt)=>dn.getSourceFileFromReference(Ze,Nt),redirectTargetsMap:wn,getFileIncludeReasons:dn.getFileIncludeReasons,createHash:ia(en,en.createHash)}}function va(ze,Ze,Nt,Ut,vn,Jn){en.writeFile(ze,Ze,Nt,Ut,vn,Jn)}function Wl(ze){var Ze,Nt;C.assert(!Os(G)),(Ze=ar)==null||Ze.push(ar.Phase.Emit,"emitBuildInfo",{},!0),rl("beforeEmit");const Ut=m7(h7,Qt(ze),void 0,SJ,!1,!0);return rl("afterEmit"),ef("Emit","beforeEmit","afterEmit"),(Nt=ar)==null||Nt.pop(),Ut}function to(){return le}function za(){return _e}function La(){return XJ(_e,(ze,Ze)=>{var Nt;return(Nt=le[Ze])==null?void 0:Nt.commandLine},ze=>{const Ze=Kn(ze),Nt=_l(Ze);return Nt?Nt.text:mt.has(Ze)?void 0:en.readFile(Ze)},en)}function ys(ze){return!!tn.get(ze.path)}function tc(ze){if(!ze.isDeclarationFile)return!1;if(ze.hasNoDefaultLib)return!0;if(!G.noLib)return!1;const Ze=en.useCaseSensitiveFileNames()?dS:a0;return G.lib?St(G.lib,Nt=>Ze(ze.fileName,it.get(Nt).actual)):Ze(ze.fileName,Gi())}function ao(){return ge||(ge=ble(dn))}function ca(ze,Ze,Nt,Ut,vn,Jn){var bn,$n;(bn=ar)==null||bn.push(ar.Phase.Emit,"emit",{path:ze==null?void 0:ze.path},!0);const fi=fu(()=>Rs(dn,ze,Ze,Nt,Ut,vn,Jn));return($n=ar)==null||$n.pop(),fi}function pu(ze){return nt.has(Kn(ze))}function Rs(ze,Ze,Nt,Ut,vn,Jn,bn){if(!bn){const cr=KJ(ze,Ze,Nt,Ut);if(cr)return cr}const $n=ao().getEmitResolver(Os(G)?void 0:Ze,Ut);rl("beforeEmit");const fi=m7($n,Qt(Nt),Ze,EJ(G,Jn,vn),vn,!1,bn);return rl("afterEmit"),ef("Emit","beforeEmit","afterEmit"),fi}function ka(ze){return _l(Kn(ze))}function _l(ze){return mt.get(ze)||void 0}function wf(ze,Ze,Nt){return $x(ze?Ze(ze,Nt):Pi(dn.getSourceFiles(),Ut=>(Nt&&Nt.throwIfCancellationRequested(),Ze(Ut,Nt))))}function pc(ze,Ze){return wf(ze,iu,Ze)}function Cl(ze,Ze){return wf(ze,Rp,Ze)}function cl(ze){var Ze;return ze?(Ze=Me.perFile)==null?void 0:Ze.get(ze.path):Me.allDiagnostics}function Mo(ze,Ze){return Ws(ze,Ze)}function an(ze){var Ze;if(ZN(ze,G,dn))return et;const Nt=Qn.getDiagnostics(ze.fileName);return(Ze=ze.commentDirectives)!=null&&Ze.length?Z(ze,ze.commentDirectives,Nt).diagnostics:Nt}function Hs(ze,Ze){const Nt=dn.getCompilerOptions();return!ze||Os(Nt)?gr(ze,Ze):wf(ze,Ri,Ze)}function iu(ze){return dd(ze)?(ze.additionalSyntacticDiagnostics||(ze.additionalSyntacticDiagnostics=pn(ze)),To(ze.additionalSyntacticDiagnostics,ze.parseDiagnostics)):ze.parseDiagnostics}function fu(ze){try{return ze()}catch(Ze){throw Ze instanceof qx&&(ge=void 0),Ze}}function Rp(ze,Ze){return To(I7(Ws(ze,Ze),G),an(ze))}function Ws(ze,Ze){return qr(ze,Ze,Me,Cc)}function Cc(ze,Ze){return fu(()=>{if(ZN(ze,G,dn))return et;const Nt=ao();C.assert(!!ze.bindDiagnostics);const vn=(ze.scriptKind===1||ze.scriptKind===2)&&Ak(ze,G),Jn=RL(ze,G.checkJs),$n=!(!!ze.checkJsDirective&&ze.checkJsDirective.enabled===!1)&&(ze.scriptKind===3||ze.scriptKind===4||ze.scriptKind===5||Jn||vn||ze.scriptKind===7);let fi=$n?ze.bindDiagnostics:et,cr=$n?Nt.getDiagnostics(ze,Ze):et;return Jn&&(fi=rr(fi,ei=>D7.has(ei.code)),cr=rr(cr,ei=>D7.has(ei.code))),pe(ze,$n&&!Jn,fi,cr,vn?ze.jsDocDiagnostics:void 0)})}function pe(ze,Ze,...Nt){var Ut;const vn=ra(Nt);if(!Ze||!((Ut=ze.commentDirectives)!=null&&Ut.length))return vn;const{diagnostics:Jn,directives:bn}=Z(ze,ze.commentDirectives,vn);for(const $n of bn.getUnusedExpectations())Jn.push(Die(ze,$n.range,m.Unused_ts_expect_error_directive));return Jn}function Z(ze,Ze,Nt){const Ut=hie(ze,Ze);return{diagnostics:Nt.filter(Jn=>yt(Jn,Ut)===-1),directives:Ut}}function we(ze,Ze){return fu(()=>ao().getSuggestionDiagnostics(ze,Ze))}function yt(ze,Ze){const{file:Nt,start:Ut}=ze;if(!Nt)return-1;const vn=Wg(Nt);let Jn=Xx(vn,Ut).line-1;for(;Jn>=0;){if(Ze.markUsed(Jn))return Jn;const bn=Nt.text.slice(vn[Jn],vn[Jn+1]).trim();if(bn!==""&&!/^(\s*)\/\/(.*)$/.test(bn))return-1;Jn--}return-1}function pn(ze){return fu(()=>{const Ze=[];return Nt(ze,ze),NP(ze,Nt,Ut),Ze;function Nt($n,fi){switch(fi.kind){case 169:case 172:case 174:if(fi.questionToken===$n)return Ze.push(bn($n,m.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(fi.type===$n)return Ze.push(bn($n,m.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch($n.kind){case 273:if($n.isTypeOnly)return Ze.push(bn(fi,m._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if($n.isTypeOnly)return Ze.push(bn($n,m._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if($n.isTypeOnly)return Ze.push(bn($n,m._0_declarations_can_only_be_used_in_TypeScript_files,np($n)?"import...type":"export...type")),"skip";break;case 271:return Ze.push(bn($n,m.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if($n.isExportEquals)return Ze.push(bn($n,m.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if($n.token===119)return Ze.push(bn($n,m.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const ei=pa(120);return C.assertIsDefined(ei),Ze.push(bn($n,m._0_declarations_can_only_be_used_in_TypeScript_files,ei)),"skip";case 267:const fr=$n.flags&32?pa(145):pa(144);return C.assertIsDefined(fr),Ze.push(bn($n,m._0_declarations_can_only_be_used_in_TypeScript_files,fr)),"skip";case 265:return Ze.push(bn($n,m.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return $n.body?void 0:(Ze.push(bn($n,m.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const Yo=C.checkDefined(pa(94));return Ze.push(bn($n,m._0_declarations_can_only_be_used_in_TypeScript_files,Yo)),"skip";case 235:return Ze.push(bn($n,m.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Ze.push(bn($n.type,m.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Ze.push(bn($n.type,m.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:C.fail()}}function Ut($n,fi){if(tq(fi)){const cr=Tn(fi.modifiers,Su);cr&&Ze.push(bn(cr,m.Decorators_are_not_valid_here))}else if(QS(fi)&&fi.modifiers){const cr=Br(fi.modifiers,Su);if(cr>=0){if(Io(fi)&&!G.experimentalDecorators)Ze.push(bn(fi.modifiers[cr],m.Decorators_are_not_valid_here));else if(Rc(fi)){const ei=Br(fi.modifiers,oI);if(ei>=0){const fr=Br(fi.modifiers,eF);if(cr>ei&&fr>=0&&cr<fr)Ze.push(bn(fi.modifiers[cr],m.Decorators_are_not_valid_here));else if(ei>=0&&cr<ei){const Yo=Br(fi.modifiers,Su,ei);Yo>=0&&Ze.push(Oa(bn(fi.modifiers[Yo],m.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),bn(fi.modifiers[cr],m.Decorator_used_before_export_here)))}}}}}switch(fi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if($n===fi.typeParameters)return Ze.push(Jn($n,m.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if($n===fi.modifiers)return vn(fi.modifiers,fi.kind===243),"skip";break;case 172:if($n===fi.modifiers){for(const cr of $n)xa(cr)&&cr.kind!==126&&cr.kind!==129&&Ze.push(bn(cr,m.The_0_modifier_can_only_be_used_in_TypeScript_files,pa(cr.kind)));return"skip"}break;case 169:if($n===fi.modifiers&&St($n,xa))return Ze.push(Jn($n,m.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if($n===fi.typeArguments)return Ze.push(Jn($n,m.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function vn($n,fi){for(const cr of $n)switch(cr.kind){case 87:if(fi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Ze.push(bn(cr,m.The_0_modifier_can_only_be_used_in_TypeScript_files,pa(cr.kind)));break;case 126:case 95:case 90:case 129:}}function Jn($n,fi,...cr){const ei=$n.pos;return eu(ze,ei,$n.end-ei,fi,...cr)}function bn($n,fi,...cr){return nm(ze,$n,fi,...cr)}})}function gr(ze,Ze){return qr(ze,Ze,Ce,br)}function br(ze,Ze){return fu(()=>{const Nt=ao().getEmitResolver(ze,Ze);return fce(Qt(ts),Nt,ze)||et})}function qr(ze,Ze,Nt,Ut){var vn;const Jn=ze?(vn=Nt.perFile)==null?void 0:vn.get(ze.path):Nt.allDiagnostics;if(Jn)return Jn;const bn=Ut(ze,Ze);return ze?(Nt.perFile||(Nt.perFile=new Map)).set(ze.path,bn):Nt.allDiagnostics=bn,bn}function Ri(ze,Ze){return ze.isDeclarationFile?[]:gr(ze,Ze)}function hr(){return $x(To(Qn.getGlobalDiagnostics(),Ho()))}function Ho(){if(!G.configFile)return et;let ze=Qn.getDiagnostics(G.configFile.fileName);return jd(Ze=>{ze=To(ze,Qn.getDiagnostics(Ze.sourceFile.fileName))}),ze}function Nl(){return se.length?$x(ao().getGlobalDiagnostics().slice()):et}function zc(){return re||et}function Sl(ze,Ze,Nt,Ut){Pe(ha(ze),Ze,Nt,void 0,Ut)}function Xl(ze,Ze){return ze.fileName===Ze.fileName}function Is(ze,Ze){return ze.kind===80?Ze.kind===80&&ze.escapedText===Ze.escapedText:Ze.kind===11&&ze.text===Ze.text}function nc(ze,Ze){const Nt=w.createStringLiteral(ze),Ut=w.createImportDeclaration(void 0,void 0,Nt,void 0);return QA(Ut,2),Ya(Nt,Ut),Ya(Ut,Ze),Nt.flags&=-17,Ut.flags&=-17,Nt}function op(ze){if(ze.imports)return;const Ze=dd(ze),Nt=dc(ze);let Ut,vn,Jn;if((um(G)||Nt)&&!ze.isDeclarationFile){G.importHelpers&&(Ut=[nc(Ky,ze)]);const cr=K3(J3(G,ze),G);cr&&(Ut||(Ut=[])).push(nc(cr,ze))}for(const cr of ze.statements)bn(cr,!1);(ze.flags&4194304||Ze)&&$n(ze),ze.imports=Ut||et,ze.moduleAugmentations=vn||et,ze.ambientModuleNames=Jn||et;return;function bn(cr,ei){if(NL(cr)){const fr=bR(cr);fr&&Ma(fr)&&fr.text&&(!ei||!Qc(fr.text))&&(Jy(cr,!1),Ut=Rn(Ut,fr),!Je&&Hn===0&&!ze.isDeclarationFile&&(Je=po(fr.text,"node:")))}else if(Ql(cr)&&ku(cr)&&(ei||$r(cr,128)||ze.isDeclarationFile)){cr.name.parent=cr;const fr=om(cr.name);if(Nt||ei&&!Qc(fr))(vn||(vn=[])).push(cr.name);else if(!ei){ze.isDeclarationFile&&(Jn||(Jn=[])).push(fr);const Yo=cr.body;if(Yo)for(const Qa of Yo.statements)bn(Qa,!0)}}}function $n(cr){const ei=/import|require/g;for(;ei.exec(cr.text)!==null;){const fr=fi(cr,ei.lastIndex);Ze&&Td(fr,!0)||Bp(fr)&&fr.arguments.length>=1&&ds(fr.arguments[0])?(Jy(fr,!1),Ut=Rn(Ut,fr.arguments[0])):Vy(fr)&&(Jy(fr,!1),Ut=Rn(Ut,fr.argument.literal))}}function fi(cr,ei){let fr=cr;const Yo=Qa=>{if(Qa.pos<=ei&&(ei<Qa.end||ei===Qa.end&&Qa.kind===1))return Qa};for(;;){const Qa=Ze&&Fp(fr)&&He(fr.jsDoc,Yo)||Vo(fr,Yo);if(!Qa)return fr;fr=Qa}}}function ap(ze){var Ze;const{libFileName:Nt}=hRe(ze),Ut=Nt&&((Ze=it==null?void 0:it.get(Nt))==null?void 0:Ze.actual);return Ut!==void 0?ka(Ut):void 0}function Jc(ze,Ze){return Cd(b7(Ze.fileName,ze.fileName),ka)}function Cd(ze,Ze,Nt,Ut){if(xA(ze)){const vn=en.getCanonicalFileName(ze);if(!G.allowNonTsExtensions&&!He(ra(Xt),bn=>Il(vn,bn))){Nt&&(QE(vn)?Nt(m.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,ze):Nt(m.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,ze,"'"+ra(Ir).join("', '")+"'"));return}const Jn=Ze(ze);if(Nt)if(Jn)W0(Ut)&&vn===en.getCanonicalFileName(_l(Ut.file).fileName)&&Nt(m.A_file_cannot_have_a_reference_to_itself);else{const bn=Ul(ze);bn?Nt(m.Output_file_0_has_not_been_built_from_source_file_1,bn,ze):Nt(m.File_0_not_found,ze)}return Jn}else{const vn=G.allowNonTsExtensions&&Ze(ze);if(vn)return vn;if(Nt&&G.allowNonTsExtensions){Nt(m.File_0_not_found,ze);return}const Jn=He(Ir[0],bn=>Ze(ze+bn));return Nt&&!Jn&&Nt(m.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,ze,"'"+ra(Ir).join("', '")+"'"),Jn}}function Pe(ze,Ze,Nt,Ut,vn){Cd(ze,Jn=>Xo(Jn,Ze,Nt,vn,Ut),(Jn,...bn)=>Xr(void 0,vn,Jn,bn),vn)}function Wt(ze,Ze){return Pe(ze,!1,!1,void 0,Ze)}function qn(ze,Ze,Nt){!W0(Nt)&&St(Ee.get(Ze.path),W0)?Xr(Ze,Nt,m.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ze.fileName,ze]):Xr(Ze,Nt,m.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[ze,Ze.fileName])}function Eo(ze,Ze,Nt,Ut,vn,Jn,bn){var $n;const fi=Rh.createRedirectedSourceFile({redirectTarget:ze,unredirected:Ze});return fi.fileName=Nt,fi.path=Ut,fi.resolvedPath=vn,fi.originalFileName=Jn,fi.packageJsonLocations=($n=bn.packageJsonLocations)!=null&&$n.length?bn.packageJsonLocations:void 0,fi.packageJsonScope=bn.packageJsonScope,tn.set(Ut,Hn>0),fi}function Xo(ze,Ze,Nt,Ut,vn){var Jn,bn;(Jn=ar)==null||Jn.push(ar.Phase.Program,"findSourceFile",{fileName:ze,isDefaultLib:Ze||void 0,fileIncludeKind:$6[Ut.kind]});const $n=rc(ze,Ze,Nt,Ut,vn);return(bn=ar)==null||bn.pop(),$n}function ea(ze,Ze,Nt,Ut){const vn=JJ(yo(ze,Di),Ze==null?void 0:Ze.getPackageJsonInfoCache(),Nt,Ut),Jn=ls(Ut),bn=bk(Ut);return typeof vn=="object"?{...vn,languageVersion:Jn,setExternalModuleIndicator:bn,jsDocParsingMode:Nt.jsDocParsingMode}:{languageVersion:Jn,impliedNodeFormat:vn,setExternalModuleIndicator:bn,jsDocParsingMode:Nt.jsDocParsingMode}}function rc(ze,Ze,Nt,Ut,vn){var Jn;const bn=Kn(ze);if(ot){let fr=Nd(bn);if(!fr&&en.realpath&&G.preserveSymlinks&&Tu(ze)&&ze.includes(Dh)){const Yo=Kn(en.realpath(ze));Yo!==bn&&(fr=Nd(Yo))}if(fr){const Yo=No(fr)?Xo(fr,Ze,Nt,Ut,vn):void 0;return Yo&&ul(Yo,bn,ze,void 0),Yo}}const $n=ze;if(mt.has(bn)){const fr=mt.get(bn);if(Sc(fr||void 0,Ut),fr&&G.forceConsistentCasingInFileNames!==!1){const Yo=fr.fileName;Kn(Yo)!==Kn(ze)&&(ze=Ul(ze)||ze);const Zu=BV(Yo,Di),_u=BV(ze,Di);Zu!==_u&&qn(ze,fr,Ut)}return fr&&tn.get(fr.path)&&Hn===0?(tn.set(fr.path,!1),G.noResolve||(Mh(fr,Ze),ev(fr)),G.noLib||Ud(fr),yn.set(fr.path,!1),lt(fr)):fr&&yn.get(fr.path)&&Hn<Cn&&(yn.set(fr.path,!1),lt(fr)),fr||void 0}let fi;if(W0(Ut)&&!ot){const fr=ic(ze);if(fr){if(Os(fr.commandLine.options))return;const Yo=Kc(fr,ze);ze=Yo,fi=Kn(Yo)}}const cr=ea(ze,Dn,en,G),ei=en.getSourceFile(ze,cr,fr=>Xr(void 0,Ut,m.Cannot_read_file_0_Colon_1,[ze,fr]),gn);if(vn){const fr=By(vn),Yo=Fa.get(fr);if(Yo){const Qa=Eo(Yo,ei,ze,bn,Kn(ze),$n,cr);return wn.add(Yo.path,ze),ul(Qa,bn,ze,fi),Sc(Qa,Ut),An.set(bn,B4(vn)),he.push(Qa),Qa}else ei&&(Fa.set(fr,ei),An.set(bn,B4(vn)))}if(ul(ei,bn,ze,fi),ei){if(tn.set(bn,Hn>0),ei.fileName=ze,ei.path=bn,ei.resolvedPath=Kn(ze),ei.originalFileName=$n,ei.packageJsonLocations=(Jn=cr.packageJsonLocations)!=null&&Jn.length?cr.packageJsonLocations:void 0,ei.packageJsonScope=cr.packageJsonScope,Sc(ei,Ut),en.useCaseSensitiveFileNames()){const fr=dh(bn),Yo=Pt.get(fr);Yo?qn(ze,Yo,Ut):Pt.set(fr,ei)}ho=ho||ei.hasNoDefaultLib&&!Nt,G.noResolve||(Mh(ei,Ze),ev(ei)),G.noLib||Ud(ei),lt(ei),Ze?oe.push(ei):he.push(ei)}return ei}function Sc(ze,Ze){ze&&Ee.add(ze.path,Ze)}function ul(ze,Ze,Nt,Ut){Ut?(vl(Nt,Ut,ze),vl(Nt,Ze,ze||!1)):vl(Nt,Ze,ze)}function vl(ze,Ze,Nt){mt.set(Ze,Nt),Nt!==void 0?pt.delete(Ze):pt.set(Ze,ze)}function Ul(ze){const Ze=ic(ze);return Ze&&Kc(Ze,ze)}function ic(ze){if(!(!le||!le.length||Tu(ze)||Il(ze,".json")))return ff(ze)}function Kc(ze,Ze){const Nt=Os(ze.commandLine.options);return Nt?A0(Nt,".d.ts"):YP(Ze,ze.commandLine,!en.useCaseSensitiveFileNames())}function ff(ze){dt===void 0&&(dt=new Map,jd(Nt=>{Kn(G.configFilePath)!==Nt.sourceFile.path&&Nt.commandLine.fileNames.forEach(Ut=>dt.set(Kn(Ut),Nt.sourceFile.path))}));const Ze=dt.get(Kn(ze));return Ze&&U_(Ze)}function jd(ze){return UJ(le,ze)}function Nd(ze){if(Tu(ze))return j===void 0&&(j=new Map,jd(Ze=>{const Nt=Os(Ze.commandLine.options);if(Nt){const Ut=A0(Nt,".d.ts");j.set(Kn(Ut),!0)}else{const Ut=Sd(()=>hD(Ze.commandLine,!en.useCaseSensitiveFileNames()));He(Ze.commandLine.fileNames,vn=>{if(!Tu(vn)&&!Il(vn,".json")){const Jn=YP(vn,Ze.commandLine,!en.useCaseSensitiveFileNames(),Ut);j.set(Kn(Jn),vn)}})}})),j.get(ze)}function Of(ze){return ot&&!!ff(ze)}function U_(ze){if(Fe)return Fe.get(ze)||void 0}function Mh(ze,Ze){He(ze.referencedFiles,(Nt,Ut)=>{Pe(b7(Nt.fileName,ze.fileName),Ze,!1,void 0,{kind:4,file:ze.path,index:Ut})})}function ev(ze){const Ze=ze.typeReferenceDirectives;if(!Ze.length)return;const Nt=(on==null?void 0:on.get(ze.path))||vi(Ze,ze),Ut=TI();(It!=null?It:It=new Map).set(ze.path,Ut);for(let vn=0;vn<Ze.length;vn++){const Jn=ze.typeReferenceDirectives[vn],bn=Nt[vn],$n=dh(Jn.fileName);Ut.set($n,Hw(Jn,ze.impliedNodeFormat),bn);const fi=Jn.resolutionMode||ze.impliedNodeFormat;Bu($n,fi,bn,{kind:5,file:ze.path,index:vn})}}function Bu(ze,Ze,Nt,Ut){var vn,Jn;(vn=ar)==null||vn.push(ar.Phase.Program,"processTypeReferenceDirective",{directive:ze,hasResolved:!!Nt.resolvedTypeReferenceDirective,refKind:Ut.kind,refPath:W0(Ut)?Ut.file:void 0}),tv(ze,Ze,Nt,Ut),(Jn=ar)==null||Jn.pop()}function tv(ze,Ze,Nt,Ut){var vn;Tt(Nt);const Jn=(vn=Oe.get(ze,Ze))==null?void 0:vn.resolvedTypeReferenceDirective;if(Jn&&Jn.primary)return;let bn=!0;const{resolvedTypeReferenceDirective:$n}=Nt;if($n){if($n.isExternalLibraryImport&&Hn++,$n.primary)Pe($n.resolvedFileName,!1,!1,$n.packageId,Ut);else if(Jn){if($n.resolvedFileName!==Jn.resolvedFileName){const fi=en.readFile($n.resolvedFileName),cr=ka(Jn.resolvedFileName);fi!==cr.text&&Xr(cr,Ut,m.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[ze,$n.resolvedFileName,Jn.resolvedFileName])}bn=!1}else Pe($n.resolvedFileName,!1,!1,$n.packageId,Ut);$n.isExternalLibraryImport&&Hn--}else Xr(void 0,Ut,m.Cannot_find_type_definition_file_for_0,[ze]);bn&&Oe.set(ze,Ze,Nt)}function Dp(ze){const Ze=it==null?void 0:it.get(ze);if(Ze)return Ze.actual;const Nt=vg(ze);return(it!=null?it:it=new Map).set(ze,Nt),Nt.actual}function vg(ze){var Ze,Nt,Ut,vn,Jn;const bn=Ft==null?void 0:Ft.get(ze);if(bn)return bn;if(hn!==0&&Q&&!Ro(ze)){const fr=(Ze=Q.resolvedLibReferences)==null?void 0:Ze.get(ze);if(fr){if(fr.resolution&&Yg(G,en)){const Yo=HJ(ze),Qa=T7(G,Di,ze);So(en,fr.resolution.resolvedModule?fr.resolution.resolvedModule.packageId?m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Yo,yo(Qa,Di),(Nt=fr.resolution.resolvedModule)==null?void 0:Nt.resolvedFileName,((Ut=fr.resolution.resolvedModule)==null?void 0:Ut.packageId)&&By(fr.resolution.resolvedModule.packageId))}return(Ft!=null?Ft:Ft=new Map).set(ze,fr),fr}}const $n=HJ(ze),fi=T7(G,Di,ze);(vn=ar)==null||vn.push(ar.Phase.Program,"resolveLibrary",{resolveFrom:fi}),rl("beforeResolveLibrary");const cr=fa($n,fi,G,ze);rl("afterResolveLibrary"),ef("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),(Jn=ar)==null||Jn.pop();const ei={resolution:cr,actual:cr.resolvedModule?cr.resolvedModule.resolvedFileName:Yr(xo,ze)};return(Ft!=null?Ft:Ft=new Map).set(ze,ei),ei}function Ud(ze){He(ze.libReferenceDirectives,(Ze,Nt)=>{const{libName:Ut,libFileName:vn}=hRe(Ze);if(vn)Sl(Dp(vn),!0,!0,{kind:7,file:ze.path,index:Nt});else{const Jn=Gx(QC(Ut,"lib."),".d.ts"),bn=$C(Jn,yw,tl),$n=bn?m.Cannot_find_lib_definition_for_0_Did_you_mean_1:m.Cannot_find_lib_definition_for_0,fi=bn?[Ut,bn]:[Ut];(At||(At=[])).push({kind:0,reason:{kind:7,file:ze.path,index:Nt},diagnostic:$n,args:fi})}})}function te(ze){return en.getCanonicalFileName(ze)}function lt(ze){var Ze;if(op(ze),ze.imports.length||ze.moduleAugmentations.length){const Nt=gRe(ze),Ut=(Qe==null?void 0:Qe.get(ze.path))||wi(Nt,ze);C.assert(Ut.length===Nt.length);const vn=((Ze=nr(ze))==null?void 0:Ze.commandLine.options)||G,Jn=TI();(gt!=null?gt:gt=new Map).set(ze.path,Jn);for(let bn=0;bn<Nt.length;bn++){const $n=Ut[bn].resolvedModule,fi=Nt[bn].text,cr=GJ(ze,Nt[bn],vn);if(Jn.set(fi,cr,Ut[bn]),kt(ze,fi,Ut[bn],cr),!$n)continue;const ei=$n.isExternalLibraryImport,fr=!$N($n.extension),Yo=ei&&fr&&(!$n.originalPath||w0($n.resolvedFileName)),Qa=$n.resolvedFileName;ei&&Hn++;const Zu=Yo&&Hn>Cn,_u=Qa&&!YJ(vn,$n,ze)&&!vn.noResolve&&bn<ze.imports.length&&!Zu&&!(fr&&!Xy(vn))&&(sr(ze.imports[bn])||!(ze.imports[bn].flags&16777216));Zu?yn.set(ze.path,!0):_u&&Xo(Qa,!1,!1,{kind:3,file:ze.path,index:bn},$n.packageId),ei&&Hn--}}}function zt(ze,Ze){let Nt=!0;const Ut=en.getCanonicalFileName(yo(Ze,Di));for(const vn of ze)vn.isDeclarationFile||en.getCanonicalFileName(yo(vn.fileName,Di)).indexOf(Ut)!==0&&(so(vn,m.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[vn.fileName,Ze]),Nt=!1);return Nt}function Jt(ze){Fe||(Fe=new Map);const Ze=yD(ze),Nt=Kn(Ze),Ut=Fe.get(Nt);if(Ut!==void 0)return Ut||void 0;let vn,Jn;if(en.getParsedCommandLine){if(vn=en.getParsedCommandLine(Ze),!vn){ul(void 0,Nt,Ze,void 0),Fe.set(Nt,!1);return}Jn=C.checkDefined(vn.options.configFile),C.assert(!Jn.path||Jn.path===Nt),ul(Jn,Nt,Ze,void 0)}else{const $n=yo(ri(Ze),Di);if(Jn=en.getSourceFile(Ze,100),ul(Jn,Nt,Ze,void 0),Jn===void 0){Fe.set(Nt,!1);return}vn=hw(Jn,gi,$n,void 0,Ze)}Jn.fileName=Ze,Jn.path=Nt,Jn.resolvedPath=Nt,Jn.originalFileName=Ze;const bn={commandLine:vn,sourceFile:Jn};return Fe.set(Nt,bn),vn.projectReferences&&(bn.references=vn.projectReferences.map(Jt)),bn}function F(){G.strictPropertyInitialization&&!fd(G,"strictNullChecks")&&ps(m.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),G.exactOptionalPropertyTypes&&!fd(G,"strictNullChecks")&&ps(m.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(G.isolatedModules||G.verbatimModuleSyntax)&&(G.out&&ps(m.Option_0_cannot_be_specified_with_option_1,"out",G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),G.outFile&&ps(m.Option_0_cannot_be_specified_with_option_1,"outFile",G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),G.inlineSourceMap&&(G.sourceMap&&ps(m.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),G.mapRoot&&ps(m.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),G.composite&&(G.declaration===!1&&ps(m.Composite_projects_may_not_disable_declaration_emit,"declaration"),G.incremental===!1&&ps(m.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const ze=Os(G);if(G.tsBuildInfoFile?uP(G)||ps(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):G.incremental&&!ze&&!G.configFilePath&&Qn.add(Jl(m.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Vt(),Ga(),G.composite){const bn=new Set(se.map(Kn));for(const $n of Ae)MS($n,dn)&&!bn.has($n.path)&&so($n,m.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[$n.fileName,G.configFilePath||""])}if(G.paths){for(const bn in G.paths)if(Cs(G.paths,bn))if(OU(bn)||mu(!0,bn,m.Pattern_0_can_have_at_most_one_Asterisk_character,bn),Ao(G.paths[bn])){const $n=G.paths[bn].length;$n===0&&mu(!1,bn,m.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,bn);for(let fi=0;fi<$n;fi++){const cr=G.paths[bn][fi],ei=typeof cr;ei==="string"?(OU(cr)||Fl(bn,fi,m.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,cr,bn),!G.baseUrl&&!Wp(cr)&&!nN(cr)&&Fl(bn,fi,m.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Fl(bn,fi,m.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,cr,bn,ei)}}else mu(!1,bn,m.Substitutions_for_pattern_0_should_be_an_array,bn)}!G.sourceMap&&!G.inlineSourceMap&&(G.inlineSources&&ps(m.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),G.sourceRoot&&ps(m.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),G.out&&G.outFile&&ps(m.Option_0_cannot_be_specified_with_option_1,"out","outFile"),G.mapRoot&&!(G.sourceMap||G.declarationMap)&&ps(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),G.declarationDir&&(Cf(G)||ps(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),ze&&ps(m.Option_0_cannot_be_specified_with_option_1,"declarationDir",G.out?"out":"outFile")),G.declarationMap&&!Cf(G)&&ps(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),G.lib&&G.noLib&&ps(m.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),G.noImplicitUseStrict&&fd(G,"alwaysStrict")&&ps(m.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");const Ze=ls(G),Nt=Tn(Ae,bn=>dc(bn)&&!bn.isDeclarationFile);if(G.isolatedModules||G.verbatimModuleSyntax)G.module===0&&Ze<2&&G.isolatedModules&&ps(m.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),G.preserveConstEnums===!1&&ps(m.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Nt&&Ze<2&&G.module===0){const bn=AS(Nt,typeof Nt.externalModuleIndicator=="boolean"?Nt:Nt.externalModuleIndicator);Qn.add(eu(Nt,bn.start,bn.length,m.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(ze&&!G.emitDeclarationOnly){if(G.module&&!(G.module===2||G.module===4))ps(m.Only_amd_and_system_modules_are_supported_alongside_0,G.out?"out":"outFile","module");else if(G.module===void 0&&Nt){const bn=AS(Nt,typeof Nt.externalModuleIndicator=="boolean"?Nt:Nt.externalModuleIndicator);Qn.add(eu(Nt,bn.start,bn.length,m.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,G.out?"out":"outFile"))}}if(x0(G)&&(md(G)===1?ps(m.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):U3(G)||ps(m.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),G.outDir||G.rootDir||G.sourceRoot||G.mapRoot){const bn=Hr();G.outDir&&bn===""&&Ae.some($n=>mh($n.fileName)>1)&&ps(m.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}G.useDefineForClassFields&&Ze===0&&ps(m.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),G.checkJs&&!Xy(G)&&Qn.add(Jl(m.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),G.emitDeclarationOnly&&(Cf(G)||ps(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),G.noEmit&&ps(m.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),G.emitDecoratorMetadata&&!G.experimentalDecorators&&ps(m.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),G.jsxFactory?(G.reactNamespace&&ps(m.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(G.jsx===4||G.jsx===5)&&ps(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",kP.get(""+G.jsx)),bI(G.jsxFactory,Ze)||Wf("jsxFactory",m.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFactory)):G.reactNamespace&&!tf(G.reactNamespace,Ze)&&Wf("reactNamespace",m.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,G.reactNamespace),G.jsxFragmentFactory&&(G.jsxFactory||ps(m.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(G.jsx===4||G.jsx===5)&&ps(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",kP.get(""+G.jsx)),bI(G.jsxFragmentFactory,Ze)||Wf("jsxFragmentFactory",m.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFragmentFactory)),G.reactNamespace&&(G.jsx===4||G.jsx===5)&&ps(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",kP.get(""+G.jsx)),G.jsxImportSource&&G.jsx===2&&ps(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",kP.get(""+G.jsx)),G.preserveValueImports&&wu(G)<5&&ps(m.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");const Ut=wu(G);G.verbatimModuleSyntax&&((Ut===2||Ut===3||Ut===4)&&ps(m.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),G.preserveValueImports&&zf("preserveValueImports","verbatimModuleSyntax"),G.importsNotUsedAsValues&&zf("importsNotUsedAsValues","verbatimModuleSyntax")),G.allowImportingTsExtensions&&!(G.noEmit||G.emitDeclarationOnly)&&Wf("allowImportingTsExtensions",m.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const vn=md(G);if(G.resolvePackageJsonExports&&!KA(vn)&&ps(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),G.resolvePackageJsonImports&&!KA(vn)&&ps(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),G.customConditions&&!KA(vn)&&ps(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),vn===100&&!j3(Ut)&&Ut!==200&&Wf("moduleResolution",m.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),eN[Ut]&&100<=Ut&&Ut<=199&&!(3<=vn&&vn<=99)){const bn=eN[Ut];Wf("moduleResolution",m.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,bn,bn)}else if(Jx[vn]&&3<=vn&&vn<=99&&!(100<=Ut&&Ut<=199)){const bn=Jx[vn];Wf("module",m.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,bn,bn)}if(!G.noEmit&&!G.suppressOutputPathCheck){const bn=Qt(),$n=new Set;TJ(bn,fi=>{G.emitDeclarationOnly||Jn(fi.jsFilePath,$n),Jn(fi.declarationFilePath,$n)})}function Jn(bn,$n){if(bn){const fi=Kn(bn);if(mt.has(fi)){let ei;G.configFilePath||(ei=Bo(void 0,m.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)),ei=Bo(ei,m.Cannot_write_file_0_because_it_would_overwrite_input_file,bn),fb(bn,G3(ei))}const cr=en.useCaseSensitiveFileNames()?fi:dh(fi);$n.has(cr)?fb(bn,Jl(m.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,bn)):$n.add(cr)}}}function De(){const ze=G.ignoreDeprecations;if(ze){if(ze==="5.0")return new Tm(ze);Y()}return Tm.zero}function st(ze,Ze,Nt,Ut){const vn=new Tm(ze),Jn=new Tm(Ze),bn=new Tm(ye||ue),$n=De(),fi=Jn.compareTo(bn)!==1,cr=!fi&&$n.compareTo(vn)===-1;(fi||cr)&&Ut((ei,fr,Yo)=>{fi?fr===void 0?Nt(ei,fr,Yo,m.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ei):Nt(ei,fr,Yo,m.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ei,fr):fr===void 0?Nt(ei,fr,Yo,m.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ei,Ze,ze):Nt(ei,fr,Yo,m.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ei,fr,Ze,ze)})}function Vt(){function ze(Ze,Nt,Ut,vn,...Jn){if(Ut){const bn=Bo(void 0,m.Use_0_instead,Ut),$n=Bo(bn,vn,...Jn);Vi(!Nt,Ze,void 0,$n)}else Vi(!Nt,Ze,void 0,vn,...Jn)}st("5.0","5.5",ze,Ze=>{G.target===0&&Ze("target","ES3"),G.noImplicitUseStrict&&Ze("noImplicitUseStrict"),G.keyofStringsOnly&&Ze("keyofStringsOnly"),G.suppressExcessPropertyErrors&&Ze("suppressExcessPropertyErrors"),G.suppressImplicitAnyIndexErrors&&Ze("suppressImplicitAnyIndexErrors"),G.noStrictGenericChecks&&Ze("noStrictGenericChecks"),G.charset&&Ze("charset"),G.out&&Ze("out",void 0,"outFile"),G.importsNotUsedAsValues&&Ze("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),G.preserveValueImports&&Ze("preserveValueImports",void 0,"verbatimModuleSyntax")})}function ir(ze,Ze,Nt){function Ut(vn,Jn,bn,$n,...fi){Ff(Ze,Nt,$n,...fi)}st("5.0","5.5",Ut,vn=>{ze.prepend&&vn("prepend")})}function ni(ze,Ze,Nt,Ut){var vn;let Jn,bn,$n=W0(Ze)?Ze:void 0;ze&&((vn=Ee.get(ze.path))==null||vn.forEach(Yo)),Ze&&Yo(Ze),$n&&(Jn==null?void 0:Jn.length)===1&&(Jn=void 0);const fi=$n&&QP(dn,$n),cr=Jn&&Bo(Jn,m.The_file_is_in_the_program_because_Colon),ei=ze&&fK(ze),fr=Bo(ei?cr?[cr,...ei]:ei:cr,Nt,...Ut||et);return fi&&vD(fi)?J4(fi.file,fi.pos,fi.end-fi.pos,fr,bn):G3(fr,bn);function Yo(Qa){(Jn||(Jn=[])).push(hK(dn,Qa)),!$n&&W0(Qa)?$n=Qa:$n!==Qa&&(bn=Rn(bn,Ba(Qa))),Qa===Ze&&(Ze=void 0)}}function Xr(ze,Ze,Nt,Ut){(At||(At=[])).push({kind:1,file:ze&&ze.path,fileProcessingReason:Ze,diagnostic:Nt,args:Ut})}function so(ze,Ze,Nt){Qn.add(ni(ze,void 0,Ze,Nt))}function Ba(ze){if(W0(ze)){const Ut=QP(dn,ze);let vn;switch(ze.kind){case 3:vn=m.File_is_included_via_import_here;break;case 4:vn=m.File_is_included_via_reference_here;break;case 5:vn=m.File_is_included_via_type_library_reference_here;break;case 7:vn=m.File_is_included_via_library_reference_here;break;default:C.assertNever(ze)}return vD(Ut)?eu(Ut.file,Ut.pos,Ut.end-Ut.pos,vn):void 0}if(!G.configFile)return;let Ze,Nt;switch(ze.kind){case 0:if(!G.configFile.configFileSpecs)return;const Ut=yo(se[ze.index],Di),vn=mK(dn,Ut);if(vn){Ze=e3(G.configFile,"files",vn),Nt=m.File_is_matched_by_files_list_specified_here;break}const Jn=_K(dn,Ut);if(!Jn||!No(Jn))return;Ze=e3(G.configFile,"include",Jn),Nt=m.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const bn=C.checkDefined(le==null?void 0:le[ze.index]),$n=S7(_e,le,(Yo,Qa,Zu)=>Yo===bn?{sourceFile:(Qa==null?void 0:Qa.sourceFile)||G.configFile,index:Zu}:void 0);if(!$n)return;const{sourceFile:fi,index:cr}=$n,ei=OL(fi,"references",Yo=>_d(Yo.initializer)?Yo.initializer:void 0);return ei&&ei.elements.length>cr?nm(fi,ei.elements[cr],ze.kind===2?m.File_is_output_from_referenced_project_specified_here:m.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!G.types)return;Ze=pb("types",ze.typeReference),Nt=m.File_is_entry_point_of_type_library_specified_here;break;case 6:if(ze.index!==void 0){Ze=pb("lib",G.lib[ze.index]),Nt=m.File_is_library_specified_here;break}const fr=jc(Ew.type,(Yo,Qa)=>Yo===ls(G)?Qa:void 0);Ze=fr?Hd("target",fr):void 0,Nt=m.File_is_default_library_for_target_specified_here;break;default:C.assertNever(ze)}return Ze&&nm(G.configFile,Ze,Nt)}function Ga(){const ze=G.suppressOutputPathCheck?void 0:Qv(G);S7(_e,le,(Ze,Nt,Ut)=>{const vn=(Nt?Nt.commandLine.projectReferences:_e)[Ut],Jn=Nt&&Nt.sourceFile;if(ir(vn,Jn,Ut),!Ze){Ff(Jn,Ut,m.File_0_not_found,vn.path);return}const bn=Ze.commandLine.options;if((!bn.composite||bn.noEmit)&&(Nt?Nt.commandLine.fileNames:se).length&&(bn.composite||Ff(Jn,Ut,m.Referenced_project_0_must_have_setting_composite_Colon_true,vn.path),bn.noEmit&&Ff(Jn,Ut,m.Referenced_project_0_may_not_disable_emit,vn.path)),vn.prepend){const $n=Os(bn);$n?en.fileExists($n)||Ff(Jn,Ut,m.Output_file_0_from_project_1_does_not_exist,$n,vn.path):Ff(Jn,Ut,m.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,vn.path)}!Nt&&ze&&ze===Qv(bn)&&(Ff(Jn,Ut,m.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,ze,vn.path),nt.set(Kn(ze),!0))})}function Fl(ze,Ze,Nt,...Ut){let vn=!0;Cp(Jn=>{Wa(Jn.initializer)&&mR(Jn.initializer,ze,bn=>{const $n=bn.initializer;_d($n)&&$n.elements.length>Ze&&(Qn.add(nm(G.configFile,$n.elements[Ze],Nt,...Ut)),vn=!1)})}),vn&&Qn.add(Jl(Nt,...Ut))}function mu(ze,Ze,Nt,...Ut){let vn=!0;Cp(Jn=>{Wa(Jn.initializer)&&yg(Jn.initializer,ze,Ze,void 0,Nt,...Ut)&&(vn=!1)}),vn&&Qn.add(Jl(Nt,...Ut))}function Nc(ze,Ze){return mR(Lh(),ze,Ze)}function Cp(ze){return Nc("paths",ze)}function Hd(ze,Ze){return Nc(ze,Nt=>Ma(Nt.initializer)&&Nt.initializer.text===Ze?Nt.initializer:void 0)}function pb(ze,Ze){const Nt=Lh();return Nt&&Wie(Nt,ze,Ze)}function ps(ze,Ze,Nt,Ut){Vi(!0,Ze,Nt,ze,Ze,Nt,Ut)}function Wf(ze,Ze,...Nt){Vi(!1,ze,void 0,Ze,...Nt)}function Ff(ze,Ze,Nt,...Ut){const vn=OL(ze||G.configFile,"references",Jn=>_d(Jn.initializer)?Jn.initializer:void 0);vn&&vn.elements.length>Ze?Qn.add(nm(ze||G.configFile,vn.elements[Ze],Nt,...Ut)):Qn.add(Jl(Nt,...Ut))}function Vi(ze,Ze,Nt,Ut,...vn){const Jn=Lh();(!Jn||!yg(Jn,ze,Ze,Nt,Ut,...vn))&&("messageText"in Ut?Qn.add(G3(Ut)):Qn.add(Jl(Ut,...vn)))}function Lh(){return Bt===void 0&&(Bt=mR(AN(G.configFile),"compilerOptions",ze=>Wa(ze.initializer)?ze.initializer:void 0)||!1),Bt||void 0}function yg(ze,Ze,Nt,Ut,vn,...Jn){let bn=!1;return mR(ze,Nt,$n=>{"messageText"in vn?Qn.add(Gg(G.configFile,Ze?$n.name:$n.initializer,vn)):Qn.add(nm(G.configFile,Ze?$n.name:$n.initializer,vn,...Jn)),bn=!0},Ut),bn}function zf(ze,Ze){const Nt=Lh();Nt?yg(Nt,!0,ze,void 0,m.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze):ps(m.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze)}function fb(ze,Ze){nt.set(Kn(ze),!0),Qn.add(Ze)}function mb(ze){if(G.noEmit)return!1;const Ze=Kn(ze);if(_l(Ze))return!1;const Nt=Os(G);if(Nt)return mf(Ze,Nt)||mf(Ze,Ad(Nt)+".d.ts");if(G.declarationDir&&Am(G.declarationDir,Ze,Di,!en.useCaseSensitiveFileNames()))return!0;if(G.outDir)return Am(G.outDir,Ze,Di,!en.useCaseSensitiveFileNames());if(Ic(Ze,jR)||Tu(Ze)){const Ut=Ad(Ze);return!!_l(Ut+".ts")||!!_l(Ut+".tsx")}return!1}function mf(ze,Ze){return Og(ze,Ze,Di,!en.useCaseSensitiveFileNames())===0}function H_(){return en.getSymlinkCache?en.getSymlinkCache():(de||(de=WU(Di,te)),Ae&&!de.hasProcessedResolutions()&&de.setSymlinksFromResolutions(L,me,Ue),de)}function _f(ze,Ze){var Nt;const Ut=((Nt=nr(ze))==null?void 0:Nt.commandLine.options)||G;return GJ(ze,Ze,Ut)}function nv(ze,Ze){return _f(ze,Kw(ze,Ze))}}function WHe(e){let t;const r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:ts,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=I=>i.call(e.compilerHost,I)?(b(I),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{const M=Os(R.commandLine.options);if(M)t.add(ri(e.toPath(M)));else{const N=R.commandLine.options.declarationDir||R.commandLine.options.outDir;N&&t.add(e.toPath(N))}})),A(I,!1)):!1),o&&(e.compilerHost.getDirectories=I=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,I)?o.call(e.compilerHost,I):[]),s&&(e.compilerHost.realpath=I=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(I)))||s.call(e.compilerHost,I)}),{onProgramCreateComplete:u,fileExists:p,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(I){return r.call(e.compilerHost,I)?!0:!e.getResolvedProjectReferences()||!Tu(I)?!1:A(I,!0)}function h(I){const R=e.getSourceOfProjectReferenceRedirect(e.toPath(I));return R!==void 0?No(R)?r.call(e.compilerHost,R):!0:void 0}function f(I){const R=e.toPath(I),M="".concat(R).concat(ol);return gh(t,N=>R===N||po(N,M)||po(R,"".concat(N,"/")))}function b(I){var R;if(!e.getResolvedProjectReferences()||rP(I)||!s||!I.includes(Dh))return;const M=e.getSymlinkCache(),N=Vc(e.toPath(I));if((R=M.getSymlinkedDirectories())!=null&&R.has(N))return;const O=ha(s.call(e.compilerHost,I));let U;if(O===I||(U=Vc(e.toPath(O)))===N){M.setSymlinkedDirectory(N,!1);return}M.setSymlinkedDirectory(I,{real:Vc(O),realPath:U})}function A(I,R){var M;const N=R?V=>h(V):V=>f(V),O=N(I);if(O!==void 0)return O;const U=e.getSymlinkCache(),K=U.getSymlinkedDirectories();if(!K)return!1;const ee=e.toPath(I);return ee.includes(Dh)?R&&((M=U.getSymlinkedFiles())!=null&&M.has(ee))?!0:fn(K.entries(),([V,se])=>{if(!se||!po(ee,V))return;const G=N(ee.replace(V,se.realPath));if(R&&G){const re=yo(I,e.compilerHost.getCurrentDirectory());U.setSymlinkedFile(ee,"".concat(se.real).concat(re.replace(new RegExp(V,"i"),"")))}return G})||!1:!1}}function KJ(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||Os(o)?C7:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&Cf(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!Os(o)){const u=e.emitBuildInfo(r,i);u.diagnostics&&(s=[...s,...u.diagnostics]),l=u.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function I7(e,t){return rr(e,r=>!r.skippedOn||!t[r.skippedOn])}function x7(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return C.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),directoryExists:ia(t,t.directoryExists),getDirectories:ia(t,t.getDirectories),realpath:ia(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||o0,trace:e.trace?r=>e.trace(r):void 0}}function XJ(e,t,r,i){if(!e)return et;let o;for(let s=0;s<e.length;s++){const l=e[s],u=t(l,s);if(l.prepend&&u&&u.options){if(!Os(u.options))continue;const{jsFilePath:h,sourceMapFilePath:f,declarationFilePath:b,declarationMapPath:A,buildInfoPath:I}=KP(u.options,!0),R=gH(r,h,f,b,A,I,i,u.options);(o||(o=[])).push(R)}}return o||et}function yD(e){return SK(e.path)}function YJ(e,{extension:t},{isDeclarationFile:r}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return i();case".jsx":return i()||o();case".js":case".mjs":case".cjs":return o();case".json":return s();default:return l()}function i(){return e.jsx?void 0:m.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return Xy(e)||!fd(e,"noImplicitAny")?void 0:m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return x0(e)?void 0:m.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function l(){return r||e.allowArbitraryExtensions?void 0:m.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function gRe({imports:e,moduleAugmentations:t}){const r=e.map(i=>i);for(const i of t)i.kind===11&&r.push(i);return r}function Kw({imports:e,moduleAugmentations:t},r){if(r<e.length)return e[r];let i=e.length;for(const o of t)if(o.kind===11){if(r===i)return o;i++}C.fail("should never ask for module name at index higher than possible module name")}var $J,QJ,ZJ,xce,Rce,vRe,Dce,Cce,R7,yRe,bD,D7,C7,FHe=T({"src/compiler/program.ts"(){ta(),fS(),$J=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))($J||{}),QJ="\x1B[7m",ZJ=" ",xce="\x1B[0m",Rce="...",vRe=" ",Dce=" ",Cce={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},R7={getName:Ice,getMode:(e,t,r)=>BJ(t,e,r)},yRe={getName:jJ,getMode:(e,t)=>Hw(e,t==null?void 0:t.impliedNodeFormat)},bD="__inferred type names__.ts",D7=new Set([m.Cannot_redeclare_block_scoped_variable_0.code,m.A_module_cannot_have_multiple_default_exports.code,m.Another_export_default_is_here.code,m.The_first_export_default_is_here.code,m.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,m.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,m.constructor_is_a_reserved_word.code,m.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,m.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,m.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,m.Invalid_use_of_0_in_strict_mode.code,m.A_label_is_not_allowed_here.code,m.with_statements_are_not_allowed_in_strict_mode.code,m.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,m.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,m.A_class_declaration_without_the_default_modifier_must_have_a_name.code,m.A_class_member_cannot_have_the_0_keyword.code,m.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,m.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,m.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,m.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,m.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,m.A_destructuring_declaration_must_have_an_initializer.code,m.A_get_accessor_cannot_have_parameters.code,m.A_rest_element_cannot_contain_a_binding_pattern.code,m.A_rest_element_cannot_have_a_property_name.code,m.A_rest_element_cannot_have_an_initializer.code,m.A_rest_element_must_be_last_in_a_destructuring_pattern.code,m.A_rest_parameter_cannot_have_an_initializer.code,m.A_rest_parameter_must_be_last_in_a_parameter_list.code,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,m.A_return_statement_cannot_be_used_inside_a_class_static_block.code,m.A_set_accessor_cannot_have_rest_parameter.code,m.A_set_accessor_must_have_exactly_one_parameter.code,m.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,m.An_export_declaration_cannot_have_modifiers.code,m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,m.An_import_declaration_cannot_have_modifiers.code,m.An_object_member_cannot_be_declared_optional.code,m.Argument_of_dynamic_import_cannot_be_spread_element.code,m.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,m.Cannot_redeclare_identifier_0_in_catch_clause.code,m.Catch_clause_variable_cannot_have_an_initializer.code,m.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,m.Classes_can_only_extend_a_single_class.code,m.Classes_may_not_have_a_field_named_constructor.code,m.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,m.Duplicate_label_0.code,m.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,m.for_await_loops_cannot_be_used_inside_a_class_static_block.code,m.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,m.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,m.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,m.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,m.Jump_target_cannot_cross_function_boundary.code,m.Line_terminator_not_permitted_before_arrow.code,m.Modifiers_cannot_appear_here.code,m.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,m.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,m.Private_identifiers_are_not_allowed_outside_class_bodies.code,m.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,m.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,m.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,m.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,m.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,m.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,m.Trailing_comma_not_allowed.code,m.Variable_declaration_list_cannot_be_empty.code,m._0_and_1_operations_cannot_be_mixed_without_parentheses.code,m._0_expected.code,m._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,m._0_list_cannot_be_empty.code,m._0_modifier_already_seen.code,m._0_modifier_cannot_appear_on_a_constructor_declaration.code,m._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,m._0_modifier_cannot_appear_on_a_parameter.code,m._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,m._0_modifier_cannot_be_used_here.code,m._0_modifier_must_precede_1_modifier.code,m._0_declarations_can_only_be_declared_inside_a_block.code,m._0_declarations_must_be_initialized.code,m.extends_clause_already_seen.code,m.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,m.Class_constructor_may_not_be_a_generator.code,m.Class_constructor_may_not_be_an_accessor.code,m.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.Private_field_0_must_be_declared_in_an_enclosing_class.code,m.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),C7={diagnostics:et,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),zHe=T({"src/compiler/builderStatePublic.ts"(){}});function Nce(e,t,r,i,o,s){const l=[],{emitSkipped:u,diagnostics:p}=e.emit(t,h,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:p};function h(f,b,A){l.push({name:f,writeByteOrderMark:A,text:b})}}var Om,BHe=T({"src/compiler/builderState.ts"(){ta(),(e=>{function t(){function Q(Y,oe,he){const Ae={getKeys:de=>oe.get(de),getValues:de=>Y.get(de),keys:()=>Y.keys(),deleteKey:de=>{(he||(he=new Set)).add(de);const ie=Y.get(de);return ie?(ie.forEach(ge=>i(oe,ge,de)),Y.delete(de),!0):!1},set:(de,ie)=>{he==null||he.delete(de);const ge=Y.get(de);return Y.set(de,ie),ge==null||ge.forEach(Ne=>{ie.has(Ne)||i(oe,Ne,de)}),ie.forEach(Ne=>{ge!=null&&ge.has(Ne)||r(oe,Ne,de)}),Ae}};return Ae}return Q(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(Q,Y,oe){let he=Q.get(Y);he||(he=new Set,Q.set(Y,he)),he.add(oe)}function i(Q,Y,oe){const he=Q.get(Y);return he!=null&&he.delete(oe)?(he.size||Q.delete(Y),!0):!1}function o(Q){return Hi(Q.declarations,Y=>{var oe;return(oe=jn(Y))==null?void 0:oe.resolvedPath})}function s(Q,Y){const oe=Q.getSymbolAtLocation(Y);return oe&&o(oe)}function l(Q,Y,oe,he){return il(Q.getProjectReferenceRedirect(Y)||Y,oe,he)}function u(Q,Y,oe){let he;if(Y.imports&&Y.imports.length>0){const ge=Q.getTypeChecker();for(const Ne of Y.imports){const qe=s(ge,Ne);qe==null||qe.forEach(ie)}}const Ae=ri(Y.resolvedPath);if(Y.referencedFiles&&Y.referencedFiles.length>0)for(const ge of Y.referencedFiles){const Ne=l(Q,ge.fileName,Ae,oe);ie(Ne)}if(Q.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ge})=>{if(!ge)return;const Ne=ge.resolvedFileName,qe=l(Q,Ne,Ae,oe);ie(qe)},Y),Y.moduleAugmentations.length){const ge=Q.getTypeChecker();for(const Ne of Y.moduleAugmentations){if(!Ma(Ne))continue;const qe=ge.getSymbolAtLocation(Ne);qe&&de(qe)}}for(const ge of Q.getTypeChecker().getAmbientModules())ge.declarations&&ge.declarations.length>1&&de(ge);return he;function de(ge){if(ge.declarations)for(const Ne of ge.declarations){const qe=jn(Ne);qe&&qe!==Y&&ie(qe.resolvedPath)}}function ie(ge){(he||(he=new Set)).add(ge)}}function p(Q,Y){return Y&&!Y.referencedMap==!Q}e.canReuseOldState=p;function h(Q,Y,oe){var he,Ae,de;const ie=new Map,ge=Q.getCompilerOptions(),Ne=Os(ge),qe=ge.module!==0&&!Ne?t():void 0,Ee=qe?t():void 0,Me=p(qe,Y);Q.getTypeChecker();for(const Ce of Q.getSourceFiles()){const Oe=C.checkDefined(Ce.version,"Program intended to be used with Builder should have source files with versions set"),At=Me?(he=Y.oldSignatures)==null?void 0:he.get(Ce.resolvedPath):void 0,be=At===void 0?Me?(Ae=Y.fileInfos.get(Ce.resolvedPath))==null?void 0:Ae.signature:void 0:At||void 0;if(qe){const Ue=u(Q,Ce,Q.getCanonicalFileName);if(Ue&&qe.set(Ce.resolvedPath,Ue),Me){const it=(de=Y.oldExportedModulesMap)==null?void 0:de.get(Ce.resolvedPath),Ft=it===void 0?Y.exportedModulesMap.getValues(Ce.resolvedPath):it||void 0;Ft&&Ee.set(Ce.resolvedPath,Ft)}}ie.set(Ce.resolvedPath,{version:Oe,signature:be,affectsGlobalScope:Ne?void 0:G(Ce)||void 0,impliedFormat:Ce.impliedNodeFormat})}return{fileInfos:ie,referencedMap:qe,exportedModulesMap:Ee,useFileVersionAsSignature:!oe&&!Me}}e.create=h;function f(Q){Q.allFilesExcludingDefaultLibraryFile=void 0,Q.allFileNames=void 0}e.releaseCache=f;function b(Q,Y,oe,he,Ae){var de,ie;const ge=A(Q,Y,oe,he,Ae);return(de=Q.oldSignatures)==null||de.clear(),(ie=Q.oldExportedModulesMap)==null||ie.clear(),ge}e.getFilesAffectedBy=b;function A(Q,Y,oe,he,Ae){const de=Y.getSourceFileByPath(oe);return de?M(Q,Y,de,he,Ae)?(Q.referencedMap?ye:_e)(Q,Y,de,he,Ae):[de]:et}e.getFilesAffectedByWithOldState=A;function I(Q,Y,oe){Q.fileInfos.get(oe).signature=Y,(Q.hasCalledUpdateShapeSignature||(Q.hasCalledUpdateShapeSignature=new Set)).add(oe)}e.updateSignatureOfFile=I;function R(Q,Y,oe,he,Ae){Q.emit(Y,(de,ie,ge,Ne,qe,Ee)=>{C.assert(Tu(de),"File extension for signature expected to be dts: Got:: ".concat(de)),Ae(tK(Q,Y,ie,he,Ee),qe)},oe,!0,void 0,!0)}e.computeDtsSignature=R;function M(Q,Y,oe,he,Ae,de=Q.useFileVersionAsSignature){var ie;if((ie=Q.hasCalledUpdateShapeSignature)!=null&&ie.has(oe.resolvedPath))return!1;const ge=Q.fileInfos.get(oe.resolvedPath),Ne=ge.signature;let qe;if(!oe.isDeclarationFile&&!de&&R(Y,oe,he,Ae,(Ee,Me)=>{qe=Ee,qe!==Ne&&N(Q,oe,Me[0].exportedModulesFromDeclarationEmit)}),qe===void 0&&(qe=oe.version,Q.exportedModulesMap&&qe!==Ne)){(Q.oldExportedModulesMap||(Q.oldExportedModulesMap=new Map)).set(oe.resolvedPath,Q.exportedModulesMap.getValues(oe.resolvedPath)||!1);const Ee=Q.referencedMap?Q.referencedMap.getValues(oe.resolvedPath):void 0;Ee?Q.exportedModulesMap.set(oe.resolvedPath,Ee):Q.exportedModulesMap.deleteKey(oe.resolvedPath)}return(Q.oldSignatures||(Q.oldSignatures=new Map)).set(oe.resolvedPath,Ne||!1),(Q.hasCalledUpdateShapeSignature||(Q.hasCalledUpdateShapeSignature=new Set)).add(oe.resolvedPath),ge.signature=qe,qe!==Ne}e.updateShapeSignature=M;function N(Q,Y,oe){if(!Q.exportedModulesMap)return;(Q.oldExportedModulesMap||(Q.oldExportedModulesMap=new Map)).set(Y.resolvedPath,Q.exportedModulesMap.getValues(Y.resolvedPath)||!1);const he=O(oe);he?Q.exportedModulesMap.set(Y.resolvedPath,he):Q.exportedModulesMap.deleteKey(Y.resolvedPath)}e.updateExportedModules=N;function O(Q){let Y;return Q==null||Q.forEach(oe=>o(oe).forEach(he=>(Y!=null?Y:Y=new Set).add(he))),Y}e.getExportedModules=O;function U(Q,Y,oe){const he=Y.getCompilerOptions();if(Os(he)||!Q.referencedMap||G(oe))return K(Q,Y);const Ae=new Set,de=[oe.resolvedPath];for(;de.length;){const ie=de.pop();if(!Ae.has(ie)){Ae.add(ie);const ge=Q.referencedMap.getValues(ie);if(ge)for(const Ne of ge.keys())de.push(Ne)}}return Wo(kg(Ae.keys(),ie=>{var Ne;var ge;return(Ne=(ge=Y.getSourceFileByPath(ie))==null?void 0:ge.fileName)!=null?Ne:ie}))}e.getAllDependencies=U;function K(Q,Y){if(!Q.allFileNames){const oe=Y.getSourceFiles();Q.allFileNames=oe===et?et:oe.map(he=>he.fileName)}return Q.allFileNames}function ee(Q,Y){const oe=Q.referencedMap.getKeys(Y);return oe?Wo(oe.keys()):[]}e.getReferencedByPaths=ee;function V(Q){for(const Y of Q.statements)if(!H4(Y))return!1;return!0}function se(Q){return St(Q.moduleAugmentations,Y=>R_(Y.parent))}function G(Q){return se(Q)||!zp(Q)&&!rm(Q)&&!V(Q)}function re(Q,Y,oe){if(Q.allFilesExcludingDefaultLibraryFile)return Q.allFilesExcludingDefaultLibraryFile;let he;oe&&Ae(oe);for(const de of Y.getSourceFiles())de!==oe&&Ae(de);return Q.allFilesExcludingDefaultLibraryFile=he||et,Q.allFilesExcludingDefaultLibraryFile;function Ae(de){Y.isSourceFileDefaultLibrary(de)||(he||(he=[])).push(de)}}e.getAllFilesExcludingDefaultLibraryFile=re;function _e(Q,Y,oe){const he=Y.getCompilerOptions();return he&&Os(he)?[oe]:re(Q,Y,oe)}function ye(Q,Y,oe,he,Ae){if(G(oe))return re(Q,Y,oe);const de=Y.getCompilerOptions();if(de&&(um(de)||Os(de)))return[oe];const ie=new Map;ie.set(oe.resolvedPath,oe);const ge=ee(Q,oe.resolvedPath);for(;ge.length>0;){const Ne=ge.pop();if(!ie.has(Ne)){const qe=Y.getSourceFileByPath(Ne);ie.set(Ne,qe),qe&&M(Q,Y,qe,he,Ae)&&ge.push(...ee(Q,qe.resolvedPath))}}return Wo(kg(ie.values(),Ne=>Ne))}})(Om||(Om={}))}});function ab(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Cf(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function ED(e,t){const r=t&&(Pv(t)?t:ab(t)),i=Pv(e)?e:ab(e);if(r===i)return 0;if(!r||!i)return i;const o=r^i;let s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function GHe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!gh(e,r=>!t.has(r))}function VHe(e,t){var r,i;const o=Om.create(e,t,!1);o.program=e;const s=e.getCompilerOptions();o.compilerOptions=s;const l=Os(s);l?s.composite&&(t!=null&&t.outSignature)&&l===Os(t==null?void 0:t.compilerOptions)&&(o.outSignature=t.outSignature&&ERe(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const u=Om.canReuseOldState(o.referencedMap,t),p=u?t.compilerOptions:void 0,h=u&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!qoe(s,p),f=s.composite&&(t==null?void 0:t.emitSignatures)&&!l&&!Koe(s,t.compilerOptions);u?((r=t.changedFilesSet)==null||r.forEach(M=>o.changedFilesSet.add(M)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;const b=o.referencedMap,A=u?t.referencedMap:void 0,I=h&&!s.skipLibCheck==!p.skipLibCheck,R=I&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((M,N)=>{var ee,V,se;var O;let U,K;if(!u||!(U=t.fileInfos.get(N))||U.version!==M.version||U.impliedFormat!==M.impliedFormat||!GHe(K=b&&b.getValues(N),A&&A.getValues(N))||K&&gh(K,G=>!o.fileInfos.has(G)&&t.fileInfos.has(G)))bRe(o,N);else{const G=e.getSourceFileByPath(N),re=(O=t.emitDiagnosticsPerFile)==null?void 0:O.get(N);if(re&&((ee=o.emitDiagnosticsPerFile)!=null?ee:o.emitDiagnosticsPerFile=new Map).set(N,t.hasReusableDiagnostic?ARe(re,e):SRe(re,e)),h){if(G.isDeclarationFile&&!I||G.hasNoDefaultLib&&!R)return;const _e=t.semanticDiagnosticsPerFile.get(N);_e&&(o.semanticDiagnosticsPerFile.set(N,t.hasReusableDiagnostic?ARe(_e,e):SRe(_e,e)),((V=o.semanticDiagnosticsFromOldState)!=null?V:o.semanticDiagnosticsFromOldState=new Set).add(N))}}if(f){const G=t.emitSignatures.get(N);G&&((se=o.emitSignatures)!=null?se:o.emitSignatures=new Map).set(N,ERe(s,t.compilerOptions,G))}}),u&&jc(t.fileInfos,(M,N)=>o.fileInfos.has(N)?!1:l||M.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))Om.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(M=>bRe(o,M.resolvedPath));else if(p){const M=Joe(s,p)?ab(s):ED(s,p);M!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|M:M:(e.getSourceFiles().forEach(N=>{o.changedFilesSet.has(N.resolvedPath)||Oce(o,N.resolvedPath,M)}),C.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(u&&(o.bundle=t.bundle),St(e.getProjectReferences(),M=>!!M.prepend)&&(o.programEmitPending=ab(s))),o}function bRe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function ERe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:No(r)?[r]:r[0]}function SRe(e,t){return e.length?no(e,r=>{if(No(r.messageText))return r;const i=Pce(r.messageText,r.file,t,o=>{var s;return(s=o.repopulateInfo)==null?void 0:s.call(o)});return i===r.messageText?r:{...r,messageText:i}}):e}function Pce(e,t,r,i){const o=i(e);if(o)return{...z4(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:TRe(e.next,t,r,i)};const s=TRe(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function TRe(e,t,r,i){return no(e,o=>Pce(o,t,r,i))}function ARe(e,t){if(!e.length)return et;let r;return e.map(o=>{const s=IRe(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;const{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(u=>IRe(u,t,i)):[]:void 0,s});function i(o){return r!=null||(r=ri(yo(Qv(t.getCompilerOptions()),t.getCurrentDirectory()))),il(o,r,t.getCanonicalFileName)}}function IRe(e,t,r){const{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:No(e.messageText)?e.messageText:Pce(e.messageText,o,t,s=>s.info)}}function jHe(e){Om.releaseCache(e),e.program=void 0}function UHe(e){const t=Os(e.compilerOptions);return C.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function HHe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function xRe(e,t){C.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function RRe(e,t,r){for(var i,o;;){const{affectedFiles:s}=e;if(s){const h=e.seenAffectedFiles;let f=e.affectedFilesIndex;for(;f<s.length;){const b=s[f];if(!h.has(b.resolvedPath))return e.affectedFilesIndex=f,Oce(e,b.resolvedPath,ab(e.compilerOptions)),XHe(e,b,t,r),b;f++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),(o=e.oldExportedModulesMap)==null||o.clear(),e.affectedFiles=void 0}const l=e.changedFilesSet.keys().next();if(l.done)return;const u=C.checkDefined(e.program),p=u.getCompilerOptions();if(Os(p))return C.assert(!e.semanticDiagnosticsPerFile),u;e.affectedFiles=Om.getFilesAffectedByWithOldState(e,u,l.value,t,r),e.currentChangedFilePath=l.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function qHe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size){if(!t)return e.affectedFilesPendingEmit=void 0;e.affectedFilesPendingEmit.forEach((i,o)=>{const s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function JHe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return jc(e.affectedFilesPendingEmit,(i,o)=>{var s;const l=e.program.getSourceFileByPath(o);if(!l||!MS(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}const u=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath);let p=ED(i,u);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function KHe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return jc(e.emitDiagnosticsPerFile,(r,i)=>{var o;const s=e.program.getSourceFileByPath(i);if(!s||!MS(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}const l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function DRe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=C.checkDefined(e.program),r=t.getCompilerOptions();He(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!ZN(i,r,t)&&Mce(e,i.resolvedPath))}}function XHe(e,t,r,i){if(Mce(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){DRe(e),Om.updateShapeSignature(e,C.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||YHe(e,t,r,i)}function eK(e,t,r,i){if(Mce(e,t),!e.changedFilesSet.has(t)){const o=C.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(Om.updateShapeSignature(e,o,s,r,i,!0),Cf(e.compilerOptions)&&Oce(e,t,e.compilerOptions.declarationMap?24:8))}}function Mce(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function CRe(e,t){const r=C.checkDefined(e.oldSignatures).get(t)||void 0;return C.checkDefined(e.fileInfos.get(t)).signature!==r}function Lce(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(Om.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>eK(e,s.resolvedPath,r,i)),DRe(e),!0):!1}function YHe(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!CRe(e,t.resolvedPath))return;if(um(e.compilerOptions)){const l=new Map;l.set(t.resolvedPath,!0);const u=Om.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){const p=u.pop();if(!l.has(p)){if(l.set(p,!0),Lce(e,p,r,i))return;if(eK(e,p,r,i),CRe(e,p)){const h=C.checkDefined(e.program).getSourceFileByPath(p);u.push(...Om.getReferencedByPaths(e,h.resolvedPath))}}}}const s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(Lce(e,l,r,i))return!0;const u=e.referencedMap.getKeys(l);return u&&gh(u,p=>NRe(e,p,s,r,i))})}function NRe(e,t,r,i,o){var s,l;if(Dv(r,t)){if(Lce(e,t,i,o))return!0;eK(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(u=>NRe(e,u,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>!r.has(u)&&eK(e,u,i,o))}}function kce(e,t,r){return To($He(e,t,r),C.checkDefined(e.program).getProgramDiagnostics(t))}function $He(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const s=e.semanticDiagnosticsPerFile.get(i);if(s)return I7(s,e.compilerOptions)}const o=C.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),I7(o,e.compilerOptions)}function wce(e){return!!Os(e.options||{})}function QHe(e,t){var r,i,o;const s=C.checkDefined(e.program).getCurrentDirectory(),l=ri(yo(Qv(e.compilerOptions),s)),u=e.latestChangedDtsFile?se(e.latestChangedDtsFile):void 0,p=[],h=new Map,f=[];if(Os(e.compilerOptions)){const ge=Wo(e.fileInfos.entries(),([Oe,At])=>{const be=re(Oe);return ye(Oe,be),At.impliedFormat?{version:At.version,impliedFormat:At.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:At.version}),Ne={fileNames:p,fileInfos:ge,root:f,options:Q(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===ab(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:qe,dts:Ee,commonSourceDirectory:Me,sourceFiles:Ce}=t;return e.bundle=t={commonSourceDirectory:Me,sourceFiles:Ce,js:qe||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:Ee||(Cf(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},zw(Ne,t)}let b,A,I;const R=Wo(e.fileInfos.entries(),([ge,Ne])=>{var qe,Ee;const Me=re(ge);ye(ge,Me),C.assert(p[Me-1]===G(ge));const Ce=(qe=e.oldSignatures)==null?void 0:qe.get(ge),Oe=Ce!==void 0?Ce||void 0:Ne.signature;if(e.compilerOptions.composite){const At=e.program.getSourceFileByPath(ge);if(!rm(At)&&MS(At,e.program)){const be=(Ee=e.emitSignatures)==null?void 0:Ee.get(ge);be!==Oe&&(I||(I=[])).push(be===void 0?Me:[Me,!No(be)&&be[0]===Oe?et:be])}}return Ne.version===Oe?Ne.affectsGlobalScope||Ne.impliedFormat?{version:Ne.version,signature:void 0,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}:Ne.version:Oe!==void 0?Ce===void 0?Ne:{version:Ne.version,signature:Oe,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}:{version:Ne.version,signature:!1,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}});let M;e.referencedMap&&(M=Wo(e.referencedMap.keys()).sort(Uu).map(ge=>[re(ge),_e(e.referencedMap.getValues(ge))]));let N;e.exportedModulesMap&&(N=Hi(Wo(e.exportedModulesMap.keys()).sort(Uu),ge=>{var Ne;const qe=(Ne=e.oldExportedModulesMap)==null?void 0:Ne.get(ge);if(qe===void 0)return[re(ge),_e(e.exportedModulesMap.getValues(ge))];if(qe)return[re(ge),_e(qe)]}));const O=oe(e.semanticDiagnosticsPerFile);let U;if((o=e.affectedFilesPendingEmit)!=null&&o.size){const ge=ab(e.compilerOptions),Ne=new Set;for(const qe of Wo(e.affectedFilesPendingEmit.keys()).sort(Uu))if(Dv(Ne,qe)){const Ee=e.program.getSourceFileByPath(qe);if(!Ee||!MS(Ee,e.program))continue;const Me=re(qe),Ce=e.affectedFilesPendingEmit.get(qe);(U||(U=[])).push(Ce===ge?Me:Ce===8?[Me]:[Me,Ce])}}let K;if(e.changedFilesSet.size)for(const ge of Wo(e.changedFilesSet.keys()).sort(Uu))(K||(K=[])).push(re(ge));const ee=oe(e.emitDiagnosticsPerFile),V={fileNames:p,fileInfos:R,root:f,options:Q(e.compilerOptions),fileIdsList:b,referencedMap:M,exportedModulesMap:N,semanticDiagnosticsPerFile:O,emitDiagnosticsPerFile:ee,affectedFilesPendingEmit:U,changeFileSet:K,emitSignatures:I,latestChangedDtsFile:u};return zw(V,t);function se(ge){return G(yo(ge,s))}function G(ge){return ME(Im(l,ge,e.program.getCanonicalFileName))}function re(ge){let Ne=h.get(ge);return Ne===void 0&&(p.push(G(ge)),h.set(ge,Ne=p.length)),Ne}function _e(ge){const Ne=Wo(ge.keys(),re).sort(nl),qe=Ne.join();let Ee=A==null?void 0:A.get(qe);return Ee===void 0&&((b||(b=[])).push(Ne),(A||(A=new Map)).set(qe,Ee=b.length)),Ee}function ye(ge,Ne){const qe=e.program.getSourceFile(ge);if(!e.program.getFileIncludeReasons().get(qe.path).some(Oe=>Oe.kind===0))return;if(!f.length)return f.push(Ne);const Ee=f[f.length-1],Me=Ao(Ee);if(Me&&Ee[1]===Ne-1)return Ee[1]=Ne;if(Me||f.length===1||Ee!==Ne-1)return f.push(Ne);const Ce=f[f.length-2];return!Pv(Ce)||Ce!==Ee-1?f.push(Ne):(f[f.length-2]=[Ce,Ne],f.length=f.length-1)}function Q(ge){let Ne;const{optionsNameMap:qe}=sD();for(const Ee of Qh(ge).sort(Uu)){const Me=qe.get(Ee.toLowerCase());Me!=null&&Me.affectsBuildInfo&&((Ne||(Ne={}))[Ee]=Y(Me,ge[Ee]))}return Ne}function Y(ge,Ne){if(ge){if(C.assert(ge.type!=="listOrElement"),ge.type==="list"){const qe=Ne;if(ge.element.isFilePath&&qe.length)return qe.map(se)}else if(ge.isFilePath)return se(Ne)}return Ne}function oe(ge){let Ne;if(ge)for(const qe of Wo(ge.keys()).sort(Uu)){const Ee=ge.get(qe);(Ne||(Ne=[])).push(Ee.length?[re(qe),he(Ee)]:re(qe))}return Ne}function he(ge){return C.assert(!!ge.length),ge.map(Ne=>{const qe=Ae(Ne);qe.reportsUnnecessary=Ne.reportsUnnecessary,qe.reportDeprecated=Ne.reportsDeprecated,qe.source=Ne.source,qe.skippedOn=Ne.skippedOn;const{relatedInformation:Ee}=Ne;return qe.relatedInformation=Ee?Ee.length?Ee.map(Me=>Ae(Me)):[]:void 0,qe})}function Ae(ge){const{file:Ne}=ge;return{...ge,file:Ne?G(Ne.resolvedPath):void 0,messageText:No(ge.messageText)?ge.messageText:de(ge.messageText)}}function de(ge){if(ge.repopulateInfo)return{info:ge.repopulateInfo(),next:ie(ge.next)};const Ne=ie(ge.next);return Ne===ge.next?ge:{...ge,next:Ne}}function ie(ge){return ge&&(He(ge,(Ne,qe)=>{const Ee=de(Ne);if(Ne===Ee)return;const Me=qe>0?ge.slice(0,qe-1):[];Me.push(Ee);for(let Ce=qe+1;Ce<ge.length;Ce++)Me.push(de(ge[Ce]));return Me})||ge)}}function N7(e,t,r,i,o,s){let l,u,p;return e===void 0?(C.assert(t===void 0),l=r,p=i,C.assert(!!p),u=p.getProgram()):Ao(e)?(p=i,u=A7({rootNames:e,options:t,host:r,oldProgram:p&&p.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),l=r):(u=e,l=t,p=r,o=i),{host:l,newProgram:u,oldProgram:p,configFileParsingDiagnostics:o||et}}function PRe(e,t){return(t==null?void 0:t.sourceMapUrlPos)!==void 0?e.substring(0,t.sourceMapUrlPos):e}function tK(e,t,r,i,o){var h;var s;r=PRe(r,o);let l;return(s=o==null?void 0:o.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(f=>"".concat(p(f)).concat(HM[f.category]).concat(f.code,": ").concat(u(f.messageText))).join("\n")),((h=i.createHash)!=null?h:tN)(r);function u(f){return No(f)?f:f===void 0?"":f.next?f.messageText+f.next.map(u).join("\n"):f.messageText}function p(f){return f.file.resolvedPath===t.resolvedPath?"(".concat(f.start,",").concat(f.length,")"):(l===void 0&&(l=ri(t.resolvedPath)),"".concat(ME(Im(l,f.file.resolvedPath,e.getCanonicalFileName)),"(").concat(f.start,",").concat(f.length,")"))}}function iT(e,t,r){var i;return((i=t.createHash)!=null?i:tN)(PRe(e,r))}function nK(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;const l=VHe(t,s);t.getBuildInfo=M=>QHe(l,M),t=void 0,i=void 0,s=void 0;const u=()=>l,p=iK(u,o);return p.getState=u,p.saveEmitState=()=>UHe(l),p.restoreEmitState=M=>HHe(l,M),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=M=>Om.getAllDependencies(l,C.checkDefined(l.program),M),p.getSemanticDiagnostics=R,p.emit=A,p.releaseProgram=()=>jHe(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=I:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=I,p.emitNextAffectedFile=f,p.emitBuildInfo=h):qo(),p;function h(M,N){if(l.buildInfoEmitPending){const O=C.checkDefined(l.program).emitBuildInfo(M||ia(r,r.writeFile),N);return l.buildInfoEmitPending=!1,O}return C7}function f(M,N,O,U){var Q,Y,oe,he;var K,ee,V;let se=RRe(l,N,r);const G=ab(l.compilerOptions);let re=O?G&24:G;if(!se)if(Os(l.compilerOptions)){if(!l.programEmitPending||(re=l.programEmitPending,O&&(re=re&24),!re))return;se=l.program}else{const Ae=JHe(l,O);if(!Ae){const de=KHe(l);if(de)return((Q=l.seenEmittedFiles)!=null?Q:l.seenEmittedFiles=new Map).set(de.affectedFile.resolvedPath,de.seenKind|24),{result:{emitSkipped:!0,diagnostics:de.diagnostics},affected:de.affectedFile};if(!l.buildInfoEmitPending)return;const ie=l.program,ge=ie.emitBuildInfo(M||ia(r,r.writeFile),N);return l.buildInfoEmitPending=!1,{result:ge,affected:ie}}({affectedFile:se,emitKind:re}=Ae)}let _e;re&7&&(_e=0),re&24&&(_e=_e===void 0?1:void 0),se===l.program&&(l.programEmitPending=l.changedFilesSet.size?ED(G,re):l.programEmitPending?ED(l.programEmitPending,re):void 0);const ye=l.program.emit(se===l.program?void 0:se,b(M,U),N,_e,U);if(se!==l.program){const Ae=se;l.seenAffectedFiles.add(Ae.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const de=((K=l.seenEmittedFiles)==null?void 0:K.get(Ae.resolvedPath))||0;((Y=l.seenEmittedFiles)!=null?Y:l.seenEmittedFiles=new Map).set(Ae.resolvedPath,re|de);const ie=((ee=l.affectedFilesPendingEmit)==null?void 0:ee.get(Ae.resolvedPath))||G,ge=ED(ie,re|de);ge?((oe=l.affectedFilesPendingEmit)!=null?oe:l.affectedFilesPendingEmit=new Map).set(Ae.resolvedPath,ge):(V=l.affectedFilesPendingEmit)==null||V.delete(Ae.resolvedPath),ye.diagnostics.length&&((he=l.emitDiagnosticsPerFile)!=null?he:l.emitDiagnosticsPerFile=new Map).set(Ae.resolvedPath,ye.diagnostics)}else l.changedFilesSet.clear();return{result:ye,affected:se}}function b(M,N){return Cf(l.compilerOptions)?(O,U,K,ee,V,se)=>{var Y,oe,he;var G,re,_e,ye;if(Tu(O))if(Os(l.compilerOptions)){if(l.compilerOptions.composite){const Ae=Q(l.outSignature,void 0);if(!Ae)return;l.outSignature=Ae}}else{C.assert((V==null?void 0:V.length)===1);let Ae;if(!N){const de=V[0],ie=l.fileInfos.get(de.resolvedPath);if(ie.signature===de.version){const ge=tK(l.program,de,U,r,se);(G=se==null?void 0:se.diagnostics)!=null&&G.length||(Ae=ge),ge!==de.version&&(r.storeFilesChangingSignatureDuringEmit&&((Y=l.filesChangingSignature)!=null?Y:l.filesChangingSignature=new Set).add(de.resolvedPath),l.exportedModulesMap&&Om.updateExportedModules(l,de,de.exportedModulesFromDeclarationEmit),l.affectedFiles?(((re=l.oldSignatures)==null?void 0:re.get(de.resolvedPath))===void 0&&((oe=l.oldSignatures)!=null?oe:l.oldSignatures=new Map).set(de.resolvedPath,ie.signature||!1),ie.signature=ge):(ie.signature=ge,(_e=l.oldExportedModulesMap)==null||_e.clear()))}}if(l.compilerOptions.composite){const de=V[0].resolvedPath;if(Ae=Q((ye=l.emitSignatures)==null?void 0:ye.get(de),Ae),!Ae)return;((he=l.emitSignatures)!=null?he:l.emitSignatures=new Map).set(de,Ae)}}M?M(O,U,K,ee,V,se):r.writeFile?r.writeFile(O,U,K,ee,V,se):l.program.writeFile(O,U,K,ee,V,se);function Q(Ae,de){const ie=!Ae||No(Ae)?Ae:Ae[0];if(de!=null||(de=iT(U,r,se)),de===ie){if(Ae===ie)return;se?se.differsOnlyInMap=!0:se={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=O;return de}}:M||ia(r,r.writeFile)}function A(M,N,O,U,K){e===1&&xRe(l,M);const ee=KJ(p,M,N,O);if(ee)return ee;if(!M)if(e===1){let V=[],se=!1,G,re=[],_e;for(;_e=f(N,O,U,K);)se=se||_e.result.emitSkipped,G=Ur(G,_e.result.diagnostics),re=Ur(re,_e.result.emittedFiles),V=Ur(V,_e.result.sourceMaps);return{emitSkipped:se,diagnostics:G||et,emittedFiles:re,sourceMaps:V}}else qHe(l,U);return C.checkDefined(l.program).emit(M,b(N,K),O,U,K)}function I(M,N){for(;;){const O=RRe(l,M,r);let U;if(O)if(O!==l.program){const K=O;if((!N||!N(K))&&(U=kce(l,K,M)),l.seenAffectedFiles.add(K.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!U)continue}else U=l.program.getSemanticDiagnostics(void 0,M),l.changedFilesSet.clear(),l.programEmitPending=ab(l.compilerOptions);else return;return{result:U,affected:O}}}function R(M,N){xRe(l,M);const O=C.checkDefined(l.program).getCompilerOptions();if(Os(O))return C.assert(!l.semanticDiagnosticsPerFile),C.checkDefined(l.program).getSemanticDiagnostics(M,N);if(M)return kce(l,M,N);for(;I(N););let U;for(const K of C.checkDefined(l.program).getSourceFiles())U=Ur(U,kce(l,K,N));return U||et}}function Oce(e,t,r){var l;var i,o;const s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;((l=e.affectedFilesPendingEmit)!=null?l:e.affectedFilesPendingEmit=new Map).set(t,s|r),(o=e.emitDiagnosticsPerFile)==null||o.delete(t)}function Wce(e){return No(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:No(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Fce(e,t){return Pv(e)?t:e[1]||8}function zce(e,t){return e||ab(t||{})}function Bce(e,t,r){var i,o,s,l;const u=e.program,p=ri(yo(t,r.getCurrentDirectory())),h=Mu(r.useCaseSensitiveFileNames());let f;const b=(i=u.fileNames)==null?void 0:i.map(R);let A;const I=u.latestChangedDtsFile?M(u.latestChangedDtsFile):void 0;if(wce(u)){const ee=new Map;u.fileInfos.forEach((V,se)=>{const G=N(se+1);ee.set(G,No(V)?{version:V,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:V)}),f={fileInfos:ee,compilerOptions:u.options?yq(u.options,M):{},latestChangedDtsFile:I,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:zce(u.pendingEmit,u.options),bundle:e.bundle}}else{A=(o=u.fileIdsList)==null?void 0:o.map(G=>new Set(G.map(N)));const ee=new Map,V=(s=u.options)!=null&&s.composite&&!Os(u.options)?new Map:void 0;u.fileInfos.forEach((G,re)=>{const _e=N(re+1),ye=Wce(G);ee.set(_e,ye),V&&ye.signature&&V.set(_e,ye.signature)}),(l=u.emitSignatures)==null||l.forEach(G=>{if(Pv(G))V.delete(N(G));else{const re=N(G[0]);V.set(re,!No(G[1])&&!G[1].length?[V.get(re)]:G[1])}});const se=u.affectedFilesPendingEmit?ab(u.options||{}):void 0;f={fileInfos:ee,compilerOptions:u.options?yq(u.options,M):{},referencedMap:U(u.referencedMap),exportedModulesMap:U(u.exportedModulesMap),semanticDiagnosticsPerFile:K(u.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:K(u.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&PE(u.affectedFilesPendingEmit,G=>N(Pv(G)?G:G[0]),G=>Fce(G,se)),changedFilesSet:new Set(Ot(u.changeFileSet,N)),latestChangedDtsFile:I,emitSignatures:V!=null&&V.size?V:void 0}}return{getState:()=>f,saveEmitState:ts,restoreEmitState:ts,getProgram:qo,getProgramOrUndefined:o0,releaseProgram:ts,getCompilerOptions:()=>f.compilerOptions,getSourceFile:qo,getSourceFiles:qo,getOptionsDiagnostics:qo,getGlobalDiagnostics:qo,getConfigFileParsingDiagnostics:qo,getSyntacticDiagnostics:qo,getDeclarationDiagnostics:qo,getSemanticDiagnostics:qo,emit:qo,getAllDependencies:qo,getCurrentDirectory:qo,emitNextAffectedFile:qo,getSemanticDiagnosticsOfNextAffectedFile:qo,emitBuildInfo:qo,close:ts,hasChangedEmitSignature:$m};function R(ee){return il(ee,p,h)}function M(ee){return yo(ee,p)}function N(ee){return b[ee-1]}function O(ee){return A[ee-1]}function U(ee){if(!ee)return;const V=Om.createManyToManyPathMap();return ee.forEach(([se,G])=>V.set(N(se),O(G))),V}function K(ee){return ee&&PE(ee,V=>N(Pv(V)?V:V[0]),V=>Pv(V)?et:V[1])}}function rK(e,t,r){const i=ri(yo(t,r.getCurrentDirectory())),o=Mu(r.useCaseSensitiveFileNames()),s=new Map;let l=0;const u=[];return e.fileInfos.forEach((p,h)=>{const f=il(e.fileNames[h],i,o),b=No(p)?p:p.version;if(s.set(f,b),l<e.root.length){const A=e.root[l],I=h+1;Ao(A)?A[0]<=I&&I<=A[1]&&(u.push(f),A[1]===I&&l++):A===I&&(u.push(f),l++)}}),{fileInfos:s,roots:u}}function iK(e,t){return{getState:qo,saveEmitState:ts,restoreEmitState:ts,getProgram:r,getProgramOrUndefined:()=>e().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,u)=>r().emit(i,o,s,l,u),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:qo,getCurrentDirectory:()=>r().getCurrentDirectory(),close:ts};function r(){return C.checkDefined(e().program)}}var oK,aK,ZHe=T({"src/compiler/builder.ts"(){ta(),oK=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(oK||{}),aK=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(aK||{})}});function MRe(e,t,r,i,o,s){return nK(0,N7(e,t,r,i,o,s))}function sK(e,t,r,i,o,s){return nK(1,N7(e,t,r,i,o,s))}function LRe(e,t,r,i,o,s){const{newProgram:l,configFileParsingDiagnostics:u}=N7(e,t,r,i,o,s);return iK(()=>({program:l,compilerOptions:l.getCompilerOptions()}),u)}var eqe=T({"src/compiler/builderPublic.ts"(){ta()}});function P7(e){return Al(e,"/node_modules/.staging")?Gx(e,"/.staging"):St(XM,t=>e.includes(t))?void 0:e}function Gce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==ol&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function M7(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=Gce(e,t);return t>r+1}function Vce(e){return wRe(ri(e))}function kRe(e,t){if(t.length<t.length)return!1;for(let r=0;r<e.length;r++)if(t[r]!==e[r])return!1;return!0}function wRe(e){return M7(Gc(e))}function jce(e){return wRe(e)}function lK(e,t,r,i,o,s){const l=Gc(t);e=_p(e)?ha(e):yo(e,s());const u=Gc(e),p=Gce(l,l.length);if(l.length<=p+1)return;const h=l.indexOf("node_modules");if(!(h!==-1&&h+1<=p+1))return kRe(o,l)?l.length>o.length+1?Uce(u,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:ORe(u,l,l.length-1,p,h,o)}function ORe(e,t,r,i,o,s){if(o!==-1)return Uce(e,t,o+1);let l=!0,u=r;for(let p=0;p<r;p++)if(t[p]!==s[p]){l=!1,u=Math.max(p+1,i+1);break}return Uce(e,t,u,l)}function Uce(e,t,r,i){return{dir:Ny(e,r),dirPath:Ny(t,r),nonRecursive:i}}function Hce(e,t,r,i,o,s){const l=Gc(t);if(kRe(i,l))return r;e=_p(e)?ha(e):yo(e,o());const u=ORe(Gc(e),l,l.length,Gce(l,l.length),l.indexOf("node_modules"),i);return u&&s(u.dirPath)?u.dirPath:void 0}function qce(e,t){const r=yo(e,t());return FV(r)?r:s0(r)}function WRe(e){return e.split(ol).length-(wv(e)?1:0)}function L7(e){var t;return((t=e.getCompilerHost)==null?void 0:t.call(e))||e}function Jce(e,t,r,i,o){return{nameAndMode:R7,resolve:(s,l)=>tqe(i,o,s,e,r,t,l)}}function tqe(e,t,r,i,o,s,l){const u=L7(e),p=dD(r,i,o,u,t,s,l);if(!e.getGlobalCache)return p;const h=e.getGlobalCache();if(h!==void 0&&!Qc(r)&&!(p.resolvedModule&&tW(p.resolvedModule.extension))){const{resolvedModule:f,failedLookupLocations:b,affectingLocations:A,resolutionDiagnostics:I}=lle(C.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,h,t);if(f)return p.resolvedModule=f,p.failedLookupLocations=cD(p.failedLookupLocations,b),p.affectingLocations=cD(p.affectingLocations,A),p.resolutionDiagnostics=cD(p.resolutionDiagnostics,I),p}return p}function cK(e,t,r){let i,o,s;const l=Zp(),u=new Set,p=new Set,h=new Map,f=new Map;let b=!1,A,I,R,M,N,O=!1;const U=Sd(()=>e.getCurrentDirectory()),K=e.getCachedDirectoryStructureHost(),ee=new Map,V=uD(U(),e.getCanonicalFileName,e.getCompilationSettings()),se=new Map,G=zF(U(),e.getCanonicalFileName,e.getCompilationSettings(),V.getPackageJsonInfoCache(),V.optionsToRedirectsKey),re=new Map,_e=uD(U(),e.getCanonicalFileName,wq(e.getCompilationSettings()),V.getPackageJsonInfoCache()),ye=new Map,Q=new Map,Y=qce(t,U),oe=e.toPath(Y),he=Gc(oe),Ae=new Map;return{rootDirForResolution:t,resolvedModuleNames:ee,resolvedTypeReferenceDirectives:se,resolvedLibraries:re,resolvedFileToResolution:h,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:ye,fileWatchesOfAffectingLocations:Q,watchFailedLookupLocationsOfExternalModuleResolutions:Cn,getModuleResolutionCache:()=>V,startRecordingFilesWithChangedResolutions:qe,finishRecordingFilesWithChangedResolutions:Ee,startCachingPerDirectoryResolution:Oe,finishCachingPerDirectoryResolution:be,resolveModuleNameLiterals:Qe,resolveTypeReferenceDirectiveReferences:gt,resolveLibrary:It,resolveSingleModuleNameWithoutWatching:on,removeResolutionsFromProjectReferenceRedirects:nt,removeResolutionsOfFile:Bt,hasChangedAutomaticTypeDirectiveNames:()=>b,invalidateResolutionOfFile:oi,invalidateResolutionsOfFailedLookupLocations:fa,setFilesWithInvalidatedNonRelativeUnresolvedImports:yi,createHasInvalidatedResolutions:Ce,isFileWithInvalidatedNonRelativeUnresolvedImports:Me,updateTypeRootsWatch:pt,closeTypeRootsWatch:Je,clear:ge,onChangesAffectModuleResolution:Ne};function de(le){return le.resolvedModule}function ie(le){return le.resolvedTypeReferenceDirective}function ge(){tp(ye,Mf),tp(Q,Mf),l.clear(),Je(),ee.clear(),se.clear(),h.clear(),u.clear(),p.clear(),R=void 0,M=void 0,N=void 0,I=void 0,A=void 0,O=!1,V.clear(),G.clear(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings()),_e.clear(),f.clear(),re.clear(),b=!1}function Ne(){O=!0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings())}function qe(){i=[]}function Ee(){const le=i;return i=void 0,le}function Me(le){if(!s)return!1;const Fe=s.get(le);return!!Fe&&!!Fe.length}function Ce(le,Fe){fa();const dt=o;return o=void 0,{hasInvalidatedResolutions:j=>le(j)||O||!!(dt!=null&&dt.has(j))||Me(j),hasInvalidatedLibResolutions:j=>{var ot;return Fe(j)||!!((ot=re==null?void 0:re.get(j))!=null&&ot.isInvalidated)}}}function Oe(){V.isReadonly=void 0,G.isReadonly=void 0,_e.isReadonly=void 0,V.getPackageJsonInfoCache().isReadonly=void 0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),_e.clearAllExceptPackageJsonInfoCache(),l.forEach(ho),l.clear()}function At(le){re.forEach((Fe,dt)=>{var j;(j=le==null?void 0:le.resolvedLibReferences)!=null&&j.has(dt)||(Qn(Fe,e.toPath(T7(e.getCompilationSettings(),U(),dt)),de),re.delete(dt))})}function be(le,Fe){s=void 0,O=!1,l.forEach(ho),l.clear(),le!==Fe&&(At(le),le==null||le.getSourceFiles().forEach(dt=>{var Ye,_t;var j;const ot=zp(dt)&&(Ye=(j=dt.packageJsonLocations)==null?void 0:j.length)!=null?Ye:0,Dt=(_t=f.get(dt.path))!=null?_t:et;for(let Gt=Dt.length;Gt<ot;Gt++)en(dt.packageJsonLocations[Gt],!1);if(Dt.length>ot)for(let Gt=ot;Gt<Dt.length;Gt++)Q.get(Dt[Gt]).files--;ot?f.set(dt.path,dt.packageJsonLocations):f.delete(dt.path)}),f.forEach((dt,j)=>{le!=null&&le.getSourceFileByPath(j)||(dt.forEach(ot=>Q.get(ot).files--),f.delete(j))})),ye.forEach(Ue),Q.forEach(it),b=!1,V.isReadonly=!0,G.isReadonly=!0,_e.isReadonly=!0,V.getPackageJsonInfoCache().isReadonly=!0}function Ue(le,Fe){le.refCount===0&&(ye.delete(Fe),le.watcher.close())}function it(le,Fe){var dt;le.files===0&&le.resolutions===0&&!((dt=le.symlinks)!=null&&dt.size)&&(Q.delete(Fe),le.watcher.close())}function Ft({entries:le,containingFile:Fe,containingSourceFile:dt,redirectedReference:j,options:ot,perFileCache:Dt,reusedNames:Ye,loader:_t,getResolutionWithResolvedFileName:Gt,deferWatchingNonRelativeResolution:gn,shouldRetryResolution:hn,logChanges:dn}){const H=e.toPath(Fe),We=Dt.get(H)||Dt.set(H,TI()).get(H),Lt=[],L=dn&&Me(H),me=e.getCurrentProgram(),q=me&&me.getResolvedProjectReferenceToRedirect(Fe),fe=q?!j||j.sourceFile.path!==q.sourceFile.path:!!j,Ve=TI();for(const Tt of le){const kt=_t.nameAndMode.getName(Tt),nn=_t.nameAndMode.getMode(Tt,dt,(j==null?void 0:j.commandLine.options)||ot);let En=We.get(kt,nn);if(!Ve.has(kt,nn)&&(O||fe||!En||En.isInvalidated||L&&!Qc(kt)&&hn(En))){const nr=En;En=_t.resolve(kt,nn),e.onDiscoveredSymlink&&nqe(En)&&e.onDiscoveredSymlink(),We.set(kt,nn,En),En!==nr&&(Cn(kt,En,H,Gt,gn),nr&&Qn(nr,H,Gt)),dn&&i&&!ke(nr,En)&&(i.push(H),dn=!1)}else{const nr=L7(e);if(Yg(ot,nr)&&!Ve.has(kt,nn)){const lr=Gt(En);So(nr,Dt===ee?lr!=null&&lr.resolvedFileName?lr.packageId?m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:lr!=null&&lr.resolvedFileName?lr.packageId?m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,kt,Fe,lr==null?void 0:lr.resolvedFileName,(lr==null?void 0:lr.packageId)&&By(lr.packageId))}}C.assert(En!==void 0&&!En.isInvalidated),Ve.set(kt,nn,!0),Lt.push(En)}return Ye==null||Ye.forEach(Tt=>Ve.set(_t.nameAndMode.getName(Tt),_t.nameAndMode.getMode(Tt,dt,(j==null?void 0:j.commandLine.options)||ot),!0)),We.size()!==Ve.size()&&We.forEach((Tt,kt,nn)=>{Ve.has(kt,nn)||(Qn(Tt,H,Gt),We.delete(kt,nn))}),Lt;function ke(Tt,kt){if(Tt===kt)return!0;if(!Tt||!kt)return!1;const nn=Gt(Tt),En=Gt(kt);return nn===En?!0:!nn||!En?!1:nn.resolvedFileName===En.resolvedFileName}}function gt(le,Fe,dt,j,ot,Dt){return Ft({entries:le,containingFile:Fe,containingSourceFile:ot,redirectedReference:dt,options:j,reusedNames:Dt,perFileCache:se,loader:E7(Fe,dt,j,L7(e),G),getResolutionWithResolvedFileName:ie,shouldRetryResolution:Ye=>Ye.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Qe(le,Fe,dt,j,ot,Dt){return Ft({entries:le,containingFile:Fe,containingSourceFile:ot,redirectedReference:dt,options:j,reusedNames:Dt,perFileCache:ee,loader:Jce(Fe,dt,j,e,V),getResolutionWithResolvedFileName:de,shouldRetryResolution:Ye=>!Ye.resolvedModule||!$N(Ye.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function It(le,Fe,dt,j){const ot=L7(e);let Dt=re==null?void 0:re.get(j);if(!Dt||Dt.isInvalidated){const Ye=Dt;Dt=BF(le,Fe,dt,ot,_e);const _t=e.toPath(Fe);Cn(le,Dt,_t,de,!1),re.set(j,Dt),Ye&&Qn(Ye,_t,de)}else if(Yg(dt,ot)){const Ye=de(Dt);So(ot,Ye!=null&&Ye.resolvedFileName?Ye.packageId?m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,le,Fe,Ye==null?void 0:Ye.resolvedFileName,(Ye==null?void 0:Ye.packageId)&&By(Ye.packageId))}return Dt}function on(le,Fe){var dt,j;const ot=e.toPath(Fe),Dt=ee.get(ot),Ye=Dt==null?void 0:Dt.get(le,void 0);if(Ye&&!Ye.isInvalidated)return Ye;const _t=(dt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:dt.call(e,V),Gt=L7(e),gn=dD(le,Fe,e.getCompilationSettings(),Gt,V);return(j=e.afterResolveSingleModuleNameWithoutWatching)==null||j.call(e,V,le,Fe,gn,_t),gn}function $t(le){return Al(le,"/node_modules/@types")}function Cn(le,Fe,dt,j,ot){var Ye;var Dt;if(Fe.refCount)Fe.refCount++,C.assertIsDefined(Fe.files);else{Fe.refCount=1,C.assert(!((Dt=Fe.files)!=null&&Dt.size)),!ot||Qc(le)?yn(Fe):l.add(le,Fe);const _t=j(Fe);if(_t&&_t.resolvedFileName){const Gt=e.toPath(_t.resolvedFileName);let gn=h.get(Gt);gn||h.set(Gt,gn=new Set),gn.add(Fe)}}((Ye=Fe.files)!=null?Ye:Fe.files=new Set).add(dt)}function Hn(le,Fe){const dt=e.toPath(le),j=lK(le,dt,Y,oe,he,U);if(j){const{dir:ot,dirPath:Dt,nonRecursive:Ye}=j;Dt===oe?(C.assert(Ye),Fe=!0):Gi(ot,Dt,Ye)}return Fe}function yn(le){C.assert(!!le.refCount);const{failedLookupLocations:Fe,affectingLocations:dt,alternateResult:j}=le;if(!(Fe!=null&&Fe.length)&&!(dt!=null&&dt.length)&&!j)return;(Fe!=null&&Fe.length||j)&&u.add(le);let ot=!1;if(Fe)for(const Dt of Fe)ot=Hn(Dt,ot);j&&(ot=Hn(j,ot)),ot&&Gi(Y,oe,!0),tn(le,!(Fe!=null&&Fe.length)&&!j)}function tn(le,Fe){C.assert(!!le.refCount);const{affectingLocations:dt}=le;if(dt!=null&&dt.length){Fe&&p.add(le);for(const j of dt)en(j,!0)}}function en(le,Fe){var Gt;const dt=Q.get(le);if(dt){Fe?dt.resolutions++:dt.files++;return}let j=le,ot=!1,Dt;e.realpath&&(j=e.realpath(le),le!==j&&(ot=!0,Dt=Q.get(j)));const Ye=Fe?1:0,_t=Fe?0:1;if(!ot||!Dt){const gn={watcher:jce(e.toPath(j))?e.watchAffectingFileLocation(j,(hn,dn)=>{K==null||K.addOrDeleteFile(hn,e.toPath(j),dn),gi(j,V.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):TD,resolutions:ot?0:Ye,files:ot?0:_t,symlinks:void 0};Q.set(j,gn),ot&&(Dt=gn)}if(ot){C.assert(!!Dt);const gn={watcher:{close:()=>{var hn;const dn=Q.get(j);(hn=dn==null?void 0:dn.symlinks)!=null&&hn.delete(le)&&!dn.symlinks.size&&!dn.resolutions&&!dn.files&&(Q.delete(j),dn.watcher.close())}},resolutions:Ye,files:_t,symlinks:void 0};Q.set(le,gn),((Gt=Dt.symlinks)!=null?Gt:Dt.symlinks=new Set).add(le)}}function gi(le,Fe){var dt;const j=Q.get(le);j!=null&&j.resolutions&&(I!=null?I:I=new Set).add(le),j!=null&&j.files&&(A!=null?A:A=new Set).add(le),(dt=j==null?void 0:j.symlinks)==null||dt.forEach(ot=>gi(ot,Fe)),Fe==null||Fe.delete(e.toPath(le))}function ho(le,Fe){const dt=e.getCurrentProgram();!dt||!dt.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Fe)?le.forEach(yn):le.forEach(j=>tn(j,!0))}function Gi(le,Fe,dt){const j=ye.get(Fe);j?(C.assert(!!dt==!!j.nonRecursive),j.refCount++):ye.set(Fe,{watcher:Ir(le,Fe,dt),refCount:1,nonRecursive:dt})}function xo(le,Fe,dt){const j=e.toPath(le),ot=lK(le,j,Y,oe,he,U);if(ot){const{dirPath:Dt}=ot;Dt===oe?Fe=!0:Di(Dt,dt)}return Fe}function Qn(le,Fe,dt,j){if(C.checkDefined(le.files).delete(Fe),le.refCount--,le.refCount)return;const ot=dt(le);if(ot&&ot.resolvedFileName){const Gt=e.toPath(ot.resolvedFileName),gn=h.get(Gt);gn!=null&&gn.delete(le)&&!gn.size&&h.delete(Gt)}const{failedLookupLocations:Dt,affectingLocations:Ye,alternateResult:_t}=le;if(u.delete(le)){let Gt=!1;if(Dt)for(const gn of Dt)Gt=xo(gn,Gt,j);_t&&(Gt=xo(_t,Gt,j)),Gt&&Di(oe,j)}else Ye!=null&&Ye.length&&p.delete(le);if(Ye)for(const Gt of Ye){const gn=Q.get(Gt);gn.resolutions--,j&&it(gn,Gt)}}function Di(le,Fe){const dt=ye.get(le);dt.refCount--,Fe&&Ue(dt,le)}function Ir(le,Fe,dt){return e.watchDirectoryOfFailedLookupLocation(le,j=>{const ot=e.toPath(j);K&&K.addOrDeleteFileOrDirectory(j,ot),eo(ot,Fe===ot)},dt?0:1)}function Xt(le,Fe,dt,j){const ot=le.get(Fe);ot&&(ot.forEach(Dt=>Qn(Dt,Fe,dt,j)),le.delete(Fe))}function nt(le){if(!Il(le,".json"))return;const Fe=e.getCurrentProgram();if(!Fe)return;const dt=Fe.getResolvedProjectReferenceByPath(le);dt&&dt.commandLine.fileNames.forEach(j=>Bt(e.toPath(j)))}function Bt(le,Fe){Xt(ee,le,de,Fe),Xt(se,le,ie,Fe)}function Dn(le,Fe){if(!le)return!1;let dt=!1;return le.forEach(j=>{if(!(j.isInvalidated||!Fe(j))){j.isInvalidated=dt=!0;for(const ot of C.checkDefined(j.files))(o!=null?o:o=new Set).add(ot),b=b||Al(ot,bD)}}),dt}function oi(le){Bt(le);const Fe=b;Dn(h.get(le),Mv)&&b&&!Fe&&e.onChangedAutomaticTypeDirectiveNames()}function yi(le){C.assert(s===le||s===void 0),s=le}function eo(le,Fe){if(Fe)(N||(N=new Set)).add(le);else{const dt=P7(le);if(!dt||(le=dt,e.fileIsOpen(le)))return!1;const j=ri(le);if($t(le)||d4(le)||$t(j)||d4(j))(R||(R=new Set)).add(le),(M||(M=new Set)).add(le);else{if(yce(e.getCurrentProgram(),le)||Il(le,".map"))return!1;(R||(R=new Set)).add(le);const ot=xw(le,!0);ot&&(M||(M=new Set)).add(ot)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ro(){const le=V.getPackageJsonInfoCache().getInternalMap();le&&(R||M||N)&&le.forEach((Fe,dt)=>An(dt)?le.delete(dt):void 0)}function fa(){var le;if(O)return A=void 0,Ro(),(R||M||N||I)&&Dn(re,Fa),R=void 0,M=void 0,N=void 0,I=void 0,!0;let Fe=!1;return A&&((le=e.getCurrentProgram())==null||le.getSourceFiles().forEach(dt=>{St(dt.packageJsonLocations,j=>A.has(j))&&((o!=null?o:o=new Set).add(dt.path),Fe=!0)}),A=void 0),!R&&!M&&!N&&!I||(Fe=Dn(u,Fa)||Fe,Ro(),R=void 0,M=void 0,N=void 0,Fe=Dn(p,wn)||Fe,I=void 0),Fe}function Fa(le){var Fe;return wn(le)?!0:!R&&!M&&!N?!1:((Fe=le.failedLookupLocations)==null?void 0:Fe.some(dt=>An(e.toPath(dt))))||!!le.alternateResult&&An(e.toPath(le.alternateResult))}function An(le){return(R==null?void 0:R.has(le))||fn((M==null?void 0:M.keys())||[],Fe=>po(le,Fe)?!0:void 0)||fn((N==null?void 0:N.keys())||[],Fe=>le.length>Fe.length&&po(le,Fe)&&(FV(Fe)||le[Fe.length]===ol)?!0:void 0)}function wn(le){var Fe;return!!I&&((Fe=le.affectingLocations)==null?void 0:Fe.some(dt=>I.has(dt)))}function Je(){tp(Ae,e_)}function mt(le){return Pt(le)?e.watchTypeRootsDirectory(le,Fe=>{const dt=e.toPath(Fe);K&&K.addOrDeleteFileOrDirectory(Fe,dt),b=!0,e.onChangedAutomaticTypeDirectiveNames();const j=Hce(le,e.toPath(le),oe,he,U,ot=>ye.has(ot));j&&eo(dt,j===dt)},1):TD}function pt(){const le=e.getCompilationSettings();if(le.types){Je();return}const Fe=OP(le,{getCurrentDirectory:U});Fe?JN(Ae,new Set(Fe),{createNewValue:mt,onDeleteValue:e_}):Je()}function Pt(le){return e.getCompilationSettings().typeRoots?!0:Vce(e.toPath(le))}}function nqe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var rqe=T({"src/compiler/resolutionCache.ts"(){ta()}});function Xw(e,t){const r=e===vu&&eue?eue:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Mu(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(WJ(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(Tce(i,r)+r.getNewLine()),i[0]=void 0}}function FRe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Nr(z7,t.code)?(e.clearScreen(),!0):!1}function iqe(e,t){return Nr(z7,e.code)?t+t:t}function Yw(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function Kce(e,t){return t?(r,i,o)=>{FRe(e,r,o);let s="[".concat(b1(Yw(e),"\x1B[90m"),"] ");s+="".concat(z_(r.messageText,e.newLine)).concat(i+i),e.write(s)}:(r,i,o)=>{let s="";FRe(e,r,o)||(s+=i),s+="".concat(Yw(e)," - "),s+="".concat(z_(r.messageText,e.newLine)).concat(iqe(r,i)),e.write(s)}}function zRe(e,t,r,i,o,s){const l=o;l.onUnRecoverableConfigFileDiagnostic=p=>VRe(o,s,p);const u=fw(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function k7(e){return lu(e,t=>t.category===1)}function w7(e){return rr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return"".concat(r.file.fileName)}).map(r=>{if(r===void 0)return;const i=Tn(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){const{line:o}=Ts(i.file,i.start);return{fileName:r,line:o+1}}})}function uK(e){return e===1?m.Found_1_error_Watching_for_file_changes:m.Found_0_errors_Watching_for_file_changes}function BRe(e,t){const r=b1(":"+e.line,"\x1B[90m");return nN(e.fileName)&&nN(t)?Im(t,e.fileName,!1)+r:e.fileName+r}function Xce(e,t,r,i){if(e===0)return"";const o=t.filter(f=>f!==void 0),s=o.map(f=>"".concat(f.fileName,":").concat(f.line)).filter((f,b,A)=>A.indexOf(f)===b),l=o[0]&&BRe(o[0],i.getCurrentDirectory());let u;e===1?u=t[0]!==void 0?[m.Found_1_error_in_0,l]:[m.Found_1_error]:u=s.length===0?[m.Found_0_errors,e]:s.length===1?[m.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[m.Found_0_errors_in_1_files,e,s.length];const p=Jl(...u),h=s.length>1?oqe(o,i):"";return"".concat(r).concat(z_(p.messageText,r)).concat(r).concat(r).concat(h)}function oqe(e,t){const r=e.filter((b,A,I)=>A===I.findIndex(R=>(R==null?void 0:R.fileName)===(b==null?void 0:b.fileName)));if(r.length===0)return"";const i=b=>Math.log(b)*Math.LOG10E+1,o=r.map(b=>[b,lu(e,A=>A.fileName===b.fileName)]),s=o.reduce((b,A)=>Math.max(b,A[1]||0),0),l=m.Errors_Files.message,u=l.split(" ")[0].length,p=Math.max(u,i(s)),h=Math.max(i(s)-u,0);let f="";return f+=" ".repeat(h)+l+"\n",o.forEach(b=>{const[A,I]=b,R=Math.log(I)*Math.LOG10E+1|0,M=R<p?" ".repeat(p-R):"",N=BRe(A,t.getCurrentDirectory());f+="".concat(M).concat(I," ").concat(N,"\n")}),f}function Yce(e){return!!e.getState}function dK(e,t){const r=e.getCompilerOptions();r.explainFiles?pK(Yce(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&He(e.getSourceFiles(),i=>{t(i.fileName)})}function pK(e,t){var r,i;const o=e.getFileIncludeReasons(),s=l=>rN(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t("".concat(SD(l,s))),(r=o.get(l.path))==null||r.forEach(u=>t(" ".concat(hK(e,u,s).messageText))),(i=fK(l,s))==null||i.forEach(u=>t(" ".concat(u.messageText)))}function fK(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i!=null?i:i=[]).push(Bo(void 0,m.File_is_output_of_project_reference_source_0,SD(e.originalFileName,t))),e.redirectInfo&&(i!=null?i:i=[]).push(Bo(void 0,m.File_redirects_to_file_0,SD(e.redirectInfo.redirectTarget,t))),zp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i!=null?i:i=[]).push(Bo(void 0,m.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,SD(es(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i!=null?i:i=[]).push(Bo(void 0,e.packageJsonScope.contents.packageJsonContent.type?m.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:m.File_is_CommonJS_module_because_0_does_not_have_field_type,SD(es(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i!=null?i:i=[]).push(Bo(void 0,m.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function mK(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i==null?void 0:i.configFileSpecs)!=null&&r.validatedFilesSpec))return;const o=e.getCanonicalFileName(t),s=ri(yo(i.fileName,e.getCurrentDirectory()));return Tn(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(yo(l,s))===o)}function _K(e,t){var r,i;const o=e.getCompilerOptions().configFile;if(!((r=o==null?void 0:o.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;const s=Il(t,".json"),l=ri(yo(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return Tn((i=o==null?void 0:o.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!Al(p,".json"))return!1;const h=Xoe(p,l,"files");return!!h&&qy("(".concat(h,")$"),u).test(t)})}function hK(e,t,r){var i,o;const s=e.getCompilerOptions();if(W0(t)){const l=QP(e,t),u=vD(l)?l.file.text.substring(l.pos,l.end):'"'.concat(l.text,'"');let p;switch(C.assert(vD(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:vD(l)?p=l.packageId?m.Imported_via_0_from_file_1_with_packageId_2:m.Imported_via_0_from_file_1:l.text===Ky?p=l.packageId?m.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:m.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:p=l.packageId?m.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:m.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:C.assert(!l.packageId),p=m.Referenced_via_0_from_file_1;break;case 5:p=l.packageId?m.Type_library_referenced_via_0_from_file_1_with_packageId_2:m.Type_library_referenced_via_0_from_file_1;break;case 7:C.assert(!l.packageId),p=m.Library_referenced_via_0_from_file_1;break;default:C.assertNever(t)}return Bo(void 0,p,u,SD(l.file,r),l.packageId&&By(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Bo(void 0,m.Root_file_specified_for_compilation);const l=yo(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(mK(e,l))return Bo(void 0,m.Part_of_files_list_in_tsconfig_json);const p=_K(e,l);return No(p)?Bo(void 0,m.Matched_by_include_pattern_0_in_1,p,SD(s.configFile,r)):Bo(void 0,p?m.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:m.Root_file_specified_for_compilation);case 1:case 2:const h=t.kind===2,f=C.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Bo(void 0,Os(s)?h?m.Output_from_referenced_project_0_included_because_1_specified:m.Source_from_referenced_project_0_included_because_1_specified:h?m.Output_from_referenced_project_0_included_because_module_is_specified_as_none:m.Source_from_referenced_project_0_included_because_module_is_specified_as_none,SD(f.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{const b=s.types?t.packageId?[m.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,By(t.packageId)]:[m.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[m.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,By(t.packageId)]:[m.Entry_point_for_implicit_type_library_0,t.typeReference];return Bo(void 0,...b)}case 6:{if(t.index!==void 0)return Bo(void 0,m.Library_0_specified_in_compilerOptions,s.lib[t.index]);const b=jc(Ew.type,(I,R)=>I===ls(s)?R:void 0),A=b?[m.Default_library_for_target_0,b]:[m.Default_library];return Bo(void 0,...A)}default:C.assertNever(t)}}function SD(e,t){const r=No(e)?e:e.fileName;return t?t(r):r}function O7(e,t,r,i,o,s,l,u){const p=!!e.getCompilerOptions().listFilesOnly,h=e.getConfigFileParsingDiagnostics().slice(),f=h.length;Ur(h,e.getSyntacticDiagnostics(void 0,s)),h.length===f&&(Ur(h,e.getOptionsDiagnostics(s)),p||(Ur(h,e.getGlobalDiagnostics(s)),h.length===f&&Ur(h,e.getSemanticDiagnostics(void 0,s))));const b=p?{emitSkipped:!0,diagnostics:et}:e.emit(void 0,o,s,l,u),{emittedFiles:A,diagnostics:I}=b;Ur(h,I);const R=$x(h);if(R.forEach(t),r){const M=e.getCurrentDirectory();He(A,N=>{const O=yo(N,M);r("TSFILE: ".concat(O))}),dK(e,r)}return i&&i(k7(R),w7(R)),{emitResult:b,diagnostics:R}}function $ce(e,t,r,i,o,s,l,u){const{emitResult:p,diagnostics:h}=O7(e,t,r,i,o,s,l,u);return p.emitSkipped&&h.length>0?1:h.length>0?2:0}function gK(e=vu,t){return{onWatchStatusChange:t||Kce(e),watchFile:ia(e,e.watchFile)||AD,watchDirectory:ia(e,e.watchDirectory)||AD,setTimeout:ia(e,e.setTimeout)||ts,clearTimeout:ia(e,e.clearTimeout)||ts}}function vK(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):ts,o=PJ(e,r,i);return o.writeLog=i,o}function yK(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:kJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:ia(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:wJ((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Sd(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Mu(i),getNewLine:()=>Hv(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:ia(e,e.trace),directoryExists:ia(r,r.directoryExists),getDirectories:ia(r,r.getDirectories),realpath:ia(e,e.realpath),getEnvironmentVariable:ia(e,e.getEnvironmentVariable)||(()=>""),createHash:ia(e,e.createHash),readDirectory:ia(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function W7(e,t){if(t.match(oJ)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){const s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Hu(s)){i=o;continue}break}const l=t.substring(i,r);if(l.match(e7)){t=t.substring(0,i);break}else if(!l.match(t7))break;r=i}}return(e.createHash||tN)(t)}function F7(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=W7(e,i.text)),i}}function bK(e,t){const r=Sd(()=>ri(ha(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Sd(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Yr(r(),aL(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,u)=>e.readDirectory(i,o,s,l,u),realpath:ia(e,e.realpath),getEnvironmentVariable:ia(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,o,s)=>e.writeFile(i,o,s),createHash:ia(e,e.createHash),createProgram:t||sK,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ia(e,e.now)}}function GRe(e=vu,t,r,i){const o=l=>e.write(l+e.newLine),s=bK(e,t);return yG(s,gK(e,i)),s.afterProgramCreate=l=>{const u=l.getCompilerOptions(),p=Hv(u);O7(l,r,o,h=>s.onWatchStatusChange(Jl(uK(h),h),p,u,h))},s}function VRe(e,t,r){t(r),e.exit(1)}function Qce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=l||Xw(o),h=GRe(o,s,p,u);return h.onUnRecoverableConfigFileDiagnostic=f=>VRe(o,p,f),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=r,h.extraFileExtensions=i,h}function Zce({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=GRe(o,s,l||Xw(o),u);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function jRe(e){const t=e.system||vu,r=e.host||(e.host=EK(e.options,t)),i=tue(e),o=$ce(i,e.reportDiagnostic||Xw(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(Xce(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var eue,z7,TD,AD,Wc,aqe=T({"src/compiler/watch.ts"(){ta(),eue=vu?{getCurrentDirectory:()=>vu.getCurrentDirectory(),getNewLine:()=>vu.newLine,getCanonicalFileName:Mu(vu.useCaseSensitiveFileNames)}:void 0,z7=[m.Starting_compilation_in_watch_mode.code,m.File_change_detected_Starting_incremental_compilation.code],TD={close:ts},AD=()=>TD,Wc={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 B7(e,t){const r=Qv(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{const o=t.readFile(r);if(!o)return;i=_7(r,o)}if(!(!i||i.version!==Te||!i.program))return Bce(i,r,t)}function EK(e,t=vu){const r=OJ(e,void 0,t);return r.createHash=ia(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,F7(r),Uw(r,i=>il(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function tue({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||EK(t),s=s||sK;const l=B7(t,o);return s(e,t,o,l,r,i)}function URe(e,t,r,i,o,s,l,u){return Ao(e)?Zce({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):Qce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function HRe(e){let t,r,i,o,s,l,u,p,h=e.extendedConfigCache,f=!1;const b=new Map;let A,I=!1;const R=e.useCaseSensitiveFileNames(),M=e.getCurrentDirectory(),{configFileName:N,optionsToExtend:O={},watchOptionsToExtend:U,extraFileExtensions:K,createProgram:ee}=e;let{rootFiles:V,options:se,watchOptions:G,projectReferences:re}=e,_e,ye,Q=!1,Y=!1;const oe=N===void 0?void 0:g7(e,M,R),he=oe||e,Ae=x7(e,he);let de=Cn();N&&e.configFileParsingResult&&(Fa(e.configFileParsingResult),de=Cn()),Qn(m.Starting_compilation_in_watch_mode),N&&!e.configFileParsingResult&&(de=Hv(O),C.assert(!V),fa(),de=Cn()),C.assert(se),C.assert(V);const{watchFile:ie,watchDirectory:ge,writeLog:Ne}=vK(e,se),qe=Mu(R);Ne("Current directory: ".concat(M," CaseSensitiveFileNames: ").concat(R));let Ee;N&&(Ee=ie(N,Dn,2e3,G,Wc.ConfigFile));const Me=yK(e,()=>se,he);F7(Me);const Ce=Me.getSourceFile;Me.getSourceFile=(Ye,..._t)=>gi(Ye,Hn(Ye),..._t),Me.getSourceFileByPath=gi,Me.getNewLine=()=>de,Me.fileExists=en,Me.onReleaseOldSourceFile=xo,Me.onReleaseParsedCommandLine=Je,Me.toPath=Hn,Me.getCompilationSettings=()=>se,Me.useSourceOfProjectReferenceRedirect=ia(e,e.useSourceOfProjectReferenceRedirect),Me.watchDirectoryOfFailedLookupLocation=(Ye,_t,Gt)=>ge(Ye,_t,Gt,G,Wc.FailedLookupLocations),Me.watchAffectingFileLocation=(Ye,_t)=>ie(Ye,_t,2e3,G,Wc.AffectingFileLocation),Me.watchTypeRootsDirectory=(Ye,_t,Gt)=>ge(Ye,_t,Gt,G,Wc.TypeRoots),Me.getCachedDirectoryStructureHost=()=>oe,Me.scheduleInvalidateResolutionsOfFailedLookupLocations=Xt,Me.onInvalidatedResolution=Bt,Me.onChangedAutomaticTypeDirectiveNames=Bt,Me.fileIsOpen=$m,Me.getCurrentProgram=Qe,Me.writeLog=Ne,Me.getParsedCommandLine=An;const Oe=cK(Me,N?ri(yo(N,M)):M,!1);Me.resolveModuleNameLiterals=ia(e,e.resolveModuleNameLiterals),Me.resolveModuleNames=ia(e,e.resolveModuleNames),!Me.resolveModuleNameLiterals&&!Me.resolveModuleNames&&(Me.resolveModuleNameLiterals=Oe.resolveModuleNameLiterals.bind(Oe)),Me.resolveTypeReferenceDirectiveReferences=ia(e,e.resolveTypeReferenceDirectiveReferences),Me.resolveTypeReferenceDirectives=ia(e,e.resolveTypeReferenceDirectives),!Me.resolveTypeReferenceDirectiveReferences&&!Me.resolveTypeReferenceDirectives&&(Me.resolveTypeReferenceDirectiveReferences=Oe.resolveTypeReferenceDirectiveReferences.bind(Oe)),Me.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Oe.resolveLibrary.bind(Oe),Me.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ia(e,e.getModuleResolutionCache):()=>Oe.getModuleResolutionCache();const be=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ia(e,e.hasInvalidatedResolutions)||Mv:$m,Ue=e.resolveLibrary?ia(e,e.hasInvalidatedLibResolutions)||Mv:$m;return t=B7(se,Me),It(),dt(),N&&ot(Hn(N),se,G,Wc.ExtendedConfigFile),N?{getCurrentProgram:gt,getProgram:yi,close:it,getResolutionCache:Ft}:{getCurrentProgram:gt,getProgram:yi,updateRootFileNames:$t,close:it,getResolutionCache:Ft};function it(){Ir(),Oe.clear(),tp(b,Ye=>{Ye&&Ye.fileWatcher&&(Ye.fileWatcher.close(),Ye.fileWatcher=void 0)}),Ee&&(Ee.close(),Ee=void 0),h==null||h.clear(),h=void 0,p&&(tp(p,Mf),p=void 0),o&&(tp(o,Mf),o=void 0),i&&(tp(i,e_),i=void 0),u&&(tp(u,Ye=>{var _t;(_t=Ye.watcher)==null||_t.close(),Ye.watcher=void 0,Ye.watchedDirectories&&tp(Ye.watchedDirectories,Mf),Ye.watchedDirectories=void 0}),u=void 0)}function Ft(){return Oe}function gt(){return t}function Qe(){return t&&t.getProgramOrUndefined()}function It(){Ne("Synchronizing program"),C.assert(se),C.assert(V),Ir();const Ye=gt();I&&(de=Cn(),Ye&&W4(Ye.getCompilerOptions(),se)&&Oe.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:_t,hasInvalidatedLibResolutions:Gt}=Oe.createHasInvalidatedResolutions(be,Ue),{originalReadFile:gn,originalFileExists:hn,originalDirectoryExists:dn,originalCreateDirectory:H,originalWriteFile:We,readFileWithCache:Lt}=Uw(Me,Hn);return qJ(Qe(),V,se,L=>Gi(L,Lt),L=>Me.fileExists(L),_t,Gt,Di,An,re)?Y&&(f&&Qn(m.File_change_detected_Starting_incremental_compilation),t=ee(void 0,void 0,Me,t,ye,re),Y=!1):(f&&Qn(m.File_change_detected_Starting_incremental_compilation),on(_t,Gt)),f=!1,e.afterProgramCreate&&Ye!==t&&e.afterProgramCreate(t),Me.readFile=gn,Me.fileExists=hn,Me.directoryExists=dn,Me.createDirectory=H,Me.writeFile=We,t}function on(Ye,_t){Ne("CreatingProgramWith::"),Ne(" roots: ".concat(JSON.stringify(V))),Ne(" options: ".concat(JSON.stringify(se))),re&&Ne(" projectReferences: ".concat(JSON.stringify(re)));const Gt=I||!Qe();I=!1,Y=!1,Oe.startCachingPerDirectoryResolution(),Me.hasInvalidatedResolutions=Ye,Me.hasInvalidatedLibResolutions=_t,Me.hasChangedAutomaticTypeDirectiveNames=Di;const gn=Qe();if(t=ee(V,se,Me,t,ye,re),Oe.finishCachingPerDirectoryResolution(t.getProgram(),gn),NJ(t.getProgram(),i||(i=new Map),le),Gt&&Oe.updateTypeRootsWatch(),A){for(const hn of A)i.has(hn)||b.delete(hn);A=void 0}}function $t(Ye){C.assert(!N,"Cannot update root file names with config file watch mode"),V=Ye,Bt()}function Cn(){return Hv(se||O)}function Hn(Ye){return il(Ye,M,qe)}function yn(Ye){return typeof Ye=="boolean"}function tn(Ye){return typeof Ye.version=="boolean"}function en(Ye){const _t=Hn(Ye);return yn(b.get(_t))?!1:he.fileExists(Ye)}function gi(Ye,_t,Gt,gn,hn){const dn=b.get(_t);if(yn(dn))return;const H=typeof Gt=="object"?Gt.impliedNodeFormat:void 0;if(dn===void 0||hn||tn(dn)||dn.sourceFile.impliedNodeFormat!==H){const We=Ce(Ye,Gt,gn);if(dn)We?(dn.sourceFile=We,dn.version=We.version,dn.fileWatcher||(dn.fileWatcher=mt(_t,Ye,pt,250,G,Wc.SourceFile))):(dn.fileWatcher&&dn.fileWatcher.close(),b.set(_t,!1));else if(We){const Lt=mt(_t,Ye,pt,250,G,Wc.SourceFile);b.set(_t,{sourceFile:We,version:We.version,fileWatcher:Lt})}else b.set(_t,!1);return We}return dn.sourceFile}function ho(Ye){const _t=b.get(Ye);_t!==void 0&&(yn(_t)?b.set(Ye,{version:!1}):_t.version=!1)}function Gi(Ye,_t){const Gt=b.get(Ye);if(!Gt)return;if(Gt.version)return Gt.version;const gn=_t(Ye);return gn!==void 0?W7(Me,gn):void 0}function xo(Ye,_t,Gt){const gn=b.get(Ye.resolvedPath);gn!==void 0&&(yn(gn)?(A||(A=[])).push(Ye.path):gn.sourceFile===Ye&&(gn.fileWatcher&&gn.fileWatcher.close(),b.delete(Ye.resolvedPath),Gt||Oe.removeResolutionsOfFile(Ye.path)))}function Qn(Ye){e.onWatchStatusChange&&e.onWatchStatusChange(Jl(Ye),de,se||O)}function Di(){return Oe.hasChangedAutomaticTypeDirectiveNames()}function Ir(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function Xt(){if(!e.setTimeout||!e.clearTimeout)return Oe.invalidateResolutionsOfFailedLookupLocations();const Ye=Ir();Ne("Scheduling invalidateFailedLookup".concat(Ye?", Cancelled earlier one":"")),l=e.setTimeout(nt,250,"timerToInvalidateFailedLookupResolutions")}function nt(){l=void 0,Oe.invalidateResolutionsOfFailedLookupLocations()&&Bt()}function Bt(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Ne("Scheduling update"),s=e.setTimeout(oi,250,"timerToUpdateProgram"))}function Dn(){C.assert(!!N),r=2,Bt()}function oi(){s=void 0,f=!0,yi()}function yi(){var Ye,_t,Gt,gn;switch(r){case 1:(Ye=ad)==null||Ye.logStartUpdateProgram("PartialConfigReload"),eo();break;case 2:(_t=ad)==null||_t.logStartUpdateProgram("FullConfigReload"),Ro();break;default:(Gt=ad)==null||Gt.logStartUpdateProgram("SynchronizeProgram"),It();break}return(gn=ad)==null||gn.logStopUpdateProgram("Done"),gt()}function eo(){Ne("Reloading new file names and options"),C.assert(se),C.assert(N),r=0,V=LP(se.configFile.configFileSpecs,yo(ri(N),M),se,Ae,K),xF(V,yo(N,M),se.configFile.configFileSpecs,ye,Q)&&(Y=!0),It()}function Ro(){C.assert(N),Ne("Reloading config file: ".concat(N)),r=0,oe&&oe.clearCache(),fa(),I=!0,It(),dt(),ot(Hn(N),se,G,Wc.ExtendedConfigFile)}function fa(){C.assert(N),Fa(fw(N,O,Ae,h||(h=new Map),U,K))}function Fa(Ye){V=Ye.fileNames,se=Ye.options,G=Ye.watchOptions,re=Ye.projectReferences,_e=Ye.wildcardDirectories,ye=rT(Ye).slice(),Q=MP(Ye.raw),Y=!0}function An(Ye){const _t=Hn(Ye);let Gt=u==null?void 0:u.get(_t);if(Gt){if(!Gt.updateLevel)return Gt.parsedCommandLine;if(Gt.parsedCommandLine&&Gt.updateLevel===1&&!e.getParsedCommandLine){Ne("Reloading new file names and options"),C.assert(se);const hn=LP(Gt.parsedCommandLine.options.configFile.configFileSpecs,yo(ri(Ye),M),se,Ae);return Gt.parsedCommandLine={...Gt.parsedCommandLine,fileNames:hn},Gt.updateLevel=void 0,Gt.parsedCommandLine}}Ne("Loading config file: ".concat(Ye));const gn=e.getParsedCommandLine?e.getParsedCommandLine(Ye):wn(Ye);return Gt?(Gt.parsedCommandLine=gn,Gt.updateLevel=void 0):(u||(u=new Map)).set(_t,Gt={parsedCommandLine:gn}),Dt(Ye,_t,Gt),gn}function wn(Ye){const _t=Ae.onUnRecoverableConfigFileDiagnostic;Ae.onUnRecoverableConfigFileDiagnostic=ts;const Gt=fw(Ye,void 0,Ae,h||(h=new Map),U);return Ae.onUnRecoverableConfigFileDiagnostic=_t,Gt}function Je(Ye){var _t;const Gt=Hn(Ye),gn=u==null?void 0:u.get(Gt);gn&&(u.delete(Gt),gn.watchedDirectories&&tp(gn.watchedDirectories,Mf),(_t=gn.watcher)==null||_t.close(),CJ(Gt,p))}function mt(Ye,_t,Gt,gn,hn,dn){return ie(_t,(H,We)=>Gt(H,We,Ye),gn,hn,dn)}function pt(Ye,_t,Gt){Pt(Ye,Gt,_t),_t===2&&b.has(Gt)&&Oe.invalidateResolutionOfFile(Gt),ho(Gt),Bt()}function Pt(Ye,_t,Gt){oe&&oe.addOrDeleteFile(Ye,_t,Gt)}function le(Ye,_t){return u!=null&&u.has(Ye)?TD:mt(Ye,_t,Fe,500,G,Wc.MissingFile)}function Fe(Ye,_t,Gt){Pt(Ye,Gt,_t),_t===0&&i.has(Gt)&&(i.get(Gt).close(),i.delete(Gt),ho(Gt),Bt())}function dt(){Gw(o||(o=new Map),_e,j)}function j(Ye,_t){return ge(Ye,Gt=>{C.assert(N),C.assert(se);const gn=Hn(Gt);oe&&oe.addOrDeleteFileOrDirectory(Gt,gn),ho(gn),!Vw({watchedDirPath:Hn(Ye),fileOrDirectory:Gt,fileOrDirectoryPath:gn,configFileName:N,extraFileExtensions:K,options:se,program:gt()||V,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Ne,toPath:Hn})&&r!==2&&(r=1,Bt())},_t,G,Wc.WildcardDirectory)}function ot(Ye,_t,Gt,gn){v7(Ye,_t,p||(p=new Map),(hn,dn)=>ie(hn,(H,We)=>{var Lt;Pt(hn,dn,We),h&&y7(h,dn,Hn);const L=(Lt=p.get(dn))==null?void 0:Lt.projects;L!=null&&L.size&&L.forEach(me=>{if(N&&Hn(N)===me)r=2;else{const q=u==null?void 0:u.get(me);q&&(q.updateLevel=2),Oe.removeResolutionsFromProjectReferenceRedirects(me)}Bt()})},2e3,Gt,gn),Hn)}function Dt(Ye,_t,Gt){var gn,hn,dn,H;Gt.watcher||(Gt.watcher=ie(Ye,(We,Lt)=>{Pt(Ye,_t,Lt);const L=u==null?void 0:u.get(_t);L&&(L.updateLevel=2),Oe.removeResolutionsFromProjectReferenceRedirects(_t),Bt()},2e3,((gn=Gt.parsedCommandLine)==null?void 0:gn.watchOptions)||G,Wc.ConfigFileOfReferencedProject)),Gw(Gt.watchedDirectories||(Gt.watchedDirectories=new Map),(hn=Gt.parsedCommandLine)==null?void 0:hn.wildcardDirectories,(We,Lt)=>{var L;return ge(We,me=>{const q=Hn(me);oe&&oe.addOrDeleteFileOrDirectory(me,q),ho(q);const fe=u==null?void 0:u.get(_t);fe!=null&&fe.parsedCommandLine&&(Vw({watchedDirPath:Hn(We),fileOrDirectory:me,fileOrDirectoryPath:q,configFileName:Ye,options:fe.parsedCommandLine.options,program:fe.parsedCommandLine.fileNames,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Ne,toPath:Hn})||fe.updateLevel!==2&&(fe.updateLevel=1,Bt()))},Lt,((L=Gt.parsedCommandLine)==null?void 0:L.watchOptions)||G,Wc.WildcardDirectoryOfReferencedProject)}),ot(_t,(dn=Gt.parsedCommandLine)==null?void 0:dn.options,((H=Gt.parsedCommandLine)==null?void 0:H.watchOptions)||G,Wc.ExtendedConfigOfReferencedProject)}}var sqe=T({"src/compiler/watchPublic.ts"(){ta()}});function SK(e){return Il(e,".json")?e:Yr(e,"tsconfig.json")}var TK,lqe=T({"src/compiler/tsbuild.ts"(){ta(),TK=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",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))(TK||{})}});function cqe(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function nue(e,t){return cqe(e,t,()=>new Map)}function $w(e){return e.now?e.now():new Date}function DI(e){return!!e&&!!e.buildOrder}function G7(e){return DI(e)?e.buildOrder:e}function rue(e,t){return r=>{let i=t?"[".concat(b1(Yw(e),"\x1B[90m"),"] "):"".concat(Yw(e)," - ");i+="".concat(z_(r.messageText,e.newLine)).concat(e.newLine+e.newLine),e.write(i)}}function qRe(e,t,r,i){const o=bK(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):o0,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):ts,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):ts,o.reportDiagnostic=r||Xw(e),o.reportSolutionBuilderStatus=i||rue(e),o.now=ia(e,e.now),o}function JRe(e=vu,t,r,i,o){const s=qRe(e,t,r,i);return s.reportErrorSummary=o,s}function KRe(e=vu,t,r,i,o){const s=qRe(e,t,r,i),l=gK(e,o);return yG(s,l),s}function uqe(e){const t={};return bw.forEach(r=>{Cs(e,r.name)&&(t[r.name]=e[r.name])}),t}function XRe(e,t,r){return yDe(!1,e,t,r)}function YRe(e,t,r,i){return yDe(!0,e,t,r,i)}function dqe(e,t,r,i,o){const s=t,l=t,u=uqe(i),p=yK(s,()=>M.projectCompilerOptions);F7(p),p.getParsedCommandLine=N=>CI(M,N,B_(M,N)),p.resolveModuleNameLiterals=ia(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=ia(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=ia(s,s.resolveLibrary),p.resolveModuleNames=ia(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=ia(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=ia(s,s.getModuleResolutionCache);let h,f;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(h=uD(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(N,O,U,K,ee)=>qw(N,O,U,K,ee,s,h,VJ),p.getModuleResolutionCache=()=>h),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(f=zF(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h==null?void 0:h.getPackageJsonInfoCache(),h==null?void 0:h.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(N,O,U,K,ee)=>qw(N,O,U,K,ee,s,f,E7));let b;p.resolveLibrary||(b=uD(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h==null?void 0:h.getPackageJsonInfoCache()),p.resolveLibrary=(N,O,U)=>BF(N,O,U,s,b)),p.getBuildInfo=(N,O)=>uDe(M,N,B_(M,O),void 0);const{watchFile:A,watchDirectory:I,writeLog:R}=vK(l,i),M={host:s,hostWithWatch:l,parseConfigFileHost:x7(s),write:ia(s,s.trace),options:i,baseCompilerOptions:u,rootNames:r,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:p,moduleResolutionCache:h,typeReferenceDirectiveResolutionCache:f,libraryResolutionCache:b,buildOrder:void 0,readFileWithCache:N=>s.readFile(N),projectCompilerOptions:u,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:A,watchDirectory:I,writeLog:R};return M}function Lf(e,t){return il(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function B_(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const o=Lf(e,t);return r.set(t,o),o}function $Re(e){return!!e.options}function pqe(e,t){const r=e.configFileCache.get(t);return r&&$Re(r)?r:void 0}function CI(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return $Re(o)?o:void 0;rl("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:p,extendedConfigCache:h,host:f}=e;let b;return f.getParsedCommandLine?(b=f.getParsedCommandLine(t),b||(s=Jl(m.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=A=>s=A,b=fw(t,u,l,h,p),l.onUnRecoverableConfigFileDiagnostic=ts),i.set(r,b||s),rl("SolutionBuilder::afterConfigFileParsing"),ef("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),b}function ZP(e,t){return SK(Py(e.compilerHost.getCurrentDirectory(),t))}function QRe(e,t){const r=new Map,i=new Map,o=[];let s,l;for(const p of t)u(p);return l?{buildOrder:s||et,circularDiagnostics:l}:s||et;function u(p,h){const f=B_(e,p);if(i.has(f))return;if(r.has(f)){h||(l||(l=[])).push(Jl(m.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join("\r\n")));return}r.set(f,!0),o.push(p);const b=CI(e,p,f);if(b&&b.projectReferences)for(const A of b.projectReferences){const I=ZP(e,A.path);u(I,h||A.circular)}o.pop(),i.set(f,!0),(s||(s=[])).push(p)}}function V7(e){return e.buildOrder||fqe(e)}function fqe(e){const t=QRe(e,e.rootNames.map(o=>ZP(e,o)));e.resolvedConfigFilePaths.clear();const r=new Set(G7(t).map(o=>B_(e,o))),i={onDeleteValue:ts};return ug(e.configFileCache,r,i),ug(e.projectStatus,r,i),ug(e.builderPrograms,r,i),ug(e.diagnostics,r,i),ug(e.projectPendingBuild,r,i),ug(e.projectErrorsReported,r,i),ug(e.buildInfoCache,r,i),ug(e.outputTimeStamps,r,i),ug(e.lastCachedPackageJsonLookups,r,i),e.watch&&(ug(e.allWatchedConfigFiles,r,{onDeleteValue:e_}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),ug(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Mf)}),ug(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(e_)}),ug(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(e_)})),e.buildOrder=t}function ZRe(e,t,r){const i=t&&ZP(e,t),o=V7(e);if(DI(o))return o;if(i){const l=B_(e,i);if(Br(o,p=>B_(e,p)===l)===-1)return}const s=i?QRe(e,[i]):o;return C.assert(!DI(s)),C.assert(!r||i!==void 0),C.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function eDe(e){e.cache&&iue(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:h,getSourceFileWithCache:f,readFileWithCache:b}=Uw(r,A=>Lf(e,A),(...A)=>o.call(t,...A));e.readFileWithCache=b,t.getSourceFile=f,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:h,originalReadFileWithCache:i,originalGetSourceFile:o}}function iue(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s==null||s.clear(),l==null||l.clear(),u==null||u.clear(),e.cache=void 0}function tDe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function nDe({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function rDe(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&hue(e,m.Starting_compilation_in_watch_mode),eDe(e),G7(V7(e)).forEach(i=>e.projectPendingBuild.set(B_(e,i),0)),t&&t.throwIfCancellationRequested()}function iDe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function mqe(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{pDe(e,i,r),s=!1},done:()=>(s&&pDe(e,i,r),rl("SolutionBuilder::Timestamps only updates"),iDe(e,r))}}function oDe(e,t,r,i,o,s,l){let u=e===0?0:4,p,h,f;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>A(tl),getProgram:()=>A(G=>G.getProgramOrUndefined()),getSourceFile:G=>A(re=>re.getSourceFile(G)),getSourceFiles:()=>I(G=>G.getSourceFiles()),getOptionsDiagnostics:G=>I(re=>re.getOptionsDiagnostics(G)),getGlobalDiagnostics:G=>I(re=>re.getGlobalDiagnostics(G)),getConfigFileParsingDiagnostics:()=>I(G=>G.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(G,re)=>I(_e=>_e.getSyntacticDiagnostics(G,re)),getAllDependencies:G=>I(re=>re.getAllDependencies(G)),getSemanticDiagnostics:(G,re)=>I(_e=>_e.getSemanticDiagnostics(G,re)),getSemanticDiagnosticsOfNextAffectedFile:(G,re)=>A(_e=>_e.getSemanticDiagnosticsOfNextAffectedFile&&_e.getSemanticDiagnosticsOfNextAffectedFile(G,re)),emit:(G,re,_e,ye,Q)=>{if(G||ye)return A(Y=>{var oe,he;return Y.emit(G,re,_e,ye,Q||((he=(oe=t.host).getCustomTransformers)==null?void 0:he.call(oe,r)))});if(se(2,_e),u===5)return K(re,_e);if(u===3)return U(re,_e,Q)},done:b}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(G,re)=>u!==4?f:V(G,re),done:b};function b(G,re,_e){return se(8,G,re,_e),rl(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),iDe(t,i)}function A(G){return se(0),p&&G(p)}function I(G){return A(G)||et}function R(){var G,re,_e;if(C.assert(p===void 0),t.options.dry){Rd(t,m.A_non_dry_build_would_build_project_0,r),h=1,u=7;return}if(t.options.verbose&&Rd(t,m.Building_project_0,r),s.fileNames.length===0){e2(t,i,rT(s)),h=0,u=7;return}const{host:ye,compilerHost:Q}=t;if(t.projectCompilerOptions=s.options,(G=t.moduleResolutionCache)==null||G.update(s.options),(re=t.typeReferenceDirectiveResolutionCache)==null||re.update(s.options),p=ye.createProgram(s.fileNames,s.options,Q,hqe(t,i,s),rT(s),s.projectReferences),t.watch){const Y=(_e=t.moduleResolutionCache)==null?void 0:_e.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,Y&&new Set(Wo(Y.values(),oe=>t.host.realpath&&(FF(oe)||oe.directoryExists)?t.host.realpath(Yr(oe.packageDirectory,"package.json")):Yr(oe.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}u++}function M(G,re,_e){G.length?{buildResult:h,step:u}=sue(t,i,p,s,G,re,_e):u++}function N(G){C.assertIsDefined(p),M([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(G),...p.getGlobalDiagnostics(G),...p.getSyntacticDiagnostics(void 0,G)],8,"Syntactic")}function O(G){M(C.checkDefined(p).getSemanticDiagnostics(void 0,G),16,"Semantic")}function U(G,re,_e){var ye,Q,Y;C.assertIsDefined(p),C.assert(u===3);const oe=p.saveEmitState();let he;const Ae=Ue=>(he||(he=[])).push(Ue),de=[],{emitResult:ie}=O7(p,Ae,void 0,void 0,(Ue,it,Ft,gt,Qe,It)=>de.push({name:Ue,text:it,writeByteOrderMark:Ft,data:It}),re,!1,_e||((Q=(ye=t.host).getCustomTransformers)==null?void 0:Q.call(ye,r)));if(he)return p.restoreEmitState(oe),{buildResult:h,step:u}=sue(t,i,p,s,he,32,"Declaration file"),{emitSkipped:!0,diagnostics:ie.diagnostics};const{host:ge,compilerHost:Ne}=t,qe=(Y=p.hasChangedEmitSignature)!=null&&Y.call(p)?0:2,Ee=DR(),Me=new Map,Ce=p.getCompilerOptions(),Oe=uP(Ce);let At,be;return de.forEach(({name:Ue,text:it,writeByteOrderMark:Ft,data:gt})=>{const Qe=Lf(t,Ue);Me.set(Lf(t,Ue),Ue),gt!=null&>.buildInfo&&cue(t,gt.buildInfo,i,Ce,qe);const It=gt!=null&>.differsOnlyInMap?IA(t.host,Ue):void 0;ON(G?{writeFile:G}:Ne,Ee,Ue,it,Ft),gt!=null&>.differsOnlyInMap?t.host.setModifiedTime(Ue,It):!Oe&&t.watch&&(At||(At=lue(t,i))).set(Qe,be||(be=$w(t.host)))}),ee(Ee,Me,de.length?de[0].name:xJ(s,!ge.useCaseSensitiveFileNames()),qe),ie}function K(G,re){C.assertIsDefined(p),C.assert(u===5);const _e=p.emitBuildInfo((ye,Q,Y,oe,he,Ae)=>{Ae!=null&&Ae.buildInfo&&cue(t,Ae.buildInfo,i,p.getCompilerOptions(),2),G?G(ye,Q,Y,oe,he,Ae):t.compilerHost.writeFile(ye,Q,Y,oe,he,Ae)},re);return _e.diagnostics.length&&(U7(t,_e.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),..._e.diagnostics]),h=64&h),_e.emittedFiles&&t.write&&_e.emittedFiles.forEach(ye=>lDe(t,s,ye)),aue(t,p,s),u=7,_e}function ee(G,re,_e,ye){const Q=G.getDiagnostics();return Q.length?({buildResult:h,step:u}=sue(t,i,p,s,Q,64,"Emit"),Q):(t.write&&re.forEach(Y=>lDe(t,s,Y)),dDe(t,s,i,m.Updating_unchanged_output_timestamps_of_project_0,re),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:_e}),aue(t,p,s),u=7,h=ye,Q)}function V(G,re){var _e,ye,Q,Y;if(C.assert(e===1),t.options.dry){Rd(t,m.A_non_dry_build_would_update_output_of_project_0,r),h=1,u=7;return}t.options.verbose&&Rd(t,m.Updating_output_of_project_0,r);const{compilerHost:oe}=t;t.projectCompilerOptions=s.options,(ye=(_e=t.host).beforeEmitBundle)==null||ye.call(_e,s);const he=gce(s,oe,qe=>{const Ee=ZP(t,qe.path);return CI(t,Ee,B_(t,Ee))},re||((Y=(Q=t.host).getCustomTransformers)==null?void 0:Y.call(Q,r)));if(No(he))return Rd(t,m.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,du(t,he)),u=6,f=oDe(0,t,r,i,o,s,l);C.assert(!!he.length);const Ae=DR(),de=new Map;let ie=2;const ge=t.buildInfoCache.get(i).buildInfo||void 0;return he.forEach(({name:qe,text:Ee,writeByteOrderMark:Me,data:Ce})=>{var Oe,At;de.set(Lf(t,qe),qe),Ce!=null&&Ce.buildInfo&&(((Oe=Ce.buildInfo.program)==null?void 0:Oe.outSignature)!==((At=ge==null?void 0:ge.program)==null?void 0:At.outSignature)&&(ie&=-3),cue(t,Ce.buildInfo,i,s.options,ie)),ON(G?{writeFile:G}:oe,Ae,qe,Ee,Me)}),{emitSkipped:!1,diagnostics:ee(Ae,de,he[0].name,ie)}}function se(G,re,_e,ye){for(;u<=G&&u<8;){const Q=u;switch(u){case 0:R();break;case 1:N(re);break;case 2:O(re);break;case 3:U(_e,re,ye);break;case 5:K(_e,re);break;case 4:V(_e,ye);break;case 6:C.checkDefined(f).done(re,_e,ye),u=8;break;case 7:bqe(t,r,i,o,s,l,C.checkDefined(h)),u++;break}C.assert(u>Q)}}}function _qe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!rT(r).length||!uP(r.options)}function aDe(e,t,r){if(!e.projectPendingBuild.size||DI(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s<t.length;s++){const l=t[s],u=B_(e,l),p=e.projectPendingBuild.get(u);if(p===void 0)continue;r&&(r=!1,SDe(e,t));const h=CI(e,l,u);if(!h){bDe(e,u),o.delete(u);continue}p===2?(hDe(e,l,u,h),gDe(e,u,h),vDe(e,l,u,h),mue(e,l,u,h),_ue(e,l,u,h)):p===1&&(h.fileNames=LP(h.options.configFile.configFileSpecs,ri(l),h.options,e.parseConfigFileHost),xF(h.fileNames,l,h.options.configFile.configFileSpecs,h.errors,MP(h.raw)),mue(e,l,u,h),_ue(e,l,u,h));const f=pue(e,h,u);if(!i.force){if(f.type===1){xK(e,l,f),e2(e,u,rT(h)),o.delete(u),i.dry&&Rd(e,m.Project_0_is_up_to_date,l);continue}if(f.type===2||f.type===15)return e2(e,u,rT(h)),{kind:2,status:f,project:l,projectPath:u,projectIndex:s,config:h}}if(f.type===12){xK(e,l,f),e2(e,u,rT(h)),o.delete(u),i.verbose&&Rd(e,f.upstreamProjectBlocked?m.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:m.Skipping_build_of_project_0_because_its_dependency_1_has_errors,l,f.upstreamProjectName);continue}if(f.type===16){xK(e,l,f),e2(e,u,rT(h)),o.delete(u);continue}return{kind:_qe(e,f,h)?0:1,status:f,project:l,projectPath:u,projectIndex:s,config:h}}}function sDe(e,t,r){return xK(e,t.project,t.status),t.kind!==2?oDe(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,r):mqe(e,t.project,t.projectPath,t.config,r)}function oue(e,t,r){const i=aDe(e,t,r);return i&&sDe(e,i,t)}function lDe({write:e},t,r){e&&t.options.listEmittedFiles&&e("TSFILE: ".concat(r))}function hqe({options:e,builderPrograms:t,compilerHost:r},i,o){if(e.force)return;const s=t.get(i);return s||B7(o.options,r)}function aue(e,t,r){t?(e.write&&dK(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function sue(e,t,r,i,o,s,l){const u=r&&!Os(r.getCompilerOptions());return e2(e,t,o),e.projectStatus.set(t,{type:0,reason:"".concat(l," errors")}),u?{buildResult:s,step:5}:(aue(e,r,i),{buildResult:s,step:7})}function AK(e){return!!e.watcher}function cDe(e,t){const r=Lf(e,t),i=e.filesWatched.get(r);if(e.watch&&i){if(!AK(i))return i;if(i.modifiedTime)return i.modifiedTime}const o=IA(e.host,t);return e.watch&&(i?i.modifiedTime=o:e.filesWatched.set(r,o)),o}function IK(e,t,r,i,o,s,l){const u=Lf(e,t),p=e.filesWatched.get(u);if(p&&AK(p))p.callbacks.push(r);else{const h=e.watchFile(t,(f,b,A)=>{const I=C.checkDefined(e.filesWatched.get(u));C.assert(AK(I)),I.modifiedTime=A,I.callbacks.forEach(R=>R(f,b,A))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:h,modifiedTime:p})}return{close:()=>{const h=C.checkDefined(e.filesWatched.get(u));C.assert(AK(h)),h.callbacks.length===1?(e.filesWatched.delete(u),Mf(h)):TA(h.callbacks,r)}}}function lue(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function cue(e,t,r,i,o){const s=Qv(i),l=uue(e,s,r),u=$w(e.host);l?(l.buildInfo=t,l.modifiedTime=u,o&2||(l.latestChangedDtsTime=u)):e.buildInfoCache.set(r,{path:Lf(e,s),buildInfo:t,modifiedTime:u,latestChangedDtsTime:o&2?void 0:u})}function uue(e,t,r){const i=Lf(e,t),o=e.buildInfoCache.get(r);return(o==null?void 0:o.path)===i?o:void 0}function uDe(e,t,r,i){const o=Lf(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;const l=e.readFileWithCache(t),u=l?_7(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||Op}),u}function due(e,t,r,i){const o=cDe(e,t);if(r<o)return{type:6,outOfDateOutputFileName:i,newerInputFileName:t}}function gqe(e,t,r){var i,o,s;if(!t.fileNames.length&&!MP(t.raw))return{type:16};let l;const u=!!e.options.force;if(t.projectReferences){e.projectStatus.set(r,{type:13});for(const Q of t.projectReferences){const Y=yD(Q),oe=B_(e,Y),he=CI(e,Y,oe),Ae=pue(e,he,oe);if(!(Ae.type===13||Ae.type===16)){if(Ae.type===0||Ae.type===12)return{type:12,upstreamProjectName:Q.path,upstreamProjectBlocked:Ae.type===12};if(Ae.type!==1)return{type:11,upstreamProjectName:Q.path};u||(l||(l=[])).push({ref:Q,refStatus:Ae,resolvedRefPath:oe,resolvedConfig:he})}}}if(u)return{type:17};const{host:p}=e,h=Qv(t.options);let f,b=ADe,A,I,R;if(h){const Q=uue(e,h,r);if(A=(Q==null?void 0:Q.modifiedTime)||IA(p,h),A===Op)return Q||e.buildInfoCache.set(r,{path:Lf(e,h),buildInfo:!1,modifiedTime:A}),{type:4,missingOutputFileName:h};const Y=uDe(e,h,r,A);if(!Y)return{type:5,fileName:h};if((Y.bundle||Y.program)&&Y.version!==Te)return{type:14,version:Y.version};if(Y.program){if((i=Y.program.changeFileSet)!=null&&i.length||(t.options.noEmit?St(Y.program.semanticDiagnosticsPerFile,Ao):(o=Y.program.affectedFilesPendingEmit)!=null&&o.length||(s=Y.program.emitDiagnosticsPerFile)!=null&&s.length))return{type:8,buildInfoFile:h};if(!t.options.noEmit&&ED(t.options,Y.program.options||{}))return{type:9,buildInfoFile:h};I=Y.program}b=A,f=h}let M,N=TDe,O=!1;const U=new Set;for(const Q of t.fileNames){const Y=cDe(e,Q);if(Y===Op)return{type:0,reason:"".concat(Q," does not exist")};if(A&&A<Y){let oe,he;if(I){R||(R=rK(I,h,p)),oe=R.fileInfos.get(Lf(e,Q));const Ae=oe?e.readFileWithCache(Q):void 0;he=Ae!==void 0?W7(p,Ae):void 0,oe&&oe===he&&(O=!0)}if(!oe||oe!==he)return{type:6,outOfDateOutputFileName:h,newerInputFileName:Q}}Y>N&&(M=Q,N=Y),I&&U.add(Lf(e,Q))}if(I){R||(R=rK(I,h,p));for(const Q of R.roots)if(!U.has(Q))return{type:10,buildInfoFile:h,inputFile:Q}}if(!h){const Q=f7(t,!p.useCaseSensitiveFileNames()),Y=lue(e,r);for(const oe of Q){const he=Lf(e,oe);let Ae=Y==null?void 0:Y.get(he);if(Ae||(Ae=IA(e.host,oe),Y==null||Y.set(he,Ae)),Ae===Op)return{type:4,missingOutputFileName:oe};if(Ae<N)return{type:6,outOfDateOutputFileName:oe,newerInputFileName:M};Ae<b&&(b=Ae,f=oe)}}const K=e.buildInfoCache.get(r);let ee=!1,V=!1,se;if(l)for(const{ref:Q,refStatus:Y,resolvedConfig:oe,resolvedRefPath:he}of l){if(V=V||!!Q.prepend,Y.newestInputFileTime&&Y.newestInputFileTime<=b)continue;if(K&&vqe(e,K,he))return{type:7,outOfDateOutputFileName:h,newerProjectName:Q.path};const Ae=yqe(e,oe.options,he);if(Ae&&Ae<=b){ee=!0,se=Q.path;continue}return C.assert(f!==void 0,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:f,newerProjectName:Q.path}}const G=due(e,t.options.configFilePath,b,f);if(G)return G;const re=He(t.options.configFile.extendedSourceFiles||et,Q=>due(e,Q,b,f));if(re)return re;const _e=e.lastCachedPackageJsonLookups.get(r),ye=_e&&gh(_e,Q=>due(e,Q,b,f));return ye||(V&&ee?{type:3,outOfDateOutputFileName:f,newerProjectName:se}:{type:ee?2:O?15:1,newestInputFileTime:N,newestInputFileName:M,oldestOutputFileName:f})}function vqe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function pue(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;rl("SolutionBuilder::beforeUpToDateCheck");const o=gqe(e,t,r);return rl("SolutionBuilder::afterUpToDateCheck"),ef("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function dDe(e,t,r,i,o){if(t.options.noEmit)return;let s;const l=Qv(t.options);if(l){o!=null&&o.has(Lf(e,l))||(e.options.verbose&&Rd(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=$w(e.host)),uue(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:u}=e,p=f7(t,!u.useCaseSensitiveFileNames()),h=lue(e,r),f=h?new Set:void 0;if(!o||p.length!==o.size){let b=!!e.options.verbose;for(const A of p){const I=Lf(e,A);o!=null&&o.has(I)||(b&&(b=!1,Rd(e,i,t.options.configFilePath)),u.setModifiedTime(A,s||(s=$w(e.host))),h&&(h.set(I,s),f.add(I)))}}h==null||h.forEach((b,A)=>{!(o!=null&&o.has(A))&&!f.has(A)&&h.delete(A)})}function yqe(e,t,r){if(!t.composite)return;const i=C.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(yo(i.buildInfo.program.latestChangedDtsFile,ri(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function pDe(e,t,r){if(e.options.dry)return Rd(e,m.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);dDe(e,t,r,m.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:xJ(t,!e.host.useCaseSensitiveFileNames())})}function bqe(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let u=i+1;u<s.length;u++){const p=s[u],h=B_(e,p);if(e.projectPendingBuild.has(h))continue;const f=CI(e,p,h);if(!(!f||!f.projectReferences))for(const b of f.projectReferences){const A=ZP(e,b.path);if(B_(e,A)!==r)continue;const I=e.projectStatus.get(h);if(I)switch(I.type){case 1:if(l&2){b.prepend?e.projectStatus.set(h,{type:3,outOfDateOutputFileName:I.oldestOutputFileName,newerProjectName:t}):I.type=2;break}case 15:case 2:case 3:l&2||e.projectStatus.set(h,{type:7,outOfDateOutputFileName:I.type===3?I.outOfDateOutputFileName:I.oldestOutputFileName,newerProjectName:t});break;case 12:B_(e,ZP(e,I.upstreamProjectName))===r&&tDe(e,h);break}nDe(e,h,0);break}}}function fDe(e,t,r,i,o,s){rl("SolutionBuilder::beforeBuild");const l=Eqe(e,t,r,i,o,s);return rl("SolutionBuilder::afterBuild"),ef("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),l}function Eqe(e,t,r,i,o,s){const l=ZRe(e,t,s);if(!l)return 3;rDe(e,r);let u=!0,p=0;for(;;){const h=oue(e,l,u);if(!h)break;u=!1,h.done(r,i,o==null?void 0:o(h.project)),e.diagnostics.has(h.projectPath)||p++}return iue(e),EDe(e,l),Iqe(e,l),DI(l)?4:l.some(h=>e.diagnostics.has(B_(e,h)))?p?2:1:0}function mDe(e,t,r){rl("SolutionBuilder::beforeClean");const i=Sqe(e,t,r);return rl("SolutionBuilder::afterClean"),ef("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function Sqe(e,t,r){const i=ZRe(e,t,r);if(!i)return 3;if(DI(i))return U7(e,i.circularDiagnostics),4;const{options:o,host:s}=e,l=o.dry?[]:void 0;for(const u of i){const p=B_(e,u),h=CI(e,u,p);if(h===void 0){bDe(e,p);continue}const f=f7(h,!s.useCaseSensitiveFileNames());if(!f.length)continue;const b=new Set(h.fileNames.map(A=>Lf(e,A)));for(const A of f)b.has(Lf(e,A))||s.fileExists(A)&&(l?l.push(A):(s.deleteFile(A),fue(e,p,0)))}return l&&Rd(e,m.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>"\r\n * ".concat(u)).join("")),0}function fue(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,tDe(e,t),nDe(e,t,r),eDe(e)}function j7(e,t,r){e.reportFileChangeDetected=!0,fue(e,t,r),_De(e,250,!0)}function _De(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(Tqe,t,"timerToBuildInvalidatedProject",e,r))}function Tqe(e,t,r){rl("SolutionBuilder::beforeBuild");const i=Aqe(t,r);rl("SolutionBuilder::afterBuild"),ef("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&EDe(t,i)}function Aqe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),hue(e,m.File_change_detected_Starting_incremental_compilation));let r=0;const i=V7(e),o=oue(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=aDe(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){_De(e,100,!1);return}sDe(e,s,i).done(),s.kind!==2&&r++}return iue(e),i}function hDe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,IK(e,t,()=>j7(e,r,2),2e3,i==null?void 0:i.watchOptions,Wc.ConfigFile,t))}function gDe(e,t,r){v7(t,r==null?void 0:r.options,e.allWatchedExtendedConfigFiles,(i,o)=>IK(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>j7(e,l,2))},2e3,r==null?void 0:r.watchOptions,Wc.ExtendedConfigFile),i=>Lf(e,i))}function vDe(e,t,r,i){e.watch&&Gw(nue(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;Vw({watchedDirPath:Lf(e,o),fileOrDirectory:l,fileOrDirectoryPath:Lf(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=pqe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Lf(e,p)})||j7(e,r,1)},s,i==null?void 0:i.watchOptions,Wc.WildcardDirectory,t))}function mue(e,t,r,i){e.watch&&JN(nue(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>IK(e,o,()=>j7(e,r,0),250,i==null?void 0:i.watchOptions,Wc.SourceFile,t),onDeleteValue:e_})}function _ue(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||JN(nue(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>IK(e,o,()=>j7(e,r,0),2e3,i==null?void 0:i.watchOptions,Wc.PackageJson,t),onDeleteValue:e_})}function Iqe(e,t){if(e.watchAllProjectsPending){rl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of G7(t)){const i=B_(e,r),o=CI(e,r,i);hDe(e,r,i,o),gDe(e,i,o),o&&(vDe(e,r,i,o),mue(e,r,i,o),_ue(e,r,i,o))}rl("SolutionBuilder::afterWatcherCreation"),ef("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function xqe(e){tp(e.allWatchedConfigFiles,e_),tp(e.allWatchedExtendedConfigFiles,Mf),tp(e.allWatchedWildcardDirectories,t=>tp(t,Mf)),tp(e.allWatchedInputFiles,t=>tp(t,e_)),tp(e.allWatchedPackageJsonFiles,t=>tp(t,e_))}function yDe(e,t,r,i,o){const s=dqe(e,t,r,i,o);return{build:(l,u,p,h)=>fDe(s,l,u,p,h),clean:l=>mDe(s,l),buildReferences:(l,u,p,h)=>fDe(s,l,u,p,h,!0),cleanReferences:l=>mDe(s,l,!0),getNextInvalidatedProject:l=>(rDe(s,l),oue(s,V7(s),!1)),getBuildOrder:()=>V7(s),getUpToDateStatusOfProject:l=>{const u=ZP(s,l),p=B_(s,u);return pue(s,CI(s,u,p),p)},invalidateProject:(l,u)=>fue(s,l,u||0),close:()=>xqe(s)}}function du(e,t){return rN(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Rd(e,t,...r){e.host.reportSolutionBuilderStatus(Jl(t,...r))}function hue(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Jl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function U7({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function e2(e,t,r){U7(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function bDe(e,t){e2(e,t,[e.configFileCache.get(t)])}function EDe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];DI(t)?(SDe(e,t.buildOrder),U7(e,t.circularDiagnostics),r&&(o+=k7(t.circularDiagnostics)),r&&(s=[...s,...w7(t.circularDiagnostics)])):(t.forEach(l=>{const u=B_(e,l);e.projectErrorsReported.has(u)||U7(e,i.get(u)||et)}),r&&i.forEach(l=>o+=k7(l)),r&&i.forEach(l=>[...s,...w7(l)])),e.watch?hue(e,uK(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function SDe(e,t){e.options.verbose&&Rd(e,m.Projects_in_this_build_Colon_0,t.map(r=>"\r\n * "+du(e,r)).join(""))}function Rqe(e,t,r){switch(r.type){case 6:return Rd(e,m.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,du(e,t),du(e,r.outOfDateOutputFileName),du(e,r.newerInputFileName));case 7:return Rd(e,m.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,du(e,t),du(e,r.outOfDateOutputFileName),du(e,r.newerProjectName));case 4:return Rd(e,m.Project_0_is_out_of_date_because_output_file_1_does_not_exist,du(e,t),du(e,r.missingOutputFileName));case 5:return Rd(e,m.Project_0_is_out_of_date_because_there_was_error_reading_file_1,du(e,t),du(e,r.fileName));case 8:return Rd(e,m.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,du(e,t),du(e,r.buildInfoFile));case 9:return Rd(e,m.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,du(e,t),du(e,r.buildInfoFile));case 10:return Rd(e,m.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,du(e,t),du(e,r.buildInfoFile),du(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Rd(e,m.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,du(e,t),du(e,r.newestInputFileName||""),du(e,r.oldestOutputFileName||""));break;case 3:return Rd(e,m.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,du(e,t),du(e,r.newerProjectName));case 2:return Rd(e,m.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,du(e,t));case 15:return Rd(e,m.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,du(e,t));case 11:return Rd(e,m.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,du(e,t),du(e,r.upstreamProjectName));case 12:return Rd(e,r.upstreamProjectBlocked?m.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:m.Project_0_can_t_be_built_because_its_dependency_1_has_errors,du(e,t),du(e,r.upstreamProjectName));case 0:return Rd(e,m.Failed_to_parse_file_0_Colon_1,du(e,t),r.reason);case 14:return Rd(e,m.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,du(e,t),r.version,Te);case 17:return Rd(e,m.Project_0_is_being_forcibly_rebuilt,du(e,t))}}function xK(e,t,r){e.options.verbose&&Rqe(e,t,r)}var TDe,ADe,RK,Dqe=T({"src/compiler/tsbuildPublic.ts"(){ta(),fS(),TDe=new Date(-864e13),ADe=new Date(864e13),RK=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(RK||{})}}),ta=T({"src/compiler/_namespaces/ts.ts"(){at(),z9e(),B9e(),Y9e(),Z9e(),eBe(),dBe(),H1e(),bBe(),IBe(),xBe(),PBe(),WBe(),wGe(),OGe(),WGe(),FGe(),HGe(),qGe(),JGe(),KGe(),EVe(),SVe(),MVe(),YVe(),Sje(),Dje(),Cje(),jje(),Xje(),rUe(),uUe(),TUe(),AUe(),LUe(),kUe(),wUe(),VUe(),jUe(),UUe(),HUe(),qUe(),JUe(),KUe(),XUe(),YUe(),ZUe(),eHe(),tHe(),nHe(),rHe(),oHe(),aHe(),sHe(),lHe(),cHe(),uHe(),hHe(),SHe(),MHe(),kHe(),FHe(),zHe(),BHe(),ZHe(),eqe(),rqe(),aqe(),sqe(),lqe(),Dqe(),yle(),fS()}});function IDe(e){return vu.args.includes(e)}function xDe(e){const t=vu.args.indexOf(e);return t>=0&&t<vu.args.length-1?vu.args[t+1]:void 0}function RDe(){const e=new Date;return"".concat(e.getHours().toString().padStart(2,"0"),":").concat(e.getMinutes().toString().padStart(2,"0"),":").concat(e.getSeconds().toString().padStart(2,"0"),".").concat(e.getMilliseconds().toString().padStart(3,"0"))}function t2(e){return gue+e.replace(/\n/g,gue)}function F0(e){return t2(JSON.stringify(e,void 0,2))}var Qw,Zw,eO,H7,q7,J7,DK,n2,CK,gue,Cqe=T({"src/jsTyping/shared.ts"(){tO(),Qw="action::set",Zw="action::invalidate",eO="action::packageInstalled",H7="event::typesRegistry",q7="event::beginInstallTypes",J7="event::endInstallTypes",DK="event::initializationFailed",n2="action::watchTypingLocations",(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(CK||(CK={})),gue="\n "}}),Nqe=T({"src/jsTyping/types.ts"(){}}),K7=T({"src/jsTyping/_namespaces/ts.server.ts"(){Cqe(),Nqe()}});function DDe(e,t){return new Tm(k6(t,"ts".concat(ue))||k6(t,"latest")).compareTo(e.version)<=0}function CDe(e){return Sue.has(e)?"node":e}function Pqe(e,t){const r=mw(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function Mqe(e,t){var r;const i=mw(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function Lqe(e,t,r,i,o,s,l,u,p,h){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const f=new Map;r=Hi(r,ee=>{const V=ha(ee);if(QE(V))return V});const b=[];l.include&&O(l.include,"Explicitly included types");const A=l.exclude||[];if(!h.types){const ee=new Set(r.map(ri));ee.add(i),ee.forEach(V=>{U(V,"bower.json","bower_components",b),U(V,"package.json","node_modules",b)})}if(l.disableFilenameBasedTypeAcquisition||K(r),u){const ee=NE(u.map(CDe),dS,Uu);O(ee,"Inferred typings from unresolved imports")}for(const ee of A)f.delete(ee)&&t&&t("Typing for ".concat(ee," is in exclude list, will be ignored."));s.forEach((ee,V)=>{const se=p.get(V);f.get(V)===!1&&se!==void 0&&DDe(ee,se)&&f.set(V,ee.typingLocation)});const I=[],R=[];f.forEach((ee,V)=>{ee?R.push(ee):I.push(V)});const M={cachedTypingPaths:R,newTypingNames:I,filesToWatch:b};return t&&t("Finished typings discovery:".concat(F0(M))),M;function N(ee){f.has(ee)||f.set(ee,!1)}function O(ee,V){t&&t("".concat(V,": ").concat(JSON.stringify(ee))),He(ee,N)}function U(ee,V,se,G){const re=Yr(ee,V);let _e,ye;e.fileExists(re)&&(G.push(re),_e=mw(re,he=>e.readFile(he)).config,ye=Pi([_e.dependencies,_e.devDependencies,_e.optionalDependencies,_e.peerDependencies],Qh),O(ye,"Typing names in '".concat(re,"' dependencies")));const Q=Yr(ee,se);if(G.push(Q),!e.directoryExists(Q))return;const Y=[],oe=ye?ye.map(he=>Yr(Q,he,V)):e.readDirectory(Q,[".json"],void 0,void 0,3).filter(he=>{if(lc(he)!==V)return!1;const Ae=Gc(ha(he)),de=Ae[Ae.length-3][0]==="@";return de&&dh(Ae[Ae.length-4])===se||!de&&dh(Ae[Ae.length-3])===se});t&&t("Searching for typing names in ".concat(Q,"; all files: ").concat(JSON.stringify(oe)));for(const he of oe){const Ae=ha(he),ie=mw(Ae,Ne=>e.readFile(Ne)).config;if(!ie.name)continue;const ge=ie.types||ie.typings;if(ge){const Ne=yo(ge,ri(Ae));e.fileExists(Ne)?(t&&t(" Package '".concat(ie.name,"' provides its own types.")),f.set(ie.name,Ne)):t&&t(" Package '".concat(ie.name,"' provides its own types but they are missing."))}else Y.push(ie.name)}O(Y," Found package names")}function K(ee){const V=Hi(ee,G=>{if(!QE(G))return;const re=Ad(dh(lc(G))),_e=SG(re);return o.get(_e)});V.length&&O(V,"Inferred typings from file names"),St(ee,G=>Il(G,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),N("react"))}}function kqe(e){return vue(e,!0)}function vue(e,t){if(!e)return 1;if(e.length>Aue)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){const i=vue(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=vue(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function wqe(e,t){return typeof e=="object"?NDe(t,e.result,e.name,e.isScopeName):NDe(t,e,t,!1)}function NDe(e,t,r,i){const o=i?"Scope":"Package";switch(t){case 1:return"'".concat(e,"':: ").concat(o," name '").concat(r,"' cannot be empty");case 2:return"'".concat(e,"':: ").concat(o," name '").concat(r,"' should be less than ").concat(Aue," characters");case 3:return"'".concat(e,"':: ").concat(o," name '").concat(r,"' cannot start with '.'");case 4:return"'".concat(e,"':: ").concat(o," name '").concat(r,"' cannot start with '_'");case 5:return"'".concat(e,"':: ").concat(o," name '").concat(r,"' contains non URI safe characters");case 0:return C.fail();default:C.assertNever(t)}}var yue,bue,Eue,Sue,Tue,Aue,Oqe=T({"src/jsTyping/jsTyping.ts"(){tO(),K7(),yue=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],bue=yue.map(e=>"node:".concat(e)),Eue=[...yue,...bue],Sue=new Set(Eue),Tue=(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))(Tue||{}),Aue=214}}),G_={};X(G_,{NameValidationResult:()=>Tue,discoverTypings:()=>Lqe,isTypingUpToDate:()=>DDe,loadSafeList:()=>Pqe,loadTypesMap:()=>Mqe,nodeCoreModuleList:()=>Eue,nodeCoreModules:()=>Sue,nonRelativeModuleNameForTypingCache:()=>CDe,prefixedNodeCoreModuleList:()=>bue,renderPackageNameValidationFailure:()=>wqe,validatePackageName:()=>kqe});var Wqe=T({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){Oqe()}}),tO=T({"src/jsTyping/_namespaces/ts.ts"(){ta(),Wqe(),K7()}});function X7(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 Y7,NK,PK,MK,kf,LK,kK,wK,OK,WK,FK,zK,Iue,nO,BK,GK,VK,jK,UK,HK,qK,JK,KK,Fqe=T({"src/services/types.ts"(){(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(Y7||(Y7={})),NK=(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))(NK||{}),PK=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(PK||{}),MK=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(MK||{}),kf={},LK=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(LK||{}),kK=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(kK||{}),wK=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(wK||{}),OK=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(OK||{}),WK=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(WK||{}),FK=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(FK||{}),zK=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(zK||{}),Iue=X7("\n"),nO=(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))(nO||{}),BK=(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))(BK||{}),GK=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(GK||{}),VK=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(VK||{}),jK=(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))(jK||{}),UK=(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))(UK||{}),HK=(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))(HK||{}),qK=(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))(qK||{}),JK=(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))(JK||{}),KK=(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))(KK||{})}});function rO(e){switch(e.kind){case 260:return sr(e)&&QV(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return ku(e)||$g(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function oT(e){e=sX(e);const t=e.parent;return e.kind===312?1:wl(t)||Ku(t)||xh(t)||np(t)||Ah(t)||ru(t)&&e===t.name?7:$7(e)?zqe(e):jg(e)?rO(t):Zd(e)&&zn(e,Qm(IP,kA,C0))?7:jqe(e)?2:Bqe(e)?4:gl(t)?(C.assert(pm(t.parent)),2):Zy(t)?3:1}function zqe(e){const t=e.kind===166?e:Id(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function $7(e){for(;e.parent.kind===166;)e=e.parent;return gR(e.parent)&&e.parent.moduleReference===e}function Bqe(e){return Gqe(e)||Vqe(e)}function Gqe(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function Vqe(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){const i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function jqe(e){switch(VN(e)&&(e=e.parent),e.kind){case 110:return!og(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return ig(e.parent)}return!1}function XK(e,t=!1,r=!1){return iO(e,sa,$K,t,r)}function r2(e,t=!1,r=!1){return iO(e,o1,$K,t,r)}function YK(e,t=!1,r=!1){return iO(e,I_,$K,t,r)}function xue(e,t=!1,r=!1){return iO(e,a1,Uqe,t,r)}function Rue(e,t=!1,r=!1){return iO(e,Su,$K,t,r)}function Due(e,t=!1,r=!1){return iO(e,ud,Hqe,t,r)}function $K(e){return e.expression}function Uqe(e){return e.tag}function Hqe(e){return e.tagName}function iO(e,t,r,i,o){let s=i?Cue(e):Q7(e);return o&&(s=ec(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function Q7(e){return ID(e)?e.parent:e}function Cue(e){return ID(e)||tX(e)?e.parent:e}function Z7(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function oO(e,t){return Fr(e.expression)?e.expression.name.text===t:!1}function aO(e){var t;return je(e)&&((t=ti(e.parent,pN))==null?void 0:t.label)===e}function QK(e){var t;return je(e)&&((t=ti(e.parent,s1))==null?void 0:t.label)===e}function ZK(e){return QK(e)||aO(e)}function eX(e){var t;return((t=ti(e.parent,oR))==null?void 0:t.tagName)===e}function Nue(e){var t;return((t=ti(e.parent,Id))==null?void 0:t.right)===e}function ID(e){var t;return((t=ti(e.parent,Fr))==null?void 0:t.name)===e}function tX(e){var t;return((t=ti(e.parent,$s))==null?void 0:t.argumentExpression)===e}function nX(e){var t;return((t=ti(e.parent,Ql))==null?void 0:t.name)===e}function rX(e){var t;return je(e)&&((t=ti(e.parent,Qo))==null?void 0:t.name)===e}function e5(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Po(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function Pue(e){return v0(e.parent.parent)&&xN(e.parent.parent)===e}function aT(e){for(im(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function E1(e){switch(e.kind){case 312:return dc(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(N_(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:r}=e;return Qo(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return $r(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const i=Vl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=E1(o);return l===""?"const":l;case 3:return Bs(o)?"method":"property";case 4:return"property";case 5:return Bs(o)?"method":"property";case 6:return"local class";default:return""}case 80:return Ah(e.parent)?"alias":"";case 277:const s=E1(e.expression);return s===""?"const":s;default:return""}function t(r){return dR(r)?"const":X4(r)?"let":"var"}}function xD(e){switch(e.kind){case 110:return!0;case 80:return vU(e)&&e.parent.kind===169;default:return!1}}function fm(e,t){const r=Wg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function cf(e,t){return iX(e.pos,e.end,t)}function Mue(e,t){return lO(e,t.pos)&&lO(e,t.end)}function sO(e,t){return e.pos<=t&&t<=e.end}function lO(e,t){return e.pos<t&&t<e.end}function iX(e,t,r){return e<=r.pos&&t>=r.end}function cO(e,t,r){return e.pos<=t&&e.end>=r}function i2(e,t,r){return n5(e.pos,e.end,t,r)}function t5(e,t,r,i){return n5(e.getStart(t),e.end,r,i)}function n5(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return o<s}function oX(e,t,r){return C.assert(e.pos<=t),t<e.end||!a_(e,r)}function a_(e,t){if(e===void 0||Gl(e))return!1;switch(e.kind){case 263:case 264:case 266:case 210:case 206:case 187:case 241:case 268:case 269:case 275:case 279:return aX(e,20,t);case 299:return a_(e.block,t);case 214:if(!e.arguments)return!0;case 213:case 217:case 196:return aX(e,22,t);case 184:case 185:return a_(e.type,t);case 176:case 177:case 178:case 262:case 218:case 174:case 173:case 180:case 179:case 219:return e.body?a_(e.body,t):e.type?a_(e.type,t):uO(e,22,t);case 267:return!!e.body&&a_(e.body,t);case 245:return e.elseStatement?a_(e.elseStatement,t):a_(e.thenStatement,t);case 244:return a_(e.expression,t)||uO(e,27,t);case 209:case 207:case 212:case 167:case 189:return aX(e,24,t);case 181:return e.type?a_(e.type,t):uO(e,24,t);case 296:case 297:return!1;case 248:case 249:case 250:case 247:return a_(e.statement,t);case 246:return uO(e,117,t)?aX(e,22,t):a_(e.statement,t);case 186:return a_(e.exprName,t);case 221:case 220:case 222:case 229:case 230:return a_(e.expression,t);case 215:return a_(e.template,t);case 228:const i=el(e.templateSpans);return a_(i,t);case 239:return tm(e.literal);case 278:case 272:return tm(e.moduleSpecifier);case 224:return a_(e.operand,t);case 226:return a_(e.right,t);case 227:return a_(e.whenFalse,t);default:return!0}}function aX(e,t,r){const i=e.getChildren(r);if(i.length){const o=es(i);if(o.kind===t)return!0;if(o.kind===27&&i.length!==1)return i[i.length-2].kind===t}return!1}function Lue(e){const t=r5(e);if(!t)return;const r=t.getChildren();return{listItemIndex:lR(r,e),list:t}}function uO(e,t,r){return!!Es(e,t,r)}function Es(e,t,r){return Tn(e.getChildren(r),i=>i.kind===t)}function r5(e){const t=Tn(e.parent.getChildren(),r=>tD(r)&&cf(r,e));return C.assert(!t||Nr(t.getChildren(),e)),t}function PDe(e){return e.kind===90}function qqe(e){return e.kind===86}function Jqe(e){return e.kind===100}function Kqe(e){if(ld(e))return e.name;if(Rc(e)){const t=e.modifiers&&Tn(e.modifiers,PDe);if(t)return t}if(tu(e)){const t=Tn(e.getChildren(),qqe);if(t)return t}}function Xqe(e){if(ld(e))return e.name;if(xc(e)){const t=Tn(e.modifiers,PDe);if(t)return t}if(Bs(e)){const t=Tn(e.getChildren(),Jqe);if(t)return t}}function Yqe(e){let t;return zn(e,r=>(Ui(r)&&(t=r),!Id(r.parent)&&!Ui(r.parent)&&!yS(r.parent))),t}function i5(e,t){if(e.flags&16777216)return;const r=T5(e,t);if(r)return r;const i=Yqe(e);return i&&t.getTypeAtLocation(i)}function $qe(e,t){if(!t)switch(e.kind){case 263:case 231:return Kqe(e);case 262:case 218:return Xqe(e);case 176:return e}if(ld(e))return e.name}function MDe(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(Kg(e.importClause.namedBindings)){const r=ch(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(nb(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function LDe(e,t){if(e.exportClause){if(Pf(e.exportClause))return ch(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Ih(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function Qqe(e){if(e.types.length===1)return e.types[0].expression}function kDe(e,t){const{parent:r}=e;if(xa(e)&&(t||e.kind!==90)?km(r)&&Nr(r.modifiers,e):e.kind===86?Rc(r)||tu(e):e.kind===100?xc(r)||Bs(e):e.kind===120?hd(r):e.kind===94?D0(r):e.kind===156?Lm(r):e.kind===145||e.kind===144?Ql(r):e.kind===102?ru(r):e.kind===139?rf(r):e.kind===153&&Sp(r)){const i=$qe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&qc(r)&&r.declarations.length===1){const i=r.declarations[0];if(je(i.name))return i.name}if(e.kind===156){if(Ah(r)&&r.isTypeOnly){const i=MDe(r.parent,t);if(i)return i}if(Zl(r)&&r.isTypeOnly){const i=LDe(r,t);if(i)return i}}if(e.kind===130){if(np(r)&&r.propertyName||Ku(r)&&r.propertyName||nb(r)||Ih(r))return r.name;if(Zl(r)&&r.exportClause&&Ih(r.exportClause))return r.exportClause.name}if(e.kind===102&&Oc(r)){const i=MDe(r,t);if(i)return i}if(e.kind===95){if(Zl(r)){const i=LDe(r,t);if(i)return i}if(wl(r))return ec(r.expression)}if(e.kind===149&&xh(r))return r.expression;if(e.kind===161&&(Oc(r)||Zl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&of(r)&&r.token===e.kind){const i=Qqe(r);if(i)return i}if(e.kind===96){if(gl(r)&&r.constraint&&Nf(r.constraint))return r.constraint.typeName;if(dI(r)&&Nf(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&BS(r))return r.typeParameter.name;if(e.kind===103&&gl(r)&&KR(r.parent))return r.name;if(e.kind===143&&VS(r)&&r.operator===143&&Nf(r.type))return r.type.typeName;if(e.kind===148&&VS(r)&&r.operator===148&&Xk(r.type)&&Nf(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&o1(r)||e.kind===116&&pI(r)||e.kind===114&&XR(r)||e.kind===135&&eb(r)||e.kind===127&&iF(r)||e.kind===91&&qae(r))&&r.expression)return ec(r.expression);if((e.kind===103||e.kind===104)&&mr(r)&&r.operatorToken===e)return ec(r.right);if(e.kind===130&&$k(r)&&Nf(r.type))return r.type.typeName;if(e.kind===103&&aF(r)||e.kind===165&&Qk(r))return ec(r.expression)}return e}function sX(e){return kDe(e,!1)}function o5(e){return kDe(e,!0)}function Vd(e,t){return RD(e,t,r=>C_(r)||Bd(r.kind)||Ji(r))}function RD(e,t,r){return wDe(e,t,!1,r,!1)}function fo(e,t){return wDe(e,t,!0,void 0,!1)}function wDe(e,t,r,i,o){let s=e,l;e:for(;;){const p=s.getChildren(e),h=bA(p,t,(f,b)=>b,(f,b)=>{const A=p[f].getEnd();if(A<t)return-1;const I=r?p[f].getFullStart():p[f].getStart(e,!0);return I>t?1:u(p[f],I,A)?p[f-1]&&u(p[f-1])?1:0:i&&I===t&&p[f-1]&&p[f-1].getEnd()===t&&u(p[f-1])?1:-1});if(l)return l;if(h>=0&&p[h]){s=p[h];continue e}return s}function u(p,h,f){if(f!=null||(f=p.getEnd()),f<t||(h!=null||(h=r?p.getFullStart():p.getStart(e,!0)),h>t))return!1;if(t<f||t===f&&(p.kind===1||o))return!0;if(i&&f===t){const b=Dc(t,e,p);if(b&&i(b))return l=b,!0}return!1}}function kue(e,t){let r=fo(e,t);for(;s5(r);){const i=S1(r,r.parent,e);if(!i)return;r=i}return r}function a5(e,t){const r=fo(e,t);return CA(r)&&t>r.getStart(e)&&t<r.getEnd()?r:Dc(t,e)}function S1(e,t,r){return i(t);function i(o){return CA(o)&&o.pos===e.end?o:qt(o.getChildren(r),s=>(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&Gue(s,r)?i(s):void 0)}}function Dc(e,t,r,i){const o=s(r||t);return C.assert(!(o&&s5(o))),o;function s(l){if(ODe(l)&&l.kind!==1)return l;const u=l.getChildren(t),p=bA(u,e,(f,b)=>b,(f,b)=>e<u[f].end?!u[f-1]||e>=u[f-1].end?0:1:-1);if(p>=0&&u[p]){const f=u[p];if(e<f.end)if(f.getStart(t,!i)>=e||!Gue(f,t)||s5(f)){const I=Oue(u,p,t,l.kind);return I?!i&&k4(I)&&I.getChildren(t).length?s(I):wue(I,t):void 0}else return s(f)}C.assert(r!==void 0||l.kind===312||l.kind===1||k4(l));const h=Oue(u,u.length,t,l.kind);return h&&wue(h,t)}}function ODe(e){return CA(e)&&!s5(e)}function wue(e,t){if(ODe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=Oue(r,r.length,t,e.kind);return i&&wue(i,t)}function Oue(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(s5(s))o===0&&(i===12||i===285)&&C.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Gue(e[o],r))return e[o]}}function NI(e,t,r=Dc(t,e)){if(r&&aj(r)){const i=r.getStart(e),o=r.getEnd();if(i<t&&t<o)return!0;if(t===o)return!!r.isUnterminated}return!1}function Wue(e,t){const r=fo(e,t);return r?!!(r.kind===12||r.kind===30&&r.parent.kind===12||r.kind===30&&r.parent.kind===294||r&&r.kind===20&&r.parent.kind===294||r.kind===30&&r.parent.kind===287):!1}function s5(e){return nI(e)&&e.containsOnlyTriviaWhiteSpaces}function lX(e,t){const r=fo(e,t);return wy(r.kind)&&t>r.getStart(e)}function Fue(e,t){const r=fo(e,t);return!!(nI(r)||r.kind===19&&TP(r.parent)&&mg(r.parent.parent)||r.kind===30&&ud(r.parent)&&mg(r.parent.parent))}function l5(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(fo(e,t))}function c5(e,t,r){const i=pa(e.kind),o=pa(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)<l){const h=Dc(l+1,r);if(h&&h.kind===t)return h}const u=e.kind;let p=0;for(;;){const h=Dc(e.getFullStart(),r);if(!h)return;if(e=h,e.kind===t){if(p===0)return e;p--}else e.kind===u&&p++}}function zue(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function dO(e,t,r){const i=uX(e,t);return i!==void 0&&(ig(i.called)||cX(i.called,i.nTypeArguments,r).length!==0||dO(i.called,t,r))}function cX(e,t,r){let i=r.getTypeAtLocation(e);return qu(e.parent)&&(i=zue(i,uN(e.parent),!0)),(o1(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(s=>!!s.typeParameters&&s.typeParameters.length>=t)}function uX(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 30:if(r=Dc(r.getFullStart(),t),r&&r.kind===29&&(r=Dc(r.getFullStart(),t)),!r||!je(r))return;if(!i)return jg(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=c5(r,19,t),!r)return;break;case 22:if(r=c5(r,21,t),!r)return;break;case 24:if(r=c5(r,23,t),!r)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(Ui(r))break;return}r=Dc(r.getFullStart(),t)}}function Zv(e,t,r){return Fc.getRangeOfEnclosingComment(e,t,void 0,r)}function Bue(e,t){const r=fo(e,t);return!!zn(r,i_)}function Gue(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function o2(e,t=0){const r=[],i=Ju(e)?KV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Rl(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function Vue(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(Qo(e)||e.kind===263||e.kind===264)return e.typeParameters}function u5(e){return e===2||e===3}function dX(e){return!!(e===11||e===14||wy(e))}function WDe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function jue(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(WDe(r,t[0],t[1])||WDe(r,t[1],t[0]))}function pO(e,t,r){return wy(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function pX(e){switch(e){case 125:case 123:case 124:return!0}return!1}function fX(e){const t=vG(e);return bq(t,e&&e.configFile),t}function ey(e){return!!((e.kind===209||e.kind===210)&&(e.parent.kind===226&&e.parent.left===e&&e.parent.operatorToken.kind===64||e.parent.kind===250&&e.parent.initializer===e||ey(e.parent.kind===303?e.parent.parent:e.parent)))}function Uue(e,t){return FDe(e,t,!0)}function Hue(e,t){return FDe(e,t,!1)}function FDe(e,t,r){const i=Zv(e,t,void 0);return!!i&&r===qDe.test(e.text.substring(i.pos,i.end))}function mX(e){if(e)switch(e.kind){case 11:case 15:return _X(e);default:return Dd(e)}}function Dd(e,t,r){return hc(e.getStart(t),(r||e).getEnd())}function _X(e){if(!e.isUnterminated)return hc(e.getStart()+1,e.getEnd()-1)}function hX(e,t){return xf(e.getStart(t),e.end)}function sb(e){return hc(e.pos,e.end)}function d5(e){return xf(e.start,e.start+e.length)}function p5(e,t,r){return fO(yu(e,t),r)}function fO(e,t){return{span:e,newText:t}}function a2(e){return Nr(W5,e)}function gX(e){return e.kind===156}function f5(e){return gX(e)||je(e)&&e.text==="type"}function mO(e){return!!(e.flags&1536)&&e.name.charCodeAt(0)===34}function PI(){const e=[];return t=>{const r=cs(t);return!e[r]&&(e[r]=!0)}}function DD(e){return e.getText(0,e.getLength())}function _O(e,t){let r="";for(let i=0;i<t;i++)r+=e;return r}function vX(e){return e.isTypeParameter()&&e.getConstraint()||e}function hO(e){return e.kind===167?nf(e.expression)?e.expression.text:void 0:Ji(e)?Tr(e):om(e)}function que(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function Jue(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function yX(e){return!!e.module||ls(e)>=2||!!e.noEmit}function sT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ia(t,t.readFile),useCaseSensitiveFileNames:ia(t,t.useCaseSensitiveFileNames),getSymlinkCache:ia(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ia(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ia(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ia(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function bX(e,t){return{...sT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function m5(e){return e===2||e>=3&&e<=99||e===100}function Kue(e,t,r,i){return e||t&&t.length?ty(e,t,r,i):void 0}function ty(e,t,r,i,o){return w.createImportDeclaration(void 0,e||t?w.createImportClause(!!o,e,t&&t.length?w.createNamedImports(t):void 0):void 0,typeof r=="string"?MI(r,i):r,void 0)}function MI(e,t){return w.createStringLiteral(e,t===0)}function EX(e,t){return p3(e,t)?1:0}function uf(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&Tn(e.imports,i=>Ma(i)&&!Ys(i.parent));return r?EX(r,e):1}}function SX(e){switch(e){case 0:return"'";case 1:return'"';default:return C.assertNever(e)}}function _5(e){const t=h5(e);return t===void 0?void 0:ji(t)}function h5(e){return e.escapedName!=="default"?e.escapedName:qt(e.declarations,t=>{const r=Po(t);return r&&r.kind===80?r.escapedText:void 0})}function g5(e){return ds(e)&&(xh(e.parent)||Oc(e.parent)||Td(e.parent,!1)&&e.parent.arguments[0]===e||Bp(e.parent)&&e.parent.arguments[0]===e)}function gO(e){return ns(e)&&dm(e.parent)&&je(e.name)&&!e.propertyName}function v5(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function vO(e,t,r){if(e)for(;e.parent;){if(Zi(e.parent)||!Zqe(r,e.parent,t))return e;e=e.parent}}function Zqe(e,t,r){return JV(e,t.getStart(r))&&t.getEnd()<=$l(e)}function CD(e,t){return km(e)?Tn(e.modifiers,r=>r.kind===t):void 0}function s2(e,t,r,i,o){const l=(Ao(r)?r[0]:r).kind===243?Uj:TS,u=rr(t.statements,l);let p=Ao(r)?Wm.detectImportDeclarationSorting(r,o):3;const h=Wm.getOrganizeImportsComparer(o,p===2),f=Ao(r)?Cv(r,(b,A)=>Wm.compareImportsOrRequireStatements(b,A,h)):[r];if(!u.length)e.insertNodesAtTopOfFile(t,f,i);else if(u&&(p=Wm.detectImportDeclarationSorting(u,o))){const b=Wm.getOrganizeImportsComparer(o,p===2);for(const A of f){const I=Wm.getImportDeclarationInsertionIndex(u,A,b);if(I===0){const R=u[0]===t.statements[0]?{leadingTriviaOption:_r.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],A,!1,R)}else{const R=u[I-1];e.insertNodeAfter(t,R,A)}}}else{const b=el(u);b?e.insertNodesAfter(t,b,f):e.insertNodesAtTopOfFile(t,f,i)}}function TX(e,t){return C.assert(e.isTypeOnly),oa(e.getChildAt(0,t),gX)}function ND(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function AX(e,t,r){return(r?dS:a0)(e.fileName,t.fileName)&&ND(e.textSpan,t.textSpan)}function IX(e){return(t,r)=>AX(t,r,e)}function xX(e,t){if(e){for(let r=0;r<e.length;r++)if(e.indexOf(e[r])===r){const i=t(e[r],r);if(i)return i}}}function Xue(e,t,r){for(let i=t;i<r;i++)if(!Fg(e.charCodeAt(i)))return!1;return!0}function l2(e,t,r){const i=t.tryGetSourcePosition(e);return i&&(!r||r(ha(i.fileName))?i:void 0)}function y5(e,t,r){const{fileName:i,textSpan:o}=e,s=l2({fileName:i,pos:o.start},t,r);if(!s)return;const l=l2({fileName:i,pos:o.start+o.length},t,r),u=l?l.pos-s.pos:o.length;return{fileName:s.fileName,textSpan:{start:s.pos,length:u},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:RX(e,t,r),originalContextSpan:e.contextSpan}}function RX(e,t,r){const i=e.contextSpan&&l2({fileName:e.fileName,pos:e.contextSpan.start},t,r),o=e.contextSpan&&l2({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return i&&o?{start:i.pos,length:o.pos-i.pos}:void 0}function DX(e){const t=e.declarations?$c(e.declarations):void 0;return!!zn(t,r=>Io(r)?!0:ns(r)||dm(r)||i1(r)?!1:"quit")}function eJe(){const e=Ck*10;let t,r,i,o;f();const s=b=>u(b,17);return{displayParts:()=>{const b=t.length&&t[t.length-1].text;return o>e&&b&&b!=="..."&&(Fg(b.charCodeAt(b.length-1))||t.push(ip(" ",16)),t.push(ip("...",15))),t},writeKeyword:b=>u(b,5),writeOperator:b=>u(b,12),writePunctuation:b=>u(b,15),writeTrailingSemicolon:b=>u(b,15),writeSpace:b=>u(b,16),writeStringLiteral:b=>u(b,8),writeParameter:b=>u(b,13),writeProperty:b=>u(b,14),writeLiteral:b=>u(b,8),writeSymbol:p,writeLine:h,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:qo,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:f};function l(){if(!(o>e)&&r){const b=S3(i);b&&(o+=b.length,t.push(ip(b,16))),r=!1}}function u(b,A){o>e||(l(),o+=b.length,t.push(ip(b,A)))}function p(b,A){o>e||(l(),o+=b.length,t.push(Yue(b,A)))}function h(){o>e||(o+=1,t.push(PD()),r=!0)}function f(){t=[],r=!0,i=0,o=0}}function Yue(e,t){return ip(e,r(t));function r(i){const o=i.flags;return o&3?DX(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function ip(e,t){return{text:e,kind:nO[t]}}function Ol(){return ip(" ",16)}function Ip(e){return ip(pa(e),5)}function $u(e){return ip(pa(e),15)}function c2(e){return ip(pa(e),12)}function $ue(e){return ip(e,13)}function Que(e){return ip(e,14)}function CX(e){const t=LE(e);return t===void 0?df(e):Ip(t)}function df(e){return ip(e,17)}function Zue(e){return ip(e,0)}function ede(e){return ip(e,18)}function b5(e){return ip(e,24)}function tde(e,t){return{text:e,kind:nO[23],target:{fileName:jn(t).fileName,textSpan:Dd(t)}}}function NX(e){return ip(e,22)}function nde(e,t){var r;const i=Zae(e)?"link":ese(e)?"linkcode":"linkplain",o=[NX("{@".concat(i," "))];if(!e.name)e.text&&o.push(b5(e.text));else{const s=t==null?void 0:t.getSymbolAtLocation(e.name),l=s&&t?LX(s,t):void 0,u=nJe(e.text),p=gc(e.name)+e.text.slice(0,u),h=tJe(e.text.slice(u)),f=(l==null?void 0:l.valueDeclaration)||((r=l==null?void 0:l.declarations)==null?void 0:r[0]);if(f)o.push(tde(p,f)),h&&o.push(b5(h));else{const b=u===0||e.text.charCodeAt(u)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(b5(p+b+h))}}return o.push(NX("}")),o}function tJe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t<e.length&&e.charCodeAt(t)===32;)t++;return e.slice(t)}return e}function nJe(e){let t=e.indexOf("://");if(t===0){for(;t<e.length&&e.charCodeAt(t)!==124;)t++;return t}if(e.indexOf("()")===0)return 2;if(e.charAt(0)==="<"){let r=0,i=0;for(;i<e.length;)if(e[i]==="<"&&r++,e[i]===">"&&r--,i++,!r)return i}return 0}function ny(e,t){var r;return(t==null?void 0:t.newLineCharacter)||((r=e.getNewLine)==null?void 0:r.call(e))||JDe}function PD(){return ip("\n",6)}function lb(e){try{return e(YX),YX.displayParts()}finally{YX.clear()}}function yO(e,t,r,i=0){return lb(o=>{e.writeType(t,r,i|1024|16384,o)})}function u2(e,t,r,i,o=0){return lb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function PX(e,t,r,i=0){return i|=25632,lb(o=>{e.writeSignature(t,r,i,void 0,o)})}function zDe(e,t){const r=t.getSourceFile();return lb(i=>{Bw().writeNode(4,e,r,i)})}function rde(e){return!!e.parent&&NA(e.parent)&&e.parent.propertyName===e}function MX(e,t){return Q3(e,t.getScriptKind&&t.getScriptKind(e))}function LX(e,t){let r=e;for(;rJe(r)||hh(r)&&r.links.target;)hh(r)&&r.links.target?r=r.links.target:r=Eu(r,t);return r}function rJe(e){return(e.flags&2097152)!==0}function ide(e,t){return Ta(Eu(e,t))}function ode(e,t){for(;Fg(e.charCodeAt(t));)t+=1;return t}function E5(e,t){for(;t>-1&&A_(e.charCodeAt(t));)t-=1;return t+1}function ll(e,t=!0){const r=e&&BDe(e);return r&&!t&&xp(r),r}function bO(e,t,r){let i=r(e);return i?Pr(i,e):i=BDe(e,r),i&&!t&&xp(i),i}function BDe(e,t){const r=t?s=>bO(s,!0,t):ll,o=xn(e,r,void 0,t?s=>s&&kX(s,!0,t):s=>s&&T1(s),r);if(o===e){const s=Ma(e)?Pr(w.createStringLiteralFromNode(e),e):bp(e)?Pr(w.createNumericLiteral(e.text,e.numericLiteralFlags),e):w.cloneNode(e);return ut(s,e)}return o.parent=void 0,o}function T1(e,t=!0){if(e){const r=w.createNodeArray(e.map(i=>ll(i,t)),e.hasTrailingComma);return ut(r,e),r}return e}function kX(e,t,r){return w.createNodeArray(e.map(i=>bO(i,t,r)),e.hasTrailingComma)}function xp(e){wX(e),ade(e)}function wX(e){sde(e,1024,oJe)}function ade(e){sde(e,2048,PU)}function lT(e,t){const r=e.getSourceFile(),i=r.text;iJe(e,i)?MD(e,t,r):SO(e,t,r),d2(e,t,r)}function iJe(e,t){const r=e.getFullStart(),i=e.getStart();for(let o=r;o<i;o++)if(t.charCodeAt(o)===10)return!0;return!1}function sde(e,t,r){k_(e,t);const i=r(e);i&&sde(i,t,r)}function oJe(e){return e.forEachChild(t=>t)}function cT(e,t){let r=e;for(let i=1;!V4(t,r);i++)r="".concat(e,"_").concat(i);return r}function EO(e,t,r,i){let o=0,s=-1;for(const{fileName:l,textChanges:u}of e){C.assert(l===t);for(const p of u){const{span:h,newText:f}=p,b=aJe(f,lg(r));if(b!==-1&&(s=h.start+o+b,!i))return s;o+=f.length-h.length}}return C.assert(i),C.assert(s>=0),s}function MD(e,t,r,i,o){rL(r.text,e.pos,lde(t,r,i,o,fP))}function d2(e,t,r,i,o){iL(r.text,e.end,lde(t,r,i,o,EW))}function SO(e,t,r,i,o){iL(r.text,e.pos,lde(t,r,i,o,fP))}function lde(e,t,r,i,o){return(s,l,u,p)=>{u===3?(s+=2,l-=2):s+=2,o(e,r||u,t.text.slice(s,l),i!==void 0?i:p)}}function aJe(e,t){if(po(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function S5(e){return mr(e)&&e.operatorToken.kind===28||Wa(e)||($k(e)||kH(e))&&Wa(e.expression)}function T5(e,t,r){const i=Gv(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{const{left:o,operatorToken:s,right:l}=i;return A5(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return WX(i,t);default:return t.getContextualType(e,r)}}function p2(e,t,r){const i=uf(e,t),o=JSON.stringify(r);return i===0?"'".concat(am(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"'),"'"):o}function A5(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function cde(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function OX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function WX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function f2(e,t,r,i){const o=r.getTypeChecker();let s=!0;const l=()=>s=!1,u=o.typeToTypeNode(e,t,1,{trackSymbol:(p,h,f)=>(s=s&&o.isSymbolAccessible(p,h,f,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:bX(r,i)});return s?u:void 0}function ude(e){return e===179||e===180||e===181||e===171||e===173}function GDe(e){return e===262||e===176||e===174||e===177||e===178}function VDe(e){return e===267}function I5(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function sJe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(ude(e.kind)){if(r&&r.kind===28)return!1}else if(VDe(e.kind)){const u=es(e.getChildren(t));if(u&&O_(u))return!1}else if(GDe(e.kind)){const u=es(e.getChildren(t));if(u&&VE(u))return!1}else if(!I5(e.kind))return!1;if(e.kind===246)return!0;const i=zn(e,u=>!u.parent),o=S1(e,i,t);if(!o||o.kind===20)return!0;const s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function x5(e,t,r){const i=zn(t,o=>o.end!==e?"quit":$X(o.kind));return!!i&&sJe(i,r)}function TO(e){let t=0,r=0;const i=5;return Vo(e,function o(s){if(I5(s.kind)){const l=s.getLastToken(e);(l==null?void 0:l.kind)===27?t++:r++}else if(ude(s.kind)){const l=s.getLastToken(e);if((l==null?void 0:l.kind)===27)t++;else if(l&&l.kind!==28){const u=Ts(e,l.getStart(e)).line,p=Ts(e,yh(e,l.end).start).line;u!==p&&r++}}return t+r>=i?!0:Vo(s,o)}),t===0&&r<=1?!0:t/r>1/i}function R5(e,t){return N5(e,e.getDirectories,t)||[]}function FX(e,t,r,i,o){return N5(e,e.readDirectory,t,r,i,o)||et}function AO(e,t){return N5(e,e.fileExists,t)}function D5(e,t){return C5(()=>Zm(t,e))||!1}function C5(e){try{return e()}catch(t){return}}function N5(e,t,...r){return C5(()=>t&&t.apply(e,r))}function zX(e,t,r){const i=[];return xm(e,o=>{if(o===r)return!0;const s=Yr(o,"package.json");AO(t,s)&&i.push(s)}),i}function dde(e,t){let r;return xm(e,i=>{if(i==="node_modules"||(r=bce(i,o=>AO(t,o),"package.json"),r))return!0}),r}function pde(e,t){if(!t.fileExists)return[];const r=[];return xm(ri(e),i=>{const o=Yr(i,"package.json");if(t.fileExists(o)){const s=BX(o,t);s&&r.push(s)}}),r}function BX(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=w3(i),s={};if(o)for(const p of r){const h=o[p];if(!h)continue;const f=new Map;for(const b in h)f.set(b,h[b]);s[p]=f}const l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:u,has(p,h){return!!u(p,h)}};function u(p,h=15){for(const[f,b]of l)if(b&&h&f){const A=b.get(p);if(A!==void 0)return A}}}function m2(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||pde(e.fileName,r)).filter(R=>R.parseable);let o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:h,allowsImportingSpecifier:f};function u(R){const M=I(R);for(const N of i)if(N.has(M)||N.has(jF(M)))return!0;return!1}function p(R,M){if(!i.length||!R.valueDeclaration)return!0;if(!s)s=new Map;else{const ee=s.get(R);if(ee!==void 0)return ee}const N=am(R.getName());if(b(N))return s.set(R,!0),!0;const O=R.valueDeclaration.getSourceFile(),U=A(O.fileName,M);if(typeof U>"u")return s.set(R,!0),!0;const K=u(U)||u(N);return s.set(R,K),K}function h(R,M){if(!i.length)return!0;if(!l)l=new Map;else{const U=l.get(R);if(U!==void 0)return U}const N=A(R.fileName,M);if(!N)return l.set(R,!0),!0;const O=u(N);return l.set(R,O),O}function f(R){return!i.length||b(R)||Wp(R)||_p(R)?!0:u(R)}function b(R){return!!(dd(e)&&G_.nodeCoreModules.has(R)&&(o===void 0&&(o=P5(e)),o))}function A(R,M){if(!R.includes("node_modules"))return;const N=h1.getNodeModulesPackageName(r.getCompilationSettings(),e,R,M,t);if(N&&!Wp(N)&&!_p(N))return I(N)}function I(R){const M=Gc(FP(R)).slice(1);return po(M[0],"@")?"".concat(M[0],"/").concat(M[1]):M[0]}}function P5(e){return St(e.imports,({text:t})=>G_.nodeCoreModules.has(t))}function IO(e){return Nr(Gc(e),"node_modules")}function GX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function fde(e,t){const r=Dd(e),i=bA(t,r,tl,W6);if(i>=0){const o=t[i];return C.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),oa(o,GX)}}function mde(e,t){var r;let i=bA(t,e.start,l=>l.start,nl);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=$l(e);for(;;){const l=ti(t[i],GX);if(!l||l.start>s)break;gre(e,l)&&o.push(l),i++}return o}function LI({startPosition:e,endPosition:t}){return hc(e,t===void 0?e:t)}function VX(e,t){const r=fo(e,t.start);return zn(r,o=>o.getStart(e)<t.start||o.getEnd()>$l(t)?"quit":bt(o)&&ND(t,Dd(o,e)))}function jX(e,t,r=tl){return e?Ao(e)?r(Ot(e,t)):t(e,0):void 0}function UX(e){return Ao(e)?Xa(e):e}function _de(e,t){if(jDe(e)){const r=UDe(e);if(r)return r;const i=Fu.moduleSymbolToValidIdentifier(hde(e),t,!1),o=Fu.moduleSymbolToValidIdentifier(hde(e),t,!0);return i===o?i:[i,o]}return e.name}function M5(e,t,r){return jDe(e)?UDe(e)||Fu.moduleSymbolToValidIdentifier(hde(e),t,!!r):e.name}function jDe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function UDe(e){return qt(e.declarations,t=>{var r,i,o;return wl(t)?(r=ti(ec(t.expression),je))==null?void 0:r.text:Ku(t)&&t.symbol.flags===2097152?(i=ti(t.propertyName,je))==null?void 0:i.text:(o=ti(Po(t),je))==null?void 0:o.text})}function hde(e){var t;return C.checkDefined(e.parent,"Symbol parent was undefined. Flags: ".concat(C.formatSymbolFlags(e.flags),". Declarations: ").concat((t=e.declarations)==null?void 0:t.map(r=>{const i=C.formatSyntaxKind(r.kind),o=sr(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?" (expression: ".concat(C.formatSyntaxKind(s.kind),")"):"")}).join(", "),"."))}function gde(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let o=0;o<i;o++)if(t.charCodeAt(o)!==e.charCodeAt(o+r))return!1;return!0}function HX(e){return e.charCodeAt(0)===95}function HDe(e){return!vde(e)}function vde(e){const t=e.getSourceFile();return!t.externalModuleIndicator&&!t.commonJsModuleIndicator?!1:sr(e)||!zn(e,r=>Ql(r)&&R_(r))}function L5(e){return!!(KV(e)&65536)}function k5(e,t){const r=qt(e.imports,i=>{if(G_.nodeCoreModules.has(i.text))return po(i.text,"node:")});return r!=null?r:t.usesUriStyleNodeCoreModules}function xO(e){return e==="\n"?1:0}function uT(e){return Ao(e)?dg(wo(e[0]),e.slice(1)):wo(e)}function w5({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!TO(t);return{...e,semicolons:i?"remove":"ignore"}}function qX(e){return e===2||e===3}function LD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function O5(e,t){const r=new Set,i=new Set,o=new Set;for(const u of t)if(!AP(u)){const p=vs(u.expression);if(OE(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:const h=nae(Al(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(ZE(h));break}else{const h=e.getSymbolAtLocation(u.expression);if(h&&h.valueDeclaration&&p1(h.valueDeclaration)){const f=e.getConstantValue(h.valueDeclaration);f!==void 0&&s(f)}}}return{addValue:s,hasValue:l};function s(u){switch(typeof u){case"string":r.add(u);break;case"number":i.add(u)}}function l(u){switch(typeof u){case"string":return r.has(u);case"number":return i.has(u);case"object":return o.has(ZE(u))}}}function JX(e,t,r,i){var o;const s=typeof e=="string"?e:e.fileName;if(!QE(s))return!1;const l=t.getCompilerOptions(),u=wu(l),p=typeof e=="string"?Jw(il(e,r.getCurrentDirectory(),Vv(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l):e.impliedNodeFormat;if(p===99)return!1;if(p===1||l.verbatimModuleSyntax&&u===1)return!0;if(l.verbatimModuleSyntax&&j3(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var Qu,KX,qDe,W5,XX,YX,JDe,F5,$X,lJe=T({"src/services/utilities.ts"(){ii(),Qu=Ov(99,!0),KX=(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))(KX||{}),qDe=/^\/\/\/\s*</,W5=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159],XX=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(XX||{}),YX=eJe(),JDe="\n",F5="anonymous function",$X=Qm(ude,GDe,VDe,I5)}});function QX(e){let t=1;const r=Zp(),i=new Map,o=new Map;let s;const l={isUsableByFile:I=>I===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(I,R,M,N,O,U,K,ee)=>{I!==s&&(l.clear(),s=I);let V;if(O){const de=aW(O.fileName);if(de){const{topLevelNodeModulesIndex:ie,topLevelPackageNameIndex:ge,packageRootIndex:Ne}=de;if(V=Pw(FP(O.fileName.substring(ge+1,Ne))),po(I,O.path.substring(0,ie))){const qe=o.get(V),Ee=O.fileName.substring(0,ge+1);if(qe){const Me=qe.indexOf(Dh);ie>Me&&o.set(V,Ee)}else o.set(V,Ee)}}}const G=U===1&&LR(R)||R,re=U===0||mO(G)?ji(M):_de(G,void 0),_e=typeof re=="string"?re:re[0],ye=typeof re=="string"?void 0:re[1],Q=am(N.name),Y=t++,oe=Eu(R,ee),he=R.flags&33554432?void 0:R,Ae=N.flags&33554432?void 0:N;(!he||!Ae)&&i.set(Y,[R,N]),r.add(p(_e,R,Qc(Q)?void 0:Q,ee),{id:Y,symbolTableKey:M,symbolName:_e,capitalizedSymbolName:ye,moduleName:Q,moduleFile:O,moduleFileName:O==null?void 0:O.fileName,packageName:V,exportKind:U,targetFlags:oe.flags,isFromPackageJson:K,symbol:he,moduleSymbol:Ae})},get:(I,R)=>{if(I!==s)return;const M=r.get(R);return M==null?void 0:M.map(u)},search:(I,R,M,N)=>{if(I===s)return jc(r,(O,U)=>{const{symbolName:K,ambientModuleName:ee}=h(U),V=R&&O[0].capitalizedSymbolName||K;if(M(V,O[0].targetFlags)){const G=O.map(u).filter((re,_e)=>A(re,O[_e].packageName));if(G.length){const re=N(G,V,!!ee,U);if(re!==void 0)return re}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(I,R,M)=>f(I)&&f(R)?!1:s&&s!==R.path||M&&P5(I)!==P5(R)||!Ym(I.moduleAugmentations,R.moduleAugmentations)||!b(I,R)?(l.clear(),!0):(s=R.path,!1)};return C.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function u(I){if(I.symbol&&I.moduleSymbol)return I;const{id:R,exportKind:M,targetFlags:N,isFromPackageJson:O,moduleFileName:U}=I,[K,ee]=i.get(R)||et;if(K&&ee)return{symbol:K,moduleSymbol:ee,moduleFileName:U,exportKind:M,targetFlags:N,isFromPackageJson:O};const V=(O?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),se=I.moduleSymbol||ee||C.checkDefined(I.moduleFile?V.getMergedSymbol(I.moduleFile.symbol):V.tryFindAmbientModule(I.moduleName)),G=I.symbol||K||C.checkDefined(M===2?V.resolveExternalModuleSymbol(se):V.tryGetMemberInModuleExportsAndProperties(ji(I.symbolTableKey),se),"Could not find symbol '".concat(I.symbolName,"' by key '").concat(I.symbolTableKey,"' in module ").concat(se.name));return i.set(R,[G,se]),{symbol:G,moduleSymbol:se,moduleFileName:U,exportKind:M,targetFlags:N,isFromPackageJson:O}}function p(I,R,M,N){const O=M||"";return"".concat(I.length," ").concat(Ta(Eu(R,N))," ").concat(I," ").concat(O)}function h(I){const R=I.indexOf(" "),M=I.indexOf(" ",R+1),N=parseInt(I.substring(0,R),10),O=I.substring(M+1),U=O.substring(0,N),K=O.substring(N+1);return{symbolName:U,ambientModuleName:K===""?void 0:K}}function f(I){return!I.commonJsModuleIndicator&&!I.externalModuleIndicator&&!I.moduleAugmentations&&!I.ambientModuleNames}function b(I,R){if(!Ym(I.ambientModuleNames,R.ambientModuleNames))return!1;let M=-1,N=-1;for(const O of R.ambientModuleNames){const U=K=>xj(K)&&K.name.text===O;if(M=Br(I.statements,U,M+1),N=Br(R.statements,U,N+1),I.statements[M]!==R.statements[N])return!1}return!0}function A(I,R){if(!R||!I.moduleFileName)return!0;const M=e.getGlobalTypingsCacheLocation();if(M&&po(I.moduleFileName,M))return!0;const N=o.get(R);return!N||po(I.moduleFileName,N)}}function ZX(e,t,r,i,o,s,l){var u;if(t===r)return!1;const p=l==null?void 0:l.get(t.path,r.path,i,{});if((p==null?void 0:p.isBlockedByPackageJsonDependencies)!==void 0)return!p.isBlockedByPackageJsonDependencies;const h=Vv(s),f=(u=s.getGlobalTypingsCacheLocation)==null?void 0:u.call(s),b=!!h1.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,A=>{const I=e.getSourceFile(A);return(I===r||!I)&&cJe(t.fileName,A,h,f)});if(o){const A=b&&o.allowsImportingSourceFile(r,s);return l==null||l.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!A),A}return b}function cJe(e,t,r,i){const o=xm(t,l=>lc(l)==="node_modules"?l:void 0),s=o&&ri(r(o));return s===void 0||po(r(e),s)||!!i&&po(r(i),s)}function eY(e,t,r,i,o){var s,l;const u=PR(t),p=r.autoImportFileExcludePatterns&&Hi(r.autoImportFileExcludePatterns,f=>{const b=Y3(f,"","exclude");return b?qy(b,u):void 0});KDe(e.getTypeChecker(),e.getSourceFiles(),p,t,(f,b)=>o(f,b,e,!1));const h=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(h){const f=Xs(),b=e.getTypeChecker();KDe(h.getTypeChecker(),h.getSourceFiles(),p,t,(A,I)=>{(I&&!e.getSourceFile(I.fileName)||!I&&!b.resolveName(A.name,void 0,1536,!1))&&o(A,I,h,!0)}),(l=t.log)==null||l.call(t,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(Xs()-f))}}function KDe(e,t,r,i,o){var s,l;const u=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:h,path:f})=>{var b;if(r.some(A=>A.test(h)))return!0;if(u!=null&&u.size&&w0(h)){let A=ri(h);return(b=xm(ri(f),I=>{const R=u.get(Vc(I));if(R)return R.some(M=>r.some(N=>N.test(h.replace(A,M))));A=ri(A)}))!=null?b:!1}return!1});for(const h of e.getAmbientModules())!h.name.includes("*")&&!(r&&((l=h.declarations)!=null&&l.every(f=>p(f.getSourceFile()))))&&o(h,void 0);for(const h of t)zp(h)&&!(p!=null&&p(h))&&o(e.getMergedSymbol(h.symbol),h)}function RO(e,t,r,i,o){var s,l,u,p,h;const f=Xs();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const b=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||QX({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var R;return(R=t.getPackageJsonAutoImportProvider)==null?void 0:R.call(t)},getGlobalTypingsCacheLocation:()=>{var R;return(R=t.getGlobalTypingsCacheLocation)==null?void 0:R.call(t)}});if(b.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),b;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const A=r.getCompilerOptions();let I=0;try{eY(r,t,i,!0,(R,M,N,O)=>{++I%100===0&&(o==null||o.throwIfCancellationRequested());const U=new Map,K=N.getTypeChecker(),ee=z5(R,K,A);ee&&XDe(ee.symbol,K)&&b.add(e.path,ee.symbol,ee.exportKind===1?"default":"export=",R,M,ee.exportKind,O,K),K.forEachExportAndPropertyOfModule(R,(V,se)=>{V!==(ee==null?void 0:ee.symbol)&&XDe(V,K)&&Pm(U,se)&&b.add(e.path,V,se,R,M,0,O,K)})})}catch(R){throw b.clear(),R}return(h=t.log)==null||h.call(t,"getExportInfoMap: done in ".concat(Xs()-f," ms")),b}function z5(e,t,r){const i=uJe(e,t);if(!i)return;const{symbol:o,exportKind:s}=i,l=B5(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function XDe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!lk(e)&&!toe(e)}function uJe(e,t){const r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function B5(e,t,r){const i=LR(e);if(i)return{resolvedSymbol:i,name:i.name};const o=dJe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){const s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return B5(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:M5(e,r.target)}}function dJe(e){return e.declarations&&qt(e.declarations,t=>{var r;if(wl(t))return(r=ti(ec(t.expression),je))==null?void 0:r.text;if(Ku(t))return C.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var tY,nY,pJe=T({"src/services/exportInfoMap.ts"(){ii(),tY=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(tY||{}),nY=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(nY||{})}});function YDe(){const e=Ov(99,!1);function t(i,o,s){return _Je(r(i,o,s),i)}function r(i,o,s){let l=0,u=0;const p=[],{prefix:h,pushTemplate:f}=vJe(o);i=h+i;const b=h.length;f&&p.push(16),e.setText(i);let A=0;const I=[];let R=0;do{l=e.scan(),xR(l)||(M(),u=l);const N=e.getTokenEnd();if(mJe(e.getTokenStart(),N,b,EJe(l),I),N>=i.length){const O=fJe(e,l,el(p));O!==void 0&&(A=O)}}while(l!==1);function M(){switch(l){case 44:case 69:!eCe[u]&&e.reScanSlashToken()===14&&(l=14);break;case 30:u===80&&R++;break;case 32:R>0&&R--;break;case 133:case 154:case 150:case 136:case 155:R>0&&!s&&(l=80);break;case 16:p.push(l);break;case 19:p.length>0&&p.push(l);break;case 20:if(p.length>0){const N=el(p);N===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():C.assertEqual(l,17,"Should have been a template middle.")):(C.assertEqual(N,19,"Should have been an open brace"),p.pop())}break;default:if(!Bd(l))break;(u===25||Bd(u)&&Bd(l)&&!gJe(u,l))&&(l=80)}}return{endOfLineState:A,spans:I}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function fJe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),o=i.length-1;let s=0;for(;i.charCodeAt(o-s)===92;)s++;return(s&1)===0?void 0:i.charCodeAt(0)===34?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(wy(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return C.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function mJe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);const s=t-e;s>0&&o.push(e-r,s,i)}function _Je(e,t){const r=[],i=e.spans;let o=0;for(let l=0;l<i.length;l+=3){const u=i[l],p=i[l+1],h=i[l+2];if(o>=0){const f=u-o;f>0&&r.push({length:f,classification:4})}r.push({length:p,classification:hJe(h)}),o=u+p}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function hJe(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 gJe(e,t){if(!pX(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function vJe(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 C.assertNever(e)}}function yJe(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}}function bJe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function EJe(e){if(Bd(e))return 3;if(yJe(e)||bJe(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;case 80:default:return wy(e)?6:2}}function yde(e,t,r,i,o){return ZDe(rY(e,t,r,i,o))}function $De(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function rY(e,t,r,i,o){const s=[];return r.forEachChild(function u(p){if(!(!p||!v4(o,p.pos,p.getFullWidth()))){if($De(t,p.kind),je(p)&&!Gl(p)&&i.has(p.escapedText)){const h=e.getSymbolAtLocation(p),f=h&&QDe(h,oT(p),e);f&&l(p.getStart(r),p.getEnd(),f)}p.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,p,h){const f=p-u;C.assert(f>0,"Classification had non-positive length of ".concat(f)),s.push(u),s.push(f),s.push(h)}}function QDe(e,t,r){const i=e.getFlags();if((i&2885600)!==0)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&SJe(e)?14:void 0:i&2097152?QDe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function SJe(e){return St(e.declarations,t=>Ql(t)&&$g(t)===1)}function TJe(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 ZDe(e){C.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:yu(t[i],t[i+1]),classificationType:TJe(t[i+2])});return r}function bde(e,t,r){return ZDe(iY(e,t,r))}function iY(e,t,r){const i=r.start,o=r.length,s=Ov(99,!1,t.languageVariant,t.text),l=Ov(99,!1,t.languageVariant,t.text),u=[];return ee(t),{spans:u,endOfLineState:0};function p(V,se,G){u.push(V),u.push(se),u.push(G)}function h(V){for(s.resetTokenState(V.pos);;){const se=s.getTokenEnd();if(!pre(t.text,se))return se;const G=s.scan(),re=s.getTokenEnd(),_e=re-se;if(!xR(G))return se;switch(G){case 4:case 5:continue;case 2:case 3:f(V,G,se,_e),s.resetTokenState(re);continue;case 7:const ye=t.text,Q=ye.charCodeAt(se);if(Q===60||Q===62){p(se,_e,1);continue}C.assert(Q===124||Q===61),M(ye,se,re);break;case 6:break;default:C.assertNever(G)}}}function f(V,se,G,re){if(se===3){const _e=Rse(t.text,G,re);if(_e&&_e.jsDoc){Ya(_e.jsDoc,V),A(_e.jsDoc);return}}else if(se===2&&I(G,re))return;b(G,re)}function b(V,se){p(V,se,1)}function A(V){var se,G,re,_e,ye,Q,Y,oe;let he=V.pos;if(V.tags)for(const de of V.tags){de.pos!==he&&b(he,de.pos-he),p(de.pos,1,10),p(de.tagName.pos,de.tagName.end-de.tagName.pos,18),he=de.tagName.end;let ie=de.tagName.end;switch(de.kind){case 348:const ge=de;Ae(ge),ie=ge.isNameFirst&&((se=ge.typeExpression)==null?void 0:se.end)||ge.name.end;break;case 355:const Ne=de;ie=Ne.isNameFirst&&((G=Ne.typeExpression)==null?void 0:G.end)||Ne.name.end;break;case 352:R(de),he=de.end,ie=de.typeParameters.end;break;case 353:const qe=de;ie=((re=qe.typeExpression)==null?void 0:re.kind)===316&&((_e=qe.fullName)==null?void 0:_e.end)||((ye=qe.typeExpression)==null?void 0:ye.end)||ie;break;case 345:ie=de.typeExpression.end;break;case 351:ee(de.typeExpression),he=de.end,ie=de.typeExpression.end;break;case 350:case 347:ie=de.typeExpression.end;break;case 349:ee(de.typeExpression),he=de.end,ie=((Q=de.typeExpression)==null?void 0:Q.end)||ie;break;case 354:ie=((Y=de.name)==null?void 0:Y.end)||ie;break;case 335:case 336:ie=de.class.end;break;case 356:ee(de.typeExpression),he=de.end,ie=((oe=de.typeExpression)==null?void 0:oe.end)||ie;break}typeof de.comment=="object"?b(de.comment.pos,de.comment.end-de.comment.pos):typeof de.comment=="string"&&b(ie,de.end-ie)}he!==V.end&&b(he,V.end-he);return;function Ae(de){de.isNameFirst&&(b(he,de.name.pos-he),p(de.name.pos,de.name.end-de.name.pos,17),he=de.name.end),de.typeExpression&&(b(he,de.typeExpression.pos-he),ee(de.typeExpression),he=de.typeExpression.end),de.isNameFirst||(b(he,de.name.pos-he),p(de.name.pos,de.name.end-de.name.pos,17),he=de.name.end)}}function I(V,se){const G=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,re=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,_e=t.text.substr(V,se),ye=G.exec(_e);if(!ye||!ye[3]||!(ye[3]in qM))return!1;let Q=V;b(Q,ye[1].length),Q+=ye[1].length,p(Q,ye[2].length,10),Q+=ye[2].length,p(Q,ye[3].length,21),Q+=ye[3].length;const Y=ye[4];let oe=Q;for(;;){const Ae=re.exec(Y);if(!Ae)break;const de=Q+Ae.index+Ae[1].length;de>oe&&(b(oe,de-oe),oe=de),p(oe,Ae[2].length,22),oe+=Ae[2].length,Ae[3].length&&(b(oe,Ae[3].length),oe+=Ae[3].length),p(oe,Ae[4].length,5),oe+=Ae[4].length,Ae[5].length&&(b(oe,Ae[5].length),oe+=Ae[5].length),p(oe,Ae[6].length,24),oe+=Ae[6].length}Q+=ye[4].length,Q>oe&&b(oe,Q-oe),ye[5]&&(p(Q,ye[5].length,10),Q+=ye[5].length);const he=V+se;return Q<he&&b(Q,he-Q),!0}function R(V){for(const se of V.getChildren())ee(se)}function M(V,se,G){let re;for(re=se;re<G&&!Hu(V.charCodeAt(re));re++);for(p(se,re-se,1),l.resetTokenState(re);l.getTokenEnd()<G;)N()}function N(){const V=l.getTokenEnd(),se=l.scan(),G=l.getTokenEnd(),re=K(se);re&&p(V,G-V,re)}function O(V){if(i_(V)||Gl(V))return!0;const se=U(V);if(!CA(V)&&V.kind!==12&&se===void 0)return!1;const G=V.kind===12?V.pos:h(V),re=V.end-G;if(C.assert(re>=0),re>0){const _e=se||K(V.kind,V);_e&&p(G,re,_e)}return!0}function U(V){switch(V.parent&&V.parent.kind){case 286:if(V.parent.tagName===V)return 19;break;case 287:if(V.parent.tagName===V)return 20;break;case 285:if(V.parent.tagName===V)return 21;break;case 291:if(V.parent.name===V)return 22;break}}function K(V,se){if(Bd(V))return 3;if((V===30||V===32)&&se&&Vue(se.parent))return 10;if(nU(V)){if(se){const G=se.parent;if(V===64&&(G.kind===260||G.kind===172||G.kind===169||G.kind===291)||G.kind===226||G.kind===224||G.kind===225||G.kind===227)return 5}return 10}else{if(V===9)return 4;if(V===10)return 25;if(V===11)return se&&se.parent.kind===291?24:6;if(V===14)return 6;if(wy(V))return 6;if(V===12)return 23;if(V===80){if(se){switch(se.parent.kind){case 263:return se.parent.name===se?11:void 0;case 168:return se.parent.name===se?15:void 0;case 264:return se.parent.name===se?13:void 0;case 266:return se.parent.name===se?12:void 0;case 267:return se.parent.name===se?14:void 0;case 169:return se.parent.name===se?YE(se)?3:17:void 0}if(zg(se.parent))return 3}return 2}}}function ee(V){if(V&&lL(i,o,V.pos,V.getFullWidth())){$De(e,V.kind);for(const se of V.getChildren(t))O(se)||ee(se)}}}var eCe,tCe=T({"src/services/classifier.ts"(){ii(),eCe=Lne([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),G5,AJe=T({"src/services/documentHighlights.ts"(){ii(),(e=>{function t(Q,Y,oe,he,Ae){const de=Vd(oe,he);if(de.parent&&(W_(de.parent)&&de.parent.tagName===de||l1(de.parent))){const{openingElement:ie,closingElement:ge}=de.parent.parent,Ne=[ie,ge].map(({tagName:qe})=>r(qe,oe));return[{fileName:oe.fileName,highlightSpans:Ne}]}return i(he,de,Q,Y,Ae)||o(de,oe)}e.getDocumentHighlights=t;function r(Q,Y){return{fileName:Y.fileName,textSpan:Dd(Q,Y),kind:"none"}}function i(Q,Y,oe,he,Ae){const de=new Set(Ae.map(qe=>qe.fileName)),ie=Gs.getReferenceEntriesForNode(Q,Y,oe,Ae,he,void 0,de);if(!ie)return;const ge=FM(ie.map(Gs.toHighlightSpan),qe=>qe.fileName,qe=>qe.span),Ne=Mu(oe.useCaseSensitiveFileNames());return Wo(kg(ge.entries(),([qe,Ee])=>{if(!de.has(qe)){if(!oe.redirectTargetsMap.has(il(qe,oe.getCurrentDirectory(),Ne)))return;const Me=oe.getSourceFile(qe);qe=Tn(Ae,Oe=>!!Oe.redirectInfo&&Oe.redirectInfo.redirectTarget===Me).fileName,C.assert(de.has(qe))}return{fileName:qe,highlightSpans:Ee}}))}function o(Q,Y){const oe=s(Q,Y);return oe&&[{fileName:Y.fileName,highlightSpans:oe}]}function s(Q,Y){switch(Q.kind){case 101:case 93:return US(Q.parent)?re(Q.parent,Y):void 0;case 107:return he(Q.parent,Mm,ee);case 111:return he(Q.parent,OH,K);case 113:case 85:case 98:const de=Q.kind===85?Q.parent.parent:Q.parent;return he(de,qS,U);case 109:return he(Q.parent,EP,O);case 84:case 90:return AP(Q.parent)||$R(Q.parent)?he(Q.parent.parent.parent,EP,O):void 0;case 83:case 88:return he(Q.parent,pN,N);case 99:case 117:case 92:return he(Q.parent,ie=>Wy(ie,!0),M);case 137:return oe(Ll,[137]);case 139:case 153:return oe(Oy,[139,153]);case 135:return he(Q.parent,eb,V);case 134:return Ae(V(Q));case 127:return Ae(se(Q));case 103:case 147:return;default:return Fv(Q.kind)&&(Ju(Q.parent)||kl(Q.parent))?Ae(A(Q.kind,Q.parent)):void 0}function oe(de,ie){return he(Q.parent,de,ge=>{var Ne;return Hi((Ne=ti(ge,x_))==null?void 0:Ne.symbol.declarations,qe=>de(qe)?Tn(qe.getChildren(Y),Ee=>Nr(ie,Ee.kind)):void 0)})}function he(de,ie,ge){return ie(de)?Ae(ge(de,Y)):void 0}function Ae(de){return de&&de.map(ie=>r(ie,Y))}}function l(Q){return OH(Q)?[Q]:qS(Q)?To(Q.catchClause?l(Q.catchClause):Q.tryBlock&&l(Q.tryBlock),Q.finallyBlock&&l(Q.finallyBlock)):Qo(Q)?void 0:h(Q,l)}function u(Q){let Y=Q;for(;Y.parent;){const oe=Y.parent;if(VE(oe)||oe.kind===312)return oe;if(qS(oe)&&oe.tryBlock===Y&&oe.catchClause)return Y;Y=oe}}function p(Q){return pN(Q)?[Q]:Qo(Q)?void 0:h(Q,p)}function h(Q,Y){const oe=[];return Q.forEachChild(he=>{const Ae=Y(he);Ae!==void 0&&oe.push(...SA(Ae))}),oe}function f(Q,Y){const oe=b(Y);return!!oe&&oe===Q}function b(Q){return zn(Q,Y=>{switch(Y.kind){case 255:if(Q.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!Q.label||ye(Y,Q.label.escapedText);default:return Qo(Y)&&"quit"}})}function A(Q,Y){return Hi(I(Y,UA(Q)),oe=>CD(oe,Q))}function I(Q,Y){const oe=Q.parent;switch(oe.kind){case 268:case 312:case 241:case 296:case 297:return Y&64&&Rc(Q)?[...Q.members,Q]:oe.statements;case 176:case 174:case 262:return[...oe.parameters,...ui(oe.parent)?oe.parent.members:[]];case 263:case 231:case 264:case 187:const he=oe.members;if(Y&15){const Ae=Tn(oe.members,Ll);if(Ae)return[...he,...Ae.parameters]}else if(Y&64)return[...he,oe];return he;case 210:return;default:C.assertNever(oe,"Invalid container kind.")}}function R(Q,Y,...oe){return Y&&Nr(oe,Y.kind)?(Q.push(Y),!0):!1}function M(Q){const Y=[];if(R(Y,Q.getFirstToken(),99,117,92)&&Q.kind===246){const oe=Q.getChildren();for(let he=oe.length-1;he>=0&&!R(Y,oe[he],117);he--);}return He(p(Q.statement),oe=>{f(Q,oe)&&R(Y,oe.getFirstToken(),83,88)}),Y}function N(Q){const Y=b(Q);if(Y)switch(Y.kind){case 248:case 249:case 250:case 246:case 247:return M(Y);case 255:return O(Y)}}function O(Q){const Y=[];return R(Y,Q.getFirstToken(),109),He(Q.caseBlock.clauses,oe=>{R(Y,oe.getFirstToken(),84,90),He(p(oe),he=>{f(Q,he)&&R(Y,he.getFirstToken(),83)})}),Y}function U(Q,Y){const oe=[];if(R(oe,Q.getFirstToken(),113),Q.catchClause&&R(oe,Q.catchClause.getFirstToken(),85),Q.finallyBlock){const he=Es(Q,98,Y);R(oe,he,98)}return oe}function K(Q,Y){const oe=u(Q);if(!oe)return;const he=[];return He(l(oe),Ae=>{he.push(Es(Ae,111,Y))}),VE(oe)&&GE(oe,Ae=>{he.push(Es(Ae,107,Y))}),he}function ee(Q,Y){const oe=Gp(Q);if(!oe)return;const he=[];return GE(oa(oe.body,Jo),Ae=>{he.push(Es(Ae,107,Y))}),He(l(oe.body),Ae=>{he.push(Es(Ae,111,Y))}),he}function V(Q){const Y=Gp(Q);if(!Y)return;const oe=[];return Y.modifiers&&Y.modifiers.forEach(he=>{R(oe,he,134)}),Vo(Y,he=>{G(he,Ae=>{eb(Ae)&&R(oe,Ae.getFirstToken(),135)})}),oe}function se(Q){const Y=Gp(Q);if(!Y)return;const oe=[];return Vo(Y,he=>{G(he,Ae=>{iF(Ae)&&R(oe,Ae.getFirstToken(),127)})}),oe}function G(Q,Y){Y(Q),!Qo(Q)&&!ui(Q)&&!hd(Q)&&!Ql(Q)&&!Lm(Q)&&!Ui(Q)&&Vo(Q,oe=>G(oe,Y))}function re(Q,Y){const oe=_e(Q,Y),he=[];for(let Ae=0;Ae<oe.length;Ae++){if(oe[Ae].kind===93&&Ae<oe.length-1){const de=oe[Ae],ie=oe[Ae+1];let ge=!0;for(let Ne=ie.getStart(Y)-1;Ne>=de.end;Ne--)if(!A_(Y.text.charCodeAt(Ne))){ge=!1;break}if(ge){he.push({fileName:Y.fileName,textSpan:hc(de.getStart(),ie.end),kind:"reference"}),Ae++;continue}}he.push(r(oe[Ae],Y))}return he}function _e(Q,Y){const oe=[];for(;US(Q.parent)&&Q.parent.elseStatement===Q;)Q=Q.parent;for(;;){const he=Q.getChildren(Y);R(oe,he[0],101);for(let Ae=he.length-1;Ae>=0&&!R(oe,he[Ae],93);Ae--);if(!Q.elseStatement||!US(Q.elseStatement))break;Q=Q.elseStatement}return oe}function ye(Q,Y){return!!zn(Q.parent,oe=>s1(oe)?oe.label.escapedText===Y:"quit")}})(G5||(G5={}))}});function DO(e){return!!e.sourceFile}function Ede(e,t,r){return oY(e,t,r)}function oY(e,t="",r,i){const o=new Map,s=Mu(!!e);function l(){const N=Wo(o.keys()).filter(O=>O&&O.charAt(0)==="_").map(O=>{const U=o.get(O),K=[];return U.forEach((ee,V)=>{DO(ee)?K.push({name:V,scriptKind:ee.sourceFile.scriptKind,refCount:ee.languageServiceRefCount}):ee.forEach((se,G)=>K.push({name:V,scriptKind:G,refCount:se.languageServiceRefCount}))}),K.sort((ee,V)=>V.refCount-ee.refCount),{bucket:O,sourceFiles:K}});return JSON.stringify(N,void 0,2)}function u(N){return typeof N.getCompilationSettings=="function"?N.getCompilationSettings():N}function p(N,O,U,K,ee,V){const se=il(N,t,s),G=aY(u(O));return h(N,se,O,G,U,K,ee,V)}function h(N,O,U,K,ee,V,se,G){return I(N,O,U,K,ee,V,!0,se,G)}function f(N,O,U,K,ee,V){const se=il(N,t,s),G=aY(u(O));return b(N,se,O,G,U,K,ee,V)}function b(N,O,U,K,ee,V,se,G){return I(N,O,u(U),K,ee,V,!1,se,G)}function A(N,O){const U=DO(N)?N:N.get(C.checkDefined(O,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return C.assert(O===void 0||!U||U.sourceFile.scriptKind===O,"Script kind should match provided ScriptKind:".concat(O," and sourceFile.scriptKind: ").concat(U==null?void 0:U.sourceFile.scriptKind,", !entry: ").concat(!U)),U}function I(N,O,U,K,ee,V,se,G,re){var _e,ye,Q,Y;G=Q3(N,G);const oe=u(U),he=U===oe?void 0:U,Ae=G===6?100:ls(oe),de=typeof re=="object"?re:{languageVersion:Ae,impliedNodeFormat:he&&Jw(O,(Y=(Q=(ye=(_e=he.getCompilerHost)==null?void 0:_e.call(he))==null?void 0:ye.getModuleResolutionCache)==null?void 0:Q.call(ye))==null?void 0:Y.getPackageJsonInfoCache(),he,oe),setExternalModuleIndicator:bk(oe),jsDocParsingMode:r};de.languageVersion=Ae,C.assertEqual(r,de.jsDocParsingMode);const ie=o.size,ge=Sde(K,de.impliedNodeFormat),Ne=i0(o,ge,()=>new Map);if(ar){o.size>ie&&ar.instant(ar.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:oe.configFilePath,key:ge});const Ce=!Tu(O)&&jc(o,(Oe,At)=>At!==ge&&Oe.has(O)&&At);Ce&&ar.instant(ar.Phase.Session,"documentRegistryBucketOverlap",{path:O,key1:Ce,key2:ge})}const qe=Ne.get(O);let Ee=qe&&A(qe,G);if(!Ee&&i){const Ce=i.getDocument(ge,O);Ce&&(C.assert(se),Ee={sourceFile:Ce,languageServiceRefCount:0},Me())}if(Ee)Ee.sourceFile.version!==V&&(Ee.sourceFile=KY(Ee.sourceFile,ee,V,ee.getChangeRange(Ee.sourceFile.scriptSnapshot)),i&&i.setDocument(ge,O,Ee.sourceFile)),se&&Ee.languageServiceRefCount++;else{const Ce=pz(N,ee,de,V,!1,G);i&&i.setDocument(ge,O,Ce),Ee={sourceFile:Ce,languageServiceRefCount:1},Me()}return C.assert(Ee.languageServiceRefCount!==0),Ee.sourceFile;function Me(){if(!qe)Ne.set(O,Ee);else if(DO(qe)){const Ce=new Map;Ce.set(qe.sourceFile.scriptKind,qe),Ce.set(G,Ee),Ne.set(O,Ce)}else qe.set(G,Ee)}}function R(N,O,U,K){const ee=il(N,t,s),V=aY(O);return M(ee,V,U,K)}function M(N,O,U,K){const ee=C.checkDefined(o.get(Sde(O,K))),V=ee.get(N),se=A(V,U);se.languageServiceRefCount--,C.assert(se.languageServiceRefCount>=0),se.languageServiceRefCount===0&&(DO(V)?ee.delete(N):(V.delete(U),V.size===1&&ee.set(N,fn(V.values(),tl))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:f,updateDocumentWithKey:b,releaseDocument:R,releaseDocumentWithKey:M,getKeyForCompilationSettings:aY,getDocumentRegistryBucketKeyWithMode:Sde,reportStats:l,getBuckets:()=>o}}function aY(e){return Lq(e,NF)}function Sde(e,t){return t?"".concat(e,"|").concat(t):e}var IJe=T({"src/services/documentRegistry.ts"(){ii()}});function Tde(e,t,r,i,o,s,l){const u=PR(i),p=Mu(u),h=sY(t,r,p,l),f=sY(r,t,p,l);return _r.ChangeTracker.with({host:i,formatContext:o,preferences:s},b=>{RJe(e,b,h,t,r,i.getCurrentDirectory(),u),DJe(e,b,h,f,i,p)})}function sY(e,t,r,i){const o=r(e);return l=>{const u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(u?u.fileName:l);return u?p===void 0?void 0:xJe(u.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;const u=FU(l,o,r);return u===void 0?void 0:t+"/"+u}}function xJe(e,t,r,i){const o=QM(e,t,i);return Ade(ri(r),o)}function RJe(e,t,r,i,o,s,l){const{configFile:u}=e.getCompilerOptions();if(!u)return;const p=ri(u.fileName),h=AN(u);if(!h)return;Ide(h,(I,R)=>{switch(R){case"files":case"include":case"exclude":{if(f(I)||R!=="include"||!_d(I.initializer))return;const N=Hi(I.initializer.elements,U=>Ma(U)?U.text:void 0);if(N.length===0)return;const O=$3(p,[],N,l,s);qy(C.checkDefined(O.includeFilePattern),l).test(i)&&!qy(C.checkDefined(O.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,es(I.initializer.elements),w.createStringLiteral(A(o)));return}case"compilerOptions":Ide(I.initializer,(M,N)=>{const O=mq(N);C.assert((O==null?void 0:O.type)!=="listOrElement"),O&&(O.isFilePath||O.type==="list"&&O.element.isFilePath)?f(M):N==="paths"&&Ide(M.initializer,U=>{if(_d(U.initializer))for(const K of U.initializer.elements)b(K)})});return}});function f(I){const R=_d(I.initializer)?I.initializer.elements:[I.initializer];let M=!1;for(const N of R)M=b(N)||M;return M}function b(I){if(!Ma(I))return!1;const R=Ade(p,I.text),M=r(R);return M!==void 0?(t.replaceRangeWithText(u,rCe(I,u),A(M)),!0):!1}function A(I){return Im(p,I,!l)}}function DJe(e,t,r,i,o,s){const l=e.getSourceFiles();for(const u of l){const p=r(u.fileName),h=p!=null?p:u.fileName,f=ri(h),b=i(u.fileName),A=b||u.fileName,I=ri(A),R=p!==void 0||b!==void 0;PJe(u,t,M=>{if(!Wp(M))return;const N=Ade(I,M),O=r(N);return O===void 0?void 0:ME(Im(f,O,s))},M=>{const N=e.getTypeChecker().getSymbolAtLocation(M);if(N!=null&&N.declarations&&N.declarations.some(U=>ku(U)))return;const O=b!==void 0?nCe(M,dD(M.text,A,e.getCompilerOptions(),o),r,l):NJe(N,M,u,e,o,r);return O!==void 0&&(O.updated||R&&Wp(M.text))?h1.updateModuleSpecifier(e.getCompilerOptions(),u,h,O.newFileName,sT(e,o),M.text):void 0})}}function CJe(e,t){return ha(Yr(e,t))}function Ade(e,t){return ME(CJe(e,t))}function NJe(e,t,r,i,o,s){if(e){const l=Tn(e.declarations,Zi).fileName,u=s(l);return u===void 0?{newFileName:l,updated:!1}:{newFileName:u,updated:!0}}else{const l=i.getModeForUsageLocation(r,t),u=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return nCe(t,u,s,i.getSourceFiles())}}function nCe(e,t,r,i){if(!t)return;if(t.resolvedModule){const p=u(t.resolvedModule.resolvedFileName);if(p)return p}const o=He(t.failedLookupLocations,s)||Wp(e.text)&&He(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){const h=r(p);return h&&Tn(i,f=>f.fileName===h)?l(p):void 0}function l(p){return Al(p,"/package.json")?void 0:u(p)}function u(p){const h=r(p);return h&&{newFileName:h,updated:!0}}}function PJe(e,t,r,i){for(const o of e.referencedFiles||et){const s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(const o of e.imports){const s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,rCe(o,e),s)}}function rCe(e,t){return xf(e.getStart(t)+1,e.end-1)}function Ide(e,t){if(Wa(e))for(const r of e.properties)bc(r)&&Ma(r.name)&&t(r,r.name.text)}var MJe=T({"src/services/getEditsForFileRename.ts"(){ii()}});function _2(e,t){return{kind:e,isCaseSensitive:t}}function xde(e){const t=new Map,r=e.trim().split(".").map(i=>OJe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>_2(2,!0),getFullMatch:()=>_2(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>LJe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Rde(i,es(r),t),patternContainsDots:r.length>1}}function LJe(e,t,r,i){if(!Rde(t,es(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,u=e.length-1;l>=0;l-=1,u-=1)s=aCe(s,Rde(e[u],r[l],i));return s}function iCe(e,t){let r=t.get(e);return r||t.set(e,r=Lde(e)),r}function oCe(e,t,r){const i=WJe(e,t.textLowerCase);if(i===0)return _2(t.text.length===e.length?0:1,po(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=iCe(e,r);for(const s of o)if(Dde(e,s,t.text,!0))return _2(2,Dde(e,s,t.text,!1));if(t.text.length<e.length&&kD(e.charCodeAt(i)))return _2(2,!1)}else{if(e.indexOf(t.text)>0)return _2(2,!0);if(t.characterSpans.length>0){const o=iCe(e,r),s=sCe(e,o,t,!1)?!0:sCe(e,o,t,!0)?!1:void 0;if(s!==void 0)return _2(3,s)}}}function Rde(e,t,r){if(lY(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=oCe(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=aCe(o,oCe(e,s,r));return o}function aCe(e,t){return EG([e,t],kJe)}function kJe(e,t){return e===void 0?1:t===void 0?-1:nl(e.kind,t.kind)||Ry(!e.isCaseSensitive,!t.isCaseSensitive)}function Dde(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&dCe(0,o.length,s=>wJe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function wJe(e,t,r){return r?Cde(e)===Cde(t):e===t}function sCe(e,t,r,i){const o=r.characterSpans;let s=0,l=0;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let u=t[s],p=!1;for(;l<o.length;l++){const h=o[l];if(p&&(!kD(r.text.charCodeAt(o[l-1].start))||!kD(r.text.charCodeAt(o[l].start)))||!Dde(e,u,r.text,i,h))break;p=!0,u=yu(u.start+h.length,u.length-h.length)}s++}}function OJe(e){return{totalTextChunk:Pde(e),subWordTextChunks:zJe(e)}}function kD(e){if(e>=65&&e<=90)return!0;if(e<127||!f4(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function lCe(e){if(e>=97&&e<=122)return!0;if(e<127||!f4(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function WJe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(lY(t,(o,s)=>Cde(e.charCodeAt(s+i))===o))return i;return-1}function Cde(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Nde(e){return e>=48&&e<=57}function FJe(e){return kD(e)||lCe(e)||Nde(e)||e===95||e===36}function zJe(e){const t=[];let r=0,i=0;for(let o=0;o<e.length;o++){const s=e.charCodeAt(o);FJe(s)?(i===0&&(r=o),i++):i>0&&(t.push(Pde(e.substr(r,i))),i=0)}return i>0&&t.push(Pde(e.substr(r,i))),t}function Pde(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Mde(e)}}function Mde(e){return cCe(e,!1)}function Lde(e){return cCe(e,!0)}function cCe(e,t){const r=[];let i=0;for(let o=1;o<e.length;o++){const s=Nde(e.charCodeAt(o-1)),l=Nde(e.charCodeAt(o)),u=GJe(e,t,o),p=t&&BJe(e,o,i);(kde(e.charCodeAt(o-1))||kde(e.charCodeAt(o))||s!==l||u||p)&&(uCe(e,i,o)||r.push(yu(i,o-i)),i=o)}return uCe(e,i,e.length)||r.push(yu(i,e.length-i)),r}function kde(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 uCe(e,t,r){return lY(e,i=>kde(i)&&i!==95,t,r)}function BJe(e,t,r){return t!==r&&t+1<e.length&&kD(e.charCodeAt(t))&&lCe(e.charCodeAt(t+1))&&lY(e,kD,r,t)}function GJe(e,t,r){const i=kD(e.charCodeAt(r-1));return kD(e.charCodeAt(r))&&(!t||!i)}function dCe(e,t,r){for(let i=e;i<t;i++)if(!r(i))return!1;return!0}function lY(e,t,r=0,i=e.length){return dCe(r,i,o=>t(e.charCodeAt(o),o))}var V5,VJe=T({"src/services/patternMatcher.ts"(){ii(),V5=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(V5||{})}});function pCe(e,t=!0,r=!1){const i={pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[];let s,l,u,p=0,h=!1;function f(){return l=u,u=Qu.scan(),u===19?p++:u===20&&p--,u}function b(){const V=Qu.getTokenValue(),se=Qu.getTokenStart();return{fileName:V,pos:se,end:se+V.length}}function A(){s||(s=[]),s.push({ref:b(),depth:p})}function I(){o.push(b()),R()}function R(){p===0&&(h=!0)}function M(){let V=Qu.getToken();return V===138?(V=f(),V===144&&(V=f(),V===11&&A()),!0):!1}function N(){if(l===25)return!1;let V=Qu.getToken();if(V===102){if(V=f(),V===21){if(V=f(),V===11||V===15)return I(),!0}else{if(V===11)return I(),!0;if(V===156&&Qu.lookAhead(()=>{const G=Qu.scan();return G!==161&&(G===42||G===19||G===80||Bd(G))})&&(V=f()),V===80||Bd(V))if(V=f(),V===161){if(V=f(),V===11)return I(),!0}else if(V===64){if(U(!0))return!0}else if(V===28)V=f();else return!0;if(V===19){for(V=f();V!==20&&V!==1;)V=f();V===20&&(V=f(),V===161&&(V=f(),V===11&&I()))}else V===42&&(V=f(),V===130&&(V=f(),(V===80||Bd(V))&&(V=f(),V===161&&(V=f(),V===11&&I()))))}return!0}return!1}function O(){let V=Qu.getToken();if(V===95){if(R(),V=f(),V===156&&Qu.lookAhead(()=>{const G=Qu.scan();return G===42||G===19})&&(V=f()),V===19){for(V=f();V!==20&&V!==1;)V=f();V===20&&(V=f(),V===161&&(V=f(),V===11&&I()))}else if(V===42)V=f(),V===161&&(V=f(),V===11&&I());else if(V===102&&(V=f(),V===156&&Qu.lookAhead(()=>{const G=Qu.scan();return G===80||Bd(G)})&&(V=f()),(V===80||Bd(V))&&(V=f(),V===64&&U(!0))))return!0;return!0}return!1}function U(V,se=!1){let G=V?f():Qu.getToken();return G===149?(G=f(),G===21&&(G=f(),(G===11||se&&G===15)&&I()),!0):!1}function K(){let V=Qu.getToken();if(V===80&&Qu.getTokenValue()==="define"){if(V=f(),V!==21)return!0;if(V=f(),V===11||V===15)if(V=f(),V===28)V=f();else return!0;if(V!==23)return!0;for(V=f();V!==24&&V!==1;)(V===11||V===15)&&I(),V=f();return!0}return!1}function ee(){for(Qu.setText(e),f();Qu.getToken()!==1;){if(Qu.getToken()===16){const V=[Qu.getToken()];e:for(;Le(V);){const se=Qu.scan();switch(se){case 1:break e;case 102:N();break;case 16:V.push(se);break;case 19:Le(V)&&V.push(se);break;case 20:Le(V)&&(el(V)===16?Qu.reScanTemplateToken(!1)===18&&V.pop():V.pop());break}}f()}M()||N()||O()||r&&(U(!1,!0)||K())||f()}Qu.setText(void 0)}if(t&&ee(),lq(i,e),cq(i,ts),h){if(s)for(const V of s)o.push(V.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let V;if(s)for(const se of s)se.depth===0?(V||(V=[]),V.push(se.ref.fileName)):o.push(se.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:V}}}var jJe=T({"src/services/preProcess.ts"(){ii()}});function wde(e){const t=Mu(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:p,toLineColumnOffset:A,clearCache:I};function s(R){return il(R,r,t)}function l(R,M){const N=s(R),O=o.get(N);if(O)return O;let U;if(e.getDocumentPositionMapper)U=e.getDocumentPositionMapper(R,M);else if(e.readFile){const K=b(R);U=K&&cY({getSourceFileLike:b,getCanonicalFileName:t,log:ee=>e.log(ee)},R,nJ(K.text,Wg(K)),ee=>!e.fileExists||e.fileExists(ee)?e.readFile(ee):void 0)}return o.set(N,U||n7),U||n7}function u(R){if(!Tu(R.fileName)||!h(R.fileName))return;const N=l(R.fileName).getSourcePosition(R);return!N||N===R?void 0:u(N)||N}function p(R){if(Tu(R.fileName))return;const M=h(R.fileName);if(!M)return;const N=e.getProgram();if(N.isSourceOfProjectReferenceRedirect(M.fileName))return;const O=N.getCompilerOptions(),U=Os(O),K=U?Ad(U)+".d.ts":A3(R.fileName,N.getCompilerOptions(),r,N.getCommonSourceDirectory(),t);if(K===void 0)return;const ee=l(K,R.fileName).getGeneratedPosition(R);return ee===R?void 0:ee}function h(R){const M=e.getProgram();if(!M)return;const N=s(R),O=M.getSourceFileByPath(N);return O&&O.resolvedPath===N?O:void 0}function f(R){const M=s(R),N=i.get(M);if(N!==void 0)return N||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(M,!1);return}const O=e.readFile(R),U=O?UJe(O):!1;return i.set(M,U),U||void 0}function b(R){return e.getSourceFileLike?e.getSourceFileLike(R):h(R)||f(R)}function A(R,M){return b(R).getLineAndCharacterOfPosition(M)}function I(){i.clear(),o.clear()}}function cY(e,t,r,i){let o=Rle(r);if(o){const u=mCe.exec(o);if(u){if(u[1]){const p=u[1];return fCe(e,Roe(vu,p),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const l=o&&yo(o,ri(t));for(const u of s){const p=yo(u,ri(t)),h=i(p,l);if(No(h))return fCe(e,h,p);if(h!==void 0)return h||void 0}}function fCe(e,t,r){const i=rJ(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(No)))return Nle(e,i,r)}function UJe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return Xx(Wg(this),r)}}}var mCe,HJe=T({"src/services/sourcemaps.ts"(){ii(),mCe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function uY(e,t,r){var i;t.getSemanticDiagnostics(e,r);const o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||Ic(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(Jue(t)||yX(t.getCompilerOptions()))&&qJe(e)&&o.push(Or(YJe(e.commonJsModuleIndicator),m.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=dd(e);if(mY.clear(),p(e),FS(t.getCompilerOptions()))for(const h of e.imports){const f=DN(h),b=JJe(f);if(!b)continue;const A=(i=t.getResolvedModuleFromModuleSpecifier(h))==null?void 0:i.resolvedModule,I=A&&t.getSourceFile(A.resolvedFileName);I&&I.externalModuleIndicator&&I.externalModuleIndicator!==!0&&wl(I.externalModuleIndicator)&&I.externalModuleIndicator.isExportEquals&&o.push(Or(b,m.Import_may_be_converted_to_a_default_import))}return Ur(o,e.bindSuggestionDiagnostics),Ur(o,t.getSuggestionDiagnostics(e,r)),o.sort((h,f)=>h.start-f.start);function p(h){if(u)QJe(h,s)&&o.push(Or(ki(h.parent)?h.parent.name:h,m.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(kl(h)&&h.parent===e&&h.declarationList.flags&2&&h.declarationList.declarations.length===1){const b=h.declarationList.declarations[0].initializer;b&&Td(b,!0)&&o.push(Or(b,m.require_call_may_be_converted_to_an_import))}const f=Fu.getJSDocTypedefNodes(h);for(const b of f)o.push(Or(b,m.JSDoc_typedef_may_be_converted_to_TypeScript_type));Fu.parameterShouldGetTypeFromJSDoc(h)&&o.push(Or(h.name||h,m.JSDoc_types_may_be_moved_to_TypeScript_types))}fY(h)&&KJe(h,s,o),h.forEachChild(p)}}function qJe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Td(_Ce(r.initializer),!0));case 244:{const{expression:r}=t;if(!mr(r))return Td(r,!0);const i=Vl(r);return i===1||i===2}default:return!1}})}function _Ce(e){return Fr(e)?_Ce(e.expression):e}function JJe(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Ma(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function KJe(e,t,r){XJe(e,t)&&!mY.has(yCe(e))&&r.push(Or(!e.name&&ki(e.parent)&&je(e.parent.name)?e.parent.name:e,m.This_may_be_converted_to_an_async_function))}function XJe(e,t){return!MN(e)&&e.body&&Jo(e.body)&&$Je(e.body,t)&&dY(e,t)}function dY(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function YJe(e){return mr(e)?e.left:e}function $Je(e,t){return!!GE(e,r=>j5(r,t))}function j5(e,t){return Mm(e)&&!!e.expression&&pY(e.expression,t)}function pY(e,t){if(!hCe(e)||!gCe(e)||!e.arguments.every(i=>vCe(i,t)))return!1;let r=e.expression.expression;for(;hCe(r)||Fr(r);)if(sa(r)){if(!gCe(r)||!r.arguments.every(i=>vCe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function hCe(e){return sa(e)&&(oO(e,"then")||oO(e,"catch")||oO(e,"finally"))}function gCe(e){const t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.length<r?!0:r===1||St(e.arguments,i=>i.kind===106||je(i)&&i.text==="undefined")}function vCe(e,t){switch(e.kind){case 262:case 218:if(Uc(e)&1)return!1;case 219:mY.set(yCe(e),!0);case 106:return!0;case 80:case 211:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||St(Eu(i,t).declarations,o=>Qo(o)||zy(o)&&!!o.initializer&&Qo(o.initializer)):!1}default:return!1}}function yCe(e){return"".concat(e.pos.toString(),":").concat(e.end.toString())}function QJe(e,t){var r,i,o,s;if(Bs(e)){if(ki(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;const l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return xc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function fY(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var mY,ZJe=T({"src/services/suggestionDiagnostics.ts"(){ii(),mY=new Map}});function Ode(e,t){var A;const r=[],i=t.compilerOptions?_Y(t.compilerOptions,r):{},o=dz();for(const I in o)Cs(o,I)&&i[I]===void 0&&(i[I]=o[I]);for(const I of Dq)i.verbatimModuleSyntax&&ECe.has(I.name)||(i[I.name]=I.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const s=Hv(i),l={getSourceFile:I=>I===ha(u)?p:void 0,writeFile:(I,R)=>{Il(I,".map")?(C.assertEqual(f,void 0,"Unexpected multiple source map outputs, file:",I),f=R):(C.assertEqual(h,void 0,"Unexpected multiple outputs, file:",I),h=R)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:I=>I,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:I=>I===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=dw(u,e,{languageVersion:ls(i),impliedNodeFormat:Jw(il(u,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:bk(i),jsDocParsingMode:(A=t.jsDocParsingMode)!=null?A:0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,f;const b=A7([u],i,l);return t.reportDiagnostics&&(Ur(r,b.getSyntacticDiagnostics(p)),Ur(r,b.getOptionsDiagnostics())),b.emit(void 0,void 0,void 0,void 0,t.transformers),h===void 0?C.fail("Output generation failed"):{outputText:h,diagnostics:r,sourceMapText:f}}function bCe(e,t,r,i,o){const s=Ode(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Ur(i,s.diagnostics),s.outputText}function _Y(e,t){Wde=Wde||rr(_g,r=>typeof r.type=="object"&&!jc(r.type,i=>typeof i!="number")),e=fX(e);for(const r of Wde){if(!Cs(e,r.name))continue;const i=e[r.name];No(i)?e[r.name]=TF(r,i,t):jc(r.type,o=>o===i)||t.push(Dse(r))}return e}var ECe,Wde,eKe=T({"src/services/transpile.ts"(){ii(),ECe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function SCe(e,t,r,i,o,s,l){const u=xde(i);if(!u)return et;const p=[],h=e.length===1?e[0]:void 0;for(const f of e)r.throwIfCancellationRequested(),!(s&&f.isDeclarationFile)&&(TCe(f,!!l,h)||f.getNamedDeclarations().forEach((b,A)=>{tKe(u,A,b,t,f.fileName,!!l,h,p)}));return p.sort(oKe),(o===void 0?p:p.slice(0,o)).map(aKe)}function TCe(e,t,r){return e!==r&&t&&(IO(e.path)||e.hasNoDefaultLib)}function tKe(e,t,r,i,o,s,l,u){const p=e.getMatchForLastSegmentOfPattern(t);if(p){for(const h of r)if(nKe(h,i,s,l))if(e.patternContainsDots){const f=e.getFullMatch(iKe(h),t);f&&u.push({name:t,fileName:o,matchKind:f.kind,isCaseSensitive:f.isCaseSensitive,declaration:h})}else u.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:h})}}function nKe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:const s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(u=>TCe(u.getSourceFile(),r,i)));default:return!0}}function rKe(e,t){const r=Po(e);return!!r&&(ACe(r,t)||r.kind===167&&Fde(r.expression,t))}function Fde(e,t){return ACe(e,t)||Fr(e)&&(t.push(e.name.text),!0)&&Fde(e.expression,t)}function ACe(e,t){return C_(e)&&(t.push(om(e)),!0)}function iKe(e){const t=[],r=Po(e);if(r&&r.kind===167&&!Fde(r.expression,t))return et;t.shift();let i=aT(e);for(;i;){if(!rKe(i,t))return et;i=aT(i)}return t.reverse()}function oKe(e,t){return nl(e.matchKind,t.matchKind)||BM(e.name,t.name)}function aKe(e){const t=e.declaration,r=aT(t),i=r&&Po(r);return{name:e.name,kind:E1(t),kindModifiers:o2(t),matchKind:V5[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Dd(t),containerName:i?i.text:"",containerKind:i?E1(r):""}}var sKe=T({"src/services/navigateTo.ts"(){ii()}}),zde={};X(zde,{getNavigateToItems:()=>SCe});var ICe=T({"src/services/_namespaces/ts.NavigateTo.ts"(){sKe()}});function xCe(e,t){yY=t,CO=e;try{return Ot(pKe(NCe(e)),fKe)}finally{DCe()}}function RCe(e,t){yY=t,CO=e;try{return zCe(NCe(e))}finally{DCe()}}function DCe(){CO=void 0,yY=void 0,NO=[],ry=void 0,bY=[]}function U5(e){return h2(e.getText(CO))}function hY(e){return e.node.kind}function CCe(e,t){e.children?e.children.push(t):e.children=[t]}function NCe(e){C.assert(!NO.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};ry=t;for(const r of e.statements)kI(r);return z0(),C.assert(!ry&&!NO.length),t}function A1(e,t){CCe(ry,Bde(e,t))}function Bde(e,t){return{node:e,name:t||(Ju(e)||bt(e)?Po(e):void 0),additionalNodes:void 0,parent:ry,children:void 0,indent:ry.indent+1}}function PCe(e){wD||(wD=new Map),wD.set(e,!0)}function MCe(e){for(let t=0;t<e;t++)z0()}function LCe(e,t){const r=[];for(;!C_(t);){const i=JL(t),o=Vg(t);t=t.expression,!(o==="prototype"||Ji(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){const o=r[i];I1(e,o)}return[r.length-1,r[0]]}function I1(e,t){const r=Bde(e,t);CCe(ry,r),NO.push(ry),Kde.push(wD),wD=void 0,ry=r}function z0(){ry.children&&(gY(ry.children,ry),jde(ry.children)),ry=NO.pop(),wD=Kde.pop()}function B0(e,t,r){I1(e,r),kI(t),z0()}function kCe(e){e.initializer&&_Ke(e.initializer)?(I1(e),Vo(e.initializer,kI),z0()):B0(e,e.initializer)}function Gde(e){const t=Po(e);if(t===void 0)return!1;if(rs(t)){const r=t.expression;return jl(r)||bp(r)||nf(r)}return!!t}function kI(e){if(yY.throwIfCancellationRequested(),!(!e||CA(e)))switch(e.kind){case 176:const t=e;B0(t,t.body);for(const l of t.parameters)hp(l,t)&&A1(l);break;case 174:case 177:case 178:case 173:Gde(e)&&B0(e,e.body);break;case 172:Gde(e)&&kCe(e);break;case 171:Gde(e)&&A1(e);break;case 273:const r=e;r.name&&A1(r.name);const{namedBindings:i}=r;if(i)if(i.kind===274)A1(i);else for(const l of i.elements)A1(l);break;case 304:B0(e,e.name);break;case 305:const{expression:o}=e;je(o)?A1(e,o):A1(e);break;case 208:case 303:case 260:{const l=e;Zo(l.name)?kI(l.name):kCe(l);break}case 262:const s=e.name;s&&je(s)&&PCe(s.text),B0(e,e.body);break;case 219:case 218:B0(e,e.body);break;case 266:I1(e);for(const l of e.members)mKe(l)||A1(l);z0();break;case 263:case 231:case 264:I1(e);for(const l of e.members)kI(l);z0();break;case 267:B0(e,GCe(e).body);break;case 277:{const l=e.expression,u=Wa(l)||sa(l)?l:Us(l)||Bs(l)?l.body:void 0;u?(I1(e),kI(u),z0()):A1(e);break}case 281:case 271:case 181:case 179:case 180:case 265:A1(e);break;case 213:case 226:{const l=Vl(e);switch(l){case 1:case 2:B0(e,e.right);return;case 6:case 3:{const u=e,p=u.left,h=l===3?p.expression:p;let f=0,b;je(h.expression)?(PCe(h.expression.text),b=h.expression):[f,b]=LCe(u,h.expression),l===6?Wa(u.right)&&u.right.properties.length>0&&(I1(u,b),Vo(u.right,kI),z0()):Bs(u.right)||Us(u.right)?B0(e,u.right,b):(I1(u,b),B0(e,u.right,p.name),z0()),MCe(f);return}case 7:case 9:{const u=e,p=l===7?u.arguments[0]:u.arguments[0].expression,h=u.arguments[1],[f,b]=LCe(e,p);I1(e,b),I1(e,ut(w.createIdentifier(h.text),h)),kI(e.arguments[2]),z0(),z0(),MCe(f);return}case 5:{const u=e,p=u.left,h=p.expression;if(je(h)&&Vg(p)!=="prototype"&&wD&&wD.has(h.text)){Bs(u.right)||Us(u.right)?B0(e,u.right,h):UE(p)&&(I1(u,h),B0(u.left,u.right,JL(p)),z0());return}break}case 4:case 0:case 8:break;default:C.assertNever(l)}}default:Fp(e)&&He(e.jsDoc,l=>{He(l.tags,u=>{im(u)&&A1(u)})}),Vo(e,kI)}}function gY(e,t){const r=new Map;Ks(e,(i,o)=>{const s=i.name||Po(i.node),l=s&&U5(s);if(!l)return!0;const u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(const p of u)if(wCe(p,i,o,t))return!1;return u.push(i),!0}else{const p=u;return wCe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function lKe(e,t,r,i){function o(u){return Bs(u)||xc(u)||ki(u)}const s=mr(t.node)||sa(t.node)?Vl(t.node):0,l=mr(e.node)||sa(e.node)?Vl(e.node):0;if(g2[s]&&g2[l]||o(e.node)&&g2[s]||o(t.node)&&g2[l]||Rc(e.node)&&Vde(e.node)&&g2[s]||Rc(t.node)&&g2[l]||Rc(e.node)&&Vde(e.node)&&o(t.node)||Rc(t.node)&&o(e.node)&&Vde(e.node)){let u=e.additionalNodes&&el(e.additionalNodes)||e.node;if(!Rc(e.node)&&!Rc(t.node)||o(e.node)||o(t.node)){const h=o(e.node)?e.node:o(t.node)?t.node:void 0;if(h!==void 0){const f=ut(w.createConstructorDeclaration(void 0,[],void 0),h),b=Bde(f);b.indent=e.indent+1,b.children=e.node===h?e.children:t.children,e.children=e.node===h?To([b],t.children||[t]):To(e.children||[{...e}],[b])}else(e.children||t.children)&&(e.children=To(e.children||[{...e}],t.children||[t]),e.children&&(gY(e.children,e),jde(e.children)));u=e.node=ut(w.createClassDeclaration(void 0,e.name||w.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=To(e.children,t.children),e.children&&gY(e.children,e);const p=t.node;return i.children[r-1].node.end===u.end?ut(u,{pos:u.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(ut(w.createClassDeclaration(void 0,e.name||w.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function wCe(e,t,r,i){return lKe(e,t,r,i)?!0:cKe(e.node,t.node,i)?(uKe(e,t),!0):!1}function cKe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(OCe(e,r)&&OCe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return aa(e)===aa(t);case 267:return WCe(e,t)&&qde(e)===qde(t);default:return!0}}function Vde(e){return!!(e.flags&16)}function OCe(e,t){const r=O_(e.parent)?e.parent.parent:e.parent;return r===t.node||Nr(t.additionalNodes,r)}function WCe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||WCe(e.body,t.body))}function uKe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=To(e.children,t.children),e.children&&(gY(e.children,e),jde(e.children))}function jde(e){e.sort(dKe)}function dKe(e,t){return BM(FCe(e.node),FCe(t.node))||nl(hY(e),hY(t))}function FCe(e){if(e.kind===267)return BCe(e);const t=Po(e);if(t&&cc(t)){const r=PS(t);return r&&ji(r)}switch(e.kind){case 218:case 219:case 231:return jCe(e);default:return}}function Ude(e,t){if(e.kind===267)return h2(BCe(e));if(t){const r=je(t)?t.text:$s(t)?"[".concat(U5(t.argumentExpression),"]"):U5(t);if(r.length>0)return h2(r)}switch(e.kind){case 312:const r=e;return dc(r)?'"'.concat(lg(lc(Ad(ha(r.fileName)))),'"'):"<global>";case 277:return wl(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Uy(e)&2048?"default":jCe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return"<unknown>"}}function pKe(e){const t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(const s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(hY(o)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(hY(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function zCe(e){return{text:Ude(e.node,e.name),kind:E1(e.node),kindModifiers:VCe(e.node),spans:Hde(e),nameSpan:e.name&&Jde(e.name),childItems:Ot(e.children,zCe)}}function fKe(e){return{text:Ude(e.node,e.name),kind:E1(e.node),kindModifiers:VCe(e.node),spans:Hde(e),childItems:Ot(e.children,t)||bY,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:Ude(r.node,r.name),kind:E1(r.node),kindModifiers:o2(r.node),spans:Hde(r),childItems:bY,indent:0,bolded:!1,grayed:!1}}}function Hde(e){const t=[Jde(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(Jde(r));return t}function BCe(e){return ku(e)?gc(e.name):qde(e)}function qde(e){const t=[om(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(om(e.name));return t.join(".")}function GCe(e){return e.body&&Ql(e.body)?GCe(e.body):e}function mKe(e){return!e.name||e.name.kind===167}function Jde(e){return e.kind===312?sb(e):Dd(e,CO)}function VCe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),o2(e)}function jCe(e){const{parent:t}=e;if(e.name&&xL(e.name)>0)return h2(Ns(e.name));if(ki(t))return h2(Ns(t.name));if(mr(t)&&t.operatorToken.kind===64)return U5(t.left).replace(HCe,"");if(bc(t))return U5(t.name);if(Uy(e)&2048)return"default";if(ui(e))return"<class>";if(sa(t)){let r=UCe(t.expression);if(r!==void 0){if(r=h2(r),r.length>vY)return"".concat(r," callback");const i=h2(Hi(t.arguments,o=>ds(o)||LA(o)?o.getText(CO):void 0).join(", "));return"".concat(r,"(").concat(i,") callback")}}return"<function>"}function UCe(e){if(je(e))return e.text;if(Fr(e)){const t=UCe(e.expression),r=e.name.text;return t===void 0?r:"".concat(t,".").concat(r)}else return}function _Ke(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function h2(e){return e=e.length>vY?e.substring(0,vY)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var HCe,vY,yY,CO,NO,ry,Kde,wD,bY,g2,hKe=T({"src/services/navigationBar.ts"(){ii(),HCe=/\s+/g,vY=150,NO=[],Kde=[],bY=[],g2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),Xde={};X(Xde,{getNavigationBarItems:()=>xCe,getNavigationTree:()=>RCe});var qCe=T({"src/services/_namespaces/ts.NavigationBar.ts"(){hKe()}});function hg(e,t){EY.set(e,t)}function gKe(e,t){return Wo(Qp(EY.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>G0(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function vKe(e,t,r,i){const o=EY.get(t);return o&&o.getEditsForAction(e,r,i)}var EY,JCe=T({"src/services/refactorProvider.ts"(){ii(),Nh(),EY=new Map}});function KCe(e,t=!0){const{file:r,program:i}=e,o=LI(e),s=fo(r,o.start),l=s.parent&&Uy(s.parent)&32&&t?s.parent:vO(s,r,o);if(!l||!Zi(l.parent)&&!(O_(l.parent)&&ku(l.parent.parent)))return{error:wo(m.Could_not_find_export_statement)};const u=i.getTypeChecker(),p=AKe(l.parent,u),h=Uy(l)||(wl(l)&&!l.isExportEquals?2080:0),f=!!(h&2048);if(!(h&32)||!f&&p.exports.has("default"))return{error:wo(m.This_file_already_has_a_default_export)};const b=A=>je(A)&&u.getSymbolAtLocation(A)?void 0:{error:wo(m.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const A=l;return A.name?b(A.name)||{exportNode:A,exportName:A.name,wasDefault:f,exportingModuleSymbol:p}:void 0}case 243:{const A=l;if(!(A.declarationList.flags&2)||A.declarationList.declarations.length!==1)return;const I=Xa(A.declarationList.declarations);return I.initializer?(C.assert(!f,"Can't have a default flag here"),b(I.name)||{exportNode:A,exportName:I.name,wasDefault:f,exportingModuleSymbol:p}):void 0}case 277:{const A=l;return A.isExportEquals?void 0:b(A.expression)||{exportNode:A,exportName:A.expression,wasDefault:f,exportingModuleSymbol:p}}default:return}}function yKe(e,t,r,i,o){bKe(e,r,i,t.getTypeChecker()),EKe(t,r,i,o)}function bKe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(wl(r)&&!r.isExportEquals){const l=r.expression,u=XCe(l.text,l.text);o.replaceNode(e,r,w.createExportDeclaration(void 0,!1,w.createNamedExports([u])))}else o.delete(e,C.checkDefined(CD(r,90),"Should find a default keyword in modifier list"));else{const l=C.checkDefined(CD(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,w.createToken(90));break;case 243:const u=Xa(r.declarationList.declarations);if(!Gs.Core.isSymbolReferencedInFile(i,s,e)&&!u.type){o.replaceNode(e,r,w.createExportDefault(C.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,l),o.insertNodeAfter(e,r,w.createExportDefault(w.createIdentifier(i.text)));break;default:C.fail("Unexpected exportNode kind ".concat(r.kind))}}}function EKe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){const l=e.getTypeChecker(),u=C.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Gs.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,p=>{if(r===p)return;const h=p.getSourceFile();t?SKe(h,p,o,r.text):TKe(h,p,o)})}function SKe(e,t,r,i){const{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,w.createIdentifier(i));break;case 276:case 281:{const l=o;r.replaceNode(e,l,Yde(i,l.name.text));break}case 273:{const l=o;C.assert(l.name===t,"Import clause name should match provided ref");const u=Yde(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,w.createNamedImports([u]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});const h=Ma(l.parent.moduleSpecifier)?EX(l.parent.moduleSpecifier,e):1,f=ty(void 0,[Yde(i,t.text)],l.parent.moduleSpecifier,h);r.insertNodeAfter(e,l.parent,f)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,u);break}case 205:const s=o;r.replaceNode(e,o,w.createImportTypeNode(s.argument,s.attributes,w.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:C.failBadSyntaxKind(o)}}function TKe(e,t,r){const i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,w.createIdentifier("default"));break;case 276:{const o=w.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 281:{r.replaceNode(e,i,XCe("default",i.name.text));break}default:C.assertNever(i,"Unexpected parent kind ".concat(i.kind))}}function Yde(e,t){return w.createImportSpecifier(!1,e===t?void 0:w.createIdentifier(e),w.createIdentifier(t))}function XCe(e,t){return w.createExportSpecifier(!1,e===t?void 0:w.createIdentifier(e),w.createIdentifier(t))}function AKe(e,t){if(Zi(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&zE(r.valueDeclaration)?t.getMergedSymbol(r):r}var SY,H5,q5,IKe=T({"src/services/refactors/convertExport.ts"(){ii(),Nh(),SY="Convert export",H5={name:"Convert default export to named export",description:wo(m.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},q5={name:"Convert named export to default export",description:wo(m.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},hg(SY,{kinds:[H5.kind,q5.kind],getAvailableActions:function(t){const r=KCe(t,t.triggerReason==="invoked");if(!r)return et;if(!Qg(r)){const i=r.wasDefault?H5:q5;return[{name:SY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:SY,description:wo(m.Convert_default_export_to_named_export),actions:[{...H5,notApplicableReason:r.error},{...q5,notApplicableReason:r.error}]}]:et},getEditsForAction:function(t,r){C.assert(r===H5.name||r===q5.name,"Unexpected action name");const i=KCe(t);return C.assert(i&&!Qg(i),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(t,s=>yKe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function YCe(e,t=!0){const{file:r}=e,i=LI(e),o=fo(r,i.start),s=t?zn(o,Oc):vO(o,r,i);if(!s||!Oc(s))return{error:"Selection is not an import declaration."};const l=i.start+i.length,u=S1(s,s.parent,r);if(u&&l>u.getStart())return;const{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:$Ce(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:wo(m.Could_not_find_namespace_import_or_named_imports)}:{error:wo(m.Could_not_find_import_clause)}}function $Ce(e,t){return FS(e.getCompilerOptions())&&CKe(t.parent.moduleSpecifier,e.getTypeChecker())}function xKe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?RKe(e,o,r,i.import,FS(t.getCompilerOptions())):ZCe(e,t,r,i.import,i.convertTo===1)}function RKe(e,t,r,i,o){let s=!1;const l=[],u=new Map;Gs.Core.eachSymbolReferenceInFile(i.name,t,e,b=>{if(!Kre(b.parent))s=!0;else{const A=QCe(b.parent).text;t.resolveName(A,b,-1,!0)&&u.set(A,!0),C.assert(DKe(b.parent)===b,"Parent expression should match id"),l.push(b.parent)}});const p=new Map;for(const b of l){const A=QCe(b).text;let I=p.get(A);I===void 0&&p.set(A,I=u.has(A)?cT(A,e):A),r.replaceNode(e,b,w.createIdentifier(I))}const h=[];p.forEach((b,A)=>{h.push(w.createImportSpecifier(!1,b===A?void 0:w.createIdentifier(A),w.createIdentifier(b)))});const f=i.parent.parent;s&&!o?r.insertNodeAfter(e,f,$de(f,void 0,h)):r.replaceNode(e,f,$de(f,s?w.createIdentifier(i.name.text):void 0,h))}function QCe(e){return Fr(e)?e.name:e.right}function DKe(e){return Fr(e)?e.expression:e.left}function ZCe(e,t,r,i,o=$Ce(t,i.parent)){const s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,p=new Set;i.elements.forEach(R=>{const M=s.getSymbolAtLocation(R.name);M&&p.add(M)});const h=u&&Ma(u)?Fu.moduleSpecifierToValidIdentifier(u.text,99):"module";function f(R){return!!Gs.Core.eachSymbolReferenceInFile(R.name,s,e,M=>{const N=s.resolveName(h,M,-1,!0);return N?p.has(N)?Ku(M.parent):!0:!1})}const A=i.elements.some(f)?cT(h,e):h,I=new Set;for(const R of i.elements){const M=(R.propertyName||R.name).text;Gs.Core.eachSymbolReferenceInFile(R.name,s,e,N=>{const O=w.createPropertyAccessExpression(w.createIdentifier(A),M);rp(N.parent)?r.replaceNode(e,N.parent,w.createPropertyAssignment(N.text,O)):Ku(N.parent)?I.add(R):r.replaceNode(e,N,O)})}if(r.replaceNode(e,i,o?w.createIdentifier(A):w.createNamespaceImport(w.createIdentifier(A))),I.size){const R=Wo(I.values(),M=>w.createImportSpecifier(M.isTypeOnly,M.propertyName&&w.createIdentifier(M.propertyName.text),w.createIdentifier(M.name.text)));r.insertNodeAfter(e,i.parent.parent,$de(l,void 0,R))}}function CKe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function $de(e,t,r){return w.createImportDeclaration(void 0,w.createImportClause(!1,t,r&&r.length?w.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var TY,J5,NKe=T({"src/services/refactors/convertImport.ts"(){ii(),Nh(),TY="Convert import",J5={0:{name:"Convert namespace import to named imports",description:wo(m.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:wo(m.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:wo(m.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},hg(TY,{kinds:EA(J5).map(e=>e.kind),getAvailableActions:function(t){const r=YCe(t,t.triggerReason==="invoked");if(!r)return et;if(!Qg(r)){const i=J5[r.convertTo];return[{name:TY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?EA(J5).map(i=>({name:TY,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):et},getEditsForAction:function(t,r){C.assert(St(EA(J5),s=>s.name===r),"Unexpected action name");const i=YCe(t);return C.assert(i&&!Qg(i),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(t,s=>xKe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function eNe(e,t=!0){const{file:r,startPosition:i}=e,o=dd(r),s=d5(LI(e)),l=s.pos===s.end&&t,u=PKe(r,i,s,l);if(!u||!Ui(u))return{error:wo(m.Selection_is_not_a_valid_type_node)};const p=e.program.getTypeChecker(),h=OKe(u,o);if(h===void 0)return{error:wo(m.No_type_could_be_extracted_from_this_type_node)};const f=WKe(u,h);if(!Ui(f))return{error:wo(m.Selection_is_not_a_valid_type_node)};const b=[];(Qy(f.parent)||uI(f.parent))&&s.end>u.end&&Ur(b,f.parent.types.filter(M=>t5(M,r,s.pos,s.end)));const A=b.length>1?b:f,I=MKe(p,A,h,r);if(!I)return{error:wo(m.No_type_could_be_extracted_from_this_type_node)};const R=AY(p,A);return{isJS:o,selection:A,enclosingNode:h,typeParameters:I,typeElements:R}}function PKe(e,t,r,i){const o=[()=>fo(e,t),()=>RD(e,t,()=>!0)];for(const s of o){const l=s(),u=t5(l,e,r.pos,r.end),p=zn(l,h=>h.parent&&Ui(h)&&!x1(r,h.parent,e)&&(i||u));if(p)return p}}function AY(e,t){if(t){if(Ao(t)){const r=[];for(const i of t){const o=AY(e,i);if(!o)return;Ur(r,o)}return r}if(uI(t)){const r=[],i=new Map;for(const o of t.types){const s=AY(e,o);if(!s||!s.every(l=>l.name&&Pm(i,hO(l.name))))return;Ur(r,s)}return r}else{if(GS(t))return AY(e,t.type);if(Tp(t))return t.members}}}function x1(e,t,r){return cO(e,wa(r.text,t.pos),t.end)}function MKe(e,t,r,i){const o=[],s=SA(t),l={pos:s[0].pos,end:s[s.length-1].end};for(const p of s)if(u(p))return;return o;function u(p){if(Nf(p)){if(je(p.typeName)){const h=p.typeName,f=e.resolveName(h.text,h,262144,!0);for(const b of(f==null?void 0:f.declarations)||et)if(gl(b)&&b.getSourceFile()===i){if(b.name.escapedText===h.escapedText&&x1(b,l,i))return!0;if(x1(r,b,i)&&!x1(l,b,i)){Tf(o,b);break}}}}else if(BS(p)){const h=zn(p,f=>dI(f)&&x1(f.extendsType,p,i));if(!h||!x1(l,h,i))return!0}else if(Kk(p)||Yk(p)){const h=zn(p.parent,Qo);if(h&&h.type&&x1(h.type,p,i)&&!x1(l,h,i))return!0}else if(lI(p)){if(je(p.exprName)){const h=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(h!=null&&h.valueDeclaration&&x1(r,h.valueDeclaration,i)&&!x1(l,h.valueDeclaration,i))return!0}else if(YE(p.exprName.left)&&!x1(l,p.parent,i))return!0}return i&&cI(p)&&Ts(i,p.pos).line===Ts(i,p.end).line&&pr(p,1),Vo(p,u)}}function LKe(e,t,r,i){const{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:p}=Qde(i),h=w.createTypeAliasDeclaration(void 0,r,s.map(f=>w.updateTypeParameterDeclaration(f,f.modifiers,f.name,f.constraint,void 0)),p);e.insertNodeBefore(t,o,TH(h),!0),e.replaceNodeRange(t,l,u,w.createTypeReferenceNode(r,s.map(f=>w.createTypeReferenceNode(f.name,void 0))),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.ExcludeWhitespace})}function kKe(e,t,r,i){var o;const{enclosingNode:s,typeParameters:l,typeElements:u}=i,p=w.createInterfaceDeclaration(void 0,r,l,void 0,u);ut(p,(o=u[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,TH(p),!0);const{firstTypeNode:h,lastTypeNode:f}=Qde(i);e.replaceNodeRange(t,h,f,w.createTypeReferenceNode(r,l.map(b=>w.createTypeReferenceNode(b.name,void 0))),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.ExcludeWhitespace})}function wKe(e,t,r,i,o){var s;SA(o.selection).forEach(R=>{pr(R,7168)});const{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:p,lastTypeNode:h,newTypeNode:f}=Qde(o),b=w.createJSDocTypedefTag(w.createIdentifier("typedef"),w.createJSDocTypeExpression(f),w.createIdentifier(i)),A=[];He(u,R=>{const M=eR(R),N=w.createTypeParameterDeclaration(void 0,R.name),O=w.createJSDocTemplateTag(w.createIdentifier("template"),M&&oa(M,f1),[N]);A.push(O)});const I=w.createJSDocComment(void 0,w.createNodeArray(To(A,[b])));if(i_(l)){const R=l.getStart(r),M=ny(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),I,{suffix:M+M+r.text.slice(E5(r.text,R-1),R)})}else e.insertNodeBefore(r,l,I,!0);e.replaceNodeRange(r,p,h,w.createTypeReferenceNode(i,u.map(R=>w.createTypeReferenceNode(R.name,void 0))))}function Qde(e){return Ao(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Qy(e.selection[0].parent)?w.createUnionTypeNode(e.selection):w.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function OKe(e,t){return zn(e,qi)||(t?zn(e,i_):void 0)}function WKe(e,t){var r;return(r=zn(e,i=>i===t?"quit":!!(Qy(i.parent)||uI(i.parent))))!=null?r:e}var IY,K5,X5,Y5,FKe=T({"src/services/refactors/extractType.ts"(){ii(),Nh(),IY="Extract type",K5={name:"Extract to type alias",description:wo(m.Extract_to_type_alias),kind:"refactor.extract.type"},X5={name:"Extract to interface",description:wo(m.Extract_to_interface),kind:"refactor.extract.interface"},Y5={name:"Extract to typedef",description:wo(m.Extract_to_typedef),kind:"refactor.extract.typedef"},hg(IY,{kinds:[K5.kind,X5.kind,Y5.kind],getAvailableActions:function(t){const r=eNe(t,t.triggerReason==="invoked");return r?Qg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:IY,description:wo(m.Extract_type),actions:[{...Y5,notApplicableReason:r.error},{...K5,notApplicableReason:r.error},{...X5,notApplicableReason:r.error}]}]:et:[{name:IY,description:wo(m.Extract_type),actions:r.isJS?[Y5]:Rn([K5],r.typeElements&&X5)}]:et},getEditsForAction:function(t,r){const{file:i}=t,o=eNe(t);C.assert(o&&!Qg(o),"Expected to find a range to extract");const s=cT("NewType",i),l=_r.ChangeTracker.with(t,h=>{switch(r){case K5.name:return C.assert(!o.isJS,"Invalid actionName/JS combo"),LKe(h,i,s,o);case Y5.name:return C.assert(o.isJS,"Invalid actionName/JS combo"),wKe(h,t,i,s,o);case X5.name:return C.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),kKe(h,i,s,o);default:C.fail("Unexpected action name")}}),u=i.fileName,p=EO(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:p}}})}});function Qg(e){return e.error!==void 0}function G0(e,t){return t?e.substr(0,t.length)===t:!0}var zKe=T({"src/services/refactors/helpers.ts"(){}});function tNe(e,t,r,i){var o,s;const l=i.getTypeChecker(),u=Vd(e,t),p=u.parent;if(je(u)){if(vk(p)&&TN(p)&&je(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:wo(m.Variables_with_multiple_declarations_cannot_be_inlined)};if(nNe(p))return;const h=rNe(p,l,e);return h&&{references:h,declaration:p,replacement:p.initializer}}if(r){let h=l.resolveName(u.text,u,111551,!1);if(h=h&&l.getMergedSymbol(h),((s=h==null?void 0:h.declarations)==null?void 0:s.length)!==1)return{error:wo(m.Variables_with_multiple_declarations_cannot_be_inlined)};const f=h.declarations[0];if(!vk(f)||!TN(f)||!je(f.name)||nNe(f))return;const b=rNe(f,l,e);return b&&{references:b,declaration:f,replacement:f.initializer}}return{error:wo(m.Could_not_find_variable_to_inline)}}}function nNe(e){const t=oa(e.parent.parent,kl);return St(t.modifiers,oI)}function rNe(e,t,r){const i=[],o=Gs.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Gs.isWriteAccessForReference(s)&&!rp(s.parent)||Ku(s.parent)||wl(s.parent)||lI(s.parent)||sL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function BKe(e,t){t=ll(t);const{parent:r}=e;return bt(r)&&(wN(t)<wN(r)||S5(r))||Qo(t)&&(WE(r)||Fr(r))||Fr(r)&&(bp(t)||Wa(t))?w.createParenthesizedExpression(t):je(e)&&rp(r)?w.createPropertyAssignment(e,t):t}var PO,xY,RY,GKe=T({"src/services/refactors/inlineVariable.ts"(){ii(),Nh(),PO="Inline variable",xY=wo(m.Inline_variable),RY={name:PO,description:xY,kind:"refactor.inline.variable"},hg(PO,{kinds:[RY.kind],getAvailableActions(e){const{file:t,program:r,preferences:i,startPosition:o,triggerReason:s}=e,l=tNe(t,o,s==="invoked",r);return l?wI.isRefactorErrorInfo(l)?i.provideRefactorNotApplicableReason?[{name:PO,description:xY,actions:[{...RY,notApplicableReason:l.error}]}]:et:[{name:PO,description:xY,actions:[RY]}]:et},getEditsForAction(e,t){C.assert(t===PO,"Unexpected refactor invoked");const{file:r,program:i,startPosition:o}=e,s=tNe(r,o,!0,i);if(!s||wI.isRefactorErrorInfo(s))return;const{references:l,declaration:u,replacement:p}=s;return{edits:_r.ChangeTracker.with(e,f=>{for(const b of l)f.replaceNode(r,b,BKe(b,p));f.delete(r,u)})}}})}});function VKe(e,t,r,i,o,s){const l=t.getTypeChecker(),u=Z5(e,r.all,l),p=cpe(e,t,o,r);i.createNewFile(e,p,jKe(e,u,i,r,t,o,p,s)),Zde(t,i,e.fileName,p,Vv(o))}function jKe(e,t,r,i,o,s,l,u){const p=o.getTypeChecker(),h=j6(e.statements,Cm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return $5(e,i.ranges,r),[...h,...i.all];const f=!JX(l,o,s,!!e.commonJsModuleIndicator),b=uf(e,u),A=rpe(e,t.oldFileImportsFromTargetFile,l,o,s,f,b);A&&s2(r,e,A,!0,u),epe(e,i.all,r,t.unusedImportsFromOldFile,p),$5(e,i.ranges,r),tpe(r,o,s,e,t.movedSymbols,l,b);const I=UKe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,f,b),R=ipe(e,i.all,t.oldFileImportsFromTargetFile,f);return I.length&&R.length?[...h,...I,4,...R]:[...h,...I,...R]}function UKe(e,t,r,i,o,s,l,u,p){const h=[];for(const I of e.statements)kO(I,R=>{Rn(h,wO(R,LO(R),M=>t.has(o.getSymbolAtLocation(M))))});let f;const b=[],A=PI();return r.forEach(I=>{if(I.declarations)for(const R of I.declarations){if(!ez(R))continue;const M=spe(R);if(!M)continue;const N=NY(R);A(N)&&lpe(e,N,M,i,u),$r(R,2048)?f=M:b.push(M.text)}}),Rn(h,Q5(e,f,b,lc(e.fileName),s,l,u,p)),h}var MO,DY,CY,HKe=T({"src/services/refactors/moveToNewFile.ts"(){ii(),Nh(),MO="Move to a new file",DY=wo(m.Move_to_a_new_file),CY={name:MO,description:DY,kind:"refactor.move.newFile"},hg(MO,{kinds:[CY.kind],getAvailableActions:function(t){const r=OO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:MO,description:DY,actions:[CY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:MO,description:DY,actions:[{...CY,notApplicableReason:wo(m.Selection_is_not_a_valid_statement_or_statements)}]}]:et},getEditsForAction:function(t,r){C.assert(r===MO,"Wrong refactor invoked");const i=C.checkDefined(OO(t));return{edits:_r.ChangeTracker.with(t,s=>VKe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function iNe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function qKe(e,t,r,i,o,s,l,u){const p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,oNe(t,r,Z5(t,o.all,p),s,o,i,l,u)),Zde(i,s,t.fileName,r,Vv(l));else{const h=C.checkDefined(i.getSourceFile(r)),f=Fu.createImportAdder(h,e.program,e.preferences,e.host);oNe(t,h,Z5(t,o.all,p,dXe(h,o.all,p)),s,o,i,l,u,f)}}function oNe(e,t,r,i,o,s,l,u,p){const h=s.getTypeChecker(),f=j6(e.statements,Cm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return $5(e,o.ranges,i),[...f,...o.all];const b=typeof t=="string"?t:t.fileName,A=!JX(b,s,l,!!e.commonJsModuleIndicator),I=uf(e,u),R=rpe(e,r.oldFileImportsFromTargetFile,b,s,l,A,I);R&&s2(i,e,R,!0,u),epe(e,o.all,i,r.unusedImportsFromOldFile,h),$5(e,o.ranges,i),tpe(i,s,l,e,r.movedSymbols,b,I);const M=JKe(e,b,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,h,s,l,A,I,p),N=ipe(e,o.all,r.oldFileImportsFromTargetFile,A);return typeof t!="string"&&(t.statements.length>0?uXe(i,s,N,t,o):i.insertNodesAtEndOfFile(t,N,!1),M.length>0&&s2(i,t,M,!0,u)),p&&p.writeFixes(i,I),M.length&&N.length?[...f,...M,4,...N]:[...f,...M,...N]}function JKe(e,t,r,i,o,s,l,u,p,h,f){const b=[];if(f)r.forEach((N,O)=>{try{f.addImportFromExportedSymbol(Eu(O,s),N)}catch(U){for(const K of e.statements)kO(K,ee=>{Rn(b,wO(ee,w.createStringLiteral(LO(ee).text),V=>r.has(s.getSymbolAtLocation(V))))})}});else{const N=l.getSourceFile(t);for(const O of e.statements)kO(O,U=>{var K;const ee=LO(U),V=l.getCompilerOptions(),se=l.getResolvedModuleFromModuleSpecifier(ee),G=(K=se==null?void 0:se.resolvedModule)==null?void 0:K.resolvedFileName;if(G&&N){const re=HF(V,N,N.fileName,G,sT(l,u));Rn(b,wO(U,MI(re,h),_e=>r.has(s.getSymbolAtLocation(_e))))}else Rn(b,wO(U,w.createStringLiteral(LO(U).text),re=>r.has(s.getSymbolAtLocation(re))))})}const A=l.getSourceFile(t);let I;const R=[],M=PI();return i.forEach(N=>{if(N.declarations)for(const O of N.declarations){if(!ez(O))continue;const U=spe(O);if(!U)continue;const K=NY(O);M(K)&&lpe(e,K,U,o,p),f&&s.isUnknownSymbol(N)?f.addImportFromExportedSymbol(Eu(N,s)):$r(O,2048)?I=U:R.push(U.text)}}),A?Rn(b,Q5(A,I,R,e.fileName,l,u,p,h)):Rn(b,Q5(e,I,R,e.fileName,l,u,p,h))}function Zde(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const l=ha(Yr(r,"..",i)),u=QM(s.fileName,l,o),p=s.statements[0]&&ti(s.statements[0].expression,Wa),h=p&&Tn(p.properties,f=>bc(f)&&Ma(f.name)&&f.name.text==="files");h&&_d(h.initializer)&&t.insertNodeInListAfter(s,es(h.initializer.elements),w.createStringLiteral(u),h.initializer.elements)}function $5(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function epe(e,t,r,i,o){for(const s of e.statements)Nr(t,s)||kO(s,l=>ope(e,l,r,u=>i.has(o.getSymbolAtLocation(u))))}function tpe(e,t,r,i,o,s,l){const u=t.getTypeChecker();for(const p of t.getSourceFiles())if(p!==i)for(const h of p.statements)kO(h,f=>{if(u.getSymbolAtLocation(LO(f))!==i.symbol)return;const b=N=>{const O=ns(N.parent)?v5(u,N.parent):Eu(u.getSymbolAtLocation(N),u);return!!O&&o.has(O)};ope(p,f,e,b);const A=Py(ri(i.path),s),I=HF(t.getCompilerOptions(),p,p.fileName,A,sT(t,r)),R=wO(f,MI(I,l),b);R&&e.insertNodeAfter(p,h,R);const M=KKe(f);M&&XKe(e,p,u,o,I,M,f,l)})}function KKe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return ti(e.name,je);default:return C.assertNever(e,"Unexpected node kind ".concat(e.kind))}}function XKe(e,t,r,i,o,s,l,u){const p=Fu.moduleSpecifierToValidIdentifier(o,99);let h=!1;const f=[];if(Gs.Core.eachSymbolReferenceInFile(s,r,t,b=>{Fr(b.parent)&&(h=h||!!r.resolveName(p,b,-1,!0),i.has(r.getSymbolAtLocation(b.parent.name))&&f.push(b))}),f.length){const b=h?cT(p,t):p;for(const A of f)e.replaceNode(t,A,w.createIdentifier(b));e.insertNodeAfter(t,l,YKe(l,p,o,u))}}function YKe(e,t,r,i){const o=w.createIdentifier(t),s=MI(r,i);switch(e.kind){case 272:return w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamespaceImport(o)),s,void 0);case 271:return w.createImportEqualsDeclaration(void 0,!1,o,w.createExternalModuleReference(s));case 260:return w.createVariableDeclaration(o,void 0,void 0,npe(s));default:return C.assertNever(e,"Unexpected node kind ".concat(e.kind))}}function npe(e){return w.createCallExpression(w.createIdentifier("require"),void 0,[e])}function LO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function kO(e,t){if(Oc(e))Ma(e.moduleSpecifier)&&t(e);else if(ru(e))xh(e.moduleReference)&&ds(e.moduleReference.expression)&&t(e);else if(kl(e))for(const r of e.declarationList.declarations)r.initializer&&Td(r.initializer,!0)&&t(r)}function rpe(e,t,r,i,o,s,l){let u;const p=[];return t.forEach(h=>{h.escapedName==="default"?u=w.createIdentifier(_5(h)):p.push(h.name)}),Q5(e,u,p,r,i,o,s,l)}function Q5(e,t,r,i,o,s,l,u){const p=Py(ri(e.path),i),h=HF(o.getCompilerOptions(),e,e.fileName,p,sT(o,s));if(l){const f=r.map(b=>w.createImportSpecifier(!1,void 0,w.createIdentifier(b)));return Kue(t,f,h,u)}else{C.assert(!t,"No default import should exist");const f=r.map(b=>w.createBindingElement(void 0,void 0,b));return f.length?aNe(w.createObjectBindingPattern(f),void 0,npe(MI(h,u))):void 0}}function aNe(e,t,r,i=2){return w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(e,void 0,t,r)],i))}function ipe(e,t,r,i){return Pi(t,o=>{if(lNe(o)&&!sNe(e,o,i)&&ppe(o,s=>{var l;return r.has(C.checkDefined((l=ti(s,x_))==null?void 0:l.symbol))})){const s=ZKe(ll(o),i);if(s)return s}return ll(o)})}function sNe(e,t,r,i){var o;return r?!nu(t)&&$r(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&ape(t).some(s=>e.symbol.exports.has(hl(s)))}function ope(e,t,r,i){switch(t.kind){case 272:$Ke(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:QKe(e,t,r,i);break;default:C.assertNever(t,"Unexpected import decl kind ".concat(t.kind))}}function $Ke(e,t,r,i){if(!t.importClause)return;const{name:o,namedBindings:s}=t.importClause,l=!o||i(o),u=!s||(s.kind===274?i(s.name):s.elements.length!==0&&s.elements.every(p=>i(p.name)));if(l&&u)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(u)r.replaceNode(e,t.importClause,w.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(const p of s.elements)i(p.name)&&r.delete(e,p)}}function QKe(e,t,r,i){const{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Td(t.initializer,!0)?r.delete(e,qc(t.parent)&&Le(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 207:break;case 206:if(o.elements.every(s=>je(s.name)&&i(s.name)))r.delete(e,qc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const s of o.elements)je(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function lNe(e){return C.assert(Zi(e.parent),"Node parent should be a SourceFile"),fNe(e)||kl(e)}function ZKe(e,t){return t?[eXe(e)]:tXe(e)}function eXe(e){const t=km(e)?To([w.createModifier(95)],kE(e)):void 0;switch(e.kind){case 262:return w.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const r=QS(e)?Ly(e):void 0;return w.updateClassDeclaration(e,To(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return w.updateVariableStatement(e,t,e.declarationList);case 267:return w.updateModuleDeclaration(e,t,e.name,e.body);case 266:return w.updateEnumDeclaration(e,t,e.name,e.members);case 265:return w.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return w.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return w.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return C.fail();default:return C.assertNever(e,"Unexpected declaration kind ".concat(e.kind))}}function tXe(e){return[e,...ape(e).map(cNe)]}function cNe(e){return w.createExpressionStatement(w.createBinaryExpression(w.createPropertyAccessExpression(w.createIdentifier("exports"),w.createIdentifier(e)),64,w.createIdentifier(e)))}function ape(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Hi(e.declarationList.declarations,t=>je(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return et;case 244:return C.fail("Can't export an ExpressionStatement");default:return C.assertNever(e,"Unexpected decl kind ".concat(e.kind))}}function wO(e,t,r){switch(e.kind){case 272:{const i=e.importClause;if(!i)return;const o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&nXe(i.namedBindings,r);return o||s?w.createImportDeclaration(void 0,w.createImportClause(i.isTypeOnly,o,s),ll(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{const i=rXe(e.name,r);return i?aNe(i,e.type,npe(t),e.parent.flags):void 0}default:return C.assertNever(e,"Unexpected import kind ".concat(e.kind))}}function nXe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?w.createNamedImports(r):void 0}}function rXe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const r=e.elements.filter(i=>i.propertyName||!je(i.name)||t(i.name));return r.length?w.createObjectBindingPattern(r):void 0}}}function spe(e){return nu(e)?ti(e.expression.left.name,je):ti(e.name,je)}function NY(e){switch(e.kind){case 260:return e.parent.parent;case 208:return NY(oa(e.parent.parent,t=>ki(t)||ns(t)));default:return e}}function lpe(e,t,r,i,o){if(!sNe(e,t,o,r))if(o)nu(t)||i.insertExportModifier(e,t);else{const s=ape(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(cNe))}}function cpe(e,t,r,i){const o=t.getTypeChecker();if(i){const s=Z5(e,i.all,o),l=ri(e.fileName),u=QN(e.fileName);return Yr(l,sXe(lXe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function iXe(e){const{file:t}=e,r=d5(LI(e)),{statements:i}=t;let o=Br(i,h=>h.end>r.pos);if(o===-1)return;const s=i[o],l=mNe(t,s);l&&(o=l.start);let u=Br(i,h=>h.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;const p=mNe(t,i[u]);return p&&(u=p.end),{toMove:i.slice(o,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function OO(e){const t=iXe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return dG(o,oXe,(l,u)=>{for(let p=l;p<u;p++)r.push(o[p]);i.push({first:o[l],afterLast:s})}),r.length===0?void 0:{all:r,ranges:i}}function upe(e){return Tn(e,t=>!!(t.transformFlags&2))}function oXe(e){return!aXe(e)&&!Cm(e)}function aXe(e){switch(e.kind){case 272:return!0;case 271:return!$r(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Td(t.initializer,!0));default:return!1}}function Z5(e,t,r,i=new Set){const o=new Set,s=new Map,l=new Set,u=f(upe(t));u&&s.set(u,!1);for(const b of t)ppe(b,A=>{o.add(C.checkDefined(nu(A)?r.getSymbolAtLocation(A.expression.left):A.symbol,"Need a symbol here"))});const p=new Set;for(const b of t)dpe(b,r,(A,I)=>{if(A.declarations){if(i.has(Eu(A,r))){p.add(A);return}for(const R of A.declarations)if(uNe(R)){const M=s.get(A);s.set(A,(M===void 0||M)&&I)}else ez(R)&&cXe(R)===e&&!o.has(A)&&l.add(A)}});for(const b of s.keys())p.add(b);const h=new Set;for(const b of e.statements)Nr(t,b)||(u&&b.transformFlags&2&&p.delete(u),dpe(b,r,A=>{o.has(A)&&h.add(A),p.delete(A)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function f(b){if(b===void 0)return;const A=r.getJsxNamespace(b),I=r.resolveName(A,b,1920,!0);return I&&St(I.declarations,uNe)?I:void 0}}function sXe(e,t,r,i){let o=e;for(let s=1;;s++){const l=Yr(r,o+t);if(!i.fileExists(l))return o;o="".concat(e,".").concat(s)}}function lXe(e,t){return gh(e,_5)||gh(t,_5)||"newFile"}function dpe(e,t,r){e.forEachChild(function i(o){if(je(o)&&!jg(o)){const s=t.getSymbolAtLocation(o);s&&r(s,I0(o))}else o.forEachChild(i)})}function ppe(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return qt(e.declarationList.declarations,r=>pNe(r.name,t));case 244:{const{expression:r}=e;return mr(r)&&Vl(r)===1?t(e):void 0}}}function uNe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return dNe(e);case 208:return ki(e.parent.parent)&&dNe(e.parent.parent);default:return!1}}function dNe(e){return Zi(e.parent.parent.parent)&&!!e.initializer&&Td(e.initializer,!0)}function ez(e){return fNe(e)&&Zi(e.parent)||ki(e)&&Zi(e.parent.parent.parent)}function cXe(e){return ki(e)?e.parent.parent.parent:e.parent}function pNe(e,t){switch(e.kind){case 80:return t(oa(e.parent,r=>ki(r)||ns(r)));case 207:case 206:return qt(e.elements,r=>Hc(r)?void 0:pNe(r.name,t));default:return C.assertNever(e,"Unexpected name kind ".concat(e.kind))}}function fNe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function uXe(e,t,r,i,o){var s;const l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){const h=t.getTypeChecker(),f=new Map;for(const b of o.all)lNe(b)&&$r(b,32)&&ppe(b,A=>{var I;const R=x_(A)?(I=u.get(A.symbol.escapedName))==null?void 0:I.declarations:void 0,M=qt(R,N=>Zl(N)?N:Ku(N)?ti(N.parent.parent,Zl):void 0);M&&M.moduleSpecifier&&f.set(M,(f.get(M)||new Set).add(A))});for(const[b,A]of Wo(f))if(b.exportClause&&Pf(b.exportClause)&&Le(b.exportClause.elements)){const I=b.exportClause.elements,R=rr(I,M=>Tn(Eu(M.symbol,h).declarations,N=>ez(N)&&A.has(N))===void 0);if(Le(R)===0){e.deleteNode(i,b),l.add(b);continue}Le(R)<Le(I)&&e.replaceNode(i,b,w.updateExportDeclaration(b,b.modifiers,b.isTypeOnly,w.updateNamedExports(b.exportClause,w.createNodeArray(R,I.hasTrailingComma)),b.moduleSpecifier,b.attributes))}}const p=ko(i.statements,h=>Zl(h)&&!!h.moduleSpecifier&&!l.has(h));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function mNe(e,t){if(js(t)){const r=t.symbol.declarations;if(r===void 0||Le(r)<=1||!Nr(r,t))return;const i=r[0],o=r[Le(r)-1],s=Hi(r,p=>jn(p)===e&&qi(p)?p:void 0),l=Br(e.statements,p=>p.end>=o.end),u=Br(e.statements,p=>p.end>=i.end);return{toMove:s,start:u,end:l}}}function dXe(e,t,r){const i=new Set;for(const o of e.imports){const s=DN(o);if(Oc(s)&&s.importClause&&s.importClause.namedBindings&&Kg(s.importClause.namedBindings))for(const l of s.importClause.namedBindings.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(Eu(u,r))}if(d3(s.parent)&&dm(s.parent.name))for(const l of s.parent.name.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(Eu(u,r))}}for(const o of t)dpe(o,r,s=>{const l=Eu(s,r);l.valueDeclaration&&jn(l.valueDeclaration)===e&&i.add(l)});return i}var tz,PY,MY,pXe=T({"src/services/refactors/moveToFile.ts"(){vle(),ii(),JCe(),tz="Move to file",PY=wo(m.Move_to_file),MY={name:"Move to file",description:PY,kind:"refactor.move.file"},hg(tz,{kinds:[MY.kind],getAvailableActions:function(t,r){const i=OO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:tz,description:PY,actions:[MY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:tz,description:PY,actions:[{...MY,notApplicableReason:wo(m.Selection_is_not_a_valid_statement_or_statements)}]}]:et:et},getEditsForAction:function(t,r,i){C.assert(r===tz,"Wrong refactor invoked");const o=C.checkDefined(OO(t)),{host:s,program:l}=t;C.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return QE(u)||XA(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?iNe(wo(m.Cannot_move_statements_to_the_selected_file)):{edits:_r.ChangeTracker.with(t,h=>qKe(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:iNe(wo(m.Cannot_move_to_file_selected_file_is_invalid))}})}});function fXe(e){const{file:t,startPosition:r,program:i}=e;return hNe(t,r,i)?[{name:LY,description:fpe,actions:[mpe]}]:et}function mXe(e){const{file:t,startPosition:r,program:i}=e,o=hNe(t,r,i);if(!o)return;const s=i.getTypeChecker(),l=o[o.length-1];let u=l;switch(l.kind){case 173:{u=w.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,h(o),l.type);break}case 174:{u=w.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,h(o),l.type,l.body);break}case 179:{u=w.updateCallSignature(l,l.typeParameters,h(o),l.type);break}case 176:{u=w.updateConstructorDeclaration(l,l.modifiers,h(o),l.body);break}case 180:{u=w.updateConstructSignature(l,l.typeParameters,h(o),l.type);break}case 262:{u=w.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,h(o),l.type,l.body);break}default:return C.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,A=>{A.replaceNodeRange(t,o[0],o[o.length-1],u)})};function h(A){const I=A[A.length-1];return js(I)&&I.body&&(A=A.slice(0,A.length-1)),w.createNodeArray([w.createParameterDeclaration(void 0,w.createToken(26),"args",void 0,w.createUnionTypeNode(Ot(A,f)))])}function f(A){const I=Ot(A.parameters,b);return pr(w.createTupleTypeNode(I),St(I,R=>!!Le(UR(R)))?0:1)}function b(A){C.assert(je(A.name));const I=ut(w.createNamedTupleMember(A.dotDotDotToken,A.name,A.questionToken,A.type||w.createKeywordTypeNode(133)),A),R=A.symbol&&A.symbol.getDocumentationComment(s);if(R){const M=jO(R);M.length&&R0(I,[{text:"*\n".concat(M.split("\n").map(N=>" * ".concat(N)).join("\n"),"\n "),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return I}}function _Ne(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function hNe(e,t,r){const i=fo(e,t),o=zn(i,_Ne);if(!o||js(o)&&o.body&&sO(o.body,t))return;const s=r.getTypeChecker(),l=o.symbol;if(!l)return;const u=l.declarations;if(Le(u)<=1||!Yn(u,A=>jn(A)===e)||!_Ne(u[0]))return;const p=u[0].kind;if(!Yn(u,A=>A.kind===p))return;const h=u;if(St(h,A=>!!A.typeParameters||St(A.parameters,I=>!!I.modifiers||!je(I.name))))return;const f=Hi(h,A=>s.getSignatureFromDeclaration(A));if(Le(f)!==Le(u))return;const b=s.getReturnTypeOfSignature(f[0]);if(Yn(f,A=>s.getReturnTypeOfSignature(A)===b))return h}var LY,fpe,mpe,_Xe=T({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){ii(),Nh(),LY="Convert overload list to single signature",fpe=wo(m.Convert_overload_list_to_single_signature),mpe={name:LY,description:fpe,kind:"refactor.rewrite.function.overloadList"},hg(LY,{kinds:[mpe.kind],getEditsForAction:mXe,getAvailableActions:fXe})}});function hXe(e){const{file:t,startPosition:r,triggerReason:i}=e,o=gNe(t,r,i==="invoked");return o?Qg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:kY,description:_pe,actions:[{...nz,notApplicableReason:o.error},{...WO,notApplicableReason:o.error}]}]:et:[{name:kY,description:_pe,actions:[o.addBraces?nz:WO]}]:et}function gXe(e,t){const{file:r,startPosition:i}=e,o=gNe(r,i);C.assert(o&&!Qg(o),"Expected applicable refactor info");const{expression:s,returnStatement:l,func:u}=o;let p;if(t===nz.name){const f=w.createReturnStatement(s);p=w.createBlock([f],!0),MD(s,f,r,3,!0)}else if(t===WO.name&&l){const f=s||w.createVoidZero();p=S5(f)?w.createParenthesizedExpression(f):f,SO(l,p,r,3,!1),MD(l,p,r,3,!1),d2(l,p,r,3,!1)}else C.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,f=>{f.replaceNode(r,u.body,p)})}}function gNe(e,t,r=!0,i){const o=fo(e,t),s=Gp(o);if(!s)return{error:wo(m.Could_not_find_a_containing_arrow_function)};if(!Us(s))return{error:wo(m.Containing_function_is_not_an_arrow_function)};if(!(!cf(s,o)||cf(s.body,o)&&!r)){if(G0(nz.kind,i)&&bt(s.body))return{func:s,addBraces:!0,expression:s.body};if(G0(WO.kind,i)&&Jo(s.body)&&s.body.statements.length===1){const l=Xa(s.body.statements);if(Mm(l)){const u=l.expression&&Wa(OR(l.expression,!1))?w.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var kY,_pe,nz,WO,vXe=T({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){ii(),Nh(),kY="Add or remove braces in an arrow function",_pe=wo(m.Add_or_remove_braces_in_an_arrow_function),nz={name:"Add braces to arrow function",description:wo(m.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},WO={name:"Remove braces from arrow function",description:wo(m.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},hg(kY,{kinds:[WO.kind],getEditsForAction:gXe,getAvailableActions:hXe})}}),yXe={},bXe=T({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){_Xe(),vXe()}});function EXe(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=yNe(t,r,i);if(!s)return et;const{selectedVariableDeclaration:l,func:u}=s,p=[],h=[];if(G0(zO.kind,o)){const f=l||Us(u)&&ki(u.parent)?void 0:wo(m.Could_not_convert_to_named_function);f?h.push({...zO,notApplicableReason:f}):p.push(zO)}if(G0(FO.kind,o)){const f=!l&&Us(u)?void 0:wo(m.Could_not_convert_to_anonymous_function);f?h.push({...FO,notApplicableReason:f}):p.push(FO)}if(G0(BO.kind,o)){const f=Bs(u)?void 0:wo(m.Could_not_convert_to_arrow_function);f?h.push({...BO,notApplicableReason:f}):p.push(BO)}return[{name:hpe,description:SNe,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function SXe(e,t){const{file:r,startPosition:i,program:o}=e,s=yNe(r,i,o);if(!s)return;const{func:l}=s,u=[];switch(t){case FO.name:u.push(...xXe(e,l));break;case zO.name:const p=IXe(l);if(!p)return;u.push(...RXe(e,l,p));break;case BO.name:if(!Bs(l))return;u.push(...DXe(e,l));break;default:return C.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function vNe(e){let t=!1;return e.forEachChild(function r(i){if(xD(i)){t=!0;return}!ui(i)&&!xc(i)&&!Bs(i)&&Vo(i,r)}),t}function yNe(e,t,r){const i=fo(e,t),o=r.getTypeChecker(),s=AXe(e,o,i.parent);if(s&&!vNe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const l=Gp(i);if(l&&(Bs(l)||Us(l))&&!cf(l.body,i)&&!vNe(l.body)&&!o.containsArgumentsReference(l))return Bs(l)&&ENe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function TXe(e){return ki(e)||qc(e)&&e.declarations.length===1}function AXe(e,t,r){if(!TXe(r))return;const o=(ki(r)?r:Xa(r.declarations)).initializer;if(o&&(Us(o)||Bs(o)&&!ENe(e,t,o)))return o}function bNe(e){if(bt(e)){const t=w.createReturnStatement(e),r=e.getSourceFile();return ut(t,e),xp(t),SO(e,t,r,void 0,!0),w.createBlock([t],!0)}else return e}function IXe(e){const t=e.parent;if(!ki(t)||!TN(t))return;const r=t.parent,i=r.parent;if(!(!qc(r)||!kl(i)||!je(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function xXe(e,t){const{file:r}=e,i=bNe(t.body),o=w.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return _r.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function RXe(e,t,r){const{file:i}=e,o=bNe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:p}=r;wX(u);const h=d0(s)&32|pd(t),f=w.createModifiersFromModifierFlags(h),b=w.createFunctionDeclaration(Le(f)?f:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?_r.ChangeTracker.with(e,A=>A.replaceNode(i,u,b)):_r.ChangeTracker.with(e,A=>{A.delete(i,s),A.insertNodeAfter(i,u,b)})}function DXe(e,t){const{file:r}=e,o=t.body.statements[0];let s;CXe(t.body,o)?(s=o.expression,xp(s),lT(o,s)):s=t.body;const l=w.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,w.createToken(39),s);return _r.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function CXe(e,t){return e.statements.length===1&&Mm(t)&&!!t.expression}function ENe(e,t,r){return!!r.name&&Gs.Core.isSymbolReferencedInFile(r.name,t,e)}var hpe,SNe,FO,zO,BO,NXe=T({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){ii(),Nh(),hpe="Convert arrow function or function expression",SNe=wo(m.Convert_arrow_function_or_function_expression),FO={name:"Convert to anonymous function",description:wo(m.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},zO={name:"Convert to named function",description:wo(m.Convert_to_named_function),kind:"refactor.rewrite.function.named"},BO={name:"Convert to arrow function",description:wo(m.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},hg(hpe,{kinds:[FO.kind,zO.kind,BO.kind],getEditsForAction:SXe,getAvailableActions:EXe})}}),PXe={},MXe=T({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){NXe()}});function LXe(e){const{file:t,startPosition:r}=e;return dd(t)||!INe(t,r,e.program.getTypeChecker())?et:[{name:iz,description:bpe,actions:[Epe]}]}function kXe(e,t){C.assert(t===iz,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=INe(r,i,o.getTypeChecker());if(!u||!s)return;const p=OXe(u,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,f=>wXe(r,o,l,f,u,p))}:{edits:[]}}function wXe(e,t,r,i,o,s){const l=s.signature,u=Ot(CNe(o,t,r),f=>ll(f));if(l){const f=Ot(CNe(l,t,r),b=>ll(b));h(l,f)}h(o,u);const p=KC(s.functionCalls,(f,b)=>nl(f.pos,b.pos));for(const f of p)if(f.arguments&&f.arguments.length){const b=ll(qXe(o,f.arguments),!0);i.replaceNodeRange(jn(f),Xa(f.arguments),es(f.arguments),b,{leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include})}function h(f,b){i.replaceNodeRangeWithNodes(e,Xa(f.parameters),es(f.parameters),b,{joiner:", ",indentation:0,leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include})}}function OXe(e,t,r){const i=KXe(e),o=Ll(e)?JXe(e):[],s=NE([...i,...o],Lv),l=t.getTypeChecker(),u=Pi(s,b=>Gs.getReferenceEntriesForNode(-1,b,t,t.getSourceFiles(),r)),p=h(u);return Yn(p.declarations,b=>Nr(s,b))||(p.valid=!1),p;function h(b){const A={accessExpressions:[],typeUsages:[]},I={functionCalls:[],declarations:[],classReferences:A,valid:!0},R=Ot(i,f),M=Ot(o,f),N=Ll(e),O=Ot(i,U=>gpe(U,l));for(const U of b){if(U.kind===Gs.EntryKind.Span){I.valid=!1;continue}if(Nr(O,f(U.node))){if(BXe(U.node.parent)){I.signature=U.node.parent;continue}const ee=ANe(U);if(ee){I.functionCalls.push(ee);continue}}const K=gpe(U.node,l);if(K&&Nr(O,K)){const ee=vpe(U);if(ee){I.declarations.push(ee);continue}}if(Nr(R,f(U.node))||r2(U.node)){if(TNe(U))continue;const V=vpe(U);if(V){I.declarations.push(V);continue}const se=ANe(U);if(se){I.functionCalls.push(se);continue}}if(N&&Nr(M,f(U.node))){if(TNe(U))continue;const V=vpe(U);if(V){I.declarations.push(V);continue}const se=WXe(U);if(se){A.accessExpressions.push(se);continue}if(Rc(e.parent)){const G=FXe(U);if(G){A.typeUsages.push(G);continue}}}I.valid=!1}return I}function f(b){const A=l.getSymbolAtLocation(b);return A&&LX(A,l)}}function gpe(e,t){const r=UO(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i==null?void 0:i.getSymbol();if(o&&!(xl(o)&6))return o}}function TNe(e){const t=e.node;if(np(t.parent)||Ah(t.parent)||ru(t.parent)||nb(t.parent)||Ku(t.parent)||wl(t.parent))return t}function vpe(e){if(Ju(e.node.parent))return e.node}function ANe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 213:case 214:const i=ti(r,I_);if(i&&i.expression===t)return i;break;case 211:const o=ti(r,Fr);if(o&&o.parent&&o.name===t){const l=ti(o.parent,I_);if(l&&l.expression===o)return l}break;case 212:const s=ti(r,$s);if(s&&s.parent&&s.argumentExpression===t){const l=ti(s.parent,I_);if(l&&l.expression===s)return l}break}}}function WXe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 211:const i=ti(r,Fr);if(i&&i.expression===t)return i;break;case 212:const o=ti(r,$s);if(o&&o.expression===t)return o;break}}}function FXe(e){const t=e.node;if(oT(t)===2||M3(t.parent))return t}function INe(e,t,r){const i=RD(e,t),o=Fie(i);if(!zXe(i)&&o&&GXe(o,r)&&cf(o,i)&&!(o.body&&cf(o.body,i)))return o}function zXe(e){const t=zn(e,iR);if(t){const r=zn(t,i=>!iR(i));return!!r&&js(r)}return!1}function BXe(e){return Sh(e)&&(hd(e.parent)||Tp(e.parent))}function GXe(e,t){var r;if(!VXe(e.parameters,t))return!1;switch(e.kind){case 262:return xNe(e)&&rz(e,t);case 174:if(Wa(e.parent)){const i=gpe(e.name,t);return((r=i==null?void 0:i.declarations)==null?void 0:r.length)===1&&rz(e,t)}return rz(e,t);case 176:return Rc(e.parent)?xNe(e.parent)&&rz(e,t):RNe(e.parent.parent)&&rz(e,t);case 218:case 219:return RNe(e.parent)}return!1}function rz(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function xNe(e){return e.name?!0:!!CD(e,90)}function VXe(e,t){return UXe(e)>=NNe&&Yn(e,r=>jXe(r,t))}function jXe(e,t){if(ng(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&je(e.name)}function RNe(e){return ki(e)&&dR(e)&&je(e.name)&&!e.type}function ype(e){return e.length>0&&xD(e[0].name)}function UXe(e){return ype(e)?e.length-1:e.length}function DNe(e){return ype(e)&&(e=w.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function HXe(e,t){return je(t)&&om(t)===e?w.createShorthandPropertyAssignment(e):w.createPropertyAssignment(e,t)}function qXe(e,t){const r=DNe(e.parameters),i=ng(es(r)),o=i?t.slice(0,r.length-1):t,s=Ot(o,(u,p)=>{const h=wY(r[p]),f=HXe(h,u);return xp(f.name),bc(f)&&xp(f.initializer),lT(u,f),f});if(i&&t.length>=r.length){const u=t.slice(r.length-1),p=w.createPropertyAssignment(wY(es(r)),w.createArrayLiteralExpression(u));s.push(p)}return w.createObjectLiteralExpression(s,!1)}function CNe(e,t,r){const i=t.getTypeChecker(),o=DNe(e.parameters),s=Ot(o,f),l=w.createObjectBindingPattern(s),u=b(o);let p;Yn(o,R)&&(p=w.createObjectLiteralExpression());const h=w.createParameterDeclaration(void 0,void 0,l,void 0,u,p);if(ype(e.parameters)){const M=e.parameters[0],N=w.createParameterDeclaration(void 0,void 0,M.name,void 0,M.type);return xp(N.name),lT(M.name,N.name),M.type&&(xp(N.type),lT(M.type,N.type)),w.createNodeArray([N,h])}return w.createNodeArray([h]);function f(M){const N=w.createBindingElement(void 0,void 0,wY(M),ng(M)&&R(M)?w.createArrayLiteralExpression():M.initializer);return xp(N),M.initializer&&N.initializer&&lT(M.initializer,N.initializer),N}function b(M){const N=Ot(M,A);return k_(w.createTypeLiteralNode(N),1)}function A(M){let N=M.type;!N&&(M.initializer||ng(M))&&(N=I(M));const O=w.createPropertySignature(void 0,wY(M),R(M)?w.createToken(58):M.questionToken,N);return xp(O),lT(M.name,O.name),M.type&&O.type&&lT(M.type,O.type),O}function I(M){const N=i.getTypeAtLocation(M);return f2(N,M,t,r)}function R(M){if(ng(M)){const N=i.getTypeAtLocation(M);return!i.isTupleType(N)}return i.isOptionalParameter(M)}}function wY(e){return om(e.name)}function JXe(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[C.checkDefined(CD(t,90),"Nameless class declaration should be a default export")];case 231:const i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function KXe(e){switch(e.kind){case 262:return e.name?[e.name]:[C.checkDefined(CD(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const r=C.checkDefined(Es(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return C.assertNever(e,"Unexpected function declaration kind ".concat(e.kind))}}var iz,NNe,bpe,Epe,XXe=T({"src/services/refactors/convertParamsToDestructuredObject.ts"(){ii(),Nh(),iz="Convert parameters to destructured object",NNe=1,bpe=wo(m.Convert_parameters_to_destructured_object),Epe={name:iz,description:bpe,kind:"refactor.rewrite.parameters.toDestructured"},hg(iz,{kinds:[Epe.kind],getEditsForAction:kXe,getAvailableActions:LXe})}}),YXe={},$Xe=T({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){XXe()}});function QXe(e){const{file:t,startPosition:r}=e,i=PNe(t,r),o=Spe(i),s=Ma(o),l={name:OY,description:WY,actions:[]};return s&&e.triggerReason!=="invoked"?et:og(o)&&(s||mr(o)&&Tpe(o).isValidConcatenation)?(l.actions.push(FY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...FY,notApplicableReason:wo(m.Can_only_convert_string_concatenations_and_string_literals)}),[l]):et}function PNe(e,t){const r=fo(e,t),i=Spe(r);return!Tpe(i).isValidConcatenation&&Gd(i.parent)&&mr(i.parent.parent)?i.parent.parent:r}function ZXe(e,t){const{file:r,startPosition:i}=e,o=PNe(r,i);switch(t){case WY:return{edits:eYe(e,o)};default:return C.fail("invalid action")}}function eYe(e,t){const r=Spe(t),i=e.file,o=rYe(Tpe(r),i),s=l0(i.text,r.end);if(s){const l=s[s.length-1],u={pos:s[0].pos,end:l.end};return _r.ChangeTracker.with(e,p=>{p.deleteRange(i,u),p.replaceNode(i,r,o)})}else return _r.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function tYe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Spe(e){return zn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(mr(r.parent)&&tYe(r.parent));default:return"quit"}})||e}function Tpe(e){const t=l=>{if(!mr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Ma(l)||rI(l)};const{nodes:u,operators:p,hasString:h,validOperators:f}=t(l.left);if(!(h||Ma(l.right)||rF(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};const b=l.operatorToken.kind===40,A=f&&b;return u.push(l.right),p.push(l.operatorToken),{nodes:u,operators:p,hasString:!0,validOperators:A}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function nYe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function MNe(e){const t=iI(e)||DH(e)?-2:-1;return gc(e).slice(1,t)}function LNe(e,t){const r=[];let i="",o="";for(;e<t.length;){const s=t[e];if(ds(s))i+=s.text,o+=nYe(gc(s).slice(1,-1)),r.push(e),e++;else if(rF(s)){i+=s.head.text,o+=MNe(s.head);break}else break}return[e,i,o,r]}function rYe({nodes:e,operators:t},r){const i=wNe(t,r),o=ONe(e,r,i),[s,l,u,p]=LNe(0,e);if(s===e.length){const b=w.createNoSubstitutionTemplateLiteral(l,u);return o(p,b),b}const h=[],f=w.createTemplateHead(l,u);o(p,f);for(let b=s;b<e.length;b++){const A=iYe(e[b]);i(b,A);const[I,R,M,N]=LNe(b+1,e);b=I-1;const O=b===e.length-1;if(rF(A)){const U=Ot(A.templateSpans,(K,ee)=>{kNe(K);const V=ee===A.templateSpans.length-1,se=K.literal.text+(V?R:""),G=MNe(K.literal)+(V?M:"");return w.createTemplateSpan(K.expression,O&&V?w.createTemplateTail(se,G):w.createTemplateMiddle(se,G))});h.push(...U)}else{const U=O?w.createTemplateTail(R,M):w.createTemplateMiddle(R,M);o(N,U),h.push(w.createTemplateSpan(A,U))}}return w.createTemplateExpression(f,h)}function kNe(e){const t=e.getSourceFile();d2(e,e.expression,t,3,!1),SO(e.expression,e.expression,t,3,!1)}function iYe(e){return Gd(e)&&(kNe(e),e=e.expression),e}var OY,WY,FY,wNe,ONe,oYe=T({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){ii(),Nh(),OY="Convert to template string",WY=wo(m.Convert_to_template_string),FY={name:OY,description:WY,kind:"refactor.rewrite.string"},hg(OY,{kinds:[FY.kind],getEditsForAction:ZXe,getAvailableActions:QXe}),wNe=(e,t)=>(r,i)=>{r<e.length&&d2(e[r],i,t,3,!1)},ONe=(e,t,r)=>(i,o)=>{for(;i.length>0;){const s=i.shift();d2(e[s],o,t,3,!1),r(s,o)}}}}),aYe={},sYe=T({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){oYe()}});function lYe(e){const t=WNe(e,e.triggerReason==="invoked");return t?Qg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:oz,description:GY,actions:[{...VY,notApplicableReason:t.error}]}]:et:[{name:oz,description:GY,actions:[VY]}]:et}function cYe(e,t){const r=WNe(e);return C.assert(r&&!Qg(r),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(e,o=>gYe(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function zY(e){return mr(e)||YR(e)}function uYe(e){return nu(e)||Mm(e)||kl(e)}function BY(e){return zY(e)||uYe(e)}function WNe(e,t=!0){const{file:r,program:i}=e,o=LI(e),s=o.length===0;if(s&&!t)return;const l=fo(r,o.start),u=a5(r,o.start+o.length),p=hc(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),h=s?_Ye(l):mYe(l,p),f=h&&BY(h)?hYe(h):void 0;if(!f)return{error:wo(m.Could_not_find_convertible_access_expression)};const b=i.getTypeChecker();return YR(f)?dYe(f,b):pYe(f)}function dYe(e,t){const r=e.condition,i=Ipe(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:wo(m.Could_not_find_convertible_access_expression)};if((Fr(r)||je(r))&&Ape(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(mr(r)){const o=FNe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:wo(m.Could_not_find_matching_access_expressions)}}}function pYe(e){if(e.operatorToken.kind!==56)return{error:wo(m.Can_only_convert_logical_AND_access_chains)};const t=Ipe(e.right);if(!t)return{error:wo(m.Could_not_find_convertible_access_expression)};const r=FNe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:wo(m.Could_not_find_matching_access_expressions)}}function FNe(e,t){const r=[];for(;mr(t)&&t.operatorToken.kind===56;){const o=Ape(vs(e),vs(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=Ape(e,t);return i&&r.push(i),r.length>0?r:void 0}function Ape(e,t){if(!(!je(t)&&!Fr(t)&&!$s(t)))return fYe(e,t)?t:void 0}function fYe(e,t){for(;(sa(e)||Fr(e)||$s(e))&&GO(e)!==GO(t);)e=e.expression;for(;Fr(e)&&Fr(t)||$s(e)&&$s(t);){if(GO(e)!==GO(t))return!1;e=e.expression,t=t.expression}return je(e)&&je(t)&&e.getText()===t.getText()}function GO(e){if(je(e)||nf(e))return e.getText();if(Fr(e))return GO(e.name);if($s(e))return GO(e.argumentExpression)}function mYe(e,t){for(;e.parent;){if(BY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function _Ye(e){for(;e.parent;){if(BY(e)&&!BY(e.parent))return e;e=e.parent}}function hYe(e){if(zY(e))return e;if(kl(e)){const t=zA(e),r=t==null?void 0:t.initializer;return r&&zY(r)?r:void 0}return e.expression&&zY(e.expression)?e.expression:void 0}function Ipe(e){if(e=vs(e),mr(e))return Ipe(e.left);if((Fr(e)||$s(e)||sa(e))&&!qu(e))return e}function zNe(e,t,r){if(Fr(t)||$s(t)||sa(t)){const i=zNe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=(o==null?void 0:o.getText())===t.expression.getText();if(s&&r.pop(),sa(t))return s?w.createCallChain(i,w.createToken(29),t.typeArguments,t.arguments):w.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Fr(t))return s?w.createPropertyAccessChain(i,w.createToken(29),t.name):w.createPropertyAccessChain(i,t.questionDotToken,t.name);if($s(t))return s?w.createElementAccessChain(i,w.createToken(29),t.argumentExpression):w.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function gYe(e,t,r,i,o){const{finalExpression:s,occurrences:l,expression:u}=i,p=l[l.length-1],h=zNe(t,s,l);h&&(Fr(h)||$s(h)||sa(h))&&(mr(u)?r.replaceNodeRange(e,p,s,h):YR(u)&&r.replaceNode(e,u,w.createBinaryExpression(h,w.createToken(61),u.whenFalse)))}var oz,GY,VY,vYe=T({"src/services/refactors/convertToOptionalChainExpression.ts"(){ii(),Nh(),oz="Convert to optional chain expression",GY=wo(m.Convert_to_optional_chain_expression),VY={name:oz,description:GY,kind:"refactor.rewrite.expression.optionalChain"},hg(oz,{kinds:[VY.kind],getEditsForAction:cYe,getAvailableActions:lYe})}}),yYe={},bYe=T({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){vYe()}});function BNe(e){const t=e.kind,r=xpe(e.file,LI(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return et;const R=[];return G0(FD.kind,t)&&R.push({name:OD,description:FD.description,actions:[{...FD,notApplicableReason:I(r.errors)}]}),G0(WD.kind,t)&&R.push({name:OD,description:WD.description,actions:[{...WD,notApplicableReason:I(r.errors)}]}),R}const o=xYe(i,e);if(o===void 0)return et;const s=[],l=new Map;let u;const p=[],h=new Map;let f,b=0;for(const{functionExtraction:R,constantExtraction:M}of o){if(G0(FD.kind,t)){const N=R.description;R.errors.length===0?l.has(N)||(l.set(N,!0),s.push({description:N,name:"function_scope_".concat(b),kind:FD.kind})):u||(u={description:N,name:"function_scope_".concat(b),notApplicableReason:I(R.errors),kind:FD.kind})}if(G0(WD.kind,t)){const N=M.description;M.errors.length===0?h.has(N)||(h.set(N,!0),p.push({description:N,name:"constant_scope_".concat(b),kind:WD.kind})):f||(f={description:N,name:"constant_scope_".concat(b),notApplicableReason:I(M.errors),kind:WD.kind})}b++}const A=[];return s.length?A.push({name:OD,description:wo(m.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&u&&A.push({name:OD,description:wo(m.Extract_function),actions:[u]}),p.length?A.push({name:OD,description:wo(m.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&f&&A.push({name:OD,description:wo(m.Extract_constant),actions:[f]}),A.length?A:et;function I(R){let M=R[0].messageText;return typeof M!="string"&&(M=M.messageText),M}}function GNe(e,t){const i=xpe(e.file,LI(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){const l=+o[1];return C.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),AYe(i,e,l)}const s=/^constant_scope_(\d+)$/.exec(t);if(s){const l=+s[1];return C.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),IYe(i,e,l)}C.fail("Unrecognized action name")}function xpe(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[eu(e,t.start,i,Au.cannotExtractEmpty)]};const o=i===0&&r,s=kue(e,t.start),l=a5(e,$l(t)),u=s&&l&&r?EYe(s,l,e):t,p=o?qYe(s):vO(s,e,u),h=o?p:vO(l,e,u);let f=0,b;if(!p||!h)return{errors:[eu(e,t.start,i,Au.cannotExtractRange)]};if(p.flags&16777216)return{errors:[eu(e,t.start,i,Au.cannotExtractJSDoc)]};if(p.parent!==h.parent)return{errors:[eu(e,t.start,i,Au.cannotExtractRange)]};if(p!==h){if(!jNe(p.parent))return{errors:[eu(e,t.start,i,Au.cannotExtractRange)]};const U=[];for(const K of p.parent.statements){if(K===p||U.length){const ee=O(K);if(ee)return{errors:ee};U.push(K)}if(K===h)break}return U.length?{targetRange:{range:U,facts:f,thisNode:b}}:{errors:[eu(e,t.start,i,Au.cannotExtractRange)]}}if(Mm(p)&&!p.expression)return{errors:[eu(e,t.start,i,Au.cannotExtractRange)]};const A=R(p),I=M(A)||O(A);if(I)return{errors:I};return{targetRange:{range:SYe(A),facts:f,thisNode:b}};function R(U){if(Mm(U)){if(U.expression)return U.expression}else if(kl(U)||qc(U)){const K=kl(U)?U.declarationList.declarations:U.declarations;let ee=0,V;for(const se of K)se.initializer&&(ee++,V=se.initializer);if(ee===1)return V}else if(ki(U)&&U.initializer)return U.initializer;return U}function M(U){if(je(nu(U)?U.expression:U))return[Or(U,Au.cannotExtractIdentifier)]}function N(U,K){let ee=U;for(;ee!==K;){if(ee.kind===172){aa(ee)&&(f|=32);break}else if(ee.kind===169){Gp(ee).kind===176&&(f|=32);break}else ee.kind===174&&aa(ee)&&(f|=32);ee=ee.parent}}function O(U){let K;if((_e=>{_e[_e.None=0]="None",_e[_e.Break=1]="Break",_e[_e.Continue=2]="Continue",_e[_e.Return=4]="Return"})(K||(K={})),C.assert(U.pos<=U.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),C.assert(!t_(U.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!qi(U)&&!(og(U)&&VNe(U))&&!Ppe(U))return[Or(U,Au.statementOrExpressionExpected)];if(U.flags&33554432)return[Or(U,Au.cannotExtractAmbientBlock)];const ee=cu(U);ee&&N(U,ee);let V,se=4,G;if(re(U),f&8){const _e=Fd(U,!1,!1);(_e.kind===262||_e.kind===174&&_e.parent.kind===210||_e.kind===218)&&(f|=16)}return V;function re(_e){if(V)return!0;if(Ju(_e)){const Q=_e.kind===260?_e.parent.parent:_e;if($r(Q,32))return(V||(V=[])).push(Or(_e,Au.cannotExtractExportedEntity)),!0}switch(_e.kind){case 272:return(V||(V=[])).push(Or(_e,Au.cannotExtractImport)),!0;case 277:return(V||(V=[])).push(Or(_e,Au.cannotExtractExportedEntity)),!0;case 108:if(_e.parent.kind===213){const Q=cu(_e);if(Q===void 0||Q.pos<t.start||Q.end>=t.start+t.length)return(V||(V=[])).push(Or(_e,Au.cannotExtractSuper)),!0}else f|=8,b=_e;break;case 219:Vo(_e,function Q(Y){if(xD(Y))f|=8,b=_e;else{if(ui(Y)||Qo(Y)&&!Us(Y))return!1;Vo(Y,Q)}});case 263:case 262:Zi(_e.parent)&&_e.parent.externalModuleIndicator===void 0&&(V||(V=[])).push(Or(_e,Au.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const ye=se;switch(_e.kind){case 245:se&=-5;break;case 258:se=0;break;case 241:_e.parent&&_e.parent.kind===258&&_e.parent.finallyBlock===_e&&(se=4);break;case 297:case 296:se|=1;break;default:Wy(_e,!1)&&(se|=3);break}switch(_e.kind){case 197:case 110:f|=8,b=_e;break;case 256:{const Q=_e.label;(G||(G=[])).push(Q.escapedText),Vo(_e,re),G.pop();break}case 252:case 251:{const Q=_e.label;Q?Nr(G,Q.escapedText)||(V||(V=[])).push(Or(_e,Au.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):se&(_e.kind===252?1:2)||(V||(V=[])).push(Or(_e,Au.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:f|=4;break;case 229:f|=2;break;case 253:se&4?f|=1:(V||(V=[])).push(Or(_e,Au.cannotExtractRangeContainingConditionalReturnStatement));break;default:Vo(_e,re);break}se=ye}}}function EYe(e,t,r){const i=e.getStart(r);let o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function SYe(e){if(qi(e))return[e];if(og(e))return nu(e.parent)?[e.parent]:e;if(Ppe(e))return e}function Rpe(e){return Us(e)?fj(e.body):js(e)||Zi(e)||O_(e)||ui(e)}function TYe(e){let t=iy(e.range)?Xa(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=cu(t);if(i){const o=zn(t,js);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===169&&(t=zn(t,i=>js(i)).parent),Rpe(t)&&(r.push(t),t.kind===312))return r}function AYe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=Dpe(e,t);return C.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),MYe(o,i[r],s[r],u,e,t)}function IYe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=Dpe(e,t);C.assert(!l[r].length,"The extraction went missing? How?"),C.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const p=bt(o)?o:o.statements[0].expression;return LYe(p,i[r],s[r],e.facts,t)}function xYe(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=Dpe(e,t);return r.map((l,u)=>{const p=RYe(l),h=DYe(l),f=js(l)?CYe(l):ui(l)?NYe(l):PYe(l);let b,A;return f===1?(b=dg(wo(m.Extract_to_0_in_1_scope),[p,"global"]),A=dg(wo(m.Extract_to_0_in_1_scope),[h,"global"])):f===0?(b=dg(wo(m.Extract_to_0_in_1_scope),[p,"module"]),A=dg(wo(m.Extract_to_0_in_1_scope),[h,"module"])):(b=dg(wo(m.Extract_to_0_in_1),[p,f]),A=dg(wo(m.Extract_to_0_in_1),[h,f])),u===0&&!ui(l)&&(A=dg(wo(m.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:b,errors:i[u]},constantExtraction:{description:A,errors:o[u]}}})}function Dpe(e,t){const{file:r}=t,i=TYe(e),o=UYe(e,r),s=HYe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function RYe(e){return js(e)?"inner function":ui(e)?"method":"function"}function DYe(e){return ui(e)?"readonly field":"constant"}function CYe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?"function '".concat(e.name.text,"'"):F5;case 219:return"arrow function";case 174:return"method '".concat(e.name.getText(),"'");case 177:return"'get ".concat(e.name.getText(),"'");case 178:return"'set ".concat(e.name.getText(),"'");default:C.assertNever(e,"Unexpected scope kind ".concat(e.kind))}}function NYe(e){return e.kind===263?e.name?"class '".concat(e.name.text,"'"):"anonymous class declaration":e.name?"class expression '".concat(e.name.text,"'"):"anonymous class expression"}function PYe(e){return e.kind===268?"namespace '".concat(e.parent.name.getText(),"'"):e.externalModuleIndicator?0:1}function MYe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){const p=u.program.getTypeChecker(),h=ls(u.program.getCompilerOptions()),f=Fu.createImportAdder(u.file,u.program,u.preferences,u.host),b=t.getSourceFile(),A=cT(ui(t)?"newMethod":"newFunction",b),I=sr(t),R=w.createIdentifier(A);let M;const N=[],O=[];let U;r.forEach((Me,Ce)=>{let Oe;if(!I){let be=p.getTypeOfSymbolAtLocation(Me.symbol,Me.node);be=p.getBaseTypeOfLiteralType(be),Oe=Fu.typeToAutoImportableTypeNode(p,f,be,t,h,1)}const At=w.createParameterDeclaration(void 0,void 0,Ce,void 0,Oe);N.push(At),Me.usage===2&&(U||(U=[])).push(Me),O.push(w.createIdentifier(Ce))});const ee=Wo(i.values(),Me=>({type:Me,declaration:wYe(Me,u.startPosition)})).sort(OYe),V=ee.length===0?void 0:Hi(ee,({declaration:Me})=>Me),se=V!==void 0?V.map(Me=>w.createTypeReferenceNode(Me.name,void 0)):void 0;if(bt(e)&&!I){const Me=p.getContextualType(e);M=p.typeToTypeNode(Me,t,1)}const{body:G,returnValueProperty:re}=FYe(e,s,U,o,!!(l.facts&1));xp(G);let _e;const ye=!!(l.facts&16);if(ui(t)){const Me=I?[]:[w.createModifier(123)];l.facts&32&&Me.push(w.createModifier(126)),l.facts&4&&Me.push(w.createModifier(134)),_e=w.createMethodDeclaration(Me.length?Me:void 0,l.facts&2?w.createToken(42):void 0,R,void 0,V,N,M,G)}else ye&&N.unshift(w.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),_e=w.createFunctionDeclaration(l.facts&4?[w.createToken(134)]:void 0,l.facts&2?w.createToken(42):void 0,R,V,N,M,G);const Q=_r.ChangeTracker.fromContext(u),Y=(iy(l.range)?es(l.range):l.range).end,oe=GYe(Y,t);oe?Q.insertNodeBefore(u.file,oe,_e,!0):Q.insertNodeAtEndOfScope(u.file,t,_e),f.writeFixes(Q);const he=[],Ae=WYe(t,l,A);ye&&O.unshift(w.createIdentifier("this"));let de=w.createCallExpression(ye?w.createPropertyAccessExpression(Ae,"call"):Ae,se,O);if(l.facts&2&&(de=w.createYieldExpression(w.createToken(42),de)),l.facts&4&&(de=w.createAwaitExpression(de)),Npe(e)&&(de=w.createJsxExpression(void 0,de)),s.length&&!U)if(C.assert(!re,"Expected no returnValueProperty"),C.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){const Me=s[0];he.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ll(Me.name),void 0,ll(Me.type),de)],Me.parent.flags)))}else{const Me=[],Ce=[];let Oe=s[0].parent.flags,At=!1;for(const Ue of s){Me.push(w.createBindingElement(void 0,void 0,ll(Ue.name)));const it=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(Ue)),t,1);Ce.push(w.createPropertySignature(void 0,Ue.symbol.name,void 0,it)),At=At||Ue.type!==void 0,Oe=Oe&Ue.parent.flags}const be=At?w.createTypeLiteralNode(Ce):void 0;be&&pr(be,1),he.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(w.createObjectBindingPattern(Me),void 0,be,de)],Oe)))}else if(s.length||U){if(s.length)for(const Ce of s){let Oe=Ce.parent.flags;Oe&2&&(Oe=Oe&-3|1),he.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(Ce.symbol.name,void 0,Ee(Ce.type))],Oe)))}re&&he.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(re,void 0,Ee(M))],1)));const Me=Cpe(s,U);re&&Me.unshift(w.createShorthandPropertyAssignment(re)),Me.length===1?(C.assert(!re,"Shouldn't have returnValueProperty here"),he.push(w.createExpressionStatement(w.createAssignment(Me[0].name,de))),l.facts&1&&he.push(w.createReturnStatement())):(he.push(w.createExpressionStatement(w.createAssignment(w.createObjectLiteralExpression(Me),de))),re&&he.push(w.createReturnStatement(w.createIdentifier(re))))}else l.facts&1?he.push(w.createReturnStatement(de)):iy(l.range)?he.push(w.createExpressionStatement(de)):he.push(de);iy(l.range)?Q.replaceNodeRangeWithNodes(u.file,Xa(l.range),es(l.range),he):Q.replaceNodeWithNodes(u.file,l.range,he);const ie=Q.getChanges(),Ne=(iy(l.range)?Xa(l.range):l.range).getSourceFile().fileName,qe=EO(ie,Ne,A,!1);return{renameFilename:Ne,renameLocation:qe,edits:ie};function Ee(Me){if(Me===void 0)return;const Ce=ll(Me);let Oe=Ce;for(;GS(Oe);)Oe=Oe.type;return Qy(Oe)&&Tn(Oe.types,At=>At.kind===157)?Ce:w.createUnionTypeNode([Ce,w.createKeywordTypeNode(157)])}}function LYe(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),l=t.getSourceFile(),u=Fr(e)&&!ui(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Ji(e.name)&&!p0(e.name)?e.name.text:cT(ui(t)?"newProperty":"newLocal",l),p=sr(t);let h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),f=zYe(vs(e),r);({variableType:h,initializer:f}=M(h,f)),xp(f);const b=_r.ChangeTracker.fromContext(o);if(ui(t)){C.assert(!p,"Cannot extract to a JS class");const N=[];N.push(w.createModifier(123)),i&32&&N.push(w.createModifier(126)),N.push(w.createModifier(148));const O=w.createPropertyDeclaration(N,u,void 0,h,f);let U=w.createPropertyAccessExpression(i&32?w.createIdentifier(t.name.getText()):w.createThis(),w.createIdentifier(u));Npe(e)&&(U=w.createJsxExpression(void 0,U));const K=e.pos,ee=VYe(K,t);b.insertNodeBefore(o.file,ee,O,!0),b.replaceNode(o.file,e,U)}else{const N=w.createVariableDeclaration(u,void 0,h,f),O=kYe(e,t);if(O){b.insertNodeBefore(o.file,O,N);const U=w.createIdentifier(u);b.replaceNode(o.file,e,U)}else if(e.parent.kind===244&&t===zn(e,Rpe)){const U=w.createVariableStatement(void 0,w.createVariableDeclarationList([N],2));b.replaceNode(o.file,e.parent,U)}else{const U=w.createVariableStatement(void 0,w.createVariableDeclarationList([N],2)),K=jYe(e,t);if(K.pos===0?b.insertNodeAtTopOfFile(o.file,U,!1):b.insertNodeBefore(o.file,K,U,!1),e.parent.kind===244)b.delete(o.file,e.parent);else{let ee=w.createIdentifier(u);Npe(e)&&(ee=w.createJsxExpression(void 0,ee)),b.replaceNode(o.file,e,ee)}}}const A=b.getChanges(),I=e.getSourceFile().fileName,R=EO(A,I,u,!0);return{renameFilename:I,renameLocation:R,edits:A};function M(N,O){if(N===void 0)return{variableType:N,initializer:O};if(!Bs(O)&&!Us(O)||O.typeParameters)return{variableType:N,initializer:O};const U=s.getTypeAtLocation(e),K=ch(s.getSignaturesOfType(U,0));if(!K)return{variableType:N,initializer:O};if(K.getTypeParameters())return{variableType:N,initializer:O};const ee=[];let V=!1;for(const se of O.parameters)if(se.type)ee.push(se);else{const G=s.getTypeAtLocation(se);G===s.getAnyType()&&(V=!0),ee.push(w.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,se.questionToken,se.type||s.typeToTypeNode(G,t,1),se.initializer))}if(V)return{variableType:N,initializer:O};if(N=void 0,Us(O))O=w.updateArrowFunction(O,km(e)?kE(e):void 0,O.typeParameters,ee,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.equalsGreaterThanToken,O.body);else{if(K&&K.thisParameter){const se=$c(ee);if(!se||je(se.name)&&se.name.escapedText!=="this"){const G=s.getTypeOfSymbolAtLocation(K.thisParameter,e);ee.splice(0,0,w.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(G,t,1)))}}O=w.updateFunctionExpression(O,km(e)?kE(e):void 0,O.asteriskToken,O.name,O.typeParameters,ee,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.body)}return{variableType:N,initializer:O}}}function kYe(e,t){let r;for(;e!==void 0&&e!==t;){if(ki(e)&&e.initializer===r&&qc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function wYe(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const o of i.declarations)(r===void 0||o.pos<r.pos)&&o.pos<t&&(r=o);return r}function OYe({type:e,declaration:t},{type:r,declaration:i}){return zne(t,i,"pos",nl)||Uu(e.symbol?e.symbol.getName():"",r.symbol?r.symbol.getName():"")||nl(e.id,r.id)}function WYe(e,t,r){const i=w.createIdentifier(r);if(ui(e)){const o=t.facts&32?w.createIdentifier(e.name.text):w.createThis();return w.createPropertyAccessExpression(o,i)}else return i}function FYe(e,t,r,i,o){const s=r!==void 0||t.length>0;if(Jo(e)&&!s&&i.size===0)return{body:w.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1;const p=w.createNodeArray(Jo(e)?e.statements.slice(0):[qi(e)?e:w.createReturnStatement(vs(e))]);if(s||i.size){const f=Bn(p,h,qi).slice();if(s&&!o&&qi(e)){const b=Cpe(t,r);b.length===1?f.push(w.createReturnStatement(b[0].name)):f.push(w.createReturnStatement(w.createObjectLiteralExpression(b)))}return{body:w.createBlock(f,!0),returnValueProperty:l}}else return{body:w.createBlock(p,!0),returnValueProperty:void 0};function h(f){if(!u&&Mm(f)&&s){const b=Cpe(t,r);return f.expression&&(l||(l="__return"),b.unshift(w.createPropertyAssignment(l,rt(f.expression,h,bt)))),b.length===1?w.createReturnStatement(b[0].name):w.createReturnStatement(w.createObjectLiteralExpression(b))}else{const b=u;u=u||js(f)||ui(f);const A=i.get(cs(f).toString()),I=A?ll(A):xn(f,h,void 0);return u=b,I}}}function zYe(e,t){return t.size?r(e):e;function r(i){const o=t.get(cs(i).toString());return o?ll(o):xn(i,r,void 0)}}function BYe(e){if(js(e)){const t=e.body;if(Jo(t))return t.statements}else{if(O_(e)||Zi(e))return e.statements;if(ui(e))return e.members}return et}function GYe(e,t){return Tn(BYe(t),r=>r.pos>=e&&js(r)&&!Ll(r))}function VYe(e,t){const r=t.members;C.assert(r.length>0,"Found no members");let i,o=!0;for(const s of r){if(s.pos>e)return i||r[0];if(o&&!Uo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?C.fail():i}function jYe(e,t){C.assert(!ui(t));let r;for(let i=e;i!==t;i=i.parent)Rpe(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(jNe(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&$R(i)?(C.assert(EP(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):C.checkDefined(o,"prevStatement failed to get set")}C.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Cpe(e,t){const r=Ot(e,o=>w.createShorthandPropertyAssignment(o.symbol.name)),i=Ot(t,o=>w.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function iy(e){return Ao(e)}function UYe(e,t){return iy(e.range)?{pos:Xa(e.range).getStart(t),end:es(e.range).getEnd()}:e.range}function HYe(e,t,r,i,o,s){const l=new Map,u=[],p=[],h=[],f=[],b=[],A=new Map,I=[];let R;const M=iy(e.range)?e.range.length===1&&nu(e.range[0])?e.range[0].expression:void 0:e.range;let N;if(M===void 0){const oe=e.range,he=Xa(oe).getStart(),Ae=es(oe).end;N=eu(i,he,Ae-he,Au.expressionExpected)}else o.getTypeAtLocation(M).flags&147456&&(N=Or(M,Au.uselessConstantType));for(const oe of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),h.push([]);const he=[];N&&he.push(N),ui(oe)&&sr(oe)&&he.push(Or(oe,Au.cannotExtractToJSClass)),Us(oe)&&!Jo(oe.body)&&he.push(Or(oe,Au.cannotExtractToExpressionArrowFunction)),f.push(he)}const O=new Map,U=iy(e.range)?w.createBlock(e.range):e.range,K=iy(e.range)?Xa(e.range):e.range,ee=V(K);if(G(U),ee&&!iy(e.range)&&!F_(e.range)){const oe=o.getContextualType(e.range);se(oe)}if(l.size>0){const oe=new Map;let he=0;for(let Ae=K;Ae!==void 0&&he<t.length;Ae=Ae.parent)if(Ae===t[he]&&(oe.forEach((de,ie)=>{u[he].typeParameterUsages.set(ie,de)}),he++),Mj(Ae))for(const de of ky(Ae)){const ie=o.getTypeAtLocation(de);l.has(ie.id.toString())&&oe.set(ie.id.toString(),ie)}C.assert(he===t.length,"Should have iterated all scopes")}if(b.length){const oe=Pj(t[0],t[0].parent)?t[0]:vh(t[0]);Vo(oe,ye)}for(let oe=0;oe<t.length;oe++){const he=u[oe];if(oe>0&&(he.usages.size>0||he.typeParameterUsages.size>0)){const ie=iy(e.range)?e.range[0]:e.range;f[oe].push(Or(ie,Au.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ui(t[oe])&&h[oe].push(Or(e.thisNode,Au.cannotExtractFunctionsContainingThisToMethod));let Ae=!1,de;if(u[oe].usages.forEach(ie=>{ie.usage===2&&(Ae=!0,ie.symbol.flags&106500&&ie.symbol.valueDeclaration&&yp(ie.symbol.valueDeclaration,8)&&(de=ie.symbol.valueDeclaration))}),C.assert(iy(e.range)||I.length===0,"No variable declarations expected if something was extracted"),Ae&&!iy(e.range)){const ie=Or(e.range,Au.cannotWriteInExpression);h[oe].push(ie),f[oe].push(ie)}else if(de&&oe>0){const ie=Or(de,Au.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[oe].push(ie),f[oe].push(ie)}else if(R){const ie=Or(R,Au.cannotExtractExportedEntity);h[oe].push(ie),f[oe].push(ie)}}return{target:U,usagesPerScope:u,functionErrorsPerScope:h,constantErrorsPerScope:f,exposedVariableDeclarations:I};function V(oe){return!!zn(oe,he=>Mj(he)&&ky(he).length!==0)}function se(oe){const he=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:Ae}=he.walkType(oe);for(const de of Ae)de.isTypeParameter()&&l.set(de.id.toString(),de)}function G(oe,he=1){if(ee){const Ae=o.getTypeAtLocation(oe);se(Ae)}if(Ju(oe)&&oe.symbol&&b.push(oe),wc(oe))G(oe.left,2),G(oe.right);else if(Xre(oe))G(oe.operand,2);else if(Fr(oe)||$s(oe))Vo(oe,G);else if(je(oe)){if(!oe.parent||Id(oe.parent)&&oe!==oe.parent.left||Fr(oe.parent)&&oe!==oe.parent.expression)return;re(oe,he,ig(oe))}else Vo(oe,G)}function re(oe,he,Ae){const de=_e(oe,he,Ae);if(de)for(let ie=0;ie<t.length;ie++){const ge=p[ie].get(de);ge&&u[ie].substitutions.set(cs(oe).toString(),ge)}}function _e(oe,he,Ae){const de=Q(oe);if(!de)return;const ie=Ta(de).toString(),ge=O.get(ie);if(ge&&ge>=he)return ie;if(O.set(ie,he),ge){for(const Ee of u)Ee.usages.get(oe.text)&&Ee.usages.set(oe.text,{usage:he,symbol:de,node:oe});return ie}const Ne=de.getDeclarations(),qe=Ne&&Tn(Ne,Ee=>Ee.getSourceFile()===i);if(qe&&!cO(r,qe.getStart(),qe.end)){if(e.facts&2&&he===2){const Ee=Or(oe,Au.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const Me of h)Me.push(Ee);for(const Me of f)Me.push(Ee)}for(let Ee=0;Ee<t.length;Ee++){const Me=t[Ee];if(o.resolveName(de.name,Me,de.flags,!1)!==de&&!p[Ee].has(ie)){const Oe=Y(de.exportSymbol||de,Me,Ae);if(Oe)p[Ee].set(ie,Oe);else if(Ae){if(!(de.flags&262144)){const At=Or(oe,Au.typeWillNotBeVisibleInTheNewScope);h[Ee].push(At),f[Ee].push(At)}}else u[Ee].usages.set(oe.text,{usage:he,symbol:de,node:oe})}}return ie}}function ye(oe){if(oe===e.range||iy(e.range)&&e.range.includes(oe))return;const he=je(oe)?Q(oe):o.getSymbolAtLocation(oe);if(he){const Ae=Tn(b,de=>de.symbol===he);if(Ae)if(ki(Ae)){const de=Ae.symbol.id.toString();A.has(de)||(I.push(Ae),A.set(de,!0))}else R=R||Ae}Vo(oe,ye)}function Q(oe){return oe.parent&&rp(oe.parent)&&oe.parent.name===oe?o.getShorthandAssignmentValueSymbol(oe.parent):o.getSymbolAtLocation(oe)}function Y(oe,he,Ae){if(!oe)return;const de=oe.getDeclarations();if(de&&de.some(ge=>ge.parent===he))return w.createIdentifier(oe.name);const ie=Y(oe.parent,he,Ae);if(ie!==void 0)return Ae?w.createQualifiedName(ie,w.createIdentifier(oe.name)):w.createPropertyAccessExpression(ie,oe.name)}}function qYe(e){return zn(e,t=>t.parent&&VNe(t)&&!mr(t.parent))}function VNe(e){const{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function jNe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function Npe(e){return Ppe(e)||(mg(e)||JS(e)||c1(e))&&(mg(e.parent)||c1(e.parent))}function Ppe(e){return Ma(e)&&e.parent&&F_(e.parent)}var OD,WD,FD,Au,Mpe,JYe=T({"src/services/refactors/extractSymbol.ts"(){ii(),Nh(),OD="Extract Symbol",WD={name:"Extract Constant",description:wo(m.Extract_constant),kind:"refactor.extract.constant"},FD={name:"Extract Function",description:wo(m.Extract_function),kind:"refactor.extract.function"},hg(OD,{kinds:[WD.kind,FD.kind],getEditsForAction:GNe,getAvailableActions:BNe}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(Au||(Au={})),Mpe=(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))(Mpe||{})}}),UNe={};X(UNe,{Messages:()=>Au,RangeFacts:()=>Mpe,getRangeToExtract:()=>xpe,getRefactorActionsToExtractSymbol:()=>BNe,getRefactorEditsToExtractSymbol:()=>GNe});var KYe=T({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){JYe()}}),az,jY,UY,XYe=T({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){ii(),Nh(),az="Generate 'get' and 'set' accessors",jY=wo(m.Generate_get_and_set_accessors),UY={name:az,description:jY,kind:"refactor.rewrite.property.generateAccessors"},hg(az,{kinds:[UY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=Fu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);C.assert(i&&!Qg(i),"Expected applicable refactor info");const o=Fu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;const s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(je(l)?0:-1)+EO(o,s,l.text,Io(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return et;const t=Fu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Qg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:az,description:jY,actions:[{...UY,notApplicableReason:t.error}]}]:et:[{name:az,description:jY,actions:[UY]}]:et}})}}),YYe={},$Ye=T({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){XYe()}});function QYe(e){const t=HNe(e);if(t&&!Qg(t))return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,i=>e$e(e.file,i,t.declaration,t.returnTypeNode))}}function ZYe(e){const t=HNe(e);return t?Qg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:sz,description:HY,actions:[{...lz,notApplicableReason:t.error}]}]:et:[{name:sz,description:HY,actions:[lz]}]:et}function e$e(e,t,r,i){const o=Es(r,22,e),s=Us(r)&&o===void 0,l=s?Xa(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,w.createToken(21)),t.insertNodeAfter(e,l,w.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function HNe(e){if(sr(e.file)||!G0(lz.kind,e.kind))return;const t=Vd(e.file,e.startPosition),r=zn(t,l=>Jo(l)||l.parent&&Us(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":t$e(l));if(!r||!r.body||r.type)return{error:wo(m.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),o=n$e(i,r);if(!o)return{error:wo(m.Could_not_determine_function_return_type)};const s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function t$e(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function n$e(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Hi(i,o=>o.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var sz,HY,lz,r$e=T({"src/services/refactors/inferFunctionReturnType.ts"(){ii(),Nh(),sz="Infer function return type",HY=wo(m.Infer_function_return_type),lz={name:sz,description:HY,kind:"refactor.rewrite.function.returnType"},hg(sz,{kinds:[lz.kind],getEditsForAction:QYe,getAvailableActions:ZYe})}}),i$e={},o$e=T({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){r$e()}}),wI={};X(wI,{addExportToChanges:()=>lpe,addExports:()=>ipe,addNewFileToTsconfig:()=>Zde,addOrRemoveBracesToArrowFunction:()=>yXe,containsJsx:()=>upe,convertArrowFunctionOrFunctionExpression:()=>PXe,convertParamsToDestructuredObject:()=>YXe,convertStringOrTemplateLiteral:()=>aYe,convertToOptionalChainExpression:()=>yYe,createNewFileName:()=>cpe,createOldFileImportsFromTargetFile:()=>rpe,deleteMovedStatements:()=>$5,deleteUnusedImports:()=>ope,deleteUnusedOldImports:()=>epe,doChangeNamedToNamespaceOrDefault:()=>ZCe,extractSymbol:()=>UNe,filterImport:()=>wO,forEachImportInStatement:()=>kO,generateGetAccessorAndSetAccessor:()=>YYe,getApplicableRefactors:()=>gKe,getEditsForRefactor:()=>vKe,getStatementsToMove:()=>OO,getTopLevelDeclarationStatement:()=>NY,getUsageInfo:()=>Z5,inferFunctionReturnType:()=>i$e,isRefactorErrorInfo:()=>Qg,isTopLevelDeclaration:()=>ez,makeImportOrRequire:()=>Q5,moduleSpecifierFromImport:()=>LO,nameOfTopLevelDeclaration:()=>spe,refactorKindBeginsWith:()=>G0,registerRefactor:()=>hg,updateImportsInOtherFiles:()=>tpe});var Nh=T({"src/services/_namespaces/ts.refactor.ts"(){JCe(),IKe(),NKe(),FKe(),zKe(),GKe(),HKe(),pXe(),bXe(),MXe(),$Xe(),sYe(),bYe(),KYe(),$Ye(),o$e()}});function qNe(e,t,r,i){const o=Lpe(e,t,r,i);C.assert(o.spans.length%3===0);const s=o.spans,l=[];for(let u=0;u<s.length;u+=3)l.push({textSpan:yu(s[u],s[u+1]),classificationType:s[u+2]});return l}function Lpe(e,t,r,i){return{spans:a$e(e,r,i,t),endOfLineState:0}}function a$e(e,t,r,i){const o=[];return e&&t&&s$e(e,t,r,(l,u,p)=>{o.push(l.getStart(t),l.getWidth(t),(u+1<<8)+p)},i),o}function s$e(e,t,r,i,o){const s=e.getTypeChecker();let l=!1;function u(p){switch(p.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!p||!v4(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;const h=l;if((mg(p)||JS(p))&&(l=!0),TP(p)&&(l=!1),je(p)&&!l&&!d$e(p)&&!iP(p.escapedText)){let f=s.getSymbolAtLocation(p);if(f){f.flags&2097152&&(f=s.getAliasedSymbol(f));let b=l$e(f,oT(p));if(b!==void 0){let A=0;p.parent&&(ns(p.parent)||Wpe.get(p.parent.kind)===b)&&p.parent.name===p&&(A=1),b===6&&KNe(p)&&(b=9),b=c$e(s,p,b);const I=f.valueDeclaration;if(I){const R=d0(I),M=Wv(I);R&256&&(A|=2),R&1024&&(A|=4),b!==0&&b!==2&&(R&8||M&2||f.getFlags()&8)&&(A|=8),(b===7||b===10)&&u$e(I,t)&&(A|=32),e.isSourceFileDefaultLibrary(I.getSourceFile())&&(A|=16)}else f.declarations&&f.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(A|=16);i(p,b,A)}}}Vo(p,u),l=h}u(t)}function l$e(e,t){const r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&ns(i)&&(i=JNe(i)),i&&Wpe.get(i.kind)}function c$e(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||p$e(t))return r===9?11:10}}return r}function u$e(e,t){return ns(e)&&(e=JNe(e)),ki(e)?(!Zi(e.parent.parent.parent)||d1(e.parent))&&e.getSourceFile()===t:xc(e)?!Zi(e.parent)&&e.getSourceFile()===t:!1}function JNe(e){for(;;)if(ns(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function d$e(e){const t=e.parent;return t&&(Ah(t)||np(t)||nb(t))}function p$e(e){for(;KNe(e);)e=e.parent;return sa(e.parent)&&e.parent.expression===e}function KNe(e){return Id(e.parent)&&e.parent.right===e||Fr(e.parent)&&e.parent.name===e}var kpe,wpe,Ope,Wpe,XNe=T({"src/services/classifier2020.ts"(){ii(),kpe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(kpe||{}),wpe=(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))(wpe||{}),Ope=(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))(Ope||{}),Wpe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function YNe(e,t,r,i){const o=mL(e)?new YY(e,t,r):e===80?new QY(80,t,r):e===81?new ZY(81,t,r):new Gpe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function f$e(e,t){if(!mL(e.kind))return et;const r=[];if(k4(e))return e.forEachChild(l=>{r.push(l)}),r;Qu.setText((t||e.getSourceFile()).text);let i=e.pos;const o=l=>{cz(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{cz(r,i,l.pos,e),r.push(m$e(l,e)),i=l.end};return He(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),cz(r,i,e.end,e),Qu.setText(void 0),r}function cz(e,t,r,i){for(Qu.resetTokenState(t);t<r;){const o=Qu.scan(),s=Qu.getTokenEnd();if(s<=r){if(o===80){if(cae(i))continue;C.fail("Did not expect ".concat(C.formatSyntaxKind(i.kind)," to have an Identifier in its trivia"))}e.push(YNe(o,t,s,i))}if(t=s,o===1)break}}function m$e(e,t){const r=YNe(358,e.pos,e.end,t);r._children=[];let i=e.pos;for(const o of e)cz(r._children,i,o.pos,t),r._children.push(o),i=o.end;return cz(r._children,i,e.end,t),r}function $Ne(e){return _0(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function qY(e,t){if(!e)return et;let r=j0.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some($Ne))){const i=new Set;for(const o of e){const s=QNe(t,o,l=>{var u;if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualJsDocTags(o,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function uz(e,t){if(!e)return et;let r=j0.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some($Ne))){const i=new Set;for(const o of e){const s=QNe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(PD(),r))}}return r}function QNe(e,t,r){var i;const o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;const s=vc(t);return qt(NN(o),l=>{const u=e.getTypeAtLocation(l),p=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,h=e.getPropertyOfType(p,t.symbol.name);return h?r(h):void 0})}function _$e(){return{getNodeConstructor:()=>YY,getTokenConstructor:()=>Gpe,getIdentifierConstructor:()=>QY,getPrivateIdentifierConstructor:()=>ZY,getSourceFileConstructor:()=>iPe,getSymbolConstructor:()=>tPe,getTypeConstructor:()=>nPe,getSignatureConstructor:()=>rPe,getSourceMapSourceConstructor:()=>oPe}}function VO(e){let t=!0;for(const i in e)if(Cs(e,i)&&!ZNe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Cs(e,i)){const o=ZNe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function ZNe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function jO(e){return e?Ot(e,t=>t.text).join(""):""}function dz(){return{target:1,jsx:1}}function JY(){return Fu.getSupportedErrorCodes()}function ePe(e,t,r){e.version=r,e.scriptSnapshot=t}function pz(e,t,r,i,o,s){const l=dw(e,DD(t),r,o,s);return ePe(l,t,i),l}function KY(e,t,r,i,o){if(i&&r!==e.version){let l;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",p=$l(i.span)!==e.text.length?e.text.substr($l(i.span)):"";if(i.newLength===0)l=u&&p?u+p:u||p;else{const f=t.getText(i.span.start,i.span.start+i.newLength);l=u&&p?u+f+p:u?u+f:f+p}const h=aq(e,l,i,o);return ePe(h,t,r),h.nameTable=void 0,e!==h&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),h}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return pz(e.fileName,t,s,r,!0,e.scriptKind)}function Fpe(e,t=Ede(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;const s=new aPe(e);let l,u,p=0;const h=e.getCancellationToken?new lPe(e.getCancellationToken()):sPe,f=e.getCurrentDirectory();Goe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function b(L){e.log&&e.log(L)}const A=PR(e),I=Mu(A),R=wde({useCaseSensitiveFileNames:()=>A,getCurrentDirectory:()=>f,getProgram:U,fileExists:ia(e,e.fileExists),readFile:ia(e,e.readFile),getDocumentPositionMapper:ia(e,e.getDocumentPositionMapper),getSourceFileLike:ia(e,e.getSourceFileLike),log:b});function M(L){const me=l.getSourceFile(L);if(!me){const q=new Error("Could not find source file: '".concat(L,"'."));throw q.ProgramFiles=l.getSourceFiles().map(fe=>fe.fileName),q}return me}function N(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():O()}function O(){var L,me,q;if(C.assert(o!==2),e.getProjectVersion){const to=e.getProjectVersion();if(to){if(u===to&&!((L=e.hasChangedAutomaticTypeDirectiveNames)!=null&&L.call(e)))return;u=to}}const fe=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==fe&&(b("TypeRoots version has changed; provide new program"),l=void 0,p=fe);const Ve=e.getScriptFileNames().slice(),ke=e.getCompilationSettings()||dz(),Tt=e.hasInvalidatedResolutions||$m,kt=ia(e,e.hasInvalidatedLibResolutions)||$m,nn=ia(e,e.hasChangedAutomaticTypeDirectiveNames),En=(me=e.getProjectReferences)==null?void 0:me.call(e);let nr,lr={getSourceFile:va,getSourceFileByPath:Wl,getCancellationToken:()=>h,getCanonicalFileName:I,useCaseSensitiveFileNames:()=>A,getNewLine:()=>Hv(ke),getDefaultLibFileName:to=>e.getDefaultLibFileName(to),writeFile:ts,getCurrentDirectory:()=>f,fileExists:to=>e.fileExists(to),readFile:to=>e.readFile&&e.readFile(to),getSymlinkCache:ia(e,e.getSymlinkCache),realpath:ia(e,e.realpath),directoryExists:to=>Zm(to,e),getDirectories:to=>e.getDirectories?e.getDirectories(to):[],readDirectory:(to,za,La,ys,tc)=>(C.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(to,za,La,ys,tc)),onReleaseOldSourceFile:Qt,onReleaseParsedCommandLine:Ja,hasInvalidatedResolutions:Tt,hasInvalidatedLibResolutions:kt,hasChangedAutomaticTypeDirectiveNames:nn,trace:ia(e,e.trace),resolveModuleNames:ia(e,e.resolveModuleNames),getModuleResolutionCache:ia(e,e.getModuleResolutionCache),createHash:ia(e,e.createHash),resolveTypeReferenceDirectives:ia(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ia(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ia(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:ia(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:ia(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:vi,jsDocParsingMode:e.jsDocParsingMode};const ai=lr.getSourceFile,{getSourceFileWithCache:si}=Uw(lr,to=>il(to,f,I),(...to)=>ai.call(lr,...to));lr.getSourceFile=si,(q=e.setCompilerHost)==null||q.call(e,lr);const Kn={useCaseSensitiveFileNames:A,fileExists:to=>lr.fileExists(to),readFile:to=>lr.readFile(to),directoryExists:to=>lr.directoryExists(to),getDirectories:to=>lr.getDirectories(to),realpath:lr.realpath,readDirectory:(...to)=>lr.readDirectory(...to),trace:lr.trace,getCurrentDirectory:lr.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:ts},Hr=t.getKeyForCompilationSettings(ke);let bo=new Set;if(qJ(l,Ve,ke,(to,za)=>e.getScriptVersion(za),to=>lr.fileExists(to),Tt,kt,nn,vi,En)){lr=void 0,nr=void 0,bo=void 0;return}l=A7({rootNames:Ve,options:ke,host:lr,oldProgram:l,projectReferences:En}),lr=void 0,nr=void 0,bo=void 0,R.clearCache(),l.getTypeChecker();return;function vi(to){const za=il(to,f,I),La=nr==null?void 0:nr.get(za);if(La!==void 0)return La||void 0;const ys=e.getParsedCommandLine?e.getParsedCommandLine(to):ga(to);return(nr||(nr=new Map)).set(za,ys||!1),ys}function ga(to){const za=va(to,100);if(za)return za.path=il(to,f,I),za.resolvedPath=za.path,za.originalFileName=za.fileName,hw(za,Kn,yo(ri(to),f),void 0,yo(to,f))}function Ja(to,za,La){var ys;e.getParsedCommandLine?(ys=e.onReleaseParsedCommandLine)==null||ys.call(e,to,za,La):za&&Qt(za.sourceFile,La)}function Qt(to,za){const La=t.getKeyForCompilationSettings(za);t.releaseDocumentWithKey(to.resolvedPath,La,to.scriptKind,to.impliedNodeFormat)}function va(to,za,La,ys){return Wl(to,il(to,f,I),za,La,ys)}function Wl(to,za,La,ys,tc){C.assert(lr,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const ao=e.getScriptSnapshot(to);if(!ao)return;const ca=MX(to,e),pu=e.getScriptVersion(to);if(!tc){const Rs=l&&l.getSourceFileByPath(za);if(Rs){if(ca===Rs.scriptKind||bo.has(Rs.resolvedPath))return t.updateDocumentWithKey(to,za,e,Hr,ao,pu,ca,La);t.releaseDocumentWithKey(Rs.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Rs.scriptKind,Rs.impliedNodeFormat),bo.add(Rs.resolvedPath)}}return t.acquireDocumentWithKey(to,za,e,Hr,ao,pu,ca,La)}}function U(){if(o===2){C.assert(l===void 0);return}return N(),l}function K(){var L;return(L=e.getPackageJsonAutoImportProvider)==null?void 0:L.call(e)}function ee(L,me){const q=l.getTypeChecker(),fe=Ve();if(!fe)return!1;for(const Tt of L)for(const kt of Tt.references){const nn=ke(kt);if(C.assertIsDefined(nn),me.has(kt)||Gs.isDeclarationOfSymbol(nn,fe)){me.add(kt),kt.isDefinition=!0;const En=y5(kt,R,ia(e,e.fileExists));En&&me.add(En)}else kt.isDefinition=!1}return!0;function Ve(){for(const Tt of L)for(const kt of Tt.references){if(me.has(kt)){const En=ke(kt);return C.assertIsDefined(En),q.getSymbolAtLocation(En)}const nn=y5(kt,R,ia(e,e.fileExists));if(nn&&me.has(nn)){const En=ke(nn);if(En)return q.getSymbolAtLocation(En)}}}function ke(Tt){const kt=l.getSourceFile(Tt.fileName);if(!kt)return;const nn=Vd(kt,Tt.textSpan.start);return Gs.Core.getAdjustedNode(nn,{use:Gs.FindReferencesUse.References})}}function V(){if(l){const L=t.getKeyForCompilationSettings(l.getCompilerOptions());He(l.getSourceFiles(),me=>t.releaseDocumentWithKey(me.resolvedPath,L,me.scriptKind,me.impliedNodeFormat)),l=void 0}}function se(){V(),e=void 0}function G(L){return N(),l.getSyntacticDiagnostics(M(L),h).slice()}function re(L){N();const me=M(L),q=l.getSemanticDiagnostics(me,h);if(!Cf(l.getCompilerOptions()))return q.slice();const fe=l.getDeclarationDiagnostics(me,h);return[...q,...fe]}function _e(L){return N(),uY(M(L),l,h)}function ye(){return N(),[...l.getOptionsDiagnostics(h),...l.getGlobalDiagnostics(h)]}function Q(L,me,q=kf,fe){const Ve={...q,includeCompletionsForModuleExports:q.includeCompletionsForModuleExports||q.includeExternalModuleExports,includeCompletionsWithInsertText:q.includeCompletionsWithInsertText||q.includeInsertTextCompletions};return N(),GI.getCompletionsAtPosition(e,l,b,M(L),me,Ve,q.triggerCharacter,q.triggerKind,h,fe&&Fc.getFormatContext(fe,e),q.includeSymbol)}function Y(L,me,q,fe,Ve,ke=kf,Tt){return N(),GI.getCompletionEntryDetails(l,b,M(L),me,{name:q,source:Ve,data:Tt},e,fe&&Fc.getFormatContext(fe,e),ke,h)}function oe(L,me,q,fe,Ve=kf){return N(),GI.getCompletionEntrySymbol(l,b,M(L),me,{name:q,source:fe},e,Ve)}function he(L,me){N();const q=M(L),fe=Vd(q,me);if(fe===q)return;const Ve=l.getTypeChecker(),ke=Ae(fe),Tt=y$e(ke,Ve);if(!Tt||Ve.isUnknownSymbol(Tt)){const lr=de(q,ke,me)?Ve.getTypeAtLocation(ke):void 0;return lr&&{kind:"",kindModifiers:"",textSpan:Dd(ke,q),displayParts:Ve.runWithCancellationToken(h,ai=>yO(ai,lr,aT(ke))),documentation:lr.symbol?lr.symbol.getDocumentationComment(Ve):void 0,tags:lr.symbol?lr.symbol.getJsDocTags(Ve):void 0}}const{symbolKind:kt,displayParts:nn,documentation:En,tags:nr}=Ve.runWithCancellationToken(h,lr=>oy.getSymbolDisplayPartsDocumentationAndSymbolKind(lr,Tt,q,aT(ke),ke));return{kind:kt,kindModifiers:oy.getSymbolModifiers(Ve,Tt),textSpan:Dd(ke,q),displayParts:nn,documentation:En,tags:nr}}function Ae(L){return o1(L.parent)&&L.pos===L.parent.pos?L.parent.expression:JR(L.parent)&&L.pos===L.parent.pos||pR(L.parent)&&L.parent.name===L||r_(L.parent)?L.parent:L}function de(L,me,q){switch(me.kind){case 80:return!ZK(me)&&!eX(me)&&!zg(me.parent);case 211:case 166:return!Zv(L,q);case 110:case 197:case 108:case 202:return!0;case 236:return pR(me);default:return!1}}function ie(L,me,q,fe){return N(),HD.getDefinitionAtPosition(l,M(L),me,q,fe)}function ge(L,me){return N(),HD.getDefinitionAndBoundSpan(l,M(L),me)}function Ne(L,me){return N(),HD.getTypeDefinitionAtPosition(l.getTypeChecker(),M(L),me)}function qe(L,me){return N(),Gs.getImplementationsAtPosition(l,h,l.getSourceFiles(),M(L),me)}function Ee(L,me,q){const fe=ha(L);C.assert(q.some(Tt=>ha(Tt)===fe)),N();const Ve=Hi(q,Tt=>l.getSourceFile(Tt)),ke=M(L);return G5.getDocumentHighlights(l,h,ke,me,Ve)}function Me(L,me,q,fe,Ve){N();const ke=M(L),Tt=o5(Vd(ke,me));if(Bz.nodeIsEligibleForRename(Tt))if(je(Tt)&&(W_(Tt.parent)||l1(Tt.parent))&&CR(Tt.escapedText)){const{openingElement:kt,closingElement:nn}=Tt.parent.parent;return[kt,nn].map(En=>{const nr=Dd(En.tagName,ke);return{fileName:ke.fileName,textSpan:nr,...Gs.toContextSpan(nr,ke,En.parent)}})}else{const kt=uf(ke,Ve!=null?Ve:kf),nn=typeof Ve=="boolean"?Ve:Ve==null?void 0:Ve.providePrefixAndSuffixTextForRename;return Oe(Tt,me,{findInStrings:q,findInComments:fe,providePrefixAndSuffixTextForRename:nn,use:Gs.FindReferencesUse.Rename},(En,nr,lr)=>Gs.toRenameLocation(En,nr,lr,nn||!1,kt))}}function Ce(L,me){return N(),Oe(Vd(M(L),me),me,{use:Gs.FindReferencesUse.References},Gs.toReferenceEntry)}function Oe(L,me,q,fe){N();const Ve=q&&q.use===Gs.FindReferencesUse.Rename?l.getSourceFiles().filter(ke=>!l.isSourceFileDefaultLibrary(ke)):l.getSourceFiles();return Gs.findReferenceOrRenameEntries(l,h,Ve,L,me,q,fe)}function At(L,me){return N(),Gs.findReferencedSymbols(l,h,l.getSourceFiles(),M(L),me)}function be(L){return N(),Gs.Core.getReferencesForFileName(L,l,l.getSourceFiles()).map(Gs.toReferenceEntry)}function Ue(L,me,q,fe=!1,Ve=!1){N();const ke=q?[M(q)]:l.getSourceFiles();return SCe(ke,l.getTypeChecker(),h,L,me,fe,Ve)}function it(L,me,q){N();const fe=M(L),Ve=e.getCustomTransformers&&e.getCustomTransformers();return Nce(l,fe,!!me,h,Ve,q)}function Ft(L,me,{triggerReason:q}=kf){N();const fe=M(L);return o8.getSignatureHelpItems(l,fe,me,q,h)}function gt(L){return s.getCurrentSourceFile(L)}function Qe(L,me,q){const fe=s.getCurrentSourceFile(L),Ve=Vd(fe,me);if(Ve===fe)return;switch(Ve.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let ke=Ve;for(;;)if(ID(ke)||Nue(ke))ke=ke.parent;else if(nX(ke))if(ke.parent.parent.kind===267&&ke.parent.parent.body===ke.parent)ke=ke.parent.parent.name;else break;else break;return hc(ke.getStart(),Ve.getEnd())}function It(L,me){const q=s.getCurrentSourceFile(L);return t$.spanInSourceFileAtLocation(q,me)}function on(L){return xCe(s.getCurrentSourceFile(L),h)}function $t(L){return RCe(s.getCurrentSourceFile(L),h)}function Cn(L,me,q){return N(),(q||"original")==="2020"?qNe(l,h,M(L),me):yde(l.getTypeChecker(),h,M(L),l.getClassifiableNames(),me)}function Hn(L,me,q){return N(),(q||"original")==="original"?rY(l.getTypeChecker(),h,M(L),l.getClassifiableNames(),me):Lpe(l,h,M(L),me)}function yn(L,me){return bde(h,s.getCurrentSourceFile(L),me)}function tn(L,me){return iY(h,s.getCurrentSourceFile(L),me)}function en(L){const me=s.getCurrentSourceFile(L);return $Q.collectElements(me,h)}const gi=new Map(Object.entries({19:20,21:22,23:24,32:30}));gi.forEach((L,me)=>gi.set(L.toString(),Number(me)));function ho(L,me){const q=s.getCurrentSourceFile(L),fe=RD(q,me),Ve=fe.getStart(q)===me?gi.get(fe.kind.toString()):void 0,ke=Ve&&Es(fe.parent,Ve,q);return ke?[Dd(fe,q),Dd(ke,q)].sort((Tt,kt)=>Tt.start-kt.start):et}function Gi(L,me,q){let fe=Xs();const Ve=VO(q),ke=s.getCurrentSourceFile(L);b("getIndentationAtPosition: getCurrentSourceFile: "+(Xs()-fe)),fe=Xs();const Tt=Fc.SmartIndenter.getIndentation(me,ke,Ve);return b("getIndentationAtPosition: computeIndentation : "+(Xs()-fe)),Tt}function xo(L,me,q,fe){const Ve=s.getCurrentSourceFile(L);return Fc.formatSelection(me,q,Ve,Fc.getFormatContext(VO(fe),e))}function Qn(L,me){return Fc.formatDocument(s.getCurrentSourceFile(L),Fc.getFormatContext(VO(me),e))}function Di(L,me,q,fe){const Ve=s.getCurrentSourceFile(L),ke=Fc.getFormatContext(VO(fe),e);if(!Zv(Ve,me))switch(q){case"{":return Fc.formatOnOpeningCurly(me,Ve,ke);case"}":return Fc.formatOnClosingCurly(me,Ve,ke);case";":return Fc.formatOnSemicolon(me,Ve,ke);case"\n":return Fc.formatOnEnter(me,Ve,ke)}return[]}function Ir(L,me,q,fe,Ve,ke=kf){N();const Tt=M(L),kt=hc(me,q),nn=Fc.getFormatContext(Ve,e);return Pi(NE(fe,Lv,nl),En=>(h.throwIfCancellationRequested(),Fu.getFixes({errorCode:En,sourceFile:Tt,span:kt,program:l,host:e,cancellationToken:h,formatContext:nn,preferences:ke})))}function Xt(L,me,q,fe=kf){N(),C.assert(L.type==="file");const Ve=M(L.fileName),ke=Fc.getFormatContext(q,e);return Fu.getAllFixes({fixId:me,sourceFile:Ve,program:l,host:e,cancellationToken:h,formatContext:ke,preferences:fe})}function nt(L,me,q=kf){var Tt;N(),C.assert(L.type==="file");const fe=M(L.fileName),Ve=Fc.getFormatContext(me,e),ke=(Tt=L.mode)!=null?Tt:L.skipDestructiveCodeActions?"SortAndCombine":"All";return Wm.organizeImports(fe,Ve,e,l,q,ke)}function Bt(L,me,q,fe=kf){return Tde(U(),L,me,e,Fc.getFormatContext(q,e),fe,R)}function Dn(L,me){const q=typeof L=="string"?me:L;return Ao(q)?Promise.all(q.map(fe=>oi(fe))):oi(q)}function oi(L){const me=q=>il(q,f,I);return C.assertEqual(L.type,"install package"),e.installPackage?e.installPackage({fileName:me(L.file),packageName:L.packageName}):Promise.reject("Host does not implement `installPackage`")}function yi(L,me,q,fe){const Ve=fe?Fc.getFormatContext(fe,e).options:void 0;return j0.getDocCommentTemplateAtPosition(ny(e,Ve),s.getCurrentSourceFile(L),me,q)}function eo(L,me,q){if(q===60)return!1;const fe=s.getCurrentSourceFile(L);if(NI(fe,me))return!1;if(Wue(fe,me))return q===123;if(lX(fe,me))return!1;switch(q){case 39:case 34:case 96:return!Zv(fe,me)}return!0}function Ro(L,me){const q=s.getCurrentSourceFile(L),fe=Dc(me,q);if(!fe)return;const Ve=fe.kind===32&&W_(fe.parent)?fe.parent.parent:nI(fe)&&mg(fe.parent)?fe.parent:void 0;if(Ve&&pt(Ve))return{newText:"</".concat(Ve.openingElement.tagName.getText(q),">")};const ke=fe.kind===32&&hI(fe.parent)?fe.parent.parent:nI(fe)&&c1(fe.parent)?fe.parent:void 0;if(ke&&Pt(ke))return{newText:"</>"}}function fa(L,me){const q=s.getCurrentSourceFile(L),fe=Dc(me,q);if(!fe||fe.parent.kind===312)return;const Ve="[a-zA-Z0-9:\\-\\._$]*";if(c1(fe.parent.parent)){const ke=fe.parent.parent.openingFragment,Tt=fe.parent.parent.closingFragment;if(sR(ke)||sR(Tt))return;const kt=ke.getStart(q)+1,nn=Tt.getStart(q)+2;return me!==kt&&me!==nn?void 0:{ranges:[{start:kt,length:0},{start:nn,length:0}],wordPattern:Ve}}else{const ke=zn(fe.parent,si=>!!(W_(si)||l1(si)));if(!ke)return;C.assert(W_(ke)||l1(ke),"tag should be opening or closing element");const Tt=ke.parent.openingElement,kt=ke.parent.closingElement,nn=Tt.tagName.getStart(q),En=Tt.tagName.end,nr=kt.tagName.getStart(q),lr=kt.tagName.end;return nn===Tt.getStart(q)||nr===kt.getStart(q)||En===Tt.getEnd()||lr===kt.getEnd()||!(nn<=me&&me<=En||nr<=me&&me<=lr)||Tt.tagName.getText(q)!==kt.tagName.getText(q)?void 0:{ranges:[{start:nn,length:En-nn},{start:nr,length:lr-nr}],wordPattern:Ve}}}function Fa(L,me){return{lineStarts:L.getLineStarts(),firstLine:L.getLineAndCharacterOfPosition(me.pos).line,lastLine:L.getLineAndCharacterOfPosition(me.end).line}}function An(L,me,q){const fe=s.getCurrentSourceFile(L),Ve=[],{lineStarts:ke,firstLine:Tt,lastLine:kt}=Fa(fe,me);let nn=q||!1,En=Number.MAX_VALUE;const nr=new Map,lr=new RegExp(/\S/),ai=l5(fe,ke[Tt]),si=ai?"{/*":"//";for(let Kn=Tt;Kn<=kt;Kn++){const Hr=fe.text.substring(ke[Kn],fe.getLineEndOfPosition(ke[Kn])),bo=lr.exec(Hr);bo&&(En=Math.min(En,bo.index),nr.set(Kn.toString(),bo.index),Hr.substr(bo.index,si.length)!==si&&(nn=q===void 0||q))}for(let Kn=Tt;Kn<=kt;Kn++){if(Tt!==kt&&ke[Kn]===me.end)continue;const Hr=nr.get(Kn.toString());Hr!==void 0&&(ai?Ve.push(...wn(L,{pos:ke[Kn]+En,end:fe.getLineEndOfPosition(ke[Kn])},nn,ai)):nn?Ve.push({newText:si,span:{length:0,start:ke[Kn]+En}}):fe.text.substr(ke[Kn]+Hr,si.length)===si&&Ve.push({newText:"",span:{length:si.length,start:ke[Kn]+Hr}}))}return Ve}function wn(L,me,q,fe){var Ve;const ke=s.getCurrentSourceFile(L),Tt=[],{text:kt}=ke;let nn=!1,En=q||!1;const nr=[];let{pos:lr}=me;const ai=fe!==void 0?fe:l5(ke,lr),si=ai?"{/*":"/*",Kn=ai?"*/}":"*/",Hr=ai?"\\{\\/\\*":"\\/\\*",bo=ai?"\\*\\/\\}":"\\*\\/";for(;lr<=me.end;){const wi=kt.substr(lr,si.length)===si?si.length:0,vi=Zv(ke,lr+wi);if(vi)ai&&(vi.pos--,vi.end++),nr.push(vi.pos),vi.kind===3&&nr.push(vi.end),nn=!0,lr=vi.end+1;else{const ga=kt.substring(lr,me.end).search("(".concat(Hr,")|(").concat(bo,")"));En=q!==void 0?q:En||!Xue(kt,lr,ga===-1?me.end:lr+ga),lr=ga===-1?me.end+1:lr+ga+Kn.length}}if(En||!nn){((Ve=Zv(ke,me.pos))==null?void 0:Ve.kind)!==2&&xy(nr,me.pos,nl),xy(nr,me.end,nl);const wi=nr[0];kt.substr(wi,si.length)!==si&&Tt.push({newText:si,span:{length:0,start:wi}});for(let vi=1;vi<nr.length-1;vi++)kt.substr(nr[vi]-Kn.length,Kn.length)!==Kn&&Tt.push({newText:Kn,span:{length:0,start:nr[vi]}}),kt.substr(nr[vi],si.length)!==si&&Tt.push({newText:si,span:{length:0,start:nr[vi]}});Tt.length%2!==0&&Tt.push({newText:Kn,span:{length:0,start:nr[nr.length-1]}})}else for(const wi of nr){const vi=wi-Kn.length>0?wi-Kn.length:0,ga=kt.substr(vi,Kn.length)===Kn?Kn.length:0;Tt.push({newText:"",span:{length:si.length,start:wi-ga}})}return Tt}function Je(L,me){const q=s.getCurrentSourceFile(L),{firstLine:fe,lastLine:Ve}=Fa(q,me);return fe===Ve&&me.pos!==me.end?wn(L,me,!0):An(L,me,!0)}function mt(L,me){const q=s.getCurrentSourceFile(L),fe=[],{pos:Ve}=me;let{end:ke}=me;Ve===ke&&(ke+=l5(q,Ve)?2:1);for(let Tt=Ve;Tt<=ke;Tt++){const kt=Zv(q,Tt);if(kt){switch(kt.kind){case 2:fe.push(...An(L,{end:kt.end,pos:kt.pos+1},!1));break;case 3:fe.push(...wn(L,{end:kt.end,pos:kt.pos+1},!1))}Tt=kt.end+1}}return fe}function pt({openingElement:L,closingElement:me,parent:q}){return!M0(L.tagName,me.tagName)||mg(q)&&M0(L.tagName,q.openingElement.tagName)&&pt(q)}function Pt({closingFragment:L,parent:me}){return!!(L.flags&262144)||c1(me)&&Pt(me)}function le(L,me,q){const fe=s.getCurrentSourceFile(L),Ve=Fc.getRangeOfEnclosingComment(fe,me);return Ve&&(!q||Ve.kind===3)?sb(Ve):void 0}function Fe(L,me){N();const q=M(L);h.throwIfCancellationRequested();const fe=q.text,Ve=[];if(me.length>0&&!nn(q.fileName)){const En=Tt();let nr;for(;nr=En.exec(fe);){h.throwIfCancellationRequested();const lr=3;C.assert(nr.length===me.length+lr);const ai=nr[1],si=nr.index+ai.length;if(!Zv(q,si))continue;let Kn;for(let bo=0;bo<me.length;bo++)nr[bo+lr]&&(Kn=me[bo]);if(Kn===void 0)return C.fail();if(kt(fe.charCodeAt(si+Kn.text.length)))continue;const Hr=nr[2];Ve.push({descriptor:Kn,message:Hr,position:si})}}return Ve;function ke(En){return En.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Tt(){const En=/(?:\/\/+\s*)/.source,nr=/(?:\/\*+\s*)/.source,ai="("+/(?:^(?:\s|\*)*)/.source+"|"+En+"|"+nr+")",si="(?:"+Ot(me,vi=>"("+ke(vi.text)+")").join("|")+")",Kn=/(?:$|\*\/)/.source,Hr=/(?:.*?)/.source,bo="("+si+Hr+")",wi=ai+bo+Kn;return new RegExp(wi,"gim")}function kt(En){return En>=97&&En<=122||En>=65&&En<=90||En>=48&&En<=57}function nn(En){return En.includes("/node_modules/")}}function dt(L,me,q){return N(),Bz.getRenameInfo(l,M(L),me,q||{})}function j(L,me,q,fe,Ve,ke){const[Tt,kt]=typeof me=="number"?[me,void 0]:[me.pos,me.end];return{file:L,startPosition:Tt,endPosition:kt,program:U(),host:e,formatContext:Fc.getFormatContext(fe,e),cancellationToken:h,preferences:q,triggerReason:Ve,kind:ke}}function ot(L,me,q){return{file:L,program:U(),host:e,span:me,preferences:q,cancellationToken:h}}function Dt(L,me){return eZ.getSmartSelectionRange(me,s.getCurrentSourceFile(L))}function Ye(L,me,q=kf,fe,Ve,ke){N();const Tt=M(L);return wI.getApplicableRefactors(j(Tt,me,q,kf,fe,Ve),ke)}function _t(L,me,q=kf){N();const fe=M(L),Ve=C.checkDefined(l.getSourceFiles()),ke=QN(L),Tt=OO(j(fe,me,q,kf)),kt=upe(Tt==null?void 0:Tt.all),nn=Hi(Ve,En=>{const nr=QN(En.fileName);return!(l!=null&&l.isSourceFileFromExternalLibrary(fe))&&!(fe===M(En.fileName)||ke===".ts"&&nr===".d.ts"||ke===".d.ts"&&po(lc(En.fileName),"lib.")&&nr===".d.ts")&&(ke===nr||(ke===".tsx"&&nr===".ts"||ke===".jsx"&&nr===".js")&&!kt)?En.fileName:void 0});return{newFileName:cpe(fe,l,e,Tt),files:nn}}function Gt(L,me,q,fe,Ve,ke=kf,Tt){N();const kt=M(L);return wI.getEditsForRefactor(j(kt,q,ke,me),fe,Ve,Tt)}function gn(L,me){return me===0?{line:0,character:0}:R.toLineColumnOffset(L,me)}function hn(L,me){N();const q=OI.resolveCallHierarchyDeclaration(l,Vd(M(L),me));return q&&jX(q,fe=>OI.createCallHierarchyItem(l,fe))}function dn(L,me){N();const q=M(L),fe=UX(OI.resolveCallHierarchyDeclaration(l,me===0?q:Vd(q,me)));return fe?OI.getIncomingCalls(l,fe,h):[]}function H(L,me){N();const q=M(L),fe=UX(OI.resolveCallHierarchyDeclaration(l,me===0?q:Vd(q,me)));return fe?OI.getOutgoingCalls(l,fe):[]}function We(L,me,q=kf){N();const fe=M(L);return JQ.provideInlayHints(ot(fe,me,q))}const Lt={dispose:se,cleanupSemanticCache:V,getSyntacticDiagnostics:G,getSemanticDiagnostics:re,getSuggestionDiagnostics:_e,getCompilerOptionsDiagnostics:ye,getSyntacticClassifications:yn,getSemanticClassifications:Cn,getEncodedSyntacticClassifications:tn,getEncodedSemanticClassifications:Hn,getCompletionsAtPosition:Q,getCompletionEntryDetails:Y,getCompletionEntrySymbol:oe,getSignatureHelpItems:Ft,getQuickInfoAtPosition:he,getDefinitionAtPosition:ie,getDefinitionAndBoundSpan:ge,getImplementationAtPosition:qe,getTypeDefinitionAtPosition:Ne,getReferencesAtPosition:Ce,findReferences:At,getFileReferences:be,getDocumentHighlights:Ee,getNameOrDottedNameSpan:Qe,getBreakpointStatementAtPosition:It,getNavigateToItems:Ue,getRenameInfo:dt,getSmartSelectionRange:Dt,findRenameLocations:Me,getNavigationBarItems:on,getNavigationTree:$t,getOutliningSpans:en,getTodoComments:Fe,getBraceMatchingAtPosition:ho,getIndentationAtPosition:Gi,getFormattingEditsForRange:xo,getFormattingEditsForDocument:Qn,getFormattingEditsAfterKeystroke:Di,getDocCommentTemplateAtPosition:yi,isValidBraceCompletionAtPosition:eo,getJsxClosingTagAtPosition:Ro,getLinkedEditingRangeAtPosition:fa,getSpanOfEnclosingComment:le,getCodeFixesAtPosition:Ir,getCombinedCodeFix:Xt,applyCodeActionCommand:Dn,organizeImports:nt,getEditsForFileRename:Bt,getEmitOutput:it,getNonBoundSourceFile:gt,getProgram:U,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:ee,getApplicableRefactors:Ye,getEditsForRefactor:Gt,getMoveToRefactoringFileSuggestions:_t,toLineColumnOffset:gn,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:hn,provideCallHierarchyIncomingCalls:dn,provideCallHierarchyOutgoingCalls:H,toggleLineComment:An,toggleMultilineComment:wn,commentSelection:Je,uncommentSelection:mt,provideInlayHints:We,getSupportedCodeFixes:JY};switch(o){case 0:break;case 1:Vpe.forEach(L=>Lt[L]=()=>{throw new Error("LanguageService Operation: ".concat(L," not allowed in LanguageServiceMode.PartialSemantic"))});break;case 2:cPe.forEach(L=>Lt[L]=()=>{throw new Error("LanguageService Operation: ".concat(L," not allowed in LanguageServiceMode.Syntactic"))});break;default:C.assertNever(o)}return Lt}function XY(e){return e.nameTable||h$e(e),e.nameTable}function h$e(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(je(i)&&!eX(i)&&i.escapedText||nf(i)&&g$e(i)){const o=LN(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Ji(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Vo(i,r),Fp(i))for(const o of i.jsDoc)Vo(o,r)})}function g$e(e){return jg(e)||e.parent.kind===283||b$e(e)||ik(e)}function UO(e){const t=v$e(e);return t&&(Wa(t.parent)||u1(t.parent))?t:void 0}function v$e(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return _j(e.parent.parent)?e.parent.parent:void 0;case 80:return _j(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function y$e(e,t){const r=UO(e);if(r){const i=t.getContextualType(r.parent),o=i&&fz(r,t,i,!1);if(o&&o.length===1)return Xa(o)}return t.getSymbolAtLocation(e)}function fz(e,t,r,i){const o=hO(e.name);if(!o)return et;if(!r.isUnion()){const u=r.getProperty(o);return u?[u]:et}const s=Wa(e.parent)||u1(e.parent)?rr(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=Hi(s,u=>u.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){const u=r.getProperty(o);if(u)return[u]}return!s.length&&!l.length?Hi(r.types,u=>u.getProperty(o)):NE(l,Lv)}function b$e(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function zpe(e){if(vu)return Yr(ri(ha(vu.getExecutingFilePath())),aL(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var Bpe,YY,$Y,tPe,Gpe,QY,ZY,nPe,rPe,iPe,oPe,aPe,sPe,lPe,e$,Vpe,cPe,E$e=T({"src/services/services.ts"(){ii(),ICe(),qCe(),Nh(),tCe(),XNe(),Bpe="0.8",YY=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){C.assert(!t_(this.pos)&&!t_(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return jn(this)}getStart(e,t){return this.assertHasRealPosition(),g0(this,e,t)}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,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=f$e(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=Tn(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=el(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Vo(this,e,t)}},$Y=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return jn(this)}getStart(e,t){return g0(this,e,t)}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 this.kind===1&&this.jsDoc||et}getFirstToken(){}getLastToken(){}forEachChild(){}},tPe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return El(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=et,!this.declarations&&hh(this)&&this.links.target&&hh(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=uz([t],e)}else this.documentationComment=uz(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Fy(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=uz(rr(this.declarations,Fy),t)),Le(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(zv(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=uz(rr(this.declarations,zv),t)),Le(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=qY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Fy(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=qY(rr(this.declarations,Fy),t)),Le(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(zv(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=qY(rr(this.declarations,zv),t)),Le(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},Gpe=class extends $Y{constructor(e,t,r){super(t,r),this.kind=e}},QY=class extends $Y{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Tr(this)}},QY.prototype.kind=80,ZY=class extends $Y{constructor(e,t,r){super(t,r),this.kind=81}get text(){return Tr(this)}},ZY.prototype.kind=81,nPe=class{constructor(e,t){this.checker=e,this.flags=t}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!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Wr(this)&3)}isClass(){return!!(Wr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Wr(this)&4)return this.checker.getTypeArguments(this)}},rPe=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&oP(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=uz(AA(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=qY(AA(this.declaration),this.checker))}},iPe=class extends YY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return aq(this,e,t)}getLineAndCharacterOfPosition(e){return Ts(this,e)}getLineStarts(){return Wg(this)}getPositionOfLineAndCharacter(e,t,r){return m4(Wg(this),e,t,this.text,r)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts();let i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);const o=this.getFullText();return o[i]==="\n"&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=Zp();return this.forEachChild(o),e;function t(s){const l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){const l=y4(s);return l&&(rs(l)&&Fr(l.expression)?l.expression.name.text:cc(l)?hO(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:const l=s,u=i(l);if(u){const f=r(u),b=el(f);b&&l.parent===b.parent&&l.symbol===b.symbol?l.body&&!b.body&&(f[f.length-1]=l):f.push(l)}Vo(s,o);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(s),Vo(s,o);break;case 169:if(!$r(s,31))break;case 260:case 208:{const f=s;if(Zo(f.name)){Vo(f.name,o);break}f.initializer&&o(f.initializer)}case 306:case 172:case 171:t(s);break;case 278:const p=s;p.exportClause&&(Pf(p.exportClause)?He(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:const h=s.importClause;h&&(h.name&&t(h.name),h.namedBindings&&(h.namedBindings.kind===274?t(h.namedBindings):He(h.namedBindings.elements,o)));break;case 226:Vl(s)!==0&&t(s);default:Vo(s,o)}}}},oPe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return Ts(this,e)}},aPe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,p;const h=this.host.getScriptSnapshot(e);if(!h)throw new Error("Could not find file: '"+e+"'.");const f=MX(e,this.host),b=this.host.getScriptVersion(e);let A;if(this.currentFileName!==e){const I={languageVersion:99,impliedNodeFormat:Jw(il(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||Vv(this.host)),(p=(u=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:u.call(l))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:bk(this.host.getCompilationSettings()),jsDocParsingMode:0};A=pz(e,h,I,b,!0,f)}else if(this.currentFileVersion!==b){const I=h.getChangeRange(this.currentFileScriptSnapshot);A=KY(this.currentSourceFile,h,b,I)}return A&&(this.currentFileVersion=b,this.currentFileName=e,this.currentFileScriptSnapshot=h,this.currentSourceFile=A),this.currentSourceFile}},sPe={isCancellationRequested:$m,throwIfCancellationRequested:ts},lPe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ar)==null||e.instant(ar.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new qx}},e$=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Xs();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ar)==null||e.instant(ar.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new qx}},Vpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],cPe=[...Vpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],zoe(_$e())}});function uPe(e,t,r){const i=[];r=_Y(r,i);const o=Ao(e)?e:[e],s=Fw(void 0,void 0,w,r,o,t,!0);return s.diagnostics=To(s.diagnostics,i),s}var S$e=T({"src/services/transform.ts"(){ii()}});function T$e(e,t){if(e.isDeclarationFile)return;let r=fo(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const b=Dc(r.pos,e);if(!b||e.getLineAndCharacterOfPosition(b.getEnd()).line!==i)return;r=b}if(r.flags&33554432)return;return f(r);function o(b,A){const I=QS(b)?ko(b.modifiers,Su):void 0,R=I?wa(e.text,I.end):b.getStart(e);return hc(R,(A||b).getEnd())}function s(b,A){return o(b,S1(A,A.parent,e))}function l(b,A){return b&&i===e.getLineAndCharacterOfPosition(b.getStart(e)).line?f(b):f(A)}function u(b,A,I){if(b){const R=b.indexOf(A);if(R>=0){let M=R,N=R+1;for(;M>0&&I(b[M-1]);)M--;for(;N<b.length&&I(b[N]);)N++;return hc(wa(e.text,b[M].pos),b[N-1].end)}}return o(A)}function p(b){return f(Dc(b.pos,e))}function h(b){return f(S1(b,b.parent,e))}function f(b){if(b){const{parent:ie}=b;switch(b.kind){case 243:return I(b.declarationList.declarations[0]);case 260:case 172:case 171:return I(b);case 169:return M(b);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return O(b);case 241:if(VE(b))return U(b);case 268:return K(b);case 299:return K(b.block);case 244:return o(b.expression);case 253:return o(b.getChildAt(0),b.expression);case 247:return s(b,b.expression);case 246:return f(b.statement);case 259:return o(b.getChildAt(0));case 245:return s(b,b.expression);case 256:return f(b.statement);case 252:case 251:return o(b.getChildAt(0),b.label);case 248:return V(b);case 249:return s(b,b.expression);case 250:return ee(b);case 255:return s(b,b.expression);case 296:case 297:return f(b.statements[0]);case 258:return K(b.tryBlock);case 257:return o(b,b.expression);case 277:return o(b,b.expression);case 271:return o(b,b.moduleReference);case 272:return o(b,b.moduleSpecifier);case 278:return o(b,b.moduleSpecifier);case 267:if($g(b)!==1)return;case 263:case 266:case 306:case 208:return o(b);case 254:return f(b.statement);case 170:return u(ie.modifiers,b,Su);case 206:case 207:return se(b);case 264:case 265:return;case 27:case 1:return l(Dc(b.pos,e));case 28:return p(b);case 19:return re(b);case 20:return _e(b);case 24:return ye(b);case 21:return Q(b);case 22:return Y(b);case 59:return oe(b);case 32:case 30:return he(b);case 117:return Ae(b);case 93:case 85:case 98:return h(b);case 165:return de(b);default:if(ey(b))return G(b);if((b.kind===80||b.kind===230||b.kind===303||b.kind===304)&&ey(ie))return o(b);if(b.kind===226){const{left:ge,operatorToken:Ne}=b;if(ey(ge))return G(ge);if(Ne.kind===64&&ey(b.parent))return o(b);if(Ne.kind===28)return f(ge)}if(og(b))switch(ie.kind){case 246:return p(b);case 170:return f(b.parent);case 248:case 250:return o(b);case 226:if(b.parent.operatorToken.kind===28)return o(b);break;case 219:if(b.parent.body===b)return o(b);break}switch(b.parent.kind){case 303:if(b.parent.name===b&&!ey(b.parent.parent))return f(b.parent.initializer);break;case 216:if(b.parent.type===b)return h(b.parent.type);break;case 260:case 169:{const{initializer:ge,type:Ne}=b.parent;if(ge===b||Ne===b||jv(b.kind))return p(b);break}case 226:{const{left:ge}=b.parent;if(ey(ge)&&b!==ge)return p(b);break}default:if(Qo(b.parent)&&b.parent.type===b)return p(b)}return f(b.parent)}}function A(ie){return qc(ie.parent)&&ie.parent.declarations[0]===ie?o(Dc(ie.pos,e,ie.parent),ie):o(ie)}function I(ie){if(ie.parent.parent.kind===249)return f(ie.parent.parent);const ge=ie.parent;if(Zo(ie.name))return se(ie.name);if(ES(ie)&&ie.initializer||$r(ie,32)||ge.parent.kind===250)return A(ie);if(qc(ie.parent)&&ie.parent.declarations[0]!==ie)return f(Dc(ie.pos,e,ie.parent))}function R(ie){return!!ie.initializer||ie.dotDotDotToken!==void 0||$r(ie,3)}function M(ie){if(Zo(ie.name))return se(ie.name);if(R(ie))return o(ie);{const ge=ie.parent,Ne=ge.parameters.indexOf(ie);return C.assert(Ne!==-1),Ne!==0?M(ge.parameters[Ne-1]):f(ge.body)}}function N(ie){return $r(ie,32)||ie.parent.kind===263&&ie.kind!==176}function O(ie){if(ie.body)return N(ie)?o(ie):f(ie.body)}function U(ie){const ge=ie.statements.length?ie.statements[0]:ie.getLastToken();return N(ie.parent)?l(ie.parent,ge):f(ge)}function K(ie){switch(ie.parent.kind){case 267:if($g(ie.parent)!==1)return;case 247:case 245:case 249:return l(ie.parent,ie.statements[0]);case 248:case 250:return l(Dc(ie.pos,e,ie.parent),ie.statements[0])}return f(ie.statements[0])}function ee(ie){if(ie.initializer.kind===261){const ge=ie.initializer;if(ge.declarations.length>0)return f(ge.declarations[0])}else return f(ie.initializer)}function V(ie){if(ie.initializer)return ee(ie);if(ie.condition)return o(ie.condition);if(ie.incrementor)return o(ie.incrementor)}function se(ie){const ge=He(ie.elements,Ne=>Ne.kind!==232?Ne:void 0);return ge?f(ge):ie.parent.kind===208?o(ie.parent):A(ie.parent)}function G(ie){C.assert(ie.kind!==207&&ie.kind!==206);const ge=ie.kind===209?ie.elements:ie.properties,Ne=He(ge,qe=>qe.kind!==232?qe:void 0);return Ne?f(Ne):o(ie.parent.kind===226?ie.parent:ie)}function re(ie){switch(ie.parent.kind){case 266:const ge=ie.parent;return l(Dc(ie.pos,e,ie.parent),ge.members.length?ge.members[0]:ge.getLastToken(e));case 263:const Ne=ie.parent;return l(Dc(ie.pos,e,ie.parent),Ne.members.length?Ne.members[0]:Ne.getLastToken(e));case 269:return l(ie.parent.parent,ie.parent.clauses[0])}return f(ie.parent)}function _e(ie){switch(ie.parent.kind){case 268:if($g(ie.parent.parent)!==1)return;case 266:case 263:return o(ie);case 241:if(VE(ie.parent))return o(ie);case 299:return f(el(ie.parent.statements));case 269:const ge=ie.parent,Ne=el(ge.clauses);return Ne?f(el(Ne.statements)):void 0;case 206:const qe=ie.parent;return f(el(qe.elements)||qe);default:if(ey(ie.parent)){const Ee=ie.parent;return o(el(Ee.properties)||Ee)}return f(ie.parent)}}function ye(ie){switch(ie.parent.kind){case 207:const ge=ie.parent;return o(el(ge.elements)||ge);default:if(ey(ie.parent)){const Ne=ie.parent;return o(el(Ne.elements)||Ne)}return f(ie.parent)}}function Q(ie){return ie.parent.kind===246||ie.parent.kind===213||ie.parent.kind===214?p(ie):ie.parent.kind===217?h(ie):f(ie.parent)}function Y(ie){switch(ie.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return p(ie);default:return f(ie.parent)}}function oe(ie){return Qo(ie.parent)||ie.parent.kind===303||ie.parent.kind===169?p(ie):f(ie.parent)}function he(ie){return ie.parent.kind===216?h(ie):f(ie.parent)}function Ae(ie){return ie.parent.kind===246?s(ie,ie.parent.expression):f(ie.parent)}function de(ie){return ie.parent.kind===250?h(ie):f(ie.parent)}}}var A$e=T({"src/services/breakpoints.ts"(){ii()}}),t$={};X(t$,{spanInSourceFileAtLocation:()=>T$e});var I$e=T({"src/services/_namespaces/ts.BreakpointResolver.ts"(){A$e()}});function x$e(e){return(Bs(e)||tu(e))&&ld(e)}function dPe(e){return Uo(e)||ki(e)}function HO(e){return(Bs(e)||Us(e)||tu(e))&&dPe(e.parent)&&e===e.parent.initializer&&je(e.parent.name)&&(!!(Wv(e.parent)&2)||Uo(e.parent))}function pPe(e){return Zi(e)||Ql(e)||xc(e)||Bs(e)||Rc(e)||tu(e)||Rl(e)||Kl(e)||Sh(e)||rf(e)||Sp(e)}function zD(e){return Zi(e)||Ql(e)&&je(e.name)||xc(e)||Rc(e)||Rl(e)||Kl(e)||Sh(e)||rf(e)||Sp(e)||x$e(e)||HO(e)}function fPe(e){return Zi(e)?e:ld(e)?e.name:HO(e)?e.parent.name:C.checkDefined(e.modifiers&&Tn(e.modifiers,mPe))}function mPe(e){return e.kind===90}function _Pe(e,t){const r=fPe(t);return r&&e.getSymbolAtLocation(r)}function R$e(e,t){if(Zi(t))return{text:t.fileName,pos:0,end:0};if((xc(t)||Rc(t))&&!ld(t)){const o=t.modifiers&&Tn(t.modifiers,mPe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Rl(t)){const o=t.getSourceFile(),s=wa(o.text,L_(t).pos),l=s+6,u=e.getTypeChecker(),p=u.getSymbolAtLocation(t.parent),h=p?"".concat(u.symbolToString(p,t.parent)," "):"";return{text:"".concat(h,"static {}"),pos:s,end:l}}const r=HO(t)?t.parent.name:C.checkDefined(Po(t),"Expected call hierarchy item to have a name");let i=je(r)?Tr(r):nf(r)?r.text:rs(r)&&nf(r.expression)?r.expression.text:void 0;if(i===void 0){const o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){const o=Bw();i=yN(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function D$e(e){var t,r,i,o;if(HO(e))return Uo(e.parent)&&ui(e.parent.parent)?tu(e.parent.parent)?(t=b4(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():O_(e.parent.parent.parent.parent)&&je(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=b4(e.parent))==null?void 0:i.getText():(o=Po(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(O_(e.parent)&&je(e.parent.parent.name))return e.parent.parent.name.getText()}}function hPe(e,t){if(t.body)return t;if(Ll(t))return cg(t.parent);if(xc(t)||Kl(t)){const r=_Pe(e,t);return r&&r.valueDeclaration&&js(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function gPe(e,t){const r=_Pe(e,t);let i;if(r&&r.declarations){const o=OM(r.declarations),s=Ot(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,h)=>Uu(s[p].file,s[h].file)||s[p].pos-s[h].pos);const l=Ot(o,p=>r.declarations[p]);let u;for(const p of l)zD(p)&&((!u||u.parent!==p.parent||u.end!==p.pos)&&(i=Rn(i,p)),u=p)}return i}function n$(e,t){var r,i,o;return Rl(t)?t:js(t)?(i=(r=hPe(e,t))!=null?r:gPe(e,t))!=null?i:t:(o=gPe(e,t))!=null?o:t}function vPe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(zD(t))return n$(r,t);if(pPe(t)){const o=zn(t,zD);return o&&n$(r,o)}if(jg(t)){if(zD(t.parent))return n$(r,t.parent);if(pPe(t.parent)){const o=zn(t.parent,zD);return o&&n$(r,o)}return dPe(t.parent)&&t.parent.initializer&&HO(t.parent.initializer)?t.parent.initializer:void 0}if(Ll(t))return zD(t.parent)?t.parent:void 0;if(t.kind===126&&Rl(t.parent)){t=t.parent;continue}if(ki(t)&&t.initializer&&HO(t.initializer))return t.initializer;if(!i){let o=r.getSymbolAtLocation(t);if(o&&(o.flags&2097152&&(o=r.getAliasedSymbol(o)),o.valueDeclaration)){i=!0,t=o.valueDeclaration;continue}}return}}function jpe(e,t){const r=t.getSourceFile(),i=R$e(e,t),o=D$e(t),s=E1(t),l=o2(t),u=hc(wa(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=hc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:p}}function C$e(e){return e!==void 0}function N$e(e){if(e.kind===Gs.EntryKind.Node){const{node:t}=e;if(YK(t,!0,!0)||xue(t,!0,!0)||Rue(t,!0,!0)||Due(t,!0,!0)||ID(t)||tX(t)){const r=t.getSourceFile();return{declaration:zn(t,zD)||r,range:hX(t,r)}}}}function yPe(e){return cs(e.declaration)}function P$e(e,t){return{from:e,fromSpans:t}}function M$e(e,t){return P$e(jpe(e,t[0].declaration),Ot(t,r=>sb(r.range)))}function L$e(e,t,r){if(Zi(t)||Ql(t)||Rl(t))return[];const i=fPe(t),o=rr(Gs.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Gs.FindReferencesUse.References},N$e),C$e);return o?YC(o,yPe,s=>M$e(e,s)):[]}function k$e(e,t){function r(o){const s=a1(o)?o.tag:ud(o)?o.tagName:zs(o)||Rl(o)?o:o.expression,l=vPe(e,s);if(l){const u=hX(s,o.getSourceFile());if(Ao(l))for(const p of l)t.push({declaration:p,range:u});else t.push({declaration:l,range:u})}}function i(o){if(o&&!(o.flags&33554432)){if(zD(o)){if(ui(o))for(const s of o.members)s.name&&rs(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(o);return;case 216:case 234:i(o.expression);return;case 260:case 169:i(o.name),i(o.initializer);return;case 213:r(o),i(o.expression),He(o.arguments,i);return;case 214:r(o),i(o.expression),He(o.arguments,i);return;case 215:r(o),i(o.tag),i(o.template);return;case 286:case 285:r(o),i(o.tagName),i(o.attributes);return;case 170:r(o),i(o.expression);return;case 211:case 212:r(o),Vo(o,i);break;case 238:i(o.expression);return}ig(o)||Vo(o,i)}}return i}function w$e(e,t){He(e.statements,t)}function O$e(e,t){!$r(e,128)&&e.body&&O_(e.body)&&He(e.body.statements,t)}function W$e(e,t,r){const i=hPe(e,t);i&&(He(i.parameters,r),r(i.body))}function F$e(e,t){t(e.body)}function z$e(e,t){He(e.modifiers,t);const r=qE(e);r&&t(r.expression);for(const i of e.members)km(i)&&He(i.modifiers,t),Uo(i)?t(i.initializer):Ll(i)&&i.body?(He(i.parameters,t),t(i.body)):Rl(i)&&t(i)}function B$e(e,t){const r=[],i=k$e(e,r);switch(t.kind){case 312:w$e(t,i);break;case 267:O$e(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:W$e(e.getTypeChecker(),t,i);break;case 263:case 231:z$e(t,i);break;case 175:F$e(t,i);break;default:C.assertNever(t)}return r}function G$e(e,t){return{to:e,fromSpans:t}}function V$e(e,t){return G$e(jpe(e,t[0].declaration),Ot(t,r=>sb(r.range)))}function j$e(e,t){return t.flags&33554432||Sh(t)?[]:YC(B$e(e,t),yPe,r=>V$e(e,r))}var U$e=T({"src/services/callHierarchy.ts"(){ii()}}),OI={};X(OI,{createCallHierarchyItem:()=>jpe,getIncomingCalls:()=>L$e,getOutgoingCalls:()=>j$e,resolveCallHierarchyDeclaration:()=>vPe});var H$e=T({"src/services/_namespaces/ts.CallHierarchy.ts"(){U$e()}}),bPe={};X(bPe,{TokenEncodingConsts:()=>kpe,TokenModifier:()=>Ope,TokenType:()=>wpe,getEncodedSemanticClassifications:()=>Lpe,getSemanticClassifications:()=>qNe});var q$e=T({"src/services/_namespaces/ts.classifier.v2020.ts"(){XNe()}}),Upe={};X(Upe,{v2020:()=>bPe});var J$e=T({"src/services/_namespaces/ts.classifier.ts"(){q$e()}});function s_(e,t,r){return qpe(e,uT(r),t,void 0,void 0)}function la(e,t,r,i,o,s){return qpe(e,uT(r),t,i,uT(o),s)}function Hpe(e,t,r,i,o,s){return qpe(e,uT(r),t,i,o&&uT(o),s)}function qpe(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function Aa(e){for(const t of e.errorCodes)mz=void 0,r$.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)C.assert(!i$.has(t)),i$.set(t,e)}function K$e(){return mz!=null?mz:mz=Wo(r$.keys())}function X$e(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(Nr(r,s.code)&&i++,i>1)break;const o=i<2;return({fixId:s,fixAllDescription:l,...u})=>o?u:{...u,fixId:s,fixAllDescription:l}}function Y$e(e){const t=SPe(e),r=r$.get(String(e.errorCode));return Pi(r,i=>Ot(i.getCodeActions(e),X$e(i,t)))}function $$e(e){return i$.get(oa(e.fixId,No)).getAllCodeActions(e)}function BD(e,t){return{changes:e,commands:t}}function EPe(e,t){return{fileName:e,textChanges:t}}function As(e,t,r){const i=[],o=_r.ChangeTracker.with(e,s=>GD(e,t,l=>r(s,l,i)));return BD(o,i.length===0?void 0:i)}function GD(e,t,r){for(const i of SPe(e))Nr(t,i.code)&&r(i)}function SPe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...uY(t,e,r)]}var r$,i$,mz,Q$e=T({"src/services/codeFixProvider.ts"(){ii(),r$=Zp(),i$=new Map}});function TPe(e,t,r){const i=$k(r)?w.createAsExpression(r.expression,w.createKeywordTypeNode(159)):w.createTypeAssertion(w.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function APe(e,t){if(!sr(e))return zn(fo(e,t),r=>$k(r)||Hae(r))}var o$,Jpe,Z$e=T({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){ii(),Ra(),o$="addConvertToUnknownForNonOverlappingTypes",Jpe=[m.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],Aa({errorCodes:Jpe,getCodeActions:function(t){const r=APe(t.sourceFile,t.span.start);if(r===void 0)return;const i=_r.ChangeTracker.with(t,o=>TPe(o,t.sourceFile,r));return[la(o$,i,m.Add_unknown_conversion_for_non_overlapping_types,o$,m.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[o$],getAllCodeActions:e=>As(e,Jpe,(t,r)=>{const i=APe(r.file,r.start);i&&TPe(t,r.file,i)})})}}),eQe=T({"src/services/codefixes/addEmptyExportDeclaration.ts"(){ii(),Ra(),Aa({errorCodes:[m.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,m.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,m.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(t){const{sourceFile:r}=t,i=_r.ChangeTracker.with(t,o=>{const s=w.createExportDeclaration(void 0,!1,w.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[s_("addEmptyExportDeclaration",i,m.Add_export_to_make_this_file_into_a_module)]}})}});function IPe(e,t,r,i){const o=r(s=>tQe(s,e.sourceFile,t,i));return la(a$,o,m.Add_async_modifier_to_containing_function,a$,m.Add_all_missing_async_modifiers)}function tQe(e,t,r,i){if(i&&i.has(cs(r)))return;i==null||i.add(cs(r));const o=w.replaceModifiers(ll(r,!0),w.createNodeArray(w.createModifiersFromModifierFlags(Uy(r)|1024)));e.replaceNode(t,r,o)}function xPe(e,t){if(!t)return;const r=fo(e,t.start);return zn(r,o=>o.getStart(e)<t.start||o.getEnd()>$l(t)?"quit":(Us(o)||Kl(o)||Bs(o)||xc(o))&&ND(t,Dd(o,e)))}function nQe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Pv(r)&&Pv(i)&&ND({start:r,length:i},e)&&s===t&&!!o&&St(o,l=>l.code===m.Did_you_mean_to_mark_this_function_as_async.code)}var a$,Kpe,rQe=T({"src/services/codefixes/addMissingAsync.ts"(){ii(),Ra(),a$="addMissingAsync",Kpe=[m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,m.Type_0_is_not_assignable_to_type_1.code,m.Type_0_is_not_comparable_to_type_1.code],Aa({fixIds:[a$],errorCodes:Kpe,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=Tn(s.getTypeChecker().getDiagnostics(r,o),nQe(l,i)),p=u&&u.relatedInformation&&Tn(u.relatedInformation,b=>b.code===m.Did_you_mean_to_mark_this_function_as_async.code),h=xPe(r,p);return h?[IPe(t,h,b=>_r.ChangeTracker.with(t,b))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return As(e,Kpe,(i,o)=>{const s=o.relatedInformation&&Tn(o.relatedInformation,p=>p.code===m.Did_you_mean_to_mark_this_function_as_async.code),l=xPe(t,s);return l?IPe(e,l,p=>(p(i),[]),r):void 0})}})}});function RPe(e,t,r,i,o){const s=VX(e,r);return s&&iQe(e,t,r,i,o)&&NPe(s)?s:void 0}function DPe(e,t,r,i,o,s){const{sourceFile:l,program:u,cancellationToken:p}=e,h=oQe(t,l,p,u,i);if(h){const f=o(b=>{He(h.initializers,({expression:A})=>Xpe(b,r,l,i,A,s)),s&&h.needsSecondPassForFixAll&&Xpe(b,r,l,i,t,s)});return s_("addMissingAwaitToInitializer",f,h.initializers.length===1?[m.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:m.Add_await_to_initializers)}}function CPe(e,t,r,i,o,s){const l=o(u=>Xpe(u,r,e.sourceFile,i,t,s));return la(s$,l,m.Add_await,s$,m.Fix_all_expressions_possibly_missing_await)}function iQe(e,t,r,i,o){const l=o.getTypeChecker().getDiagnostics(e,i);return St(l,({start:u,length:p,relatedInformation:h,code:f})=>Pv(u)&&Pv(p)&&ND({start:u,length:p},r)&&f===t&&!!h&&St(h,b=>b.code===m.Did_you_forget_to_use_await.code))}function oQe(e,t,r,i,o){const s=aQe(e,o);if(!s)return;let l=s.isCompleteFix,u;for(const p of s.identifiers){const h=o.getSymbolAtLocation(p);if(!h)continue;const f=ti(h.valueDeclaration,ki),b=f&&ti(f.name,je),A=S0(f,243);if(!f||!A||f.type||!f.initializer||A.getSourceFile()!==t||$r(A,32)||!b||!NPe(f.initializer)){l=!1;continue}const I=i.getSemanticDiagnostics(t,r);if(Gs.Core.eachSymbolReferenceInFile(b,o,t,M=>p!==M&&!sQe(M,I,t,o))){l=!1;continue}(u||(u=[])).push({expression:f.initializer,declarationSymbol:h})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function aQe(e,t){if(Fr(e.parent)&&je(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(je(e))return{identifiers:[e],isCompleteFix:!0};if(mr(e)){let r,i=!0;for(const o of[e.left,e.right]){const s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!je(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function sQe(e,t,r,i){const o=Fr(e.parent)?e.parent.name:mr(e.parent)?e.parent:e,s=Tn(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&Nr(l$,s.code)||i.getTypeAtLocation(o).flags&1}function NPe(e){return e.flags&65536||!!zn(e,t=>t.parent&&Us(t.parent)&&t.parent.body===t||Jo(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function Xpe(e,t,r,i,o,s){if(Qk(o.parent)&&!o.parent.awaitModifier){const l=i.getTypeAtLocation(o),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){const p=o.parent;e.replaceNode(r,p,w.updateForOfStatement(p,w.createToken(135),p.initializer,p.expression,p.statement));return}}if(mr(o))for(const l of[o.left,o.right]){if(s&&je(l)){const h=i.getSymbolAtLocation(l);if(h&&s.has(Ta(h)))continue}const u=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(u)?w.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===Ype&&Fr(o.parent)){if(s&&je(o.parent.expression)){const l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o.parent.expression,w.createParenthesizedExpression(w.createAwaitExpression(o.parent.expression))),PPe(e,o.parent.expression,r)}else if(Nr($pe,t)&&I_(o.parent)){if(s&&je(o)){const l=i.getSymbolAtLocation(o);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o,w.createParenthesizedExpression(w.createAwaitExpression(o))),PPe(e,o,r)}else{if(s&&ki(o.parent)&&je(o.parent.name)){const l=i.getSymbolAtLocation(o.parent.name);if(l&&!Dv(s,Ta(l)))return}e.replaceNode(r,o,w.createAwaitExpression(o))}}function PPe(e,t,r){const i=Dc(t.pos,r);i&&x5(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var s$,Ype,$pe,l$,lQe=T({"src/services/codefixes/addMissingAwait.ts"(){ii(),Ra(),s$="addMissingAwait",Ype=m.Property_0_does_not_exist_on_type_1.code,$pe=[m.This_expression_is_not_callable.code,m.This_expression_is_not_constructable.code],l$=[m.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,m.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,m.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,m.Operator_0_cannot_be_applied_to_type_1.code,m.Operator_0_cannot_be_applied_to_types_1_and_2.code,m.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,m.This_condition_will_always_return_true_since_this_0_is_always_defined.code,m.Type_0_is_not_an_array_type.code,m.Type_0_is_not_an_array_type_or_a_string_type.code,m.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,m.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,m.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,m.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,m.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Ype,...$pe],Aa({fixIds:[s$],errorCodes:l$,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=RPe(r,i,o,s,l);if(!u)return;const p=t.program.getTypeChecker(),h=f=>_r.ChangeTracker.with(t,f);return WM([DPe(t,u,i,p,h),CPe(t,u,i,p,h)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return As(e,l$,(l,u)=>{const p=RPe(t,u.code,u,i,r);if(!p)return;const h=f=>(f(l),[]);return DPe(e,p,u.code,o,h,s)||CPe(e,p,u.code,o,h,s)})}})}});function MPe(e,t,r,i,o){const s=fo(t,r),l=zn(s,h=>rR(h.parent)?h.parent.initializer===h:cQe(h)?!1:"quit");if(l)return c$(e,l,t,o);const u=s.parent;if(mr(u)&&u.operatorToken.kind===64&&nu(u.parent))return c$(e,s,t,o);if(_d(u)){const h=i.getTypeChecker();return Yn(u.elements,f=>uQe(f,h))?c$(e,u,t,o):void 0}const p=zn(s,h=>nu(h.parent)?!0:dQe(h)?!1:"quit");if(p){const h=i.getTypeChecker();return LPe(p,h)?c$(e,p,t,o):void 0}}function c$(e,t,r,i){(!i||Dv(i,t))&&e.insertModifierBefore(r,87,t)}function cQe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function uQe(e,t){const r=je(e)?e:wc(e,!0)&&je(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function dQe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function LPe(e,t){return mr(e)?e.operatorToken.kind===28?Yn([e.left,e.right],r=>LPe(r,t)):e.operatorToken.kind===64&&je(e.left)&&!t.getSymbolAtLocation(e.left):!1}var u$,Qpe,pQe=T({"src/services/codefixes/addMissingConst.ts"(){ii(),Ra(),u$="addMissingConst",Qpe=[m.Cannot_find_name_0.code,m.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Aa({errorCodes:Qpe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>MPe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[la(u$,r,m.Add_const_to_unresolved_variable,u$,m.Add_const_to_all_unresolved_variables)]},fixIds:[u$],getAllCodeActions:e=>{const t=new Set;return As(e,Qpe,(r,i)=>MPe(r,i.file,i.start,e.program,t))}})}});function kPe(e,t,r,i){const o=fo(t,r);if(!je(o))return;const s=o.parent;s.kind===172&&(!i||Dv(i,s))&&e.insertModifierBefore(t,138,s)}var d$,Zpe,fQe=T({"src/services/codefixes/addMissingDeclareProperty.ts"(){ii(),Ra(),d$="addMissingDeclareProperty",Zpe=[m.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],Aa({errorCodes:Zpe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>kPe(i,t.sourceFile,t.span.start));if(r.length>0)return[la(d$,r,m.Prefix_with_declare,d$,m.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[d$],getAllCodeActions:e=>{const t=new Set;return As(e,Zpe,(r,i)=>kPe(r,i.file,i.start,t))}})}});function wPe(e,t,r){const i=fo(t,r),o=zn(i,Su);C.assert(!!o,"Expected position to be owned by a decorator.");const s=w.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var p$,efe,mQe=T({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){ii(),Ra(),p$="addMissingInvocationForDecorator",efe=[m._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Aa({errorCodes:efe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>wPe(i,t.sourceFile,t.span.start));return[la(p$,r,m.Call_decorator_expression,p$,m.Add_to_all_uncalled_decorators)]},fixIds:[p$],getAllCodeActions:e=>As(e,efe,(t,r)=>wPe(t,r.file,r.start))})}});function OPe(e,t,r){const i=fo(t,r),o=i.parent;if(!Io(o))return C.fail("Tried to add a parameter name to a non-parameter: "+C.formatSyntaxKind(i.kind));const s=o.parent.parameters.indexOf(o);C.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),C.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),u=w.createTypeReferenceNode(o.name,void 0),p=WPe(t,o);for(;p;)u=w.createArrayTypeNode(u),l=p.getEnd(),p=WPe(t,p);const h=w.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!Xk(u)?w.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,xf(o.getStart(t),l),h)}function WPe(e,t){const r=S1(t.name,t.parent,e);if(r&&r.kind===23&&i1(r.parent)&&Io(r.parent.parent))return r.parent.parent}var f$,tfe,_Qe=T({"src/services/codefixes/addNameToNamelessParameter.ts"(){ii(),Ra(),f$="addNameToNamelessParameter",tfe=[m.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Aa({errorCodes:tfe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>OPe(i,t.sourceFile,t.span.start));return[la(f$,r,m.Add_parameter_name,f$,m.Add_names_to_all_parameters_without_names)]},fixIds:[f$],getAllCodeActions:e=>As(e,tfe,(t,r)=>OPe(t,r.file,r.start))})}});function hQe(e,t,r){var i,o;const s=FPe(VX(e,t),r);if(!s)return et;const{source:l,target:u}=s,p=gQe(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(h=>jn(h).fileName.match(/\.d\.ts$/))?et:r.getExactOptionalProperties(p)}function gQe(e,t,r){return Fr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function FPe(e,t){var r;if(e){if(mr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(ki(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(sa(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!PA(i.valueDeclaration.kind)||!bt(e))return;const o=e.parent.arguments.indexOf(e);if(o===-1)return;const s=i.valueDeclaration.parameters[o].name;if(je(s))return{source:e,target:s}}else if(bc(e.parent)&&je(e.parent.name)||rp(e.parent)){const i=FPe(e.parent.parent,t);if(!i)return;const o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o==null?void 0:o.declarations)==null?void 0:r[0];return s?{source:bc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function vQe(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(Ep(i)||Uo(i))&&i.type){const o=w.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],w.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var nfe,zPe,yQe=T({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){ii(),Ra(),nfe="addOptionalPropertyUndefined",zPe=[m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,m.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],Aa({errorCodes:zPe,getCodeActions(e){const t=e.program.getTypeChecker(),r=hQe(e.sourceFile,e.span,t);if(!r.length)return;const i=_r.ChangeTracker.with(e,o=>vQe(o,r));return[s_(nfe,i,m.Add_undefined_to_optional_property_type)]},fixIds:[nfe]})}});function BPe(e,t){const r=fo(e,t);return ti(Io(r.parent)?r.parent.parent:r.parent,GPe)}function GPe(e){return bQe(e)&&VPe(e)}function VPe(e){return js(e)?e.parameters.some(VPe)||!e.type&&!!dL(e):!e.type&&!!m0(e)}function jPe(e,t,r){if(js(r)&&(dL(r)||r.parameters.some(i=>!!m0(i)))){if(!r.typeParameters){const o=C3(r);o.length&&e.insertTypeParameters(t,r,o)}const i=Us(r)&&!Es(r,21,t);i&&e.insertNodeBefore(t,Xa(r.parameters),w.createToken(21));for(const o of r.parameters)if(!o.type){const s=m0(o);s&&e.tryInsertTypeAnnotation(t,o,rt(s,R1,Ui))}if(i&&e.insertNodeAfter(t,es(r.parameters),w.createToken(22)),!r.type){const o=dL(r);o&&e.tryInsertTypeAnnotation(t,r,rt(o,R1,Ui))}}else{const i=C.checkDefined(m0(r),"A JSDocType for this declaration should exist");C.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,rt(i,R1,Ui))}}function bQe(e){return js(e)||e.kind===260||e.kind===171||e.kind===172}function R1(e){switch(e.kind){case 319:case 320:return w.createTypeReferenceNode("any",et);case 323:return SQe(e);case 322:return R1(e.type);case 321:return TQe(e);case 325:return AQe(e);case 324:return IQe(e);case 183:return RQe(e);case 329:return EQe(e);default:const t=xn(e,R1,void 0);return pr(t,1),t}}function EQe(e){const t=w.createTypeLiteralNode(Ot(e.jsDocPropertyTags,r=>w.createPropertySignature(void 0,je(r.name)?r.name:r.name.right,xk(r)?w.createToken(58):void 0,r.typeExpression&&rt(r.typeExpression.type,R1,Ui)||w.createKeywordTypeNode(133))));return pr(t,1),t}function SQe(e){return w.createUnionTypeNode([rt(e.type,R1,Ui),w.createTypeReferenceNode("undefined",et)])}function TQe(e){return w.createUnionTypeNode([rt(e.type,R1,Ui),w.createTypeReferenceNode("null",et)])}function AQe(e){return w.createArrayTypeNode(rt(e.type,R1,Ui))}function IQe(e){var t;return w.createFunctionTypeNode(et,e.parameters.map(xQe),(t=e.type)!=null?t:w.createKeywordTypeNode(133))}function xQe(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?w.createToken(26):e.dotDotDotToken;return w.createParameterDeclaration(e.modifiers,o,i,e.questionToken,rt(e.type,R1,Ui),e.initializer)}function RQe(e){let t=e.typeName,r=e.typeArguments;if(je(e.typeName)){if(u3(e))return DQe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=w.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=w.createNodeArray([w.createTypeReferenceNode("any",et)]):r=Bn(e.typeArguments,R1,Ui)}return w.createTypeReferenceNode(t,r)}function DQe(e){const t=w.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,w.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=w.createTypeLiteralNode([w.createIndexSignature(void 0,[t],e.typeArguments[1])]);return pr(r,1),r}var m$,rfe,CQe=T({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){ii(),Ra(),m$="annotateWithTypeFromJSDoc",rfe=[m.JSDoc_types_may_be_moved_to_TypeScript_types.code],Aa({errorCodes:rfe,getCodeActions(e){const t=BPe(e.sourceFile,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,i=>jPe(i,e.sourceFile,t));return[la(m$,r,m.Annotate_with_type_from_JSDoc,m$,m.Annotate_everything_with_types_from_JSDoc)]},fixIds:[m$],getAllCodeActions:e=>As(e,rfe,(t,r)=>{const i=BPe(r.file,r.start);i&&jPe(t,r.file,i)})})}});function UPe(e,t,r,i,o,s){const l=i.getSymbolAtLocation(fo(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;const u=l.valueDeclaration;if(xc(u)||Bs(u))e.replaceNode(t,u,f(u));else if(ki(u)){const b=h(u);if(!b)return;const A=u.parent.parent;qc(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,A,b)):e.replaceNode(t,A,b)}function p(b){const A=[];return b.exports&&b.exports.forEach(M=>{if(M.name==="prototype"&&M.declarations){const N=M.declarations[0];if(M.declarations.length===1&&Fr(N)&&mr(N.parent)&&N.parent.operatorToken.kind===64&&Wa(N.parent.right)){const O=N.parent.right;R(O.symbol,void 0,A)}}else R(M,[w.createToken(126)],A)}),b.members&&b.members.forEach((M,N)=>{var O,U,K,ee;if(N==="constructor"&&M.valueDeclaration){const V=(ee=(K=(U=(O=b.exports)==null?void 0:O.get("prototype"))==null?void 0:U.declarations)==null?void 0:K[0])==null?void 0:ee.parent;V&&mr(V)&&Wa(V.right)&&St(V.right.properties,h$)||e.delete(t,M.valueDeclaration.parent);return}R(M,void 0,A)}),A;function I(M,N){return zs(M)?Fr(M)&&h$(M)?!0:Qo(N):Yn(M.properties,O=>!!(Kl(O)||T4(O)||bc(O)&&Bs(O.initializer)&&O.name||h$(O)))}function R(M,N,O){if(!(M.flags&8192)&&!(M.flags&4096))return;const U=M.valueDeclaration,K=U.parent,ee=K.right;if(!I(U,ee)||St(O,_e=>{const ye=Po(_e);return!!(ye&&je(ye)&&Tr(ye)===El(M))}))return;const V=K.parent&&K.parent.kind===244?K.parent:K;if(e.delete(t,V),!ee){O.push(w.createPropertyDeclaration(N,M.name,void 0,void 0,void 0));return}if(zs(U)&&(Bs(ee)||Us(ee))){const _e=uf(t,o),ye=NQe(U,s,_e);ye&&se(O,ee,ye);return}else if(Wa(ee)){He(ee.properties,_e=>{(Kl(_e)||T4(_e))&&O.push(_e),bc(_e)&&Bs(_e.initializer)&&se(O,_e.initializer,_e.name),h$(_e)});return}else{if(dd(t)||!Fr(U))return;const _e=w.createPropertyDeclaration(N,U.name,void 0,void 0,ee);MD(K.parent,_e,t),O.push(_e);return}function se(_e,ye,Q){return Bs(ye)?G(_e,ye,Q):re(_e,ye,Q)}function G(_e,ye,Q){const Y=To(N,_$(ye,134)),oe=w.createMethodDeclaration(Y,void 0,Q,void 0,void 0,ye.parameters,void 0,ye.body);MD(K,oe,t),_e.push(oe)}function re(_e,ye,Q){const Y=ye.body;let oe;Y.kind===241?oe=Y:oe=w.createBlock([w.createReturnStatement(Y)]);const he=To(N,_$(ye,134)),Ae=w.createMethodDeclaration(he,void 0,Q,void 0,void 0,ye.parameters,void 0,oe);MD(K,Ae,t),_e.push(Ae)}}}function h(b){const A=b.initializer;if(!A||!Bs(A)||!je(b.name))return;const I=p(b.symbol);A.body&&I.unshift(w.createConstructorDeclaration(void 0,A.parameters,A.body));const R=_$(b.parent.parent,95);return w.createClassDeclaration(R,b.name,void 0,void 0,I)}function f(b){const A=p(l);b.body&&A.unshift(w.createConstructorDeclaration(void 0,b.parameters,b.body));const I=_$(b,95);return w.createClassDeclaration(I,b.name,void 0,void 0,A)}}function _$(e,t){return km(e)?rr(e.modifiers,r=>r.kind===t):void 0}function h$(e){return e.name?!!(je(e.name)&&e.name.text==="constructor"):!1}function NQe(e,t,r){if(Fr(e))return e.name;const i=e.argumentExpression;if(bp(i))return i;if(ds(i))return tf(i.text,ls(t))?w.createIdentifier(i.text):rI(i)?w.createStringLiteral(i.text,r===0):i}var g$,ife,PQe=T({"src/services/codefixes/convertFunctionToEs6Class.ts"(){ii(),Ra(),g$="convertFunctionToEs6Class",ife=[m.This_constructor_function_may_be_converted_to_a_class_declaration.code],Aa({errorCodes:ife,getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>UPe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[la(g$,t,m.Convert_function_to_an_ES2015_class,g$,m.Convert_all_constructor_functions_to_classes)]},fixIds:[g$],getAllCodeActions:e=>As(e,ife,(t,r)=>UPe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function HPe(e,t,r,i){const o=fo(t,r);let s;if(je(o)&&ki(o.parent)&&o.parent.initializer&&js(o.parent.initializer)?s=o.parent.initializer:s=ti(Gp(fo(t,r)),fY),!s)return;const l=new Map,u=sr(s),p=LQe(s,i),h=kQe(s,i,l);if(!dY(h,i))return;const f=h.body&&Jo(h.body)?MQe(h.body,i):et,b={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:u};if(!f.length)return;const A=wa(t.text,L_(s).pos);e.insertModifierAt(t,A,134,{suffix:" "});for(const I of f)if(Vo(I,function R(M){if(sa(M)){const N=VD(M,M,b,!1);if(WI())return!0;e.replaceNodeWithNodes(t,I,N)}else if(!Qo(M)&&(Vo(M,R),WI()))return!0}),WI())return}function MQe(e,t){const r=[];return GE(e,i=>{j5(i,t)&&r.push(i)}),r}function LQe(e,t){if(!e.body)return new Set;const r=new Set;return Vo(e.body,function i(o){qO(o,t,"then")?(r.add(cs(o)),He(o.arguments,i)):qO(o,t,"catch")||qO(o,t,"finally")?(r.add(cs(o)),Vo(o,i)):JPe(o,t)?r.add(cs(o)):Vo(o,i)}),r}function qO(e,t,r){if(!sa(e))return!1;const o=oO(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function qPe(e,t){return(Wr(e)&4)!==0&&e.target===t}function v$(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(qPe(i,r.getPromiseType())||qPe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===kv(e.arguments,0))return kv(e.typeArguments,0);if(t===kv(e.arguments,1))return kv(e.typeArguments,1)}else return kv(e.typeArguments,0)}function JPe(e,t){return bt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function kQe(e,t,r){const i=new Map,o=Zp();return Vo(e,function s(l){if(!je(l)){Vo(l,s);return}const u=t.getSymbolAtLocation(l);if(u){const p=t.getTypeAtLocation(l),h=ZPe(p,t),f=Ta(u).toString();if(h&&!Io(l.parent)&&!js(l.parent)&&!r.has(f)){const b=$c(h.parameters),A=(b==null?void 0:b.valueDeclaration)&&Io(b.valueDeclaration)&&ti(b.valueDeclaration.name,je)||w.createUniqueName("result",16),I=KPe(A,o);r.set(f,I),o.add(A.text,u)}else if(l.parent&&(Io(l.parent)||ki(l.parent)||ns(l.parent))){const b=l.text,A=o.get(b);if(A&&A.some(I=>I!==u)){const I=KPe(l,o);i.set(f,I.identifier),r.set(f,I),o.add(b,u)}else{const I=ll(l);r.set(f,v2(I)),o.add(b,u)}}}}),bO(e,!0,s=>{if(ns(s)&&je(s.name)&&dm(s.parent)){const l=t.getSymbolAtLocation(s.name),u=l&&i.get(String(Ta(l)));if(u&&u.text!==(s.name||s.propertyName).getText())return w.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,u,s.initializer)}else if(je(s)){const l=t.getSymbolAtLocation(s),u=l&&i.get(String(Ta(l)));if(u)return w.createIdentifier(u.text)}})}function KPe(e,t){const r=(t.get(e.text)||et).length,i=r===0?e:w.createIdentifier(e.text+"_"+r);return v2(i)}function WI(){return!hz}function V0(){return hz=!1,et}function VD(e,t,r,i,o){if(qO(t,r.checker,"then"))return WQe(t,kv(t.arguments,0),kv(t.arguments,1),r,i,o);if(qO(t,r.checker,"catch"))return $Pe(t,kv(t.arguments,0),r,i,o);if(qO(t,r.checker,"finally"))return OQe(t,kv(t.arguments,0),r,i,o);if(Fr(t))return VD(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(C.assertNode(Ml(t).parent,Fr),FQe(e,t,r,i,o)):V0()}function y$({checker:e},t){if(t.kind===106)return!0;if(je(t)&&!al(t)&&Tr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function wQe(e){const t=w.createUniqueName(e.identifier.text,16);return v2(t)}function XPe(e,t,r){let i;return r&&!KO(e,t)&&(JO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const l=wQe(r);t.synthNamesMap.set(s,l)}})):i=v2(w.createUniqueName("result",16),r.types),lfe(i)),i}function YPe(e,t,r,i,o){const s=[];let l;if(i&&!KO(e,t)){l=ll(lfe(i));const u=i.types,p=t.checker.getUnionType(u,2),h=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),f=[w.createVariableDeclaration(l,void 0,h)],b=w.createVariableStatement(void 0,w.createVariableDeclarationList(f,1));s.push(b)}return s.push(r),o&&l&&GQe(o)&&s.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ll(r2e(o)),void 0,void 0,l)],2))),s}function OQe(e,t,r,i,o){if(!t||y$(r,t))return VD(e,e.expression.expression,r,i,o);const s=XPe(e,r,o),l=VD(e,e.expression.expression,r,!0,s);if(WI())return V0();const u=afe(t,i,void 0,void 0,e,r);if(WI())return V0();const p=w.createBlock(l),h=w.createBlock(u),f=w.createTryStatement(p,void 0,h);return YPe(e,r,f,s,o)}function $Pe(e,t,r,i,o){if(!t||y$(r,t))return VD(e,e.expression.expression,r,i,o);const s=t2e(t,r),l=XPe(e,r,o),u=VD(e,e.expression.expression,r,!0,l);if(WI())return V0();const p=afe(t,i,l,s,e,r);if(WI())return V0();const h=w.createBlock(u),f=w.createCatchClause(s&&ll(_z(s)),w.createBlock(p)),b=w.createTryStatement(h,f,void 0);return YPe(e,r,b,l,o)}function WQe(e,t,r,i,o,s){if(!t||y$(i,t))return $Pe(e,r,i,o,s);if(r&&!y$(i,r))return V0();const l=t2e(t,i),u=VD(e.expression.expression,e.expression.expression,i,!0,l);if(WI())return V0();const p=afe(t,o,s,l,e,i);return WI()?V0():To(u,p)}function FQe(e,t,r,i,o){if(KO(e,r)){let s=ll(t);return i&&(s=w.createAwaitExpression(s)),[w.createReturnStatement(s)]}return b$(o,w.createAwaitExpression(t),void 0)}function b$(e,t,r){return!e||n2e(e)?[w.createExpressionStatement(t)]:JO(e)&&e.hasBeenDeclared?[w.createExpressionStatement(w.createAssignment(ll(sfe(e)),t))]:[w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ll(_z(e)),void 0,r,t)],2))]}function ofe(e,t){if(t&&e){const r=w.createUniqueName("result",16);return[...b$(v2(r),e,t),w.createReturnStatement(r)]}return[w.createReturnStatement(e)]}function afe(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const u=w.createCallExpression(ll(e),void 0,JO(i)?[sfe(i)]:[]);if(KO(o,s))return ofe(u,v$(o,e,s.checker));const p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return V0();const f=h[0].getReturnType(),b=b$(r,w.createAwaitExpression(u),v$(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(f)||f),b;case 218:case 219:{const A=e.body,I=(l=ZPe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Jo(A)){let R=[],M=!1;for(const N of A.statements)if(Mm(N))if(M=!0,j5(N,s.checker))R=R.concat(e2e(s,N,t,r));else{const O=I&&N.expression?QPe(s.checker,I,N.expression):N.expression;R.push(...ofe(O,v$(o,e,s.checker)))}else{if(t&&GE(N,Mv))return V0();R.push(N)}return KO(o,s)?R.map(N=>ll(N)):zQe(R,r,s,M)}else{const R=pY(A,s.checker)?e2e(s,w.createReturnStatement(A),t,r):et;if(R.length>0)return R;if(I){const M=QPe(s.checker,I,A);if(KO(o,s))return ofe(M,v$(o,e,s.checker));{const N=b$(r,M,void 0);return r&&r.types.push(s.checker.getAwaitedType(I)||I),N}}else return V0()}}default:return V0()}return et}function QPe(e,t,r){const i=ll(r);return e.getPromisedTypeOfPromise(t)?w.createAwaitExpression(i):i}function ZPe(e,t){const r=t.getSignaturesOfType(e,0);return el(r)}function zQe(e,t,r,i){const o=[];for(const s of e)if(Mm(s)){if(s.expression){const l=JPe(s.expression,r.checker)?w.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(w.createExpressionStatement(l)):JO(t)&&t.hasBeenDeclared?o.push(w.createExpressionStatement(w.createAssignment(sfe(t),l))):o.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(_z(t),void 0,void 0,l)],2)))}}else o.push(ll(s));return!i&&t!==void 0&&o.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(_z(t),void 0,void 0,w.createIdentifier("undefined"))],2))),o}function e2e(e,t,r,i){let o=[];return Vo(t,function s(l){if(sa(l)){const u=VD(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else Qo(l)||Vo(l,s)}),o}function t2e(e,t){const r=[];let i;if(js(e)){if(e.parameters.length>0){const p=e.parameters[0].name;i=o(p)}}else je(e)?i=s(e):Fr(e)&&je(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(p){if(je(p))return s(p);const h=Pi(p.elements,f=>Hc(f)?[]:[o(f.name)]);return BQe(p,h)}function s(p){const h=u(p),f=l(h);return f&&t.synthNamesMap.get(Ta(f).toString())||v2(p,r)}function l(p){var f;var h;return(f=(h=ti(p,x_))==null?void 0:h.symbol)!=null?f:t.checker.getSymbolAtLocation(p)}function u(p){return p.original?p.original:p}}function n2e(e){return e?JO(e)?!e.identifier.text:Yn(e.elements,n2e):!0}function v2(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function BQe(e,t=et,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function sfe(e){return e.hasBeenReferenced=!0,e.identifier}function _z(e){return JO(e)?lfe(e):r2e(e)}function r2e(e){for(const t of e.elements)_z(t);return e.bindingPattern}function lfe(e){return e.hasBeenDeclared=!0,e.identifier}function JO(e){return e.kind===0}function GQe(e){return e.kind===1}function KO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(cs(e.original))}var E$,cfe,hz,VQe=T({"src/services/codefixes/convertToAsyncFunction.ts"(){ii(),Ra(),E$="convertToAsyncFunction",cfe=[m.This_may_be_converted_to_an_async_function.code],hz=!0,Aa({errorCodes:cfe,getCodeActions(e){hz=!0;const t=_r.ChangeTracker.with(e,r=>HPe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return hz?[la(E$,t,m.Convert_to_async_function,E$,m.Convert_all_to_async_functions)]:[]},fixIds:[E$],getAllCodeActions:e=>As(e,cfe,(t,r)=>HPe(t,r.file,r.start,e.program.getTypeChecker()))})}});function jQe(e,t,r,i,o){var s;for(const l of e.imports){const u=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;const p=DN(l);switch(p.kind){case 271:i.replaceNode(e,p,ty(p.name,void 0,l,o));break;case 213:Td(p,!1)&&i.replaceNode(e,p,w.createPropertyAccessExpression(ll(p),"default"));break}}}function UQe(e,t,r,i,o){const s={original:rZe(e),additional:new Set},l=HQe(e,t,s);qQe(e,l,r);let u=!1,p;for(const h of rr(e.statements,kl)){const f=o2e(e,h,r,t,s,i,o);f&&F4(f,p!=null?p:p=new Map)}for(const h of rr(e.statements,f=>!kl(f))){const f=JQe(e,h,t,r,s,i,l,p,o);u=u||f}return p==null||p.forEach((h,f)=>{r.replaceNode(e,f,h)}),u}function HQe(e,t,r){const i=new Map;return i2e(e,o=>{const{text:s}=o.name;!i.has(s)&&(iU(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,S$("_".concat(s),r))}),i}function qQe(e,t,r){i2e(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,w.createIdentifier(t.get(s)||s))})}function i2e(e,t){e.forEachChild(function r(i){if(Fr(i)&&_1(e,i.expression)&&je(i.name)){const{parent:o}=i;t(i,mr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function JQe(e,t,r,i,o,s,l,u,p){switch(t.kind){case 243:return o2e(e,t,i,r,o,s,p),!1;case 244:{const{expression:h}=t;switch(h.kind){case 213:return Td(h,!0)&&i.replaceNode(e,t,ty(void 0,void 0,h.arguments[0],p)),!1;case 226:{const{operatorToken:f}=h;return f.kind===64&&XQe(e,r,h,i,l,u)}}}default:return!1}}function o2e(e,t,r,i,o,s,l){const{declarationList:u}=t;let p=!1;const h=Ot(u.declarations,f=>{const{name:b,initializer:A}=f;if(A){if(_1(e,A))return p=!0,y2([]);if(Td(A,!0))return p=!0,tZe(b,A.arguments[0],i,o,s,l);if(Fr(A)&&Td(A.expression,!0))return p=!0,KQe(b,A.name.text,A.expression.arguments[0],o,l)}return y2([w.createVariableStatement(void 0,w.createVariableDeclarationList([f],u.flags))])});if(p){r.replaceNodeWithNodes(e,t,Pi(h,b=>b.newImports));let f;return He(h,b=>{b.useSitesToUnqualify&&F4(b.useSitesToUnqualify,f!=null?f:f=new Map)}),f}}function KQe(e,t,r,i,o){switch(e.kind){case 206:case 207:{const s=S$(t,i);return y2([c2e(s,t,r,o),T$(void 0,e,w.createIdentifier(s))])}case 80:return y2([c2e(e.text,t,r,o)]);default:return C.assertNever(e,"Convert to ES module got invalid syntax form ".concat(e.kind))}}function XQe(e,t,r,i,o,s){const{left:l,right:u}=r;if(!Fr(l))return!1;if(_1(e,l))if(_1(e,u))i.delete(e,r.parent);else{const p=Wa(u)?YQe(u,s):Td(u,!0)?QQe(u.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,xf(l.getStart(e),u.pos),"export default"),!0)}else _1(e,l.expression)&&$Qe(e,r,i,o);return!1}function YQe(e,t){const r=CE(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return je(i.name)?eZe(i.name.text,i.initializer,t):void 0;case 174:return je(i.name)?l2e(i.name.text,[w.createToken(95)],i,t):void 0;default:C.assertNever(i,"Convert to ES6 got invalid prop kind ".concat(i.kind))}});return r&&[r,!1]}function $Qe(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const l=[T$(void 0,s,t.right),pfe([w.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else ZQe(t,e,r)}function QQe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:U6;return o.has("export=")?[[ufe(r)],!0]:o.has("default")?o.size>1?[[a2e(r),ufe(r)],!0]:[[ufe(r)],!0]:[[a2e(r)],!1]}function a2e(e){return pfe(void 0,e)}function ufe(e){return pfe([w.createExportSpecifier(!1,void 0,"default")],e)}function ZQe({left:e,right:t,parent:r},i,o){const s=e.name.text;if((Bs(t)||Us(t)||tu(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},w.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);const l=Es(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,Es(e,25,i),[w.createToken(95),w.createToken(87)],{joiner:" ",suffix:" "})}function eZe(e,t,r){const i=[w.createToken(95)];switch(t.kind){case 218:{const{name:s}=t;if(s&&s.text!==e)return o()}case 219:return l2e(e,i,t,r);case 231:return oZe(e,i,t,r);default:return o()}function o(){return T$(i,w.createIdentifier(e),dfe(t,r))}}function dfe(e,t){if(!t||!St(Wo(t.keys()),i=>cf(e,i)))return e;return Ao(e)?kX(e,!0,r):bO(e,!0,r);function r(i){if(i.kind===211){const o=t.get(i);return t.delete(i),o}}}function tZe(e,t,r,i,o,s){switch(e.kind){case 206:{const l=CE(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!je(u.propertyName)||!je(u.name)?void 0:u2e(u.propertyName&&u.propertyName.text,u.name.text));if(l)return y2([ty(void 0,l,t,s)])}case 207:{const l=S$(Ife(t.text,o),i);return y2([ty(w.createIdentifier(l),void 0,t,s),T$(void 0,ll(e),w.createIdentifier(l))])}case 80:return nZe(e,t,r,i,s);default:return C.assertNever(e,"Convert to ES module got invalid name kind ".concat(e.kind))}}function nZe(e,t,r,i,o){const s=r.getSymbolAtLocation(e),l=new Map;let u=!1,p;for(const f of i.original.get(e.text)){if(r.getSymbolAtLocation(f)!==s||f===e)continue;const{parent:b}=f;if(Fr(b)){const{name:{text:A}}=b;if(A==="default"){u=!0;const I=f.getText();(p!=null?p:p=new Map).set(b,w.createIdentifier(I))}else{C.assert(b.expression===f,"Didn't expect expression === use");let I=l.get(A);I===void 0&&(I=S$(A,i),l.set(A,I)),(p!=null?p:p=new Map).set(b,w.createIdentifier(I))}}else u=!0}const h=l.size===0?void 0:Wo(Ia(l.entries(),([f,b])=>w.createImportSpecifier(!1,f===b?void 0:w.createIdentifier(f),w.createIdentifier(b))));return h||(u=!0),y2([ty(u?ll(e):void 0,h,t,o)],p)}function S$(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_".concat(e);return t.additional.add(e),e}function rZe(e){const t=Zp();return s2e(e,r=>t.add(r.text,r)),t}function s2e(e,t){je(e)&&iZe(e)&&t(e),e.forEachChild(r=>s2e(r,t))}function iZe(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function l2e(e,t,r,i){return w.createFunctionDeclaration(To(t,T1(r.modifiers)),ll(r.asteriskToken),e,T1(r.typeParameters),T1(r.parameters),ll(r.type),w.converters.convertToFunctionBlock(dfe(r.body,i)))}function oZe(e,t,r,i){return w.createClassDeclaration(To(t,T1(r.modifiers)),e,T1(r.typeParameters),T1(r.heritageClauses),dfe(r.members,i))}function c2e(e,t,r,i){return t==="default"?ty(w.createIdentifier(e),void 0,r,i):ty(void 0,[u2e(t,e)],r,i)}function u2e(e,t){return w.createImportSpecifier(!1,e!==void 0&&e!==t?w.createIdentifier(e):void 0,w.createIdentifier(t))}function T$(e,t,r){return w.createVariableStatement(e,w.createVariableDeclarationList([w.createVariableDeclaration(t,void 0,void 0,r)],2))}function pfe(e,t){return w.createExportDeclaration(void 0,!1,e&&w.createNamedExports(e),t===void 0?void 0:w.createStringLiteral(t))}function y2(e,t){return{newImports:e,useSitesToUnqualify:t}}var aZe=T({"src/services/codefixes/convertToEsModule.ts"(){ii(),Ra(),Aa({errorCodes:[m.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,o=_r.ChangeTracker.with(e,s=>{if(UQe(t,r.getTypeChecker(),s,ls(r.getCompilerOptions()),uf(t,i)))for(const u of r.getSourceFiles())jQe(u,t,r,s,uf(u,i))});return[s_("convertToEsModule",o,m.Convert_to_ES_module)]}})}});function d2e(e,t){const r=zn(fo(e,t),Id);return C.assert(!!r,"Expected position to be owned by a qualified name."),je(r.left)?r:void 0}function p2e(e,t,r){const i=r.right.text,o=w.createIndexedAccessTypeNode(w.createTypeReferenceNode(r.left,void 0),w.createLiteralTypeNode(w.createStringLiteral(i)));e.replaceNode(t,r,o)}var A$,ffe,sZe=T({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){ii(),Ra(),A$="correctQualifiedNameToIndexedAccessType",ffe=[m.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],Aa({errorCodes:ffe,getCodeActions(e){const t=d2e(e.sourceFile,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,o=>p2e(o,e.sourceFile,t)),i="".concat(t.left.text,'["').concat(t.right.text,'"]');return[la(A$,r,[m.Rewrite_as_the_indexed_access_type_0,i],A$,m.Rewrite_all_as_indexed_access_types)]},fixIds:[A$],getAllCodeActions:e=>As(e,ffe,(t,r)=>{const i=d2e(r.file,r.start);i&&p2e(t,r.file,i)})})}});function f2e(e,t){return ti(fo(t,e.start).parent,Ku)}function m2e(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=lZe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{const l=w.updateExportDeclaration(o,o.modifiers,!1,w.updateNamedExports(i,rr(i.elements,p=>!Nr(s,p))),o.moduleSpecifier,void 0),u=w.createExportDeclaration(void 0,!0,w.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,u)}}function lZe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=mde(Dd(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return rr(r.elements,o=>{var s;return o===e||((s=fde(o,i))==null?void 0:s.code)===I$[0]})}var I$,x$,cZe=T({"src/services/codefixes/convertToTypeOnlyExport.ts"(){ii(),Ra(),I$=[m.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],x$="convertToTypeOnlyExport",Aa({errorCodes:I$,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>m2e(i,f2e(t.span,t.sourceFile),t));if(r.length)return[la(x$,r,m.Convert_to_type_only_export,x$,m.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[x$],getAllCodeActions:function(t){const r=new Map;return As(t,I$,(i,o)=>{const s=f2e(o,t.sourceFile);s&&Pm(r,cs(s.parent.parent))&&m2e(i,s,t)})}})}});function _2e(e,t){const{parent:r}=fo(e,t);return np(r)||Oc(r)&&r.importClause?r:void 0}function h2e(e,t,r){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;const o=r.getTypeChecker();for(const s of i)if(Gs.Core.eachSymbolReferenceInFile(s.name,o,t,u=>!I0(u)))return!1;return!0}function gz(e,t,r){var i;if(np(r))e.replaceNode(t,r,w.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[w.createImportDeclaration(T1(r.modifiers,!0),w.createImportClause(!0,ll(o.name,!0),void 0),ll(r.moduleSpecifier,!0),ll(r.attributes,!0)),w.createImportDeclaration(T1(r.modifiers,!0),w.createImportClause(!0,void 0,ll(o.namedBindings,!0)),ll(r.moduleSpecifier,!0),ll(r.attributes,!0))]);else{const s=((i=o.namedBindings)==null?void 0:i.kind)===275?w.updateNamedImports(o.namedBindings,no(o.namedBindings.elements,u=>w.updateImportSpecifier(u,!1,u.propertyName,u.name))):o.namedBindings,l=w.updateImportDeclaration(r,r.modifiers,w.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var mfe,vz,uZe=T({"src/services/codefixes/convertToTypeOnlyImport.ts"(){ii(),Ra(),mfe=[m.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,m._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,m._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],vz="convertToTypeOnlyImport",Aa({errorCodes:mfe,getCodeActions:function(t){var o;var r;const i=_2e(t.sourceFile,t.span.start);if(i){const s=_r.ChangeTracker.with(t,p=>gz(p,t.sourceFile,i)),l=i.kind===276&&h2e(i,t.sourceFile,t.program)?_r.ChangeTracker.with(t,p=>gz(p,t.sourceFile,i.parent.parent.parent)):void 0,u=la(vz,s,i.kind===276?[m.Use_type_0,(o=(r=i.propertyName)==null?void 0:r.text)!=null?o:i.name.text]:m.Use_import_type,vz,m.Fix_all_with_type_only_imports);return St(l)?[s_(vz,l,m.Use_import_type),u]:[u]}},fixIds:[vz],getAllCodeActions:function(t){const r=new Set;return As(t,mfe,(i,o)=>{const s=_2e(o.file,o.start);(s==null?void 0:s.kind)===272&&!r.has(s)?(gz(i,o.file,s),r.add(s)):(s==null?void 0:s.kind)===276&&!r.has(s.parent.parent.parent)&&h2e(s,o.file,t.program)?(gz(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):(s==null?void 0:s.kind)===276&&gz(i,o.file,s)})}})}});function g2e(e,t,r,i,o=!1){if(!YS(t))return;const s=pZe(t);if(!s)return;const l=t.parent,{leftSibling:u,rightSibling:p}=dZe(t);let h=l.getStart(),f="";!u&&l.comment&&(h=v2e(l,l.getStart(),t.getStart()),f="".concat(i," */").concat(i)),u&&(o&&YS(u)?(h=t.getStart(),f=""):(h=v2e(l,u.getStart(),t.getStart()),f="".concat(i," */").concat(i)));let b=l.getEnd(),A="";p&&(o&&YS(p)?(b=p.getStart(),A="".concat(i).concat(i)):(b=p.getStart(),A="".concat(i,"/**").concat(i," * "))),e.replaceRange(r,{pos:h,end:b},s,{prefix:f,suffix:A})}function dZe(e){const t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),o=i>0?t.getChildAt(i-1):void 0,s=i<r?t.getChildAt(i+1):void 0;return{leftSibling:o,rightSibling:s}}function v2e(e,t,r){const i=e.getText().substring(t-e.getStart(),r-e.getStart());for(let o=i.length;o>0;o--)if(!/[*/\s]/g.test(i.substring(o-1,o)))return t+o;return r}function pZe(e){var t;const{typeExpression:r}=e;if(!r)return;const i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return fZe(i,r);if(r.kind===316)return mZe(i,r)}}function fZe(e,t){const r=y2e(t);if(St(r))return w.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function mZe(e,t){const r=ll(t.type);if(r)return w.createTypeAliasDeclaration(void 0,w.createIdentifier(e),void 0,r)}function y2e(e){const t=e.jsDocPropertyTags;return St(t)?Hi(t,i=>{var o;const s=_Ze(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed;let p;if(l&&XS(l)){const h=y2e(l);p=w.createTypeLiteralNode(h)}else l&&(p=ll(l));if(p&&s){const h=u?w.createToken(58):void 0;return w.createPropertySignature(void 0,s,h,p)}}):void 0}function _Ze(e){return e.name.kind===80?e.name.text:e.name.right.text}function hZe(e){return Fp(e)?Pi(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>YS(i))}):[]}var R$,_fe,gZe=T({"src/services/codefixes/convertTypedefToType.ts"(){ii(),Ra(),R$="convertTypedefToType",_fe=[m.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Aa({fixIds:[R$],errorCodes:_fe,getCodeActions(e){const t=ny(e.host,e.formatContext.options),r=fo(e.sourceFile,e.span.start);if(!r)return;const i=_r.ChangeTracker.with(e,o=>g2e(o,r,e.sourceFile,t));if(i.length>0)return[la(R$,i,m.Convert_typedef_to_TypeScript_type,R$,m.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>As(e,_fe,(t,r)=>{const i=ny(e.host,e.formatContext.options),o=fo(r.file,r.start);o&&g2e(t,o,r.file,i,!0)})})}});function b2e(e,t){const r=fo(e,t);if(je(r)){const i=oa(r.parent.parent,Ep),o=r.getText(e);return{container:oa(i.parent,Tp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function E2e(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,w.createMappedTypeNode(void 0,w.createTypeParameterDeclaration(void 0,s,w.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var D$,hfe,vZe=T({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){ii(),Ra(),D$="convertLiteralTypeToMappedType",hfe=[m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Aa({errorCodes:hfe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=b2e(r,i.start);if(!o)return;const{name:s,constraint:l}=o,u=_r.ChangeTracker.with(t,p=>E2e(p,r,o));return[la(D$,u,[m.Convert_0_to_1_in_0,l,s],D$,m.Convert_all_type_literals_to_mapped_type)]},fixIds:[D$],getAllCodeActions:e=>As(e,hfe,(t,r)=>{const i=b2e(r.file,r.start);i&&E2e(t,r.file,i)})})}});function S2e(e,t){return C.checkDefined(cu(fo(e,t)),"There should be a containing class")}function T2e(e){return!e.valueDeclaration||!(pd(e.valueDeclaration)&2)}function A2e(e,t,r,i,o,s){const l=e.program.getTypeChecker(),u=yZe(i,l),p=l.getTypeAtLocation(t),f=l.getPropertiesOfType(p).filter(B6(T2e,N=>!u.has(N.escapedName))),b=l.getTypeAtLocation(i),A=Tn(i.members,N=>Ll(N));b.getNumberIndexType()||R(p,1),b.getStringIndexType()||R(p,0);const I=FI(r,e.program,s,e.host);Ame(i,f,r,e,s,I,N=>M(r,i,N)),I.writeFixes(o);function R(N,O){const U=l.getIndexInfoOfType(N,O);U&&M(r,i,l.indexInfoToIndexSignatureDeclaration(U,i,void 0,jD(e)))}function M(N,O,U){A?o.insertNodeAfter(N,A,U):o.insertMemberAtStart(N,O,U)}}function yZe(e,t){const r=D_(e);if(!r)return ua();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return ua(o.filter(T2e))}var gfe,C$,bZe=T({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){ii(),Ra(),gfe=[m.Class_0_incorrectly_implements_interface_1.code,m.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],C$="fixClassIncorrectlyImplementsInterface",Aa({errorCodes:gfe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=S2e(t,r.start);return Hi(IR(i),o=>{const s=_r.ChangeTracker.with(e,l=>A2e(e,o,t,i,l,e.preferences));return s.length===0?void 0:la(C$,s,[m.Implement_interface_0,o.getText(t)],C$,m.Implement_all_unimplemented_interfaces)})},fixIds:[C$],getAllCodeActions(e){const t=new Map;return As(e,gfe,(r,i)=>{const o=S2e(i.file,i.start);if(Pm(t,cs(o)))for(const s of IR(o))A2e(e,s,i.file,o,r,e.preferences)})}})}});function FI(e,t,r,i,o){return I2e(e,t,!1,r,i,o)}function I2e(e,t,r,i,o,s){const l=t.getCompilerOptions(),u=[],p=[],h=new Map,f=new Map;return{addImportFromDiagnostic:b,addImportFromExportedSymbol:A,writeFixes:R,hasFixes:M};function b(N,O){const U=P2e(O,N.code,N.start,r);!U||!U.length||I(Xa(U))}function A(N,O){const U=C.checkDefined(N.parent),K=M5(N,ls(l)),ee=t.getTypeChecker(),V=ee.getMergedSymbol(Eu(N,ee)),se=D2e(e,V,K,U,!1,t,o,i,s),G=P$(e,t),re=x2e(e,C.checkDefined(se),t,void 0,!!O,G,o,i);re&&I({fix:re,symbolName:K})}function I(N){var O,U;const{fix:K,symbolName:ee}=N;switch(K.kind){case 0:u.push(K);break;case 1:p.push(K);break;case 2:{const{importClauseOrBindingPattern:re,importKind:_e,addAsTypeOnly:ye}=K,Q=String(cs(re));let Y=h.get(Q);if(Y||h.set(Q,Y={importClauseOrBindingPattern:re,defaultImport:void 0,namedImports:new Map}),_e===0){const oe=Y==null?void 0:Y.namedImports.get(ee);Y.namedImports.set(ee,V(oe,ye))}else C.assert(Y.defaultImport===void 0||Y.defaultImport.name===ee,"(Add to Existing) Default import should be missing or match symbolName"),Y.defaultImport={name:ee,addAsTypeOnly:V((O=Y.defaultImport)==null?void 0:O.addAsTypeOnly,ye)};break}case 3:{const{moduleSpecifier:re,importKind:_e,useRequire:ye,addAsTypeOnly:Q}=K,Y=se(re,_e,ye,Q);switch(C.assert(Y.useRequire===ye,"(Add new) Tried to add an `import` and a `require` for the same module"),_e){case 1:C.assert(Y.defaultImport===void 0||Y.defaultImport.name===ee,"(Add new) Default import should be missing or match symbolName"),Y.defaultImport={name:ee,addAsTypeOnly:V((U=Y.defaultImport)==null?void 0:U.addAsTypeOnly,Q)};break;case 0:const oe=(Y.namedImports||(Y.namedImports=new Map)).get(ee);Y.namedImports.set(ee,V(oe,Q));break;case 3:case 2:C.assert(Y.namespaceLikeImport===void 0||Y.namespaceLikeImport.name===ee,"Namespacelike import shoudl be missing or match symbolName"),Y.namespaceLikeImport={importKind:_e,name:ee,addAsTypeOnly:Q};break}break}case 4:break;default:C.assertNever(K,"fix wasn't never - got kind ".concat(K.kind))}function V(re,_e){return Math.max(re!=null?re:0,_e)}function se(re,_e,ye,Q){const Y=G(re,!0),oe=G(re,!1),he=f.get(Y),Ae=f.get(oe),de={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ye};return _e===1&&Q===2?he||(f.set(Y,de),de):Q===1&&(he||Ae)?he||Ae:Ae||(f.set(oe,de),de)}function G(re,_e){return"".concat(_e?1:0,"|").concat(re)}}function R(N,O){let U;e.imports.length===0&&O!==void 0?U=O:U=uf(e,i);for(const ee of u)Sfe(N,e,ee);for(const ee of p)F2e(N,e,ee,U);h.forEach(({importClauseOrBindingPattern:ee,defaultImport:V,namedImports:se})=>{W2e(N,e,ee,V,Wo(se.entries(),([G,re])=>({addAsTypeOnly:re,name:G})),i)});let K;f.forEach(({useRequire:ee,defaultImport:V,namedImports:se,namespaceLikeImport:G},re)=>{const _e=re.slice(2),Q=(ee?G2e:B2e)(_e,U,V,se&&Wo(se.entries(),([Y,oe])=>({addAsTypeOnly:oe,name:Y})),G,l,i);K=Fx(K,Q)}),K&&s2(N,e,K,!0,i)}function M(){return u.length>0||p.length>0||h.size>0||f.size>0}}function EZe(e,t,r,i){const o=m2(e,i,r),s=C2e(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(u,p,h,f){const{fixes:b,computedWithoutCacheCount:A}=N$(u,p,h,!1,t,e,r,i,s,f),I=M2e(b,e,t,o,r);return I&&{...I,computedWithoutCacheCount:A}}}function SZe(e,t,r,i,o,s,l,u,p,h,f,b){let A;r?(A=RO(i,l,u,f,b).get(i.path,r),C.assertIsDefined(A,"Some exportInfo should match the specified exportMapKey")):(A=zV(am(t.name))?[AZe(e,o,t,u,l)]:D2e(i,e,o,t,s,u,l,f,b),C.assertIsDefined(A,"Some exportInfo should match the specified symbol / moduleSymbol"));const I=P$(i,u),R=I0(fo(i,h)),M=C.checkDefined(x2e(i,A,u,h,R,I,l,f));return{moduleSpecifier:M.moduleSpecifier,codeAction:R2e(Efe({host:l,formatContext:p,preferences:f},i,o,M,!1,u,f))}}function TZe(e,t,r,i,o,s){const l=r.getCompilerOptions(),u=hG(bfe(e,r.getTypeChecker(),t,l)),p=w2e(e,t,u,r),h=u!==t.text;return p&&R2e(Efe({host:i,formatContext:o,preferences:s},e,u,p,h,r,s))}function x2e(e,t,r,i,o,s,l,u){const p=m2(e,u,l);return M2e(N$(t,i,o,s,r,e,l,u).fixes,e,r,p,l)}function R2e({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function D2e(e,t,r,i,o,s,l,u,p){const h=N2e(s,l);return RO(e,l,s,u,p).search(e.path,o,f=>f===r,f=>{if(Eu(f[0].symbol,h(f[0].isFromPackageJson))===t&&f.some(b=>b.moduleSymbol===i||b.symbol.parent===i))return f})}function AZe(e,t,r,i,o){var s,l;const u=i.getCompilerOptions(),p=f(i.getTypeChecker(),!1);if(p)return p;const h=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return C.checkDefined(h&&f(h,!0),"Could not find symbol in specified module for code actions");function f(b,A){const I=z5(r,b,u);if(I&&Eu(I.symbol,b)===e)return{symbol:I.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:I.exportKind,targetFlags:Eu(e,b).flags,isFromPackageJson:A};const R=b.tryGetMemberInModuleExportsAndProperties(t,r);if(R&&Eu(R,b)===e)return{symbol:R,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:Eu(e,b).flags,isFromPackageJson:A}}}function N$(e,t,r,i,o,s,l,u,p=C2e(o.getTypeChecker(),s,o.getCompilerOptions()),h){const f=o.getTypeChecker(),b=Pi(e,p.getImportsForExportInfo),A=t!==void 0&&IZe(b,t),I=RZe(b,r,f,o.getCompilerOptions());if(I)return{computedWithoutCacheCount:0,fixes:[...A?[A]:et,I]};const{fixes:R,computedWithoutCacheCount:M=0}=CZe(e,b,o,s,t,r,i,l,u,h);return{computedWithoutCacheCount:M,fixes:[...A?[A]:et,...R]}}function IZe(e,t){return qt(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=xZe(r),l=s&&((o=yR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function xZe(e){var t,r,i;switch(e.kind){case 260:return(t=ti(e.name,je))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=ti((r=e.importClause)==null?void 0:r.namedBindings,nb))==null?void 0:i.name.text;default:return C.assertNever(e)}}function vfe(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||wU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function RZe(e,t,r,i){let o;for(const l of e){const u=s(l);if(!u)continue;const p=_L(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&p||u.addAsTypeOnly===4&&!p)return u;o!=null||(o=u)}return o;function s({declaration:l,importKind:u,symbol:p,targetFlags:h}){if(u===3||u===2||l.kind===271)return;if(l.kind===260)return(u===0||u===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:f}=l;if(!f||!ds(l.moduleSpecifier))return;const{name:b,namedBindings:A}=f;if(f.isTypeOnly&&!(u===0&&A))return;const I=vfe(t,!1,p,h,r,i);if(!(u===1&&(b||I===2&&A))&&!(u===0&&(A==null?void 0:A.kind)===274))return{kind:2,importClauseOrBindingPattern:f,importKind:u,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:I}}}function C2e(e,t,r){let i;for(const o of t.imports){const s=DN(o);if(d3(s.parent)){const l=e.resolveExternalModuleName(o);l&&(i||(i=Zp())).add(Ta(l),s.parent)}else if(s.kind===272||s.kind===271){const l=e.getSymbolAtLocation(o);l&&(i||(i=Zp())).add(Ta(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{if(!(l&111551)&&dd(t))return et;const p=i==null?void 0:i.get(Ta(o));if(!p)return et;const h=yfe(t,s,r);return p.map(f=>({declaration:f,importKind:h,symbol:u,targetFlags:l}))}}}function P$(e,t){if(!dd(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return wu(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!dd(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function N2e(e,t){return ph(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function DZe(e,t,r,i,o,s,l,u,p){const h=dd(t),f=e.getCompilerOptions(),b=sT(e,l),A=N2e(e,l),I=md(f),R=m5(I),M=p?U=>({moduleSpecifiers:h1.tryGetModuleSpecifiersFromCache(U,t,b,u),computedWithoutCache:!1}):(U,K)=>h1.getModuleSpecifiersWithCacheInfo(U,K,f,t,b,u,void 0,!0);let N=0;const O=Pi(s,(U,K)=>{const ee=A(U.isFromPackageJson),{computedWithoutCache:V,moduleSpecifiers:se}=M(U.moduleSymbol,ee),G=!!(U.targetFlags&111551),re=vfe(i,!0,U.symbol,U.targetFlags,ee,f);return N+=V?1:0,Hi(se,_e=>{var ye;if(R&&w0(_e))return;if(!G&&h&&r!==void 0)return{kind:1,moduleSpecifier:_e,usagePosition:r,exportInfo:U,isReExport:K>0};const Q=yfe(t,U.exportKind,f);let Y;if(r!==void 0&&Q===3&&U.exportKind===0){const oe=ee.resolveExternalModuleSymbol(U.moduleSymbol);let he;oe!==U.moduleSymbol&&(he=(ye=B5(oe,ee,f))==null?void 0:ye.name),he||(he=Afe(U.moduleSymbol,ls(f),!1)),Y={namespacePrefix:he,usagePosition:r}}return{kind:3,moduleSpecifier:_e,importKind:Q,useRequire:o,addAsTypeOnly:re,exportInfo:U,isReExport:K>0,qualification:Y}})});return{computedWithoutCacheCount:N,fixes:O}}function CZe(e,t,r,i,o,s,l,u,p,h){const f=qt(t,b=>NZe(b,s,l,r.getTypeChecker(),r.getCompilerOptions()));return f?{fixes:[f]}:DZe(r,i,o,s,l,e,u,p,h)}function NZe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var p;const h=(p=yR(e))==null?void 0:p.text;if(h){const f=s?4:vfe(o,!0,r,i,l,u);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:f,useRequire:s}}}function P2e(e,t,r,i){const o=fo(e.sourceFile,r);let s;if(t===m._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=kZe(e,o);else if(je(o))if(t===m._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=hG(bfe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=w2e(e.sourceFile,o,u,e.program);return p&&[{fix:p,symbolName:u,errorIdentifierText:o.text}]}else s=WZe(e,o,i);else return;const l=m2(e.sourceFile,e.preferences,e.host);return s&&PZe(s,e.sourceFile,e.program,l,e.host)}function PZe(e,t,r,i,o){const s=l=>il(l,o.getCurrentDirectory(),Vv(o));return uS(e,(l,u)=>Ry(!!l.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||nl(l.fix.kind,u.fix.kind)||L2e(l.fix,u.fix,t,r,i.allowsImportingSpecifier,s))}function M2e(e,t,r,i,o){if(St(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>L2e(l,s,t,r,i.allowsImportingSpecifier,u=>il(u,o.getCurrentDirectory(),Vv(o)))===-1?l:s)}function L2e(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Ry(o(t.moduleSpecifier),o(e.moduleSpecifier))||LZe(e.moduleSpecifier,t.moduleSpecifier,r,i)||Ry(k2e(e,r,i.getCompilerOptions(),s),k2e(t,r,i.getCompilerOptions(),s))||Sk(e.moduleSpecifier,t.moduleSpecifier):0}function k2e(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&MZe(e.exportInfo.moduleFileName)){const s=i(ri(e.exportInfo.moduleFileName));return po(t.path,s)}return!1}function MZe(e){return lc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function LZe(e,t,r,i){return po(e,"node:")&&!po(t,"node:")?k5(r,i)?-1:1:po(t,"node:")&&!po(e,"node:")?k5(r,i)?1:-1:0}function kZe({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),l=wZe(o,s);if(!l)return;const u=s.getAliasedSymbol(l),p=l.name,h=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],f=P$(e,t);return N$(h,void 0,!1,f,t,e,r,i).fixes.map(A=>{var I;return{fix:A,symbolName:p,errorIdentifierText:(I=ti(o,je))==null?void 0:I.text}})}function wZe(e,t){const r=je(e)?t.getSymbolAtLocation(e):void 0;if(z3(r))return r;const{parent:i}=e;if(ud(i)&&i.tagName===e||hI(i)){const o=t.resolveName(t.getJsxNamespace(i),ud(i)?e:i,111551,!1);if(z3(o))return o}}function yfe(e,t,r,i){if(r.verbatimModuleSyntax&&(wu(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return BZe(e,r,!!i);case 3:return OZe(e,r,!!i);default:return C.assertNever(t)}}function OZe(e,t,r){if(FS(t))return 1;const i=wu(t);switch(i){case 2:case 1:case 3:return sr(e)&&(dc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return C.assertNever(i,"Unexpected moduleKind ".concat(i))}}function WZe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){const u=t.getTypeChecker(),p=t.getCompilerOptions();return Pi(bfe(e,u,s,p),h=>{if(h==="default")return;const f=I0(s),b=P$(e,t),A=zZe(h,hR(s),oT(s),r,e,t,l,i,o);return Wo(Qp(A.values(),I=>N$(I,s.getStart(e),f,b,t,e,i,o).fixes),I=>({fix:I,symbolName:h,errorIdentifierText:s.text,isJsxNamespaceFix:h!==s.text}))})}function w2e(e,t,r,i){const o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;const l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||jn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function bfe(e,t,r,i){const o=r.parent;if((ud(o)||l1(o))&&o.tagName===r&&qX(i.jsx)){const s=t.getJsxNamespace(e);if(FZe(s,r,t))return!CR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function FZe(e,t,r){if(CR(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||St(i.declarations,h0)&&!(i.flags&111551)}function zZe(e,t,r,i,o,s,l,u,p){var h;const f=Zp(),b=m2(o,p,u),A=(h=u.getModuleSpecifierCache)==null?void 0:h.call(u),I=ph(M=>sT(M?u.getPackageJsonAutoImportProvider():s,u));function R(M,N,O,U,K,ee){const V=I(ee);if(N&&ZX(K,o,N,p,b,V,A)||!N&&b.allowsImportingAmbientModule(M,V)){const se=K.getTypeChecker();f.add(ide(O,se).toString(),{symbol:O,moduleSymbol:M,moduleFileName:N==null?void 0:N.fileName,exportKind:U,targetFlags:Eu(O,se).flags,isFromPackageJson:ee})}}return eY(s,u,p,l,(M,N,O,U)=>{const K=O.getTypeChecker();i.throwIfCancellationRequested();const ee=O.getCompilerOptions(),V=z5(M,K,ee);V&&(V.name===e||Afe(M,ls(ee),t)===e)&&j2e(V.resolvedSymbol,r)&&R(M,N,V.symbol,V.exportKind,O,U);const se=K.tryGetMemberInModuleExportsAndProperties(e,M);se&&j2e(se,r)&&R(M,N,se,0,O,U)}),f}function BZe(e,t,r){const i=FS(t),o=sr(e);if(!o&&wu(t)>=5)return i?1:2;if(o)return dc(e)||r?i?1:2:3;for(const s of e.statements)if(ru(s)&&!Gl(s.moduleReference))return 3;return i?1:3}function Efe(e,t,r,i,o,s,l){let u;const p=_r.ChangeTracker.with(e,h=>{u=GZe(h,t,r,i,o,s,l)});return la(xfe,p,u,Rfe,m.Add_all_missing_imports)}function GZe(e,t,r,i,o,s,l){const u=uf(t,l);switch(i.kind){case 0:return Sfe(e,t,i),[m.Change_0_to_1,r,"".concat(i.namespacePrefix,".").concat(r)];case 1:return F2e(e,t,i,u),[m.Change_0_to_1,r,z2e(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:f,moduleSpecifier:b}=i;W2e(e,t,p,h===1?{name:r,addAsTypeOnly:f}:void 0,h===0?[{name:r,addAsTypeOnly:f}]:et,l);const A=am(b);return o?[m.Import_0_from_1,r,A]:[m.Update_import_from_0,A]}case 3:{const{importKind:p,moduleSpecifier:h,addAsTypeOnly:f,useRequire:b,qualification:A}=i,I=b?G2e:B2e,R=p===1?{name:r,addAsTypeOnly:f}:void 0,M=p===0?[{name:r,addAsTypeOnly:f}]:void 0,N=p===2||p===3?{importKind:p,name:(A==null?void 0:A.namespacePrefix)||r,addAsTypeOnly:f}:void 0;return s2(e,t,I(h,u,R,M,N,s.getCompilerOptions(),l),!0,l),A&&Sfe(e,t,A),o?[m.Import_0_from_1,r,h]:[m.Add_import_from_0,h]}case 4:{const{typeOnlyAliasDeclaration:p}=i,h=VZe(e,p,s,t,l);return h.kind===276?[m.Remove_type_from_import_of_0_from_1,r,O2e(h.parent.parent)]:[m.Remove_type_from_import_declaration_from_0,O2e(h)]}default:return C.assertNever(i,"Unexpected fix kind ".concat(i.kind))}}function O2e(e){var t,r;return e.kind===271?((r=ti((t=ti(e.moduleReference,xh))==null?void 0:t.expression,ds))==null?void 0:r.text)||e.moduleReference.getText():oa(e.parent.moduleSpecifier,Ma).text}function VZe(e,t,r,i,o){var p;const s=r.getCompilerOptions(),l=wU(s);switch(t.kind){case 276:if(t.isTypeOnly){const h=Wm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&h){const f=w.updateImportSpecifier(t,!1,t.propertyName,t.name),b=Wm.getOrganizeImportsComparer(o,h===2),A=Wm.getImportSpecifierInsertionIndex(t.parent.elements,f,b,o);if(A!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,f,t.parent,A),t}return e.deleteRange(i,{pos:g0(t.getFirstToken()),end:g0((p=t.propertyName)!=null?p:t.name)}),t}else return C.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 273:return u(t),t;case 274:return u(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:C.failBadSyntaxKind(t)}function u(h){var f;if(e.delete(i,TX(h,i)),!s.allowImportingTsExtensions){const b=yR(h.parent),A=b&&((f=r.getResolvedModuleFromModuleSpecifier(b))==null?void 0:f.resolvedModule);if(A!=null&&A.resolvedUsingTsExtension){const I=$M(b.text,p7(b.text,s));e.replaceNode(i,b,w.createStringLiteral(I))}}if(l){const b=ti(h.namedBindings,Kg);if(b&&b.elements.length>1){Wm.detectImportSpecifierSorting(b.elements,o)&&t.kind===276&&b.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,b,0));for(const A of b.elements)A!==t&&!A.isTypeOnly&&e.insertModifierBefore(i,156,A)}}}}function W2e(e,t,r,i,o,s){var l;if(r.kind===206){i&&h(r,i.name,"default");for(const f of o)h(r,f.name,void 0);return}const u=r.isTypeOnly&&St([i,...o],f=>(f==null?void 0:f.addAsTypeOnly)===4),p=r.namedBindings&&((l=ti(r.namedBindings,Kg))==null?void 0:l.elements);if(i&&(C.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),w.createIdentifier(i.name),{suffix:", "})),o.length){let f;if(typeof s.organizeImportsIgnoreCase=="boolean")f=s.organizeImportsIgnoreCase;else if(p){const R=Wm.detectImportSpecifierSorting(p,s);R!==3&&(f=R===2)}f===void 0&&(f=Wm.detectSorting(t,s)===2);const b=Wm.getOrganizeImportsComparer(s,f),A=Cv(o.map(R=>w.createImportSpecifier((!r.isTypeOnly||u)&&M$(R,s),void 0,w.createIdentifier(R.name))),(R,M)=>Wm.compareImportOrExportSpecifiers(R,M,b)),I=(p==null?void 0:p.length)&&Wm.detectImportSpecifierSorting(p,s);if(I&&!(f&&I===1))for(const R of A){const M=u&&!R.isTypeOnly?0:Wm.getImportSpecifierInsertionIndex(p,R,b,s);e.insertImportSpecifierAtIndex(t,R,r.namedBindings,M)}else if(p!=null&&p.length)for(const R of A)e.insertNodeInListAfter(t,es(p),R,p);else if(A.length){const R=w.createNamedImports(A);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,C.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(u&&(e.delete(t,TX(r,t)),p))for(const f of p)e.insertModifierBefore(t,156,f);function h(f,b,A){const I=w.createBindingElement(void 0,A,b);f.elements.length?e.insertNodeInListAfter(t,es(f.elements),I):e.replaceNode(t,f,w.createObjectBindingPattern([I]))}}function Sfe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function F2e(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,z2e(r,o))}function z2e(e,t){const r=SX(t);return"import(".concat(r).concat(e).concat(r,").")}function Tfe({addAsTypeOnly:e}){return e===2}function M$(e,t){return Tfe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function B2e(e,t,r,i,o,s,l){const u=MI(e,t);let p;if(r!==void 0||i!=null&&i.length){const h=(!r||Tfe(r))&&Yn(i,Tfe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&(r==null?void 0:r.addAsTypeOnly)!==4&&!St(i,f=>f.addAsTypeOnly===4);p=Fx(p,ty(r&&w.createIdentifier(r.name),i==null?void 0:i.map(f=>w.createImportSpecifier(!h&&M$(f,l),void 0,w.createIdentifier(f.name))),e,t,h))}if(o){const h=o.importKind===3?w.createImportEqualsDeclaration(void 0,M$(o,l),w.createIdentifier(o.name),w.createExternalModuleReference(u)):w.createImportDeclaration(void 0,w.createImportClause(M$(o,l),void 0,w.createNamespaceImport(w.createIdentifier(o.name))),u,void 0);p=Fx(p,h)}return C.checkDefined(p)}function G2e(e,t,r,i,o){const s=MI(e,t);let l;if(r||i!=null&&i.length){const u=(i==null?void 0:i.map(({name:h})=>w.createBindingElement(void 0,void 0,h)))||[];r&&u.unshift(w.createBindingElement(void 0,"default",r.name));const p=V2e(w.createObjectBindingPattern(u),s);l=Fx(l,p)}if(o){const u=V2e(o.name,s);l=Fx(l,u)}return C.checkDefined(l)}function V2e(e,t){return w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(typeof e=="string"?w.createIdentifier(e):e,void 0,void 0,w.createCallExpression(w.createIdentifier("require"),void 0,[t]))],2))}function j2e({declarations:e},t){return St(e,r=>!!(rO(r)&t))}function Afe(e,t,r){return Ife(Ad(am(e.name)),t,r)}function Ife(e,t,r){const i=lc(Gx(e,"/index"));let o="",s=!0;const l=i.charCodeAt(0);eg(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let u=1;u<i.length;u++){const p=i.charCodeAt(u),h=c0(p,t);if(h){let f=String.fromCharCode(p);s||(f=f.toUpperCase()),o+=f}s=h}return GA(o)?"_".concat(o):o||"_"}var xfe,Rfe,Dfe,jZe=T({"src/services/codefixes/importFixes.ts"(){ii(),Ra(),xfe="import",Rfe="fixMissingImport",Dfe=[m.Cannot_find_name_0.code,m.Cannot_find_name_0_Did_you_mean_1.code,m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,m.Cannot_find_namespace_0.code,m._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,m.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,m._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,m.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,m.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,m.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,m.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,m.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,m.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,m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,m.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,m.Cannot_find_namespace_0_Did_you_mean_1.code],Aa({errorCodes:Dfe,getCodeActions(e){const{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,l=P2e(e,t,o.start,!0);if(l)return l.map(({fix:u,symbolName:p,errorIdentifierText:h})=>Efe(e,i,p,u,p!==h,s,r))},fixIds:[Rfe],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=I2e(t,r,!0,i,o,s);return GD(e,Dfe,u=>l.addImportFromDiagnostic(u,e)),BD(_r.ChangeTracker.with(e,l.writeFixes))}})}});function U2e(e,t,r){const i=Tn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=Tn(i.relatedInformation,l=>l.code===m.This_type_parameter_might_need_an_extends_0_constraint.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=Pme(o.file,yu(o.start,o.length));if(s!==void 0&&(je(s)&&gl(s.parent)&&(s=s.parent),gl(s))){if(KR(s.parent))return;const l=fo(t,r.start),u=e.getTypeChecker();return{constraint:HZe(u,l)||UZe(o.messageText),declaration:s,token:l}}}function H2e(e,t,r,i,o,s){const{declaration:l,constraint:u}=s,p=t.getTypeChecker();if(No(u))e.insertText(o,l.name.end," extends ".concat(u));else{const h=ls(t.getCompilerOptions()),f=jD({program:t,host:i}),b=FI(o,t,r,i),A=hQ(p,b,u,void 0,h,void 0,f);A&&(e.replaceNode(o,l,w.updateTypeParameterDeclaration(l,void 0,l.name,A,l.default)),b.writeFixes(e))}}function UZe(e){const[,t]=z_(e,"\n",0).match(/`extends (.*)`/)||[];return t}function HZe(e,t){return Ui(t.parent)?e.getTypeArgumentConstraint(t.parent):(bt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var L$,Cfe,qZe=T({"src/services/codefixes/fixAddMissingConstraint.ts"(){ii(),Ra(),L$="addMissingConstraint",Cfe=[m.Type_0_is_not_comparable_to_type_1.code,m.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,m.Type_0_is_not_assignable_to_type_1.code,m.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,m.Property_0_is_incompatible_with_index_signature.code,m.Property_0_in_type_1_is_not_assignable_to_type_2.code,m.Type_0_does_not_satisfy_the_constraint_1.code],Aa({errorCodes:Cfe,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=U2e(i,t,r);if(l===void 0)return;const u=_r.ChangeTracker.with(e,p=>H2e(p,i,o,s,t,l));return[la(L$,u,m.Add_extends_constraint,L$,m.Add_extends_constraint_to_all_type_parameters)]},fixIds:[L$],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Map;return BD(_r.ChangeTracker.with(e,s=>{GD(e,Cfe,l=>{const u=U2e(t,l.file,yu(l.start,l.length));if(u&&Pm(o,cs(u.declaration)))return H2e(s,t,r,i,l.file,u)})}))}})}});function q2e(e,t,r,i){switch(r){case m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return JZe(e,t.sourceFile,i);case m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return KZe(e,t.sourceFile,i);default:C.fail("Unexpected error code: "+r)}}function JZe(e,t,r){const i=K2e(t,r);if(dd(t)){e.addJSDocTags(t,i,[w.createJSDocOverrideTag(w.createIdentifier("override"))]);return}const o=i.modifiers||et,s=Tn(o,aI),l=Tn(o,Bae),u=Tn(o,b=>pX(b.kind)),p=ko(o,Su),h=l?l.end:s?s.end:u?u.end:p?wa(t.text,p.end):i.getStart(t),f=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,h,164,f)}function KZe(e,t,r){const i=K2e(t,r);if(dd(t)){e.filterJSDocTags(t,i,G6(cF));return}const o=Tn(i.modifiers,Gae);C.assertIsDefined(o),e.deleteModifier(t,o)}function J2e(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return hp(e,e.parent);default:return!1}}function K2e(e,t){const r=fo(e,t),i=zn(r,o=>ui(o)?"quit":J2e(o));return C.assert(i&&J2e(i)),i}var Nfe,b2,XO,Pfe,Mfe,XZe=T({"src/services/codefixes/fixOverrideModifier.ts"(){ii(),Ra(),Nfe="fixOverrideModifier",b2="fixAddOverrideModifier",XO="fixRemoveOverrideModifier",Pfe=[m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Mfe={[m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:b2,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:b2,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:m.Remove_override_modifier,fixId:XO,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers},[m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:m.Remove_override_modifier,fixId:XO,fixAllDescriptions:m.Remove_override_modifier},[m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:b2,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:b2,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:b2,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers},[m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:m.Remove_override_modifier,fixId:XO,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers},[m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:m.Remove_override_modifier,fixId:XO,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers}},Aa({errorCodes:Pfe,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=Mfe[r];if(!o)return et;const{descriptions:s,fixId:l,fixAllDescriptions:u}=o,p=_r.ChangeTracker.with(t,h=>q2e(h,t,r,i.start));return[Hpe(Nfe,p,s,l,u)]},fixIds:[Nfe,b2,XO],getAllCodeActions:e=>As(e,Pfe,(t,r)=>{const{code:i,start:o}=r,s=Mfe[i];!s||s.fixId!==e.fixId||q2e(t,e,i,o)})})}});function X2e(e,t,r,i){const o=uf(t,i),s=w.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,A4(r)?w.createElementAccessChain(r.expression,r.questionDotToken,s):w.createElementAccessExpression(r.expression,s))}function Y2e(e,t){return oa(fo(e,t).parent,Fr)}var k$,Lfe,YZe=T({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){ii(),Ra(),k$="fixNoPropertyAccessFromIndexSignature",Lfe=[m.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Aa({errorCodes:Lfe,fixIds:[k$],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=Y2e(t,r.start),s=_r.ChangeTracker.with(e,l=>X2e(l,e.sourceFile,o,i));return[la(k$,s,[m.Use_element_access_for_0,o.name.text],k$,m.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>As(e,Lfe,(t,r)=>X2e(t,r.file,Y2e(r.file,r.start),e.preferences))})}});function $2e(e,t,r,i){const o=fo(t,r);if(!xD(o))return;const s=Fd(o,!1,!1);if(!(!xc(s)&&!Bs(s))&&!Zi(Fd(s,!1,!1))){const l=C.checkDefined(Es(s,100,t)),{name:u}=s,p=C.checkDefined(s.body);return Bs(s)?u&&Gs.Core.isSymbolReferencedInFile(u,i,t,p)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,p.pos," =>"),[m.Convert_function_expression_0_to_arrow_function,u?u.text:F5]):(e.replaceNode(t,l,w.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,p.pos," =>"),[m.Convert_function_declaration_0_to_arrow_function,u.text])}}var w$,kfe,$Ze=T({"src/services/codefixes/fixImplicitThis.ts"(){ii(),Ra(),w$="fixImplicitThis",kfe=[m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Aa({errorCodes:kfe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const l=_r.ChangeTracker.with(t,u=>{s=$2e(u,r,o.start,i.getTypeChecker())});return s?[la(w$,l,s,w$,m.Fix_all_implicit_this_errors)]:et},fixIds:[w$],getAllCodeActions:e=>As(e,kfe,(t,r)=>{$2e(t,r.file,r.start,e.program.getTypeChecker())})})}});function Q2e(e,t,r){var i,o;const s=fo(e,t);if(je(s)){const l=zn(s,Oc);if(l===void 0)return;const u=Ma(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(u===void 0)return;const p=(i=r.getResolvedModuleFromModuleSpecifier(u))==null?void 0:i.resolvedModule;if(p===void 0)return;const h=r.getSourceFile(p.resolvedFileName);if(h===void 0||LD(r,h))return;const f=h.symbol,b=(o=ti(f.valueDeclaration,_h))==null?void 0:o.locals;if(b===void 0)return;const A=b.get(s.escapedText);if(A===void 0)return;const I=ZZe(A);return I===void 0?void 0:{exportName:{node:s,isTypeOnly:GR(I)},node:I,moduleSourceFile:h,moduleSpecifier:u.text}}}function QZe(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=O$(o,r.isTypeOnly);s?Z2e(e,t,o,s,[r]):Ik(i)?e.insertExportModifier(o,i):eMe(e,t,o,[r])}function wfe(e,t,r,i,o){Le(i)&&(o?Z2e(e,t,r,o,i):eMe(e,t,r,i))}function O$(e,t){const r=i=>Zl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return ko(e.statements,r)}function Z2e(e,t,r,i,o){const s=i.exportClause&&Pf(i.exportClause)?i.exportClause.elements:w.createNodeArray([]),l=!i.isTypeOnly&&!!(um(t.getCompilerOptions())||Tn(s,u=>u.isTypeOnly));e.replaceNode(r,i,w.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,w.createNamedExports(w.createNodeArray([...s,...tMe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function eMe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,w.createExportDeclaration(void 0,!1,w.createNamedExports(tMe(i,um(t.getCompilerOptions()))),void 0,void 0))}function tMe(e,t){return w.createNodeArray(Ot(e,r=>w.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function ZZe(e){if(e.valueDeclaration===void 0)return $c(e.declarations);const t=e.valueDeclaration,r=ki(t)?ti(t.parent.parent,kl):void 0;return r&&Le(r.declarationList.declarations)===1?r:t}var W$,Ofe,eet=T({"src/services/codefixes/fixImportNonExportedMember.ts"(){ii(),Ra(),W$="fixImportNonExportedMember",Ofe=[m.Module_0_declares_1_locally_but_it_is_not_exported.code],Aa({errorCodes:Ofe,fixIds:[W$],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=Q2e(t,r.start,i);if(o===void 0)return;const s=_r.ChangeTracker.with(e,l=>QZe(l,i,o));return[la(W$,s,[m.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],W$,m.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return BD(_r.ChangeTracker.with(e,r=>{const i=new Map;GD(e,Ofe,o=>{const s=Q2e(o.file,o.start,t);if(s===void 0)return;const{exportName:l,node:u,moduleSourceFile:p}=s;if(O$(p,l.isTypeOnly)===void 0&&Ik(u))r.insertExportModifier(p,u);else{const h=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?h.typeOnlyExports.push(l):h.exports.push(l),i.set(p,h)}}),i.forEach((o,s)=>{const l=O$(s,!0);l&&l.isTypeOnly?(wfe(r,t,s,o.typeOnlyExports,l),wfe(r,t,s,o.exports,O$(s,!1))):wfe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function tet(e,t){const r=fo(e,t);return zn(r,i=>i.kind===202)}function net(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?o=!0:i.kind===191&&(s=!0),i=i.type;const l=w.updateNamedTupleMember(r,r.dotDotDotToken||(s?w.createToken(26):void 0),r.name,r.questionToken||(o?w.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var F$,nMe,ret=T({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){ii(),Ra(),F$="fixIncorrectNamedTupleSyntax",nMe=[m.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,m.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Aa({errorCodes:nMe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=tet(r,i.start),s=_r.ChangeTracker.with(t,l=>net(l,r,o));return[la(F$,s,m.Move_labeled_tuple_element_modifiers_to_labels,F$,m.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[F$]})}});function rMe(e,t,r,i){const o=fo(e,t),s=o.parent;if((i===m.No_overload_matches_this_call.code||i===m.Type_0_is_not_assignable_to_type_1.code)&&!F_(s))return;const l=r.program.getTypeChecker();let u;if(Fr(s)&&s.name===o){C.assert(tg(o),"Expected an identifier for spelling (property access)");let p=l.getTypeAtLocation(s.expression);s.flags&64&&(p=l.getNonNullableType(p)),u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(mr(s)&&s.operatorToken.kind===103&&s.left===o&&Ji(o)){const p=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Id(s)&&s.right===o){const p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(np(s)&&s.name===o){C.assertNode(o,je,"Expected an identifier for spelling (import)");const p=zn(o,Oc),h=oet(r,p);h&&h.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(F_(s)&&s.name===o){C.assertNode(o,je,"Expected an identifier for JSX attribute");const p=zn(o,ud),h=l.getContextualTypeForArgumentAtIndex(p,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,h)}else if(P3(s)&&Zc(s)&&s.name===o){const p=zn(o,ui),h=p?D_(p):void 0,f=h?l.getTypeAtLocation(h):void 0;f&&(u=l.getSuggestedSymbolForNonexistentClassMember(gc(o),f))}else{const p=oT(o),h=gc(o);C.assert(h!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,h,iet(p))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function iMe(e,t,r,i,o){const s=El(i);if(!tf(s,o)&&Fr(r.parent)){const l=i.valueDeclaration;l&&ld(l)&&Ji(l.name)?e.replaceNode(t,r,w.createIdentifier(s)):e.replaceNode(t,r.parent,w.createElementAccessExpression(r.parent.expression,w.createStringLiteral(s)))}else e.replaceNode(t,r,w.createIdentifier(s))}function iet(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function oet(e,t){var r;if(!t||!ds(t.moduleSpecifier))return;const i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var Wfe,Ffe,aet=T({"src/services/codefixes/fixSpelling.ts"(){ii(),Ra(),Wfe="fixSpelling",Ffe=[m.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,m.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,m.Cannot_find_name_0_Did_you_mean_1.code,m.Could_not_find_name_0_Did_you_mean_1.code,m.Cannot_find_namespace_0_Did_you_mean_1.code,m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,m._0_has_no_exported_member_named_1_Did_you_mean_2.code,m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,m.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,m.No_overload_matches_this_call.code,m.Type_0_is_not_assignable_to_type_1.code],Aa({errorCodes:Ffe,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=rMe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,l=ls(e.host.getCompilationSettings()),u=_r.ChangeTracker.with(e,p=>iMe(p,t,o,s,l));return[la("spelling",u,[m.Change_spelling_to_0,El(s)],Wfe,m.Fix_all_detected_spelling_errors)]},fixIds:[Wfe],getAllCodeActions:e=>As(e,Ffe,(t,r)=>{const i=rMe(r.file,r.start,e,r.code),o=ls(e.host.getCompilationSettings());i&&iMe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function oMe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const o=ua([i]);return e.createAnonymousType(void 0,o,[],[],[])}function zfe(e,t,r,i){if(!t.body||!Jo(t.body)||Le(t.body.statements)!==1)return;const o=Xa(t.body.statements);if(nu(o)&&Bfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(s1(o)&&nu(o.statement)){const s=w.createObjectLiteralExpression([w.createPropertyAssignment(o.label,o.statement.expression)]),l=oMe(e,o.label,o.statement.expression);if(Bfe(e,t,l,r,i))return Us(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if(Jo(o)&&Le(o.statements)===1){const s=Xa(o.statements);if(s1(s)&&nu(s.statement)){const l=w.createObjectLiteralExpression([w.createPropertyAssignment(s.label,s.statement.expression)]),u=oMe(e,s.label,s.statement.expression);if(Bfe(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function Bfe(e,t,r,i,o){if(o){const s=e.getSignatureFromDeclaration(t);if(s){$r(t,1024)&&(r=e.createPromiseType(r));const l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,ua(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function aMe(e,t,r,i){const o=fo(t,r);if(!o.parent)return;const s=zn(o.parent,js);switch(i){case m.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!cf(s.type,o)?void 0:zfe(e,s,e.getTypeFromTypeNode(s.type),!1);case m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!sa(s.parent)||!s.body)return;const l=s.parent.arguments.indexOf(s);if(l===-1)return;const u=e.getContextualTypeForArgumentAtIndex(s.parent,l);return u?zfe(e,s,u,!0):void 0;case m.Type_0_is_not_assignable_to_type_1.code:if(!jg(o)||!fR(o.parent)&&!F_(o.parent))return;const p=set(o.parent);return!p||!js(p)||!p.body?void 0:zfe(e,p,e.getTypeAtLocation(o.parent),!0)}}function set(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(TP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function sMe(e,t,r,i){xp(r);const o=TO(t);e.replaceNode(t,i,w.createReturnStatement(r),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function lMe(e,t,r,i,o,s){const l=S5(i)?w.createParenthesizedExpression(i):i;xp(o),lT(o,l),e.replaceNode(t,r.body,l)}function cMe(e,t,r,i){e.replaceNode(t,r.body,w.createParenthesizedExpression(i))}function cet(e,t,r){const i=_r.ChangeTracker.with(e,o=>sMe(o,e.sourceFile,t,r));return la(z$,i,m.Add_a_return_statement,B$,m.Add_all_missing_return_statement)}function uet(e,t,r,i){const o=_r.ChangeTracker.with(e,s=>lMe(s,e.sourceFile,t,r,i));return la(z$,o,m.Remove_braces_from_arrow_function_body,G$,m.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function det(e,t,r){const i=_r.ChangeTracker.with(e,o=>cMe(o,e.sourceFile,t,r));return la(z$,i,m.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,V$,m.Wrap_all_object_literal_with_parentheses)}var z$,B$,G$,V$,Gfe,pet=T({"src/services/codefixes/returnValueCorrect.ts"(){ii(),Ra(),z$="returnValueCorrect",B$="fixAddReturnStatement",G$="fixRemoveBracesFromArrowFunctionBody",V$="fixWrapTheBlockWithParen",Gfe=[m.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,m.Type_0_is_not_assignable_to_type_1.code,m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Aa({errorCodes:Gfe,fixIds:[B$,G$,V$],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=aMe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Rn([cet(t,l.expression,l.statement)],Us(l.declaration)?uet(t,l.declaration,l.expression,l.commentSource):void 0):[det(t,l.declaration,l.expression)]},getAllCodeActions:e=>As(e,Gfe,(t,r)=>{const i=aMe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case B$:sMe(t,r.file,i.expression,i.statement);break;case G$:if(!Us(i.declaration))return;lMe(t,r.file,i.declaration,i.expression,i.commentSource);break;case V$:if(!Us(i.declaration))return;cMe(t,r.file,i.declaration,i.expression);break;default:C.fail(JSON.stringify(e.fixId))}})})}});function uMe(e,t,r,i,o){var s;const l=fo(e,t),u=l.parent;if(r===m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&Wa(u)&&sa(u.parent)))return;const I=Br(u.parent.arguments,O=>O===u);if(I<0)return;const R=i.getResolvedSignature(u.parent);if(!(R&&R.declaration&&R.parameters[I]))return;const M=R.parameters[I].valueDeclaration;if(!(M&&Io(M)&&je(M.name)))return;const N=Wo(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(R,I),!1,!1));return Le(N)?{kind:3,token:M.name,identifier:M.name.text,properties:N,parentDeclaration:u}:void 0}if(l.kind===19&&Wa(u)){const I=i.getContextualType(u)||i.getTypeAtLocation(u),R=Wo(i.getUnmatchedProperties(i.getTypeAtLocation(u),I,!1,!1));return Le(R)?{kind:3,token:u,identifier:"",properties:R,parentDeclaration:u}:void 0}if(!tg(l))return;if(je(l)&&zy(u)&&u.initializer&&Wa(u.initializer)){const I=i.getContextualType(l)||i.getTypeAtLocation(l),R=Wo(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),I,!1,!1));return Le(R)?{kind:3,token:l,identifier:l.text,properties:R,parentDeclaration:u.initializer}:void 0}if(je(l)&&ud(l.parent)){const I=ls(o.getCompilerOptions()),R=yet(i,I,l.parent);return Le(R)?{kind:4,token:l,attributes:R,parentDeclaration:l.parent}:void 0}if(je(l)){const I=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(I&&Wr(I)&16){const R=$c(i.getSignaturesOfType(I,0));return R===void 0?void 0:{kind:5,token:l,signature:R,sourceFile:e,parentDeclaration:EMe(l)}}if(sa(u)&&u.expression===l)return{kind:2,token:l,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:EMe(l)}}if(!Fr(u))return;const p=vX(i.getTypeAtLocation(u.expression)),h=p.symbol;if(!h||!h.declarations)return;if(je(l)&&sa(u.parent)){const I=Tn(h.declarations,Ql),R=I==null?void 0:I.getSourceFile();if(I&&R&&!LD(o,R))return{kind:2,token:l,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:I};const M=Tn(h.declarations,Zi);if(e.commonJsModuleIndicator)return;if(M&&!LD(o,M))return{kind:2,token:l,call:u.parent,sourceFile:M,modifierFlags:32,parentDeclaration:M}}const f=Tn(h.declarations,ui);if(!f&&Ji(l))return;const b=f||Tn(h.declarations,I=>hd(I)||Tp(I));if(b&&!LD(o,b.getSourceFile())){const I=!Tp(b)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(I&&(Ji(l)||hd(b)))return;const R=b.getSourceFile(),M=Tp(b)?0:(I?256:0)|(HX(l.text)?2:0),N=dd(R),O=ti(u.parent,sa);return{kind:0,token:l,call:O,modifierFlags:M,parentDeclaration:b,declSourceFile:R,isJSFile:N}}const A=Tn(h.declarations,D0);if(A&&!(p.flags&1056)&&!Ji(l)&&!LD(o,A.getSourceFile()))return{kind:1,token:l,parentDeclaration:A}}function fet(e,t){return t.isJSFile?AA(met(e,t)):_et(e,t)}function met(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(hd(t)||Tp(t))return;const s=_r.ChangeTracker.with(e,u=>dMe(u,r,t,o,!!(i&256)));if(s.length===0)return;const l=i&256?m.Initialize_static_property_0:Ji(o)?m.Declare_a_private_field_named_0:m.Initialize_property_0_in_the_constructor;return la(cb,s,[l,o.text],cb,m.Add_all_missing_members)}function dMe(e,t,r,i,o){const s=i.text;if(o){if(r.kind===231)return;const l=r.name.getText(),u=pMe(w.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(Ji(i)){const l=w.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=_Me(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{const l=cg(r);if(!l)return;const u=pMe(w.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function pMe(e,t){return w.createExpressionStatement(w.createAssignment(w.createPropertyAccessExpression(e,t),zI()))}function _et(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,l=i&256,u=fMe(e.program.getTypeChecker(),t,o),p=f=>_r.ChangeTracker.with(e,b=>mMe(b,r,t,s,u,f)),h=[la(cb,p(i&256),[l?m.Declare_static_property_0:m.Declare_property_0,s],cb,m.Add_all_missing_members)];return l||Ji(o)||(i&2&&h.unshift(s_(cb,p(2),[m.Declare_private_property_0,s])),h.push(het(e,r,t,o.text,u))),h}function fMe(e,t,r){let i;if(r.parent.parent.kind===226){const o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1)}else{const o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||w.createKeywordTypeNode(133)}function mMe(e,t,r,i,o,s){const l=s?w.createNodeArray(w.createModifiersFromModifierFlags(s)):void 0,u=ui(r)?w.createPropertyDeclaration(l,i,void 0,o,void 0):w.createPropertySignature(void 0,i,void 0,o),p=_Me(r);p?e.insertNodeAfter(t,p,u):e.insertMemberAtStart(t,r,u)}function _Me(e){let t;for(const r of e.members){if(!Uo(r))break;t=r}return t}function het(e,t,r,i,o){const s=w.createKeywordTypeNode(154),l=w.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),u=w.createIndexSignature(void 0,[l],o),p=_r.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,r,u));return s_(cb,p,[m.Add_index_signature_for_property_0,i])}function get(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;const u=s.text,p=f=>_r.ChangeTracker.with(e,b=>hMe(e,b,l,s,f,r,i)),h=[la(cb,p(o&256),[o&256?m.Declare_static_method_0:m.Declare_method_0,u],cb,m.Add_all_missing_members)];return o&2&&h.unshift(s_(cb,p(2),[m.Declare_private_method_0,u])),h}function hMe(e,t,r,i,o,s,l){const u=FI(l,e.program,e.preferences,e.host),p=ui(s)?174:173,h=Ime(p,e,u,r,i,o,s),f=bet(s,r);f?t.insertNodeAfter(l,f,h):t.insertMemberAtStart(l,s,h),u.writeFixes(t)}function gMe(e,t,{token:r,parentDeclaration:i}){const o=St(i.members,p=>{const h=t.getTypeAtLocation(p);return!!(h&&h.flags&402653316)}),s=i.getSourceFile(),l=w.createEnumMember(r,o?w.createStringLiteral(r.text):void 0),u=el(i.members);u?e.insertNodeInListAfter(s,u,l,i.members):e.insertMemberAtStart(s,i,l)}function vMe(e,t,r){const i=uf(t.sourceFile,t.preferences),o=FI(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?Ime(262,t,o,r.call,Tr(r.token),r.modifierFlags,r.parentDeclaration):_Q(262,t,i,r.signature,Rz(m.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&C.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Mm(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function yMe(e,t,r){const i=FI(t.sourceFile,t.program,t.preferences,t.host),o=uf(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=St(l.properties,gI),p=Ot(r.attributes,b=>{const A=j$(t,s,i,o,s.getTypeOfSymbol(b),r.parentDeclaration),I=w.createIdentifier(b.name),R=w.createJsxAttribute(I,w.createJsxExpression(void 0,A));return Ya(I,R),R}),h=w.createJsxAttributes(u?[...p,...l.properties]:[...l.properties,...p]),f={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,h,f),i.writeFixes(e)}function bMe(e,t,r){const i=FI(t.sourceFile,t.program,t.preferences,t.host),o=uf(t.sourceFile,t.preferences),s=ls(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Ot(r.properties,h=>{const f=j$(t,l,i,o,l.getTypeOfSymbol(h),r.parentDeclaration);return w.createPropertyAssignment(Eet(h,s,o,l),f)}),p={leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,w.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),p),i.writeFixes(e)}function j$(e,t,r,i,o,s){if(o.flags&3)return zI();if(o.flags&134217732)return w.createStringLiteral("",i===0);if(o.flags&8)return w.createNumericLiteral(0);if(o.flags&64)return w.createBigIntLiteral("0n");if(o.flags&16)return w.createFalse();if(o.flags&1056){const l=o.symbol.exports?L6(o.symbol.exports.values()):o.symbol,u=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,64);return l===void 0||u===void 0?w.createNumericLiteral(0):w.createPropertyAccessExpression(u,t.symbolToString(l))}if(o.flags&256)return w.createNumericLiteral(o.value);if(o.flags&2048)return w.createBigIntLiteral(o.value);if(o.flags&128)return w.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?w.createFalse():w.createTrue();if(o.flags&65536)return w.createNull();if(o.flags&1048576){const l=qt(o.types,u=>j$(e,t,r,i,u,s));return l!=null?l:zI()}if(t.isArrayLikeType(o))return w.createArrayLiteralExpression();if(vet(o)){const l=Ot(t.getPropertiesOfType(o),u=>{const p=j$(e,t,r,i,t.getTypeOfSymbol(u),s);return w.createPropertyAssignment(u.name,p)});return w.createObjectLiteralExpression(l,!0)}if(Wr(o)&16){if(Tn(o.symbol.declarations||et,Qm(Th,Sh,Kl))===void 0)return zI();const u=t.getSignaturesOfType(o,0);if(u===void 0)return zI();const p=_Q(218,e,i,u[0],Rz(m.Function_not_implemented.message,i),void 0,void 0,void 0,s,r);return p!=null?p:zI()}if(Wr(o)&1){const l=Hg(o.symbol);if(l===void 0||$E(l))return zI();const u=cg(l);return u&&Le(u.parameters)?zI():w.createNewExpression(w.createIdentifier(o.symbol.name),void 0,void 0)}return zI()}function zI(){return w.createIdentifier("undefined")}function vet(e){return e.flags&524288&&(Wr(e)&128||e.symbol&&ti(ch(e.symbol.declarations),Tp))}function yet(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return et;const o=i.getProperties();if(!Le(o))return et;const s=new Set;for(const l of r.attributes.properties)if(F_(l)&&s.add(sP(l.name)),gI(l)){const u=e.getTypeAtLocation(l.expression);for(const p of u.getProperties())s.add(p.escapedName)}return rr(o,l=>tf(l.name,t,1)&&!(l.flags&16777216||xl(l)&48||s.has(l.escapedName)))}function bet(e,t){if(Tp(e))return;const r=zn(t,i=>Kl(i)||Ll(i));return r&&r.parent===e?r:void 0}function Eet(e,t,r,i){if(hh(e)){const o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&rs(o))return o}return oW(e.name,t,r===0,!1,!1)}function EMe(e){if(zn(e,TP)){const t=zn(e.parent,Mm);if(t)return t}return jn(e)}var cb,yz,bz,Ez,Vfe,Tet=T({"src/services/codefixes/fixAddMissingMember.ts"(){ii(),Ra(),cb="fixMissingMember",yz="fixMissingProperties",bz="fixMissingAttributes",Ez="fixMissingFunctionDeclaration",Vfe=[m.Property_0_does_not_exist_on_type_1.code,m.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,m.Property_0_is_missing_in_type_1_but_required_in_type_2.code,m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,m.Cannot_find_name_0.code],Aa({errorCodes:Vfe,getCodeActions(e){const t=e.program.getTypeChecker(),r=uMe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=_r.ChangeTracker.with(e,o=>bMe(o,e,r));return[la(yz,i,m.Add_missing_properties,yz,m.Add_all_missing_properties)]}if(r.kind===4){const i=_r.ChangeTracker.with(e,o=>yMe(o,e,r));return[la(bz,i,m.Add_missing_attributes,bz,m.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=_r.ChangeTracker.with(e,o=>vMe(o,e,r));return[la(Ez,i,[m.Add_missing_function_declaration_0,r.token.text],Ez,m.Add_all_missing_function_declarations)]}if(r.kind===1){const i=_r.ChangeTracker.with(e,o=>gMe(o,e.program.getTypeChecker(),r));return[la(cb,i,[m.Add_missing_enum_member_0,r.token.text],cb,m.Add_all_missing_members)]}return To(get(e,r),fet(e,r))}},fixIds:[cb,Ez,yz,bz],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return BD(_r.ChangeTracker.with(e,l=>{GD(e,Vfe,u=>{const p=uMe(u.file,u.start,u.code,i,e.program);if(!(!p||!Pm(o,cs(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===Ez&&(p.kind===2||p.kind===5))vMe(l,e,p);else if(r===yz&&p.kind===3)bMe(l,e,p);else if(r===bz&&p.kind===4)yMe(l,e,p);else if(p.kind===1&&gMe(l,i,p),p.kind===0){const{parentDeclaration:h,token:f}=p,b=i0(s,h,()=>[]);b.some(A=>A.token.text===f.text)||b.push(p)}}}),s.forEach((u,p)=>{const h=Tp(p)?void 0:Lme(p,i);for(const f of u){if(h!=null&&h.some(O=>{const U=s.get(O);return!!U&&U.some(({token:K})=>K.text===f.token.text)}))continue;const{parentDeclaration:b,declSourceFile:A,modifierFlags:I,token:R,call:M,isJSFile:N}=f;if(M&&!Ji(R))hMe(e,l,M,R,I&256,b,A);else if(N&&!hd(b)&&!Tp(b))dMe(l,A,b,R,!!(I&256));else{const O=fMe(i,b,R);mMe(l,A,b,R.text,O,I&256)}}})}))}})}});function SMe(e,t,r){const i=oa(Aet(t,r),sa),o=w.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function Aet(e,t){let r=fo(e,t.start);const i=$l(t);for(;r.end<i;)r=r.parent;return r}var U$,jfe,Iet=T({"src/services/codefixes/fixAddMissingNewOperator.ts"(){ii(),Ra(),U$="addMissingNewOperator",jfe=[m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],Aa({errorCodes:jfe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=_r.ChangeTracker.with(e,o=>SMe(o,t,r));return[la(U$,i,m.Add_missing_new_operator_to_call,U$,m.Add_missing_new_operator_to_all_calls)]},fixIds:[U$],getAllCodeActions:e=>As(e,jfe,(t,r)=>SMe(t,e.sourceFile,r))})}});function TMe(e,t,r){const i=fo(e,r),o=zn(i,sa);if(o===void 0||Le(o.arguments)===0)return;const s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=rr(l.symbol.declarations,AMe);if(u===void 0)return;const p=el(u);if(p===void 0||p.body===void 0||LD(t,p.getSourceFile()))return;const h=xet(p);if(h===void 0)return;const f=[],b=[],A=Le(p.parameters),I=Le(o.arguments);if(A>I)return;const R=[p,...Det(p,u)];for(let M=0,N=0,O=0;M<I;M++){const U=o.arguments[M],K=zs(U)?LU(U):U,ee=s.getWidenedType(s.getBaseTypeOfLiteralType(s.getTypeAtLocation(U))),V=N<A?p.parameters[N]:void 0;if(V&&s.isTypeAssignableTo(ee,s.getTypeAtLocation(V))){N++;continue}const se=K&&je(K)?K.text:"p".concat(O++),G=Ret(s,ee,p);Rn(f,{pos:M,declaration:xMe(se,G,void 0)}),!Net(R,N)&&Rn(b,{pos:M,declaration:xMe(se,G,w.createToken(58))})}return{newParameters:f,newOptionalParameters:b,name:Ns(h),declarations:R}}function xet(e){const t=Po(e);if(t)return t;if(ki(e.parent)&&je(e.parent.name)||Uo(e.parent)||Io(e.parent))return e.parent.name}function Ret(e,t,r){var i;return(i=e.typeToTypeNode(e.getWidenedType(t),r,1))!=null?i:w.createKeywordTypeNode(159)}function H$(e,t,r,i){He(r,o=>{Le(o.parameters)?e.replaceNodeRangeWithNodes(t,Xa(o.parameters),es(o.parameters),IMe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include}):He(IMe(o,i),(s,l)=>{Le(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function AMe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function IMe(e,t){const r=Ot(e.parameters,i=>w.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(const{pos:i,declaration:o}of t){const s=i>0?r[i-1]:void 0;r.splice(i,0,w.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?w.createToken(58):o.questionToken,o.type,o.initializer))}return r}function Det(e,t){const r=[];for(const i of t)if(Cet(i)){if(Le(i.parameters)===Le(e.parameters)){r.push(i);continue}if(Le(i.parameters)>Le(e.parameters))return[]}return r}function Cet(e){return AMe(e)&&e.body===void 0}function xMe(e,t,r){return w.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function Net(e,t){return Le(e)&&St(e,r=>t<Le(r.parameters)&&!!r.parameters[t]&&r.parameters[t].questionToken===void 0)}var Sz,Tz,Ufe,Pet=T({"src/services/codefixes/fixAddMissingParam.ts"(){ii(),Ra(),Sz="addMissingParam",Tz="addOptionalParam",Ufe=[m.Expected_0_arguments_but_got_1.code],Aa({errorCodes:Ufe,fixIds:[Sz,Tz],getCodeActions(e){const t=TMe(e.sourceFile,e.program,e.span.start);if(t===void 0)return;const{name:r,declarations:i,newParameters:o,newOptionalParameters:s}=t,l=[];return Le(o)&&Rn(l,la(Sz,_r.ChangeTracker.with(e,u=>H$(u,e.sourceFile,i,o)),[Le(o)>1?m.Add_missing_parameters_to_0:m.Add_missing_parameter_to_0,r],Sz,m.Add_all_missing_parameters)),Le(s)&&Rn(l,la(Tz,_r.ChangeTracker.with(e,u=>H$(u,e.sourceFile,i,s)),[Le(s)>1?m.Add_optional_parameters_to_0:m.Add_optional_parameter_to_0,r],Tz,m.Add_all_optional_parameters)),l},getAllCodeActions:e=>As(e,Ufe,(t,r)=>{const i=TMe(e.sourceFile,e.program,r.start);if(i){const{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===Sz&&H$(t,e.sourceFile,o,s),e.fixId===Tz&&H$(t,e.sourceFile,o,l)}})})}});function RMe(e,t){return{type:"install package",file:e,packageName:t}}function DMe(e,t){const r=ti(fo(e,t),Ma);if(!r)return;const i=r.text,{packageName:o}=Cw(i);return Qc(o)?void 0:o}function CMe(e,t,r){var i;return r===Hfe?G_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?jF(e):void 0}var NMe,q$,Hfe,qfe,Met=T({"src/services/codefixes/fixCannotFindModule.ts"(){ii(),Ra(),NMe="fixCannotFindModule",q$="installTypesPackage",Hfe=m.Cannot_find_module_0_or_its_corresponding_type_declarations.code,qfe=[Hfe,m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Aa({errorCodes:qfe,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:o}}=t,s=DMe(i,o);if(s===void 0)return;const l=CMe(s,r,t.errorCode);return l===void 0?[]:[la(NMe,[],[m.Install_0,l],q$,m.Install_all_missing_types_packages,RMe(i.fileName,l))]},fixIds:[q$],getAllCodeActions:e=>As(e,qfe,(t,r,i)=>{const o=DMe(r.file,r.start);if(o!==void 0)switch(e.fixId){case q$:{const s=CMe(o,e.host,r.code);s&&i.push(RMe(r.file.fileName,s));break}default:C.fail("Bad fixId: ".concat(e.fixId))}})})}});function PMe(e,t){const r=fo(e,t);return oa(r.parent,ui)}function MMe(e,t,r,i,o){const s=D_(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),p=l.getPropertiesOfType(u).filter(Let),h=FI(t,r.program,o,r.host);Ame(e,p,t,r,o,h,f=>i.insertMemberAtStart(t,e,f)),h.writeFixes(i)}function Let(e){const t=Uy(Xa(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Jfe,J$,ket=T({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){ii(),Ra(),Jfe=[m.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],J$="fixClassDoesntImplementInheritedAbstractMember",Aa({errorCodes:Jfe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=_r.ChangeTracker.with(t,s=>MMe(PMe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[la(J$,o,m.Implement_inherited_abstract_class,J$,m.Implement_all_inherited_abstract_classes)]},fixIds:[J$],getAllCodeActions:function(t){const r=new Map;return As(t,Jfe,(i,o)=>{const s=PMe(o.file,o.start);Pm(r,cs(s))&&MMe(s,t.sourceFile,t,i,t.preferences)})}})}});function LMe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function kMe(e,t){const r=fo(e,t);if(r.kind!==110)return;const i=Gp(r),o=wMe(i.body);return o&&!o.expression.arguments.some(s=>Fr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function wMe(e){return nu(e)&&IS(e.expression)?e:Qo(e)?void 0:Vo(e,wMe)}var K$,Kfe,wet=T({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){ii(),Ra(),K$="classSuperMustPrecedeThisAccess",Kfe=[m.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Aa({errorCodes:Kfe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=kMe(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,l=_r.ChangeTracker.with(e,u=>LMe(u,t,o,s));return[la(K$,l,m.Make_super_call_the_first_statement_in_the_constructor,K$,m.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[K$],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return As(e,Kfe,(i,o)=>{const s=kMe(o.file,o.start);if(!s)return;const{constructor:l,superCall:u}=s;Pm(r,cs(l.parent))&&LMe(i,t,l,u)})}})}});function OMe(e,t){const r=fo(e,t);return C.assert(Ll(r.parent),"token should be at the constructor declaration"),r.parent}function WMe(e,t,r){const i=w.createExpressionStatement(w.createCallExpression(w.createSuper(),void 0,et));e.insertNodeAtConstructorStart(t,r,i)}var X$,Xfe,Oet=T({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){ii(),Ra(),X$="constructorForDerivedNeedSuperCall",Xfe=[m.Constructors_for_derived_classes_must_contain_a_super_call.code],Aa({errorCodes:Xfe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=OMe(t,r.start),o=_r.ChangeTracker.with(e,s=>WMe(s,t,i));return[la(X$,o,m.Add_missing_super_call,X$,m.Add_all_missing_super_calls)]},fixIds:[X$],getAllCodeActions:e=>As(e,Xfe,(t,r)=>WMe(t,e.sourceFile,OMe(r.file,r.start)))})}});function FMe(e,t){Cme(e,t,"jsx",w.createStringLiteral("react"))}var Yfe,$fe,Wet=T({"src/services/codefixes/fixEnableJsxFlag.ts"(){ii(),Ra(),Yfe="fixEnableJsxFlag",$fe=[m.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Aa({errorCodes:$fe,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=_r.ChangeTracker.with(t,o=>FMe(o,r));return[s_(Yfe,i,m.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Yfe],getAllCodeActions:e=>As(e,$fe,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&FMe(t,r)})})}});function zMe(e,t,r){const i=Tn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=Tn(i.relatedInformation,l=>l.code===m.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;const s=Pme(o.file,yu(o.start,o.length));if(s!==void 0&&bt(s)&&mr(s.parent))return{suggestion:Fet(o.messageText),expression:s.parent,arg:s}}function BMe(e,t,r,i){const o=w.createCallExpression(w.createPropertyAccessExpression(w.createIdentifier("Number"),w.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?w.createPrefixUnaryExpression(54,o):o)}function Fet(e){const[,t]=z_(e,"\n",0).match(/'(.*)'/)||[];return t}var Y$,Qfe,zet=T({"src/services/codefixes/fixNaNEquality.ts"(){ii(),Ra(),Y$="fixNaNEquality",Qfe=[m.This_condition_will_always_return_0.code],Aa({errorCodes:Qfe,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=zMe(i,t,r);if(o===void 0)return;const{suggestion:s,expression:l,arg:u}=o,p=_r.ChangeTracker.with(e,h=>BMe(h,t,u,l));return[la(Y$,p,[m.Use_0,s],Y$,m.Use_Number_isNaN_in_all_conditions)]},fixIds:[Y$],getAllCodeActions:e=>As(e,Qfe,(t,r)=>{const i=zMe(e.program,r.file,yu(r.start,r.length));i&&BMe(t,r.file,i.arg,i.expression)})})}}),Bet=T({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){ii(),Ra(),Aa({errorCodes:[m.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,m.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,m.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const o=[],s=wu(r);if(s>=5&&s<99){const h=_r.ChangeTracker.with(t,f=>{Cme(f,i,"module",w.createStringLiteral("esnext"))});o.push(s_("fixModuleOption",h,[m.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=ls(r);if(u<4||u>99){const h=_r.ChangeTracker.with(t,f=>{if(!AN(i))return;const A=[["target",w.createStringLiteral("es2017")]];s===1&&A.push(["module",w.createStringLiteral("commonjs")]),Dme(f,i,A)});o.push(s_("fixTargetOption",h,[m.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function GMe(e,t,r){e.replaceNode(t,r,w.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function VMe(e,t){return oa(fo(e,t).parent,rp)}var $$,Zfe,Get=T({"src/services/codefixes/fixPropertyAssignment.ts"(){ii(),Ra(),$$="fixPropertyAssignment",Zfe=[m.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],Aa({errorCodes:Zfe,fixIds:[$$],getCodeActions(e){const{sourceFile:t,span:r}=e,i=VMe(t,r.start),o=_r.ChangeTracker.with(e,s=>GMe(s,e.sourceFile,i));return[la($$,o,[m.Change_0_to_1,"=",":"],$$,[m.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>As(e,Zfe,(t,r)=>GMe(t,r.file,VMe(r.file,r.start)))})}});function jMe(e,t){const r=fo(e,t),i=cu(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function UMe(e,t,r,i){if(e.replaceNode(t,r,w.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},w.createToken(28));const l=t.text;let u=o.end;for(;u<l.length&&A_(l.charCodeAt(u));)u++;e.deleteRange(t,{pos:o.getStart(),end:u})}}var Q$,eme,Vet=T({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){ii(),Ra(),Q$="extendsInterfaceBecomesImplements",eme=[m.Cannot_extend_an_interface_0_Did_you_mean_implements.code],Aa({errorCodes:eme,getCodeActions(e){const{sourceFile:t}=e,r=jMe(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:o}=r,s=_r.ChangeTracker.with(e,l=>UMe(l,t,i,o));return[la(Q$,s,m.Change_extends_to_implements,Q$,m.Change_all_extended_interfaces_to_implements)]},fixIds:[Q$],getAllCodeActions:e=>As(e,eme,(t,r)=>{const i=jMe(r.file,r.start);i&&UMe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function HMe(e,t,r){const i=fo(e,t);if(je(i)||Ji(i))return{node:i,className:r===tme?cu(i).name.text:void 0}}function qMe(e,t,{node:r,className:i}){xp(r),e.replaceNode(t,r,w.createPropertyAccessExpression(i?w.createIdentifier(i):w.createThis(),r))}var Z$,tme,nme,jet=T({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){ii(),Ra(),Z$="forgottenThisPropertyAccess",tme=m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,nme=[m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,m.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,tme],Aa({errorCodes:nme,getCodeActions(e){const{sourceFile:t}=e,r=HMe(t,e.span.start,e.errorCode);if(!r)return;const i=_r.ChangeTracker.with(e,o=>qMe(o,t,r));return[la(Z$,i,[m.Add_0_to_unresolved_variable,r.className||"this"],Z$,m.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[Z$],getAllCodeActions:e=>As(e,nme,(t,r)=>{const i=HMe(r.file,r.start,r.code);i&&qMe(t,e.sourceFile,i)})})}});function Uet(e){return Cs(ome,e)}function rme(e,t,r,i,o){const s=r.getText()[i];if(!Uet(s))return;const l=o?ome[s]:"{".concat(p2(r,t,s),"}");e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var eQ,Az,ime,ome,Het=T({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){ii(),Ra(),eQ="fixInvalidJsxCharacters_expression",Az="fixInvalidJsxCharacters_htmlEntity",ime=[m.Unexpected_token_Did_you_mean_or_gt.code,m.Unexpected_token_Did_you_mean_or_rbrace.code],Aa({errorCodes:ime,fixIds:[eQ,Az],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=_r.ChangeTracker.with(e,l=>rme(l,r,t,i.start,!1)),s=_r.ChangeTracker.with(e,l=>rme(l,r,t,i.start,!0));return[la(eQ,o,m.Wrap_invalid_character_in_an_expression_container,eQ,m.Wrap_all_invalid_characters_in_an_expression_container),la(Az,s,m.Convert_invalid_character_to_its_html_entity_code,Az,m.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return As(e,ime,(t,r)=>rme(t,e.preferences,r.file,r.start,e.fixId===Az))}}),ome={">":">","}":"}"}}});function qet(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=_r.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return la(Iz,o,[m.Delete_unused_param_tag_0,t.getText(e.sourceFile)],Iz,m.Delete_all_unused_param_tags)}function Jet(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Le(i.parameters))return;const s=e.sourceFile,l=_0(i),u=new Set;for(const b of l)o_(b)&&je(b.name)&&u.add(b.name.escapedText);const p=qt(i.parameters,b=>je(b.name)&&!u.has(b.name.escapedText)?b.name.getText(s):void 0);if(p===void 0)return;const h=w.updateJSDocParameterTag(o,o.tagName,w.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),f=_r.ChangeTracker.with(e,b=>b.replaceJSDocComment(s,r,Ot(l,A=>A===o?h:A)));return s_(ame,f,[m.Rename_param_tag_name_0_to_1,t.getText(s),p])}function JMe(e,t){const r=fo(e,t);if(r.parent&&o_(r.parent)&&je(r.parent.name)){const i=r.parent,o=NS(i),s=b0(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var Iz,ame,sme,Ket=T({"src/services/codefixes/fixUnmatchedParameter.ts"(){ii(),Ra(),Iz="deleteUnmatchedParameter",ame="renameUnmatchedParameter",sme=[m.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Aa({fixIds:[Iz,ame],errorCodes:sme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=JMe(r,i.start);if(s)return Rn(o,qet(t,s)),Rn(o,Jet(t,s)),o},getAllCodeActions:function(t){const r=new Map;return BD(_r.ChangeTracker.with(t,i=>{GD(t,sme,({file:o,start:s})=>{const l=JMe(o,s);l&&r.set(l.signature,Rn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===Iz){const l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}})}});function Xet(e,t,r){const i=ti(fo(e,r),je);if(!i||i.parent.kind!==183)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return Tn((s==null?void 0:s.declarations)||et,Qm(Ah,np,ru))}function Yet(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}const o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;const s=i.getTypeChecker();h3(o,u=>{if(Eu(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function $et(e,t,r,i){wI.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var tQ,KMe,Qet=T({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){ii(),Ra(),tQ="fixUnreferenceableDecoratorMetadata",KMe=[m.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Aa({errorCodes:KMe,getCodeActions:e=>{const t=Xet(e.sourceFile,e.program,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,s=>t.kind===276&&$et(s,e.sourceFile,t,e.program)),i=_r.ChangeTracker.with(e,s=>Yet(s,e.sourceFile,t,e.program));let o;return r.length&&(o=Rn(o,s_(tQ,r,m.Convert_named_imports_to_namespace_import))),i.length&&(o=Rn(o,s_(tQ,i,m.Use_import_type))),o},fixIds:[tQ]})}});function XMe(e,t,r){e.replaceNode(t,r.parent,w.createKeywordTypeNode(159))}function YO(e,t){return la($O,e,t,iQ,m.Delete_all_unused_declarations)}function YMe(e,t,r){e.delete(t,C.checkDefined(oa(r.parent,Lj).typeParameters,"The type parameter to delete should exist"))}function lme(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function $Me(e){return e.kind===102?ti(e.parent,Oc):void 0}function QMe(e,t){return qc(t.parent)&&Xa(t.parent.getChildren(e))===t}function ZMe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function Zet(e,t,r){He(r.elements,i=>e.delete(t,i))}function ett(e,t,r,{parent:i}){if(ki(i)&&i.initializer&&WE(i.initializer))if(qc(i.parent)&&Le(i.parent.declarations)>1){const o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:ny(e.host,e.formatContext.options)+r.text.slice(E5(r.text,s-1),s),suffix:TO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function eLe(e,t,r,i){t!==m.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=oa(i.parent,BS).typeParameter.name),je(i)&&ttt(i)&&(e.replaceNode(r,i,w.createIdentifier("_".concat(i.text))),Io(i.parent)&&Zx(i.parent).forEach(o=>{je(o.name)&&e.replaceNode(r,o.name,w.createIdentifier("_".concat(o.name.text)))})))}function ttt(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function nQ(e,t,r,i,o,s,l,u){ntt(t,r,e,i,o,s,l,u),je(t)&&Gs.Core.eachSymbolReferenceInFile(t,i,e,p=>{Fr(p.parent)&&p.parent.name===p&&(p=p.parent),!u&&att(p)&&r.delete(e,p.parent.parent)})}function ntt(e,t,r,i,o,s,l,u){const{parent:p}=e;if(Io(p))rtt(t,r,p,i,o,s,l,u);else if(!(u&&je(e)&&Gs.Core.isSymbolReferencedInFile(e,i,r))){const h=Ah(p)?e:rs(p)?p.parent:p;C.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function rtt(e,t,r,i,o,s,l,u=!1){if(itt(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!je(r.name)||Gs.Core.isSymbolReferencedInFile(r.name,i,t)))for(const p of r.modifiers)xa(p)&&e.deleteModifier(t,p);else!r.initializer&&tLe(r,i,o)&&e.delete(t,r)}function tLe(e,t,r){const i=e.parent.parameters.indexOf(e);return!Gs.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function itt(e,t,r,i,o,s,l){const{parent:u}=r;switch(u.kind){case 174:case 176:const p=u.parameters.indexOf(r),h=Kl(u)?u.name:u,f=Gs.Core.getReferencedSymbolsForNode(u.pos,h,o,i,s);if(f){for(const b of f)for(const A of b.references)if(A.kind===Gs.EntryKind.Node){const I=hP(A.node)&&sa(A.node.parent)&&A.node.parent.arguments.length>p,R=Fr(A.node.parent)&&hP(A.node.parent.expression)&&sa(A.node.parent.parent)&&A.node.parent.parent.arguments.length>p,M=(Kl(A.node.parent)||Sh(A.node.parent))&&A.node.parent!==r.parent&&A.node.parent.parameters.length>p;if(I||R||M)return!1}}return!0;case 262:return u.name&&ott(e,t,u.name)?nLe(u,r,l):!0;case 218:case 219:return nLe(u,r,l);case 178:return!1;case 177:return!0;default:return C.failBadSyntaxKind(u)}}function ott(e,t,r){return!!Gs.Core.eachSymbolReferenceInFile(r,e,t,i=>je(i)&&sa(i.parent)&&i.parent.arguments.includes(i))}function nLe(e,t,r){const i=e.parameters,o=i.indexOf(t);return C.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>je(s.name)&&!s.symbol.isReferenced):o===i.length-1}function att(e){return(mr(e.parent)&&e.parent.left===e||(LH(e.parent)||tb(e.parent))&&e.parent.operand===e)&&nu(e.parent.parent)}var $O,rQ,iQ,xz,oQ,cme,stt=T({"src/services/codefixes/fixUnusedIdentifier.ts"(){ii(),Ra(),$O="unusedIdentifier",rQ="unusedIdentifier_prefix",iQ="unusedIdentifier_delete",xz="unusedIdentifier_deleteImports",oQ="unusedIdentifier_infer",cme=[m._0_is_declared_but_its_value_is_never_read.code,m._0_is_declared_but_never_used.code,m.Property_0_is_declared_but_its_value_is_never_read.code,m.All_imports_in_import_declaration_are_unused.code,m.All_destructured_elements_are_unused.code,m.All_variables_are_unused.code,m.All_type_parameters_are_unused.code],Aa({errorCodes:cme,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=fo(r,e.span.start);if(pm(u))return[YO(_r.ChangeTracker.with(e,b=>b.delete(r,u)),m.Remove_template_tag)];if(u.kind===30){const b=_r.ChangeTracker.with(e,A=>YMe(A,r,u));return[YO(b,m.Remove_type_parameters)]}const p=$Me(u);if(p){const b=_r.ChangeTracker.with(e,A=>A.delete(r,p));return[la($O,b,[m.Remove_import_from_0,koe(p)],xz,m.Delete_all_unused_imports)]}else if(lme(u)){const b=_r.ChangeTracker.with(e,A=>nQ(r,u,A,s,l,i,o,!1));if(b.length)return[la($O,b,[m.Remove_unused_declaration_for_Colon_0,u.getText(r)],xz,m.Delete_all_unused_imports)]}if(dm(u.parent)||i1(u.parent)){if(Io(u.parent.parent)){const b=u.parent.elements,A=[b.length>1?m.Remove_unused_declarations_for_Colon_0:m.Remove_unused_declaration_for_Colon_0,Ot(b,I=>I.getText(r)).join(", ")];return[YO(_r.ChangeTracker.with(e,I=>Zet(I,r,u.parent)),A)]}return[YO(_r.ChangeTracker.with(e,b=>ett(e,b,r,u.parent)),m.Remove_unused_destructuring_declaration)]}if(QMe(r,u))return[YO(_r.ChangeTracker.with(e,b=>ZMe(b,r,u.parent)),m.Remove_variable_statement)];const h=[];if(u.kind===140){const b=_r.ChangeTracker.with(e,I=>XMe(I,r,u)),A=oa(u.parent,BS).typeParameter.name.text;h.push(la($O,b,[m.Replace_infer_0_with_unknown,A],oQ,m.Replace_all_unused_infer_with_unknown))}else{const b=_r.ChangeTracker.with(e,A=>nQ(r,u,A,s,l,i,o,!1));if(b.length){const A=rs(u.parent)?u.parent:u;h.push(YO(b,[m.Remove_unused_declaration_for_Colon_0,A.getText(r)]))}}const f=_r.ChangeTracker.with(e,b=>eLe(b,t,r,u));return f.length&&h.push(la($O,f,[m.Prefix_0_with_an_underscore,u.getText(r)],rQ,m.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[rQ,iQ,xz,oQ],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return As(e,cme,(l,u)=>{const p=fo(t,u.start);switch(e.fixId){case rQ:eLe(l,u.code,t,p);break;case xz:{const h=$Me(p);h?l.delete(t,h):lme(p)&&nQ(t,p,l,o,s,r,i,!0);break}case iQ:{if(p.kind===140||lme(p))break;if(pm(p))l.delete(t,p);else if(p.kind===30)YMe(l,t,p);else if(dm(p.parent)){if(p.parent.parent.initializer)break;(!Io(p.parent.parent)||tLe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(i1(p.parent.parent)&&p.parent.parent.parent.initializer)break;QMe(t,p)?ZMe(l,t,p.parent):nQ(t,p,l,o,s,r,i,!0)}break}case oQ:p.kind===140&&XMe(l,t,p);break;default:C.fail(JSON.stringify(e.fixId))}})}})}});function rLe(e,t,r,i,o){const s=fo(t,r),l=zn(s,qi);if(l.getStart(t)!==s.getStart(t)){const p=JSON.stringify({statementKind:C.formatSyntaxKind(l.kind),tokenKind:C.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});C.fail("Token and statement should start at the same point. "+p)}const u=(Jo(l.parent)?l.parent:l).parent;if(!Jo(l.parent)||l===Xa(l.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(Jo(l.parent))break;e.replaceNode(t,l,w.createBlock(et));return}case 247:case 248:e.delete(t,u);return}if(Jo(l.parent)){const p=r+i,h=C.checkDefined(ltt(VU(l.parent.statements,l),f=>f.pos<p),"Some statement should be last");e.deleteNodeRange(t,l,h)}else e.delete(t,l)}function ltt(e,t){let r;for(const i of e){if(!t(i))break;r=i}return r}var aQ,ume,ctt=T({"src/services/codefixes/fixUnreachableCode.ts"(){ii(),Ra(),aQ="fixUnreachableCode",ume=[m.Unreachable_code_detected.code],Aa({errorCodes:ume,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const r=_r.ChangeTracker.with(e,i=>rLe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[la(aQ,r,m.Remove_unreachable_code,aQ,m.Remove_all_unreachable_code)]},fixIds:[aQ],getAllCodeActions:e=>As(e,ume,(t,r)=>rLe(t,r.file,r.start,r.length,r.code))})}});function iLe(e,t,r){const i=fo(t,r),o=oa(i.parent,s1),s=i.getStart(t),l=o.statement.getStart(t),u=Rf(s,l,t)?l:wa(t.text,Es(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var sQ,dme,utt=T({"src/services/codefixes/fixUnusedLabel.ts"(){ii(),Ra(),sQ="fixUnusedLabel",dme=[m.Unused_label.code],Aa({errorCodes:dme,getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>iLe(r,e.sourceFile,e.span.start));return[la(sQ,t,m.Remove_unused_label,sQ,m.Remove_all_unused_labels)]},fixIds:[sQ],getAllCodeActions:e=>As(e,dme,(t,r)=>iLe(t,r.file,r.start))})}});function oLe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function aLe(e,t,r){const i=zn(fo(e,t),dtt),o=i&&i.type;return o&&{typeNode:o,type:ptt(r,o)}}function dtt(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function ptt(e,t){if(QR(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Rn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var pme,lQ,fme,ftt=T({"src/services/codefixes/fixJSDocTypes.ts"(){ii(),Ra(),pme="fixJSDocTypes_plain",lQ="fixJSDocTypes_nullable",fme=[m.JSDoc_types_can_only_be_used_inside_documentation_comments.code,m._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,m._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Aa({errorCodes:fme,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=aLe(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,l=o.getText(t),u=[p(s,pme,m.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&u.push(p(s,lQ,m.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function p(h,f,b){const A=_r.ChangeTracker.with(e,I=>oLe(I,t,o,h,r));return la("jdocTypes",A,[m.Change_0_to_1,l,r.typeToString(h)],f,b)}},fixIds:[pme,lQ],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return As(e,fme,(s,l)=>{const u=aLe(l.file,l.start,o);if(!u)return;const{typeNode:p,type:h}=u,f=p.kind===321&&t===lQ?o.getNullableType(h,32768):h;oLe(s,i,p,f,o)})}})}});function sLe(e,t,r){e.replaceNodeWithText(t,r,"".concat(r.text,"()"))}function lLe(e,t){const r=fo(e,t);if(Fr(r.parent)){let i=r.parent;for(;Fr(i.parent);)i=i.parent;return i.name}if(je(r))return r}var cQ,mme,mtt=T({"src/services/codefixes/fixMissingCallParentheses.ts"(){ii(),Ra(),cQ="fixMissingCallParentheses",mme=[m.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Aa({errorCodes:mme,fixIds:[cQ],getCodeActions(e){const{sourceFile:t,span:r}=e,i=lLe(t,r.start);if(!i)return;const o=_r.ChangeTracker.with(e,s=>sLe(s,e.sourceFile,i));return[la(cQ,o,m.Add_missing_call_parentheses,cQ,m.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>As(e,mme,(t,r)=>{const i=lLe(r.file,r.start);i&&sLe(t,r.file,i)})})}});function _tt(e){if(e.type)return e.type;if(ki(e.parent)&&e.parent.type&&Th(e.parent.type))return e.parent.type.type}function cLe(e,t){const r=fo(e,t),i=Gp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=Es(i,100,e);break;case 219:const s=i.typeParameters?30:21;o=Es(i,s,e)||Xa(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:_tt(i)}}function uLe(e,t,{insertBefore:r,returnType:i}){if(i){const o=zL(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,w.createTypeReferenceNode("Promise",w.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var uQ,_me,htt=T({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){ii(),Ra(),uQ="fixAwaitInSyncFunction",_me=[m.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Aa({errorCodes:_me,getCodeActions(e){const{sourceFile:t,span:r}=e,i=cLe(t,r.start);if(!i)return;const o=_r.ChangeTracker.with(e,s=>uLe(s,t,i));return[la(uQ,o,m.Add_async_modifier_to_containing_function,uQ,m.Add_all_missing_async_modifiers)]},fixIds:[uQ],getAllCodeActions:function(t){const r=new Map;return As(t,_me,(i,o)=>{const s=cLe(o.file,o.start);!s||!Pm(r,cs(s.insertBefore))||uLe(i,t.sourceFile,s)})}})}});function dLe(e,t,r,i,o){let s,l;if(i===m._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===m._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const u=o.program.getTypeChecker(),p=fo(e,t).parent;C.assert(Oy(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");const h=p.parent;C.assert(ui(h),"erroneous accessors should only be inside classes");const f=ch(Lme(h,u));if(!f)return[];const b=ji(cR(p.name)),A=u.getPropertyOfType(u.getTypeAtLocation(f),b);if(!A||!A.valueDeclaration)return[];s=A.valueDeclaration.pos,l=A.valueDeclaration.end,e=jn(A.valueDeclaration)}else C.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return xLe(e,o.program,s,l,o,m.Generate_get_and_set_accessors.message)}var hme,dQ,gtt=T({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){ii(),Ra(),hme=[m._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,m._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],dQ="fixPropertyOverrideAccessor",Aa({errorCodes:hme,getCodeActions(e){const t=dLe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[la(dQ,t,m.Generate_get_and_set_accessors,dQ,m.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[dQ],getAllCodeActions:e=>As(e,hme,(t,r)=>{const i=dLe(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})})}});function vtt(e,t){switch(e){case m.Parameter_0_implicitly_has_an_1_type.code:case m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Sp(Gp(t))?m.Infer_type_of_0_from_usage:m.Infer_parameter_types_from_usage;case m.Rest_parameter_0_implicitly_has_an_any_type.code:case m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Infer_parameter_types_from_usage;case m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return m.Infer_this_type_of_0_from_usage;default:return m.Infer_type_of_0_from_usage}}function ytt(e){switch(e){case m.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case m.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Variable_0_implicitly_has_an_1_type.code;case m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Parameter_0_implicitly_has_an_1_type.code;case m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Rest_parameter_0_implicitly_has_an_any_type.code;case m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case m._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case m.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Member_0_implicitly_has_an_1_type.code}return e}function pLe(e,t,r,i,o,s,l,u,p){if(!_N(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:h}=r,f=FI(t,o,p,u);switch(i=ytt(i),i){case m.Member_0_implicitly_has_an_1_type.code:case m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(ki(h)&&l(h)||Uo(h)||Ep(h))return fLe(e,f,t,h,o,u,s),f.writeFixes(e),h;if(Fr(h)){const I=QO(h.name,o,s),R=f2(I,h,o,u);if(R){const M=w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,oa(h.parent.parent,nu),[M])}return f.writeFixes(e),h}return;case m.Variable_0_implicitly_has_an_1_type.code:{const I=o.getTypeChecker().getSymbolAtLocation(r);return I&&I.valueDeclaration&&ki(I.valueDeclaration)&&l(I.valueDeclaration)?(fLe(e,f,jn(I.valueDeclaration),I.valueDeclaration,o,u,s),f.writeFixes(e),I.valueDeclaration):void 0}}const b=Gp(r);if(b===void 0)return;let A;switch(i){case m.Parameter_0_implicitly_has_an_1_type.code:if(Sp(b)){mLe(e,f,t,b,o,u,s),A=b;break}case m.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(b)){const I=oa(h,Io);btt(e,f,t,I,b,o,u,s),A=I}break;case m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:rf(b)&&je(b.name)&&(pQ(e,f,t,b,QO(b.name,o,s),o,u),A=b);break;case m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Sp(b)&&(mLe(e,f,t,b,o,u,s),A=b);break;case m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:_r.isThisTypeAnnotatable(b)&&l(b)&&(Ett(e,t,b,o,u,s),A=b);break;default:return C.fail(String(i))}return f.writeFixes(e),A}function fLe(e,t,r,i,o,s,l){je(i.name)&&pQ(e,t,r,i,QO(i.name,o,l),o,s)}function btt(e,t,r,i,o,s,l,u){if(!je(i.name))return;const p=Att(o,r,s,u);if(C.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),sr(o))_Le(e,r,p,s,l);else{const h=Us(o)&&!Es(o,21,r);h&&e.insertNodeBefore(r,Xa(o.parameters),w.createToken(21));for(const{declaration:f,type:b}of p)f&&!f.type&&!f.initializer&&pQ(e,t,r,f,b,s,l);h&&e.insertNodeAfter(r,es(o.parameters),w.createToken(22))}}function Ett(e,t,r,i,o,s){const l=hLe(r,t,i,s);if(!l||!l.length)return;const u=vme(i,l,s).thisParameter(),p=f2(u,r,i,o);p&&(sr(r)?Stt(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function Stt(e,t,r,i){e.addJSDocTags(t,r,[w.createJSDocThisTag(void 0,w.createJSDocTypeExpression(i))])}function mLe(e,t,r,i,o,s,l){const u=$c(i.parameters);if(u&&je(i.name)&&je(u.name)){let p=QO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=QO(u.name,o,l)),sr(i)?_Le(e,r,[{declaration:u,type:p}],o,s):pQ(e,t,r,u,p,o,s)}}function pQ(e,t,r,i,o,s,l){const u=f2(o,i,s,l);if(u)if(sr(r)&&i.kind!==171){const p=ki(i)?ti(i.parent.parent,kl):i;if(!p)return;const h=w.createJSDocTypeExpression(u),f=rf(i)?w.createJSDocReturnTag(void 0,h,void 0):w.createJSDocTypeTag(void 0,h,void 0);e.addJSDocTags(r,p,[f])}else Ttt(u,i,r,e,t,ls(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function Ttt(e,t,r,i,o,s){const l=BI(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(He(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function _Le(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const l=Hi(r,u=>{const p=u.declaration;if(p.initializer||m0(p)||!je(p.name))return;const h=u.type&&f2(u.type,p,i,o);if(h){const f=w.cloneNode(p.name);return pr(f,7168),{name:w.cloneNode(p.name),param:p,isOptional:!!u.isOptional,typeNode:h}}});if(l.length)if(Us(s)||Bs(s)){const u=Us(s)&&!Es(s,21,t);u&&e.insertNodeBefore(t,Xa(s.parameters),w.createToken(21)),He(l,({typeNode:p,param:h})=>{const f=w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(p)),b=w.createJSDocComment(void 0,[f]);e.insertNodeAt(t,h.getStart(t),b,{suffix:" "})}),u&&e.insertNodeAfter(t,es(s.parameters),w.createToken(22))}else{const u=Ot(l,({name:p,typeNode:h,isOptional:f})=>w.createJSDocParameterTag(void 0,p,!!f,w.createJSDocTypeExpression(h),!1,void 0));e.addJSDocTags(t,s,u)}}function gme(e,t,r){return Hi(Gs.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Gs.EntryKind.Span?ti(i.node,je):void 0)}function QO(e,t,r){const i=gme(e,t,r);return vme(t,i,r).single()}function Att(e,t,r,i){const o=hLe(e,t,r,i);return o&&vme(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:je(s.name)?QO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function hLe(e,t,r,i){let o;switch(e.kind){case 176:o=Es(e,137,t);break;case 219:case 218:const s=e.parent;o=(ki(s)||Uo(s))&&je(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return gme(o,r,i)}function vme(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Me=>i.createArrayType(Me),Promise:Me=>i.createPromiseType(Me)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:p,parameters:h,thisParameter:f};function l(){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}}function u(Me){const Ce=new Map;for(const At of Me)At.properties&&At.properties.forEach((be,Ue)=>{Ce.has(Ue)||Ce.set(Ue,[]),Ce.get(Ue).push(be)});const Oe=new Map;return Ce.forEach((At,be)=>{Oe.set(be,u(At))}),{isNumber:Me.some(At=>At.isNumber),isString:Me.some(At=>At.isString),isNumberOrString:Me.some(At=>At.isNumberOrString),candidateTypes:Pi(Me,At=>At.candidateTypes),properties:Oe,calls:Pi(Me,At=>At.calls),constructs:Pi(Me,At=>At.constructs),numberIndex:He(Me,At=>At.numberIndex),stringIndex:He(Me,At=>At.stringIndex),candidateThisTypes:Pi(Me,At=>At.candidateThisTypes),inferredTypes:void 0}}function p(){return _e(b(t))}function h(Me){if(t.length===0||!Me.parameters)return;const Ce=l();for(const At of t)r.throwIfCancellationRequested(),A(At,Ce);const Oe=[...Ce.constructs||[],...Ce.calls||[]];return Me.parameters.map((At,be)=>{const Ue=[],it=ng(At);let Ft=!1;for(const Qe of Oe)if(Qe.argumentTypes.length<=be)Ft=sr(Me),Ue.push(i.getUndefinedType());else if(it)for(let It=be;It<Qe.argumentTypes.length;It++)Ue.push(i.getBaseTypeOfLiteralType(Qe.argumentTypes[It]));else Ue.push(i.getBaseTypeOfLiteralType(Qe.argumentTypes[be]));if(je(At.name)){const Qe=b(gme(At.name,e,r));Ue.push(...it?Hi(Qe,i.getElementTypeOfArrayType):Qe)}const gt=_e(Ue);return{type:it?i.createArrayType(gt):gt,isOptional:Ft&&!it,declaration:At}})}function f(){const Me=l();for(const Ce of t)r.throwIfCancellationRequested(),A(Ce,Me);return _e(Me.candidateThisTypes||et)}function b(Me){const Ce=l();for(const Oe of Me)r.throwIfCancellationRequested(),A(Oe,Ce);return Q(Ce)}function A(Me,Ce){for(;VN(Me);)Me=Me.parent;switch(Me.parent.kind){case 244:R(Me,Ce);break;case 225:Ce.isNumber=!0;break;case 224:M(Me.parent,Ce);break;case 226:N(Me,Me.parent,Ce);break;case 296:case 297:O(Me.parent,Ce);break;case 213:case 214:Me.parent.expression===Me?U(Me.parent,Ce):I(Me,Ce);break;case 211:K(Me.parent,Ce);break;case 212:ee(Me.parent,Me,Ce);break;case 303:case 304:V(Me.parent,Ce);break;case 172:se(Me.parent,Ce);break;case 260:{const{name:Oe,initializer:At}=Me.parent;if(Me===Oe){At&&qe(Ce,i.getTypeAtLocation(At));break}}default:return I(Me,Ce)}}function I(Me,Ce){og(Me)&&qe(Ce,i.getContextualType(Me))}function R(Me,Ce){qe(Ce,sa(Me)?i.getVoidType():i.getAnyType())}function M(Me,Ce){switch(Me.operator){case 46:case 47:case 41:case 55:Ce.isNumber=!0;break;case 40:Ce.isNumberOrString=!0;break}}function N(Me,Ce,Oe){switch(Ce.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 At=i.getTypeAtLocation(Ce.left===Me?Ce.right:Ce.left);At.flags&1056?qe(Oe,At):Oe.isNumber=!0;break;case 65:case 40:const be=i.getTypeAtLocation(Ce.left===Me?Ce.right:Ce.left);be.flags&1056?qe(Oe,be):be.flags&296?Oe.isNumber=!0:be.flags&402653316?Oe.isString=!0:be.flags&1||(Oe.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:qe(Oe,i.getTypeAtLocation(Ce.left===Me?Ce.right:Ce.left));break;case 103:Me===Ce.left&&(Oe.isString=!0);break;case 57:case 61:Me===Ce.left&&(Me.parent.parent.kind===260||wc(Me.parent.parent,!0))&&qe(Oe,i.getTypeAtLocation(Ce.right));break}}function O(Me,Ce){qe(Ce,i.getTypeAtLocation(Me.parent.parent.expression))}function U(Me,Ce){const Oe={argumentTypes:[],return_:l()};if(Me.arguments)for(const At of Me.arguments)Oe.argumentTypes.push(i.getTypeAtLocation(At));A(Me,Oe.return_),Me.kind===213?(Ce.calls||(Ce.calls=[])).push(Oe):(Ce.constructs||(Ce.constructs=[])).push(Oe)}function K(Me,Ce){const Oe=hl(Me.name.text);Ce.properties||(Ce.properties=new Map);const At=Ce.properties.get(Oe)||l();A(Me,At),Ce.properties.set(Oe,At)}function ee(Me,Ce,Oe){if(Ce===Me.argumentExpression){Oe.isNumberOrString=!0;return}else{const At=i.getTypeAtLocation(Me.argumentExpression),be=l();A(Me,be),At.flags&296?Oe.numberIndex=be:Oe.stringIndex=be}}function V(Me,Ce){const Oe=ki(Me.parent.parent)?Me.parent.parent:Me.parent;Ee(Ce,i.getTypeAtLocation(Oe))}function se(Me,Ce){Ee(Ce,i.getTypeAtLocation(Me.parent))}function G(Me,Ce){const Oe=[];for(const At of Me)for(const{high:be,low:Ue}of Ce)be(At)&&(C.assert(!Ue(At),"Priority can't have both low and high"),Oe.push(Ue));return Me.filter(At=>Oe.every(be=>!be(At)))}function re(Me){return _e(Q(Me))}function _e(Me){if(!Me.length)return i.getAnyType();const Ce=i.getUnionType([i.getStringType(),i.getNumberType()]);let At=G(Me,[{high:Ue=>Ue===i.getStringType()||Ue===i.getNumberType(),low:Ue=>Ue===Ce},{high:Ue=>!(Ue.flags&16385),low:Ue=>!!(Ue.flags&16385)},{high:Ue=>!(Ue.flags&114689)&&!(Wr(Ue)&16),low:Ue=>!!(Wr(Ue)&16)}]);const be=At.filter(Ue=>Wr(Ue)&16);return be.length&&(At=At.filter(Ue=>!(Wr(Ue)&16)),At.push(ye(be))),i.getWidenedType(i.getUnionType(At.map(i.getBaseTypeOfLiteralType),2))}function ye(Me){if(Me.length===1)return Me[0];const Ce=[],Oe=[],At=[],be=[];let Ue=!1,it=!1;const Ft=Zp();for(const It of Me){for(const Cn of i.getPropertiesOfType(It))Ft.add(Cn.escapedName,Cn.valueDeclaration?i.getTypeOfSymbolAtLocation(Cn,Cn.valueDeclaration):i.getAnyType());Ce.push(...i.getSignaturesOfType(It,0)),Oe.push(...i.getSignaturesOfType(It,1));const on=i.getIndexInfoOfType(It,0);on&&(At.push(on.type),Ue=Ue||on.isReadonly);const $t=i.getIndexInfoOfType(It,1);$t&&(be.push($t.type),it=it||$t.isReadonly)}const gt=Dne(Ft,(It,on)=>{const $t=on.length<Me.length?16777216:0,Cn=i.createSymbol(4|$t,It);return Cn.links.type=i.getUnionType(on),[It,Cn]}),Qe=[];return At.length&&Qe.push(i.createIndexInfo(i.getStringType(),i.getUnionType(At),Ue)),be.length&&Qe.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(be),it)),i.createAnonymousType(Me[0].symbol,gt,Ce,Oe,Qe)}function Q(Me){var Ce,Oe,At;const be=[];Me.isNumber&&be.push(i.getNumberType()),Me.isString&&be.push(i.getStringType()),Me.isNumberOrString&&be.push(i.getUnionType([i.getStringType(),i.getNumberType()])),Me.numberIndex&&be.push(i.createArrayType(re(Me.numberIndex))),((Ce=Me.properties)!=null&&Ce.size||(Oe=Me.constructs)!=null&&Oe.length||Me.stringIndex)&&be.push(Y(Me));const Ue=(Me.candidateTypes||[]).map(Ft=>i.getBaseTypeOfLiteralType(Ft)),it=(At=Me.calls)!=null&&At.length?Y(Me):void 0;return it&&Ue?be.push(i.getUnionType([it,...Ue],2)):(it&&be.push(it),Le(Ue)&&be.push(...Ue)),be.push(...oe(Me)),be}function Y(Me){const Ce=new Map;Me.properties&&Me.properties.forEach((Ue,it)=>{const Ft=i.createSymbol(4,it);Ft.links.type=re(Ue),Ce.set(it,Ft)});const Oe=Me.calls?[Ne(Me.calls)]:[],At=Me.constructs?[Ne(Me.constructs)]:[],be=Me.stringIndex?[i.createIndexInfo(i.getStringType(),re(Me.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Ce,Oe,At,be)}function oe(Me){if(!Me.properties||!Me.properties.size)return[];const Ce=s.filter(Oe=>he(Oe,Me));return 0<Ce.length&&Ce.length<3?Ce.map(Oe=>Ae(Oe,Me)):[]}function he(Me,Ce){return Ce.properties?!jc(Ce.properties,(Oe,At)=>{const be=i.getTypeOfPropertyOfType(Me,At);return be?Oe.calls?!i.getSignaturesOfType(be,0).length||!i.isTypeAssignableTo(be,ge(Oe.calls)):!i.isTypeAssignableTo(be,re(Oe)):!0}):!1}function Ae(Me,Ce){if(!(Wr(Me)&4)||!Ce.properties)return Me;const Oe=Me.target,At=ch(Oe.typeParameters);if(!At)return Me;const be=[];return Ce.properties.forEach((Ue,it)=>{const Ft=i.getTypeOfPropertyOfType(Oe,it);C.assert(!!Ft,"generic should have all the properties of its reference."),be.push(...de(Ft,re(Ue),At))}),o[Me.symbol.escapedName](_e(be))}function de(Me,Ce,Oe){if(Me===Oe)return[Ce];if(Me.flags&3145728)return Pi(Me.types,Ue=>de(Ue,Ce,Oe));if(Wr(Me)&4&&Wr(Ce)&4){const Ue=i.getTypeArguments(Me),it=i.getTypeArguments(Ce),Ft=[];if(Ue&&it)for(let gt=0;gt<Ue.length;gt++)it[gt]&&Ft.push(...de(Ue[gt],it[gt],Oe));return Ft}const At=i.getSignaturesOfType(Me,0),be=i.getSignaturesOfType(Ce,0);return At.length===1&&be.length===1?ie(At[0],be[0],Oe):[]}function ie(Me,Ce,Oe){var At;const be=[];for(let Ft=0;Ft<Me.parameters.length;Ft++){const gt=Me.parameters[Ft],Qe=Ce.parameters[Ft],It=Me.declaration&&ng(Me.declaration.parameters[Ft]);if(!Qe)break;let on=gt.valueDeclaration?i.getTypeOfSymbolAtLocation(gt,gt.valueDeclaration):i.getAnyType();const $t=It&&i.getElementTypeOfArrayType(on);$t&&(on=$t);const Cn=((At=ti(Qe,hh))==null?void 0:At.links.type)||(Qe.valueDeclaration?i.getTypeOfSymbolAtLocation(Qe,Qe.valueDeclaration):i.getAnyType());be.push(...de(on,Cn,Oe))}const Ue=i.getReturnTypeOfSignature(Me),it=i.getReturnTypeOfSignature(Ce);return be.push(...de(Ue,it,Oe)),be}function ge(Me){return i.createAnonymousType(void 0,ua(),[Ne(Me)],et,et)}function Ne(Me){const Ce=[],Oe=Math.max(...Me.map(be=>be.argumentTypes.length));for(let be=0;be<Oe;be++){const Ue=i.createSymbol(1,hl("arg".concat(be)));Ue.links.type=_e(Me.map(it=>it.argumentTypes[be]||i.getUndefinedType())),Me.some(it=>it.argumentTypes[be]===void 0)&&(Ue.flags|=16777216),Ce.push(Ue)}const At=re(u(Me.map(be=>be.return_)));return i.createSignature(void 0,void 0,void 0,Ce,At,void 0,Oe,0)}function qe(Me,Ce){Ce&&!(Ce.flags&1)&&!(Ce.flags&131072)&&(Me.candidateTypes||(Me.candidateTypes=[])).push(Ce)}function Ee(Me,Ce){Ce&&!(Ce.flags&1)&&!(Ce.flags&131072)&&(Me.candidateThisTypes||(Me.candidateThisTypes=[])).push(Ce)}}var fQ,yme,Itt=T({"src/services/codefixes/inferFromUsage.ts"(){ii(),Ra(),fQ="inferFromUsage",yme=[m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,m.Variable_0_implicitly_has_an_1_type.code,m.Parameter_0_implicitly_has_an_1_type.code,m.Rest_parameter_0_implicitly_has_an_any_type.code,m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,m.Member_0_implicitly_has_an_1_type.code,m.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,m.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,m._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,m.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Aa({errorCodes:yme,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,p=fo(t,i);let h;const f=_r.ChangeTracker.with(e,A=>{h=pLe(A,t,p,o,r,s,Mv,l,u)}),b=h&&Po(h);return!b||f.length===0?void 0:[la(fQ,f,[vtt(o,p),gc(b)],fQ,m.Infer_all_types_from_usage)]},fixIds:[fQ],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=PI();return As(e,yme,(u,p)=>{pLe(u,t,fo(p.file,p.start),p.code,r,i,l,o,s)})}})}});function gLe(e,t,r){if(sr(e))return;const i=fo(e,r),o=zn(i,js),s=o==null?void 0:o.type;if(!s)return;const l=t.getTypeFromTypeNode(s),u=t.getAwaitedType(l)||t.getVoidType(),p=t.typeToTypeNode(u,s,void 0);if(p)return{returnTypeNode:s,returnType:l,promisedTypeNode:p,promisedType:u}}function vLe(e,t,r,i){e.replaceNode(t,r,w.createTypeReferenceNode("Promise",[i]))}var mQ,bme,xtt=T({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){ii(),Ra(),mQ="fixReturnTypeInAsyncFunction",bme=[m.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Aa({errorCodes:bme,fixIds:[mQ],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=gLe(r,i.getTypeChecker(),o.start);if(!l)return;const{returnTypeNode:u,returnType:p,promisedTypeNode:h,promisedType:f}=l,b=_r.ChangeTracker.with(t,A=>vLe(A,r,u,h));return[la(mQ,b,[m.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(f)],mQ,m.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>As(e,bme,(t,r)=>{const i=gLe(r.file,e.program.getTypeChecker(),r.start);i&&vLe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function yLe(e,t,r,i){const{line:o}=Ts(t,r);(!i||Dv(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Eme,Sme,Tme,Rtt=T({"src/services/codefixes/disableJsDiagnostics.ts"(){ii(),Ra(),Eme="disableJsDiagnostics",Sme="disableJsDiagnostics",Tme=Hi(Object.keys(m),e=>{const t=m[e];return t.category===1?t.code:void 0}),Aa({errorCodes:Tme,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!sr(r)||!Ak(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":ny(s,l.options),p=[s_(Eme,[EPe(r.fileName,[fO(r.checkJsDirective?hc(r.checkJsDirective.pos,r.checkJsDirective.end):yu(0,0),"// @ts-nocheck".concat(u))])],m.Disable_checking_for_this_file)];return _r.isValidLocationToAddComment(r,o.start)&&p.unshift(la(Eme,_r.ChangeTracker.with(t,h=>yLe(h,r,o.start)),m.Ignore_this_error_message,Sme,m.Add_ts_ignore_to_all_error_messages)),p},fixIds:[Sme],getAllCodeActions:e=>{const t=new Set;return As(e,Tme,(r,i)=>{_r.isValidLocationToAddComment(i.file,i.start)&&yLe(r,i.file,i.start,t)})}})}});function Ame(e,t,r,i,o,s,l){const u=e.symbol.members;for(const p of t)u.has(p.escapedName)||bLe(p,e,r,i,o,s,l,void 0)}function jD(e){return{trackSymbol:()=>!1,moduleResolverHost:bX(e.program,e.host)}}function bLe(e,t,r,i,o,s,l,u,p=3,h=!1){var he;const f=e.getDeclarations(),b=$c(f),A=i.program.getTypeChecker(),I=ls(i.program.getCompilerOptions()),R=(he=b==null?void 0:b.kind)!=null?he:171,M=oe(e,b),N=b?pd(b):0;let O=N&256;O|=N&1?1:N&4?4:0,b&&Wd(b)&&(O|=512);const U=re(),K=A.getWidenedType(A.getTypeOfSymbolAtLocation(e,t)),ee=!!(e.flags&16777216),V=!!(t.flags&33554432)||h,se=uf(r,o);switch(R){case 171:case 172:const Ae=se===0?268435456:void 0;let de=A.typeToTypeNode(K,t,Ae,jD(i));if(s){const ge=BI(de,I);ge&&(de=ge.typeNode,UD(s,ge.symbols))}l(w.createPropertyDeclaration(U,b?ye(M):e.getName(),ee&&p&2?w.createToken(58):void 0,de,void 0));break;case 177:case 178:{C.assertIsDefined(f);let ge=A.typeToTypeNode(K,t,void 0,jD(i));const Ne=wS(f,b),qe=Ne.secondAccessor?[Ne.firstAccessor,Ne.secondAccessor]:[Ne.firstAccessor];if(s){const Ee=BI(ge,I);Ee&&(ge=Ee.typeNode,UD(s,Ee.symbols))}for(const Ee of qe)if(rf(Ee))l(w.createGetAccessorDeclaration(U,ye(M),et,Y(ge),Q(u,se,V)));else{C.assertNode(Ee,Sp,"The counterpart to a getter should be a setter");const Me=FN(Ee),Ce=Me&&je(Me.name)?Tr(Me.name):void 0;l(w.createSetAccessorDeclaration(U,ye(M),xme(1,[Ce],[Y(ge)],1,!1),Q(u,se,V)))}break}case 173:case 174:C.assertIsDefined(f);const ie=K.isUnion()?Pi(K.types,ge=>ge.getCallSignatures()):K.getCallSignatures();if(!St(ie))break;if(f.length===1){C.assert(ie.length===1,"One declaration implies one signature");const ge=ie[0];G(se,ge,U,ye(M),Q(u,se,V));break}for(const ge of ie)G(se,ge,U,ye(M));if(!V)if(f.length>ie.length){const ge=A.getSignatureFromDeclaration(f[f.length-1]);G(se,ge,U,ye(M),Q(u,se))}else C.assert(f.length===ie.length,"Declarations and signatures should match count"),l(Ntt(A,i,t,ie,ye(M),ee&&!!(p&1),U,se,u));break}function G(Ae,de,ie,ge,Ne){const qe=_Q(174,i,Ae,de,Ne,ge,ie,ee&&!!(p&1),t,s);qe&&l(qe)}function re(){let Ae;return O&&(Ae=Fx(Ae,w.createModifiersFromModifierFlags(O))),_e()&&(Ae=Rn(Ae,w.createToken(164))),Ae&&w.createNodeArray(Ae)}function _e(){return!!(i.program.getCompilerOptions().noImplicitOverride&&b&&$E(b))}function ye(Ae){return je(Ae)&&Ae.escapedText==="constructor"?w.createComputedPropertyName(w.createStringLiteral(Tr(Ae),se===0)):ll(Ae,!1)}function Q(Ae,de,ie){return ie?void 0:ll(Ae,!1)||Rme(de)}function Y(Ae){return ll(Ae,!1)}function oe(Ae,de){if(xl(Ae)&262144){const ie=Ae.links.nameType;if(ie&&lm(ie))return w.createIdentifier(ji(cm(ie)))}return ll(Po(de),!1)}}function _Q(e,t,r,i,o,s,l,u,p,h){const f=t.program,b=f.getTypeChecker(),A=ls(f.getCompilerOptions()),I=sr(p),R=524545|(r===0?268435456:0),M=b.signatureToSignatureDeclaration(i,e,p,R,jD(t));if(!M)return;let N=I?void 0:M.typeParameters,O=M.parameters,U=I?void 0:M.type;if(h){if(N){const se=no(N,G=>{let re=G.constraint,_e=G.default;if(re){const ye=BI(re,A);ye&&(re=ye.typeNode,UD(h,ye.symbols))}if(_e){const ye=BI(_e,A);ye&&(_e=ye.typeNode,UD(h,ye.symbols))}return w.updateTypeParameterDeclaration(G,G.modifiers,G.name,re,_e)});N!==se&&(N=ut(w.createNodeArray(se,N.hasTrailingComma),N))}const V=no(O,se=>{let G=I?void 0:se.type;if(G){const re=BI(G,A);re&&(G=re.typeNode,UD(h,re.symbols))}return w.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,I?void 0:se.questionToken,G,se.initializer)});if(O!==V&&(O=ut(w.createNodeArray(V,O.hasTrailingComma),O)),U){const se=BI(U,A);se&&(U=se.typeNode,UD(h,se.symbols))}}const K=u?w.createToken(58):void 0,ee=M.asteriskToken;if(Bs(M))return w.updateFunctionExpression(M,l,M.asteriskToken,ti(s,je),N,O,U,o!=null?o:M.body);if(Us(M))return w.updateArrowFunction(M,l,N,O,U,M.equalsGreaterThanToken,o!=null?o:M.body);if(Kl(M))return w.updateMethodDeclaration(M,l,ee,s!=null?s:w.createIdentifier(""),K,N,O,U,o);if(xc(M))return w.updateFunctionDeclaration(M,l,M.asteriskToken,ti(s,je),N,O,U,o!=null?o:M.body)}function Ime(e,t,r,i,o,s,l){const u=uf(t.sourceFile,t.preferences),p=ls(t.program.getCompilerOptions()),h=jD(t),f=t.program.getTypeChecker(),b=sr(l),{typeArguments:A,arguments:I,parent:R}=i,M=b?void 0:f.getContextualType(i),N=Ot(I,_e=>je(_e)?_e.text:Fr(_e)&&je(_e.name)?_e.name.text:void 0),O=b?[]:Ot(I,_e=>f.getTypeAtLocation(_e)),{argumentTypeNodes:U,argumentTypeParameters:K}=TLe(f,r,O,l,p,1,h),ee=s?w.createNodeArray(w.createModifiersFromModifierFlags(s)):void 0,V=iF(R)?w.createToken(42):void 0,se=b?void 0:Dtt(f,K,A),G=xme(I.length,N,U,void 0,b),re=b||M===void 0?void 0:f.typeToTypeNode(M,l,void 0,h);switch(e){case 174:return w.createMethodDeclaration(ee,V,o,void 0,se,G,re,Rme(u));case 173:return w.createMethodSignature(ee,o,void 0,se,G,re===void 0?w.createKeywordTypeNode(159):re);case 262:return C.assert(typeof o=="string"||je(o),"Unexpected name"),w.createFunctionDeclaration(ee,V,o,se,G,re,Rz(m.Function_not_implemented.message,u));default:C.fail("Unexpected kind")}}function Dtt(e,t,r){const i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){const s=r.filter(u=>!t.some(p=>{var h;return e.getTypeAtLocation(u)===((h=p[1])==null?void 0:h.argumentType)})),l=i.size+s.length;for(let u=0;i.size<l;u+=1)i.add(ELe(u))}return Wo(i.values(),s=>{var l;return w.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function ELe(e){return 84+e<=90?String.fromCharCode(84+e):"T".concat(e)}function hQ(e,t,r,i,o,s,l){let u=e.typeToTypeNode(r,i,s,l);if(u&&fg(u)){const p=BI(u,o);p&&(UD(t,p.symbols),u=p.typeNode)}return ll(u)}function SLe(e){return e.isUnionOrIntersection()?e.types.some(SLe):e.flags&262144}function TLe(e,t,r,i,o,s,l){const u=[],p=new Map;for(let h=0;h<r.length;h+=1){const f=r[h];if(f.isUnionOrIntersection()&&f.types.some(SLe)){const M=ELe(h);u.push(w.createTypeReferenceNode(M)),p.set(M,void 0);continue}const b=e.getBaseTypeOfLiteralType(f),A=hQ(e,t,b,i,o,s,l);if(!A)continue;u.push(A);const I=ALe(f),R=f.isTypeParameter()&&f.constraint&&!Ctt(f.constraint)?hQ(e,t,f.constraint,i,o,s,l):void 0;I&&p.set(I,{argumentType:f,constraint:R})}return{argumentTypeNodes:u,argumentTypeParameters:Wo(p.entries())}}function Ctt(e){return e.flags&524288&&e.objectFlags===16}function ALe(e){var t;if(e.flags&3145728)for(const r of e.types){const i=ALe(r);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function xme(e,t,r,i,o){const s=[],l=new Map;for(let u=0;u<e;u++){const p=(t==null?void 0:t[u])||"arg".concat(u),h=l.get(p);l.set(p,(h||0)+1);const f=w.createParameterDeclaration(void 0,void 0,p+(h||""),i!==void 0&&u>=i?w.createToken(58):void 0,o?void 0:(r==null?void 0:r[u])||w.createKeywordTypeNode(159),void 0);s.push(f)}return s}function Ntt(e,t,r,i,o,s,l,u,p){let h=i[0],f=i[0].minArgumentCount,b=!1;for(const M of i)f=Math.min(M.minArgumentCount,f),Yu(M)&&(b=!0),M.parameters.length>=h.parameters.length&&(!Yu(M)||Yu(h))&&(h=M);const A=h.parameters.length-(Yu(h)?1:0),I=h.parameters.map(M=>M.name),R=xme(A,I,void 0,f,!1);if(b){const M=w.createParameterDeclaration(void 0,w.createToken(26),I[A]||"rest",A>=f?w.createToken(58):void 0,w.createArrayTypeNode(w.createKeywordTypeNode(159)),void 0);R.push(M)}return Mtt(l,o,s,void 0,R,Ptt(i,e,t,r),u,p)}function Ptt(e,t,r,i){if(Le(e)){const o=t.getUnionType(Ot(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,jD(r))}}function Mtt(e,t,r,i,o,s,l,u){return w.createMethodDeclaration(e,void 0,t,r?w.createToken(58):void 0,i,o,s,u||Rme(l))}function Rme(e){return Rz(m.Method_not_implemented.message,e)}function Rz(e,t){return w.createBlock([w.createThrowStatement(w.createNewExpression(w.createIdentifier("Error"),void 0,[w.createStringLiteral(e,t===0)]))],!0)}function Dme(e,t,r){const i=AN(t);if(!i)return;const o=Nme(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,gQ("compilerOptions",w.createObjectLiteralExpression(r.map(([l,u])=>gQ(l,u)),!0)));return}const s=o.initializer;if(Wa(s))for(const[l,u]of r){const p=Nme(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,gQ(l,u)):e.replaceNode(t,p.initializer,u)}}function Cme(e,t,r,i){Dme(e,t,[[r,i]])}function gQ(e,t){return w.createPropertyAssignment(w.createStringLiteral(e),t)}function Nme(e,t){return Tn(e.properties,r=>bc(r)&&!!r.name&&Ma(r.name)&&r.name.text===t)}function BI(e,t){let r;const i=rt(e,o,Ui);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(Vy(s)&&s.qualifier){const l=Vp(s.qualifier),u=M5(l.symbol,t),p=u!==l.text?ILe(s.qualifier,w.createIdentifier(u)):s.qualifier;r=Rn(r,l.symbol);const h=Bn(s.typeArguments,o,Ui);return w.createTypeReferenceNode(p,h)}return xn(s,o,void 0)}}function ILe(e,t){return e.kind===80?t:w.createQualifiedName(ILe(e.left,t),e.right)}function UD(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Pme(e,t){const r=$l(t);let i=fo(e,t.start);for(;i.end<r;)i=i.parent;return i}var Mme,Ltt=T({"src/services/codefixes/helpers.ts"(){ii(),Mme=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Mme||{})}});function xLe(e,t,r,i,o,s){const l=CLe(e,t,r,i);if(!l||wI.isRefactorErrorInfo(l))return;const u=_r.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:h,fieldName:f,accessorName:b,originalName:A,type:I,container:R,declaration:M}=l;xp(f),xp(b),xp(M),xp(R);let N,O;if(ui(R)){const K=pd(M);if(dd(e)){const ee=w.createModifiersFromModifierFlags(K);N=ee,O=ee}else N=w.createModifiersFromModifierFlags(Ott(K)),O=w.createModifiersFromModifierFlags(Wtt(K));QS(M)&&(O=To(Ly(M),O))}Vtt(u,e,M,I,f,O);const U=Ftt(f,b,I,N,p,R);if(xp(U),NLe(u,e,U,M,R),h){const K=cg(R);K&&jtt(u,e,K,f.text,A)}else{const K=ztt(f,b,I,N,p,R);xp(K),NLe(u,e,K,M,R)}return u.getChanges()}function ktt(e){return je(e)||Ma(e)}function wtt(e){return hp(e,e.parent)||Uo(e)||bc(e)}function RLe(e,t){return je(t)?w.createIdentifier(e):w.createStringLiteral(e)}function DLe(e,t,r){const i=t?r.name:w.createThis();return je(e)?w.createPropertyAccessExpression(i,e):w.createElementAccessExpression(i,w.createStringLiteralFromNode(e))}function Ott(e){return e&=-9,e&=-3,e&4||(e|=1),e}function Wtt(e){return e&=-2,e&=-5,e|=2,e}function CLe(e,t,r,i,o=!0){const s=fo(e,r),l=r===i&&o,u=zn(s.parent,wtt),p=271;if(!u||!(t5(u.name,e,r,i)||l))return{error:wo(m.Could_not_find_property_for_which_to_generate_accessor)};if(!ktt(u.name))return{error:wo(m.Name_is_not_valid)};if((pd(u)&98303|p)!==p)return{error:wo(m.Can_only_convert_property_with_modifier)};const h=u.name.text,f=HX(h),b=RLe(f?h:cT("_".concat(h),e),u.name),A=RLe(f?cT(h.substring(1),e):h,u.name);return{isStatic:vc(u),isReadonly:zN(u),type:Utt(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:b,accessorName:A,renameAccessor:f}}function Ftt(e,t,r,i,o,s){return w.createGetAccessorDeclaration(i,t,[],r,w.createBlock([w.createReturnStatement(DLe(e,o,s))],!0))}function ztt(e,t,r,i,o,s){return w.createSetAccessorDeclaration(i,t,[w.createParameterDeclaration(void 0,void 0,w.createIdentifier("value"),void 0,r)],w.createBlock([w.createExpressionStatement(w.createAssignment(DLe(e,o,s),w.createIdentifier("value")))],!0))}function Btt(e,t,r,i,o,s){const l=w.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function Gtt(e,t,r,i){let o=w.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=w.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function Vtt(e,t,r,i,o,s){Uo(r)?Btt(e,t,r,i,o,s):bc(r)?Gtt(e,t,r,o):e.replaceNode(t,r,w.updateParameterDeclaration(r,s,r.dotDotDotToken,oa(o,je),r.questionToken,r.type,r.initializer))}function NLe(e,t,r,i,o){hp(i,i.parent)?e.insertMemberAtStart(t,o,r):bc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function jtt(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){$s(l)&&l.expression.kind===110&&Ma(l.argumentExpression)&&l.argumentExpression.text===o&&HA(l)&&e.replaceNode(t,l.argumentExpression,w.createStringLiteral(i)),Fr(l)&&l.expression.kind===110&&l.name.text===o&&HA(l)&&e.replaceNode(t,l.name,w.createIdentifier(i)),!Qo(l)&&!ui(l)&&l.forEachChild(s)})}function Utt(e,t){const r=coe(e);if(Uo(e)&&r&&e.questionToken){const i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){const s=Qy(r)?r.types:[r];return w.createUnionTypeNode([...s,w.createKeywordTypeNode(157)])}}return r}function Lme(e,t){const r=[];for(;e;){const i=qE(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&Tn(s.declarations,ui);if(!l)break;r.push(l),e=l}return r}var Htt=T({"src/services/codefixes/generateAccessors.ts"(){ii()}});function qtt(e,t){const r=jn(t),i=ER(t),o=e.program.getCompilerOptions(),s=[];return s.push(PLe(e,r,t,ty(i.name,void 0,t.moduleSpecifier,uf(r,e.preferences)))),wu(o)===1&&s.push(PLe(e,r,t,w.createImportEqualsDeclaration(void 0,!1,i.name,w.createExternalModuleReference(t.moduleSpecifier)))),s}function PLe(e,t,r,i){const o=_r.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return s_(kme,o,[m.Replace_import_with_0,o[0].textChanges[0].newText])}function Jtt(e){const t=e.sourceFile,r=m.This_expression_is_not_callable.code===e.errorCode?213:214,i=zn(fo(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return MLe(e,o)}function Ktt(e){const t=e.sourceFile,r=zn(fo(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?MLe(e,r):[]}function MLe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&hh(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(Bp(o)||Ur(i,qtt(e,o)),bt(t)&&!(ld(t.parent)&&t.parent.name===t)){const s=e.sourceFile,l=_r.ChangeTracker.with(e,u=>u.replaceNode(s,t,w.createPropertyAccessExpression(t,"default"),{}));i.push(s_(kme,l,m.Use_synthetic_default_member))}return i}var kme,Xtt=T({"src/services/codefixes/fixInvalidImportSyntax.ts"(){ii(),Ra(),kme="invalidImportSyntax",Aa({errorCodes:[m.This_expression_is_not_callable.code,m.This_expression_is_not_constructable.code],getCodeActions:Jtt}),Aa({errorCodes:[m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,m.Type_0_does_not_satisfy_the_constraint_1.code,m.Type_0_is_not_assignable_to_type_1.code,m.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,m.Type_predicate_0_is_not_assignable_to_1.code,m.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,m._0_index_type_1_is_not_assignable_to_2_index_type_3.code,m.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,m.Property_0_in_type_1_is_not_assignable_to_type_2.code,m.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:Ktt})}});function LLe(e,t){const r=fo(e,t);if(je(r)&&Uo(r.parent)){const i=bu(r.parent);if(i)return{type:i,prop:r.parent,isJs:sr(r.parent)}}}function Ytt(e,t){if(t.isJs)return;const r=_r.ChangeTracker.with(e,i=>kLe(i,e.sourceFile,t.prop));return la(vQ,r,[m.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],yQ,m.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function kLe(e,t,r){xp(r);const i=w.updatePropertyDeclaration(r,r.modifiers,r.name,w.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function $tt(e,t){const r=_r.ChangeTracker.with(e,i=>wLe(i,e.sourceFile,t));return la(vQ,r,[m.Add_undefined_type_to_property_0,t.prop.name.getText()],bQ,m.Add_undefined_type_to_all_uninitialized_properties)}function wLe(e,t,r){const i=w.createKeywordTypeNode(157),o=Qy(r.type)?r.type.types.concat(i):[r.type,i],s=w.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function Qtt(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=WLe(r,t.prop);if(!i)return;const o=_r.ChangeTracker.with(e,s=>OLe(s,e.sourceFile,t.prop,i));return la(vQ,o,[m.Add_initializer_to_property_0,t.prop.name.getText()],EQ,m.Add_initializers_to_all_uninitialized_properties)}function OLe(e,t,r,i){xp(r);const o=w.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function WLe(e,t){return FLe(e,e.getTypeFromTypeNode(t.type))}function FLe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?w.createFalse():w.createTrue();if(t.isStringLiteral())return w.createStringLiteral(t.value);if(t.isNumberLiteral())return w.createNumericLiteral(t.value);if(t.flags&2048)return w.createBigIntLiteral(t.value);if(t.isUnion())return qt(t.types,r=>FLe(e,r));if(t.isClass()){const r=Hg(t.symbol);if(!r||$r(r,64))return;const i=cg(r);return i&&i.parameters.length?void 0:w.createNewExpression(w.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return w.createArrayLiteralExpression()}var vQ,yQ,bQ,EQ,wme,Ztt=T({"src/services/codefixes/fixStrictClassInitialization.ts"(){ii(),Ra(),vQ="strictClassInitialization",yQ="addMissingPropertyDefiniteAssignmentAssertions",bQ="addMissingPropertyUndefinedType",EQ="addMissingPropertyInitializer",wme=[m.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Aa({errorCodes:wme,getCodeActions:function(t){const r=LLe(t.sourceFile,t.span.start);if(!r)return;const i=[];return Rn(i,$tt(t,r)),Rn(i,Ytt(t,r)),Rn(i,Qtt(t,r)),i},fixIds:[yQ,bQ,EQ],getAllCodeActions:e=>As(e,wme,(t,r)=>{const i=LLe(r.file,r.start);if(i)switch(e.fixId){case yQ:kLe(t,r.file,i.prop);break;case bQ:wLe(t,r.file,i);break;case EQ:const o=e.program.getTypeChecker(),s=WLe(o,i.prop);if(!s)return;OLe(t,r.file,i.prop,s);break;default:C.fail(JSON.stringify(e.fixId))}})})}});function zLe(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:u}=r;e.replaceNode(t,l,o&&!i?w.createImportEqualsDeclaration(void 0,!1,o,w.createExternalModuleReference(u)):w.createImportDeclaration(void 0,w.createImportClause(!1,o,s),u,void 0))}function BLe(e,t,r){const{parent:i}=fo(e,r);Td(i,!0)||C.failBadSyntaxKind(i);const o=oa(i.parent,ki),s=ti(o.name,je),l=dm(o.name)?ent(o.name):void 0;if(s||l)return{allowSyntheticDefaults:FS(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:oa(o.parent.parent,kl),required:Xa(i.arguments)}}function ent(e){const t=[];for(const r of e.elements){if(!je(r.name)||r.initializer)return;t.push(w.createImportSpecifier(!1,ti(r.propertyName,je),r.name))}if(t.length)return w.createNamedImports(t)}var SQ,Ome,tnt=T({"src/services/codefixes/requireInTs.ts"(){ii(),Ra(),SQ="requireInTs",Ome=[m.require_call_may_be_converted_to_an_import.code],Aa({errorCodes:Ome,getCodeActions(e){const t=BLe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,i=>zLe(i,e.sourceFile,t));return[la(SQ,r,m.Convert_require_to_import,SQ,m.Convert_all_require_to_import)]},fixIds:[SQ],getAllCodeActions:e=>As(e,Ome,(t,r)=>{const i=BLe(r.file,e.program,r.start);i&&zLe(t,e.sourceFile,i)})})}});function GLe(e,t){const r=fo(e,t);if(!je(r))return;const{parent:i}=r;if(ru(i)&&xh(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(nb(i)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function VLe(e,t,r,i){e.replaceNode(t,r.importNode,ty(r.name,void 0,r.moduleSpecifier,uf(t,i)))}var TQ,Wme,nnt=T({"src/services/codefixes/useDefaultImport.ts"(){ii(),Ra(),TQ="useDefaultImport",Wme=[m.Import_may_be_converted_to_a_default_import.code],Aa({errorCodes:Wme,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=GLe(t,r);if(!i)return;const o=_r.ChangeTracker.with(e,s=>VLe(s,t,i,e.preferences));return[la(TQ,o,m.Convert_to_default_import,TQ,m.Convert_all_to_default_imports)]},fixIds:[TQ],getAllCodeActions:e=>As(e,Wme,(t,r)=>{const i=GLe(r.file,r.start);i&&VLe(t,r.file,i,e.preferences)})})}});function jLe(e,t,r){const i=ti(fo(t,r.start),bp);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,w.createBigIntLiteral(o))}var AQ,Fme,rnt=T({"src/services/codefixes/useBigintLiteral.ts"(){ii(),Ra(),AQ="useBigintLiteral",Fme=[m.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Aa({errorCodes:Fme,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>jLe(i,t.sourceFile,t.span));if(r.length>0)return[la(AQ,r,m.Convert_to_a_bigint_numeric_literal,AQ,m.Convert_all_to_bigint_numeric_literals)]},fixIds:[AQ],getAllCodeActions:e=>As(e,Fme,(t,r)=>jLe(t,r.file,r))})}});function ULe(e,t){const r=fo(e,t);return C.assert(r.kind===102,"This token should be an ImportKeyword"),C.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function HLe(e,t,r){const i=w.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var qLe,IQ,zme,int=T({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){ii(),Ra(),qLe="fixAddModuleReferTypeMissingTypeof",IQ=qLe,zme=[m.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Aa({errorCodes:zme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=ULe(r,i.start),s=_r.ChangeTracker.with(t,l=>HLe(l,r,o));return[la(IQ,s,m.Add_missing_typeof,IQ,m.Add_missing_typeof)]},fixIds:[IQ],getAllCodeActions:e=>As(e,zme,(t,r)=>HLe(t,e.sourceFile,ULe(r.file,r.start)))})}});function JLe(e,t){let o=fo(e,t).parent.parent;if(!(!mr(o)&&(o=o.parent,!mr(o)))&&Gl(o.operatorToken))return o}function KLe(e,t,r){const i=ont(r);i&&e.replaceNode(t,r,w.createJsxFragment(w.createJsxOpeningFragment(),i,w.createJsxJsxClosingFragment()))}function ont(e){const t=[];let r=e;for(;;)if(mr(r)&&Gl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),AL(r.right))return t.push(r.right),t;if(mr(r.right)){r=r.right;continue}else return}else return}var xQ,Bme,ant=T({"src/services/codefixes/wrapJsxInFragment.ts"(){ii(),Ra(),xQ="wrapJsxInFragment",Bme=[m.JSX_expressions_must_have_one_parent_element.code],Aa({errorCodes:Bme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=JLe(r,i.start);if(!o)return;const s=_r.ChangeTracker.with(t,l=>KLe(l,r,o));return[la(xQ,s,m.Wrap_in_JSX_fragment,xQ,m.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[xQ],getAllCodeActions:e=>As(e,Bme,(t,r)=>{const i=JLe(e.sourceFile,r.start);i&&KLe(t,e.sourceFile,i)})})}});function XLe(e,t){const r=fo(e,t),i=ti(r.parent.parent,r1);if(!i)return;const o=hd(i.parent)?i.parent:ti(i.parent.parent,Lm);if(o)return{indexSignature:i,container:o}}function snt(e,t){return w.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function YLe(e,t,{indexSignature:r,container:i}){const s=(hd(i)?i.members:i.type.members).filter(f=>!r1(f)),l=Xa(r.parameters),u=w.createTypeParameterDeclaration(void 0,oa(l.name,je),l.type),p=w.createMappedTypeNode(zN(r)?w.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),h=w.createIntersectionTypeNode([...NN(i),p,...s.length?[w.createTypeLiteralNode(s)]:et]);e.replaceNode(t,i,snt(i,h))}var RQ,Gme,lnt=T({"src/services/codefixes/convertToMappedObjectType.ts"(){ii(),Ra(),RQ="fixConvertToMappedObjectType",Gme=[m.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Aa({errorCodes:Gme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=XLe(r,i.start);if(!o)return;const s=_r.ChangeTracker.with(t,u=>YLe(u,r,o)),l=Tr(o.container.name);return[la(RQ,s,[m.Convert_0_to_mapped_object_type,l],RQ,[m.Convert_0_to_mapped_object_type,l])]},fixIds:[RQ],getAllCodeActions:e=>As(e,Gme,(t,r)=>{const i=XLe(r.file,r.start);i&&YLe(t,r.file,i)})})}}),Vme,$Le,cnt=T({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){ii(),Ra(),Vme="removeAccidentalCallParentheses",$Le=[m.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Aa({errorCodes:$Le,getCodeActions(e){const t=zn(fo(e.sourceFile,e.span.start),sa);if(!t)return;const r=_r.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[s_(Vme,r,m.Remove_parentheses)]},fixIds:[Vme]})}});function QLe(e,t,r){const i=ti(fo(t,r.start),u=>u.kind===135),o=i&&ti(i.parent,eb);if(!o)return;let s=o;if(Gd(o.parent)){const u=OR(o.expression,!1);if(je(u)){const p=Dc(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var DQ,jme,unt=T({"src/services/codefixes/removeUnnecessaryAwait.ts"(){ii(),Ra(),DQ="removeUnnecessaryAwait",jme=[m.await_has_no_effect_on_the_type_of_this_expression.code],Aa({errorCodes:jme,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>QLe(i,t.sourceFile,t.span));if(r.length>0)return[la(DQ,r,m.Remove_unnecessary_await,DQ,m.Remove_all_unnecessary_uses_of_await)]},fixIds:[DQ],getAllCodeActions:e=>As(e,jme,(t,r)=>QLe(t,r.file,r))})}});function ZLe(e,t){return zn(fo(e,t.start),Oc)}function eke(e,t,r){if(!t)return;const i=C.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,w.updateImportDeclaration(t,t.modifiers,w.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,w.createImportDeclaration(void 0,w.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var Ume,CQ,dnt=T({"src/services/codefixes/splitTypeOnlyImport.ts"(){ii(),Ra(),Ume=[m.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],CQ="splitTypeOnlyImport",Aa({errorCodes:Ume,fixIds:[CQ],getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>eke(i,ZLe(t.sourceFile,t.span),t));if(r.length)return[la(CQ,r,m.Split_into_two_separate_import_declarations,CQ,m.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>As(e,Ume,(t,r)=>{eke(t,ZLe(e.sourceFile,r),e)})})}});function tke(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(fo(e,t));if(s===void 0)return;const l=ti((i=s==null?void 0:s.valueDeclaration)==null?void 0:i.parent,qc);if(l===void 0)return;const u=Es(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function nke(e,t,r){e.replaceNode(t,r,w.createToken(121))}var NQ,Hme,pnt=T({"src/services/codefixes/convertConstToLet.ts"(){ii(),Ra(),NQ="fixConvertConstToLet",Hme=[m.Cannot_assign_to_0_because_it_is_a_constant.code],Aa({errorCodes:Hme,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=tke(r,i.start,o);if(s===void 0)return;const l=_r.ChangeTracker.with(t,u=>nke(u,r,s.token));return[Hpe(NQ,l,m.Convert_const_to_let,NQ,m.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return BD(_r.ChangeTracker.with(e,i=>{GD(e,Hme,o=>{const s=tke(o.file,o.start,t);if(s&&Pm(r,Ta(s.symbol)))return nke(i,o.file,s.token)})}))},fixIds:[NQ]})}});function rke(e,t,r){const i=fo(e,t);return i.kind===27&&i.parent&&(Wa(i.parent)||_d(i.parent))?{node:i}:void 0}function ike(e,t,{node:r}){const i=w.createToken(28);e.replaceNode(t,r,i)}var PQ,oke,qme,fnt=T({"src/services/codefixes/fixExpectedComma.ts"(){ii(),Ra(),PQ="fixExpectedComma",oke=m._0_expected.code,qme=[oke],Aa({errorCodes:qme,getCodeActions(e){const{sourceFile:t}=e,r=rke(t,e.span.start,e.errorCode);if(!r)return;const i=_r.ChangeTracker.with(e,o=>ike(o,t,r));return[la(PQ,i,[m.Change_0_to_1,";",","],PQ,[m.Change_0_to_1,";",","])]},fixIds:[PQ],getAllCodeActions:e=>As(e,qme,(t,r)=>{const i=rke(r.file,r.start,r.code);i&&ike(t,e.sourceFile,i)})})}});function ake(e,t,r,i,o){const s=fo(t,r.start);if(!je(s)||!sa(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),p=u==null?void 0:u.valueDeclaration;if(!p||!Io(p)||!o1(p.parent.parent)||o!=null&&o.has(p))return;o==null||o.add(p);const h=mnt(p.parent.parent);if(St(h)){const f=h[0],b=!Qy(f)&&!GS(f)&&GS(w.createUnionTypeNode([f,w.createKeywordTypeNode(116)]).types[0]);b&&e.insertText(t,f.pos,"("),e.insertText(t,f.end,b?") | void":" | void")}else{const f=l.getResolvedSignature(s.parent),b=f==null?void 0:f.parameters[0],A=b&&l.getTypeOfSymbolAtLocation(b,p.parent.parent);sr(p)?(!A||A.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,wa(t.text,p.parent.parent.pos),"/** @type {Promise<void>} */(")):(!A||A.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"<void>")}}function mnt(e){var t;if(sr(e)){if(Gd(e.parent)){const r=(t=f0(e.parent))==null?void 0:t.typeExpression.type;if(r&&Nf(r)&&je(r.typeName)&&Tr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var ske,Jme,Kme,_nt=T({"src/services/codefixes/fixAddVoidToPromise.ts"(){ii(),Ra(),ske="addVoidToPromise",Jme="addVoidToPromise",Kme=[m.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,m.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Aa({errorCodes:Kme,fixIds:[Jme],getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>ake(r,e.sourceFile,e.span,e.program));if(t.length>0)return[la(ske,t,m.Add_void_to_Promise_resolved_without_a_value,Jme,m.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return As(e,Kme,(t,r)=>ake(t,r.file,r,e.program,new Set))}})}}),Fu={};X(Fu,{PreserveOptionalFlags:()=>Mme,addNewNodeForMemberSymbol:()=>bLe,codeFixAll:()=>As,createCodeFixAction:()=>la,createCodeFixActionMaybeFixAll:()=>Hpe,createCodeFixActionWithoutFixAll:()=>s_,createCombinedCodeActions:()=>BD,createFileTextChanges:()=>EPe,createImportAdder:()=>FI,createImportSpecifierResolver:()=>EZe,createJsonPropertyAssignment:()=>gQ,createMissingMemberNodes:()=>Ame,createSignatureDeclarationFromCallExpression:()=>Ime,createSignatureDeclarationFromSignature:()=>_Q,createStubbedBody:()=>Rz,eachDiagnostic:()=>GD,findAncestorMatchingSpan:()=>Pme,findJsonProperty:()=>Nme,generateAccessorFromProperty:()=>xLe,getAccessorConvertiblePropertyAtPosition:()=>CLe,getAllFixes:()=>$$e,getAllSupers:()=>Lme,getArgumentTypesAndTypeParameters:()=>TLe,getFixes:()=>Y$e,getImportCompletionAction:()=>SZe,getImportKind:()=>yfe,getJSDocTypedefNodes:()=>hZe,getNoopSymbolTrackerWithResolver:()=>jD,getPromoteTypeOnlyCompletionAction:()=>TZe,getSupportedErrorCodes:()=>K$e,importFixName:()=>xfe,importSymbols:()=>UD,moduleSpecifierToValidIdentifier:()=>Ife,moduleSymbolToValidIdentifier:()=>Afe,parameterShouldGetTypeFromJSDoc:()=>GPe,registerCodeFix:()=>Aa,setJsonCompilerOptionValue:()=>Cme,setJsonCompilerOptionValues:()=>Dme,tryGetAutoImportableReferenceFromTypeNode:()=>BI,typeToAutoImportableTypeNode:()=>hQ});var Ra=T({"src/services/_namespaces/ts.codefix.ts"(){Q$e(),Z$e(),eQe(),rQe(),lQe(),pQe(),fQe(),mQe(),_Qe(),yQe(),CQe(),PQe(),VQe(),aZe(),sZe(),cZe(),uZe(),gZe(),vZe(),bZe(),jZe(),qZe(),XZe(),YZe(),$Ze(),eet(),ret(),aet(),pet(),Tet(),Iet(),Pet(),Met(),ket(),wet(),Oet(),Wet(),zet(),Bet(),Get(),Vet(),jet(),Het(),Ket(),Qet(),stt(),ctt(),utt(),ftt(),mtt(),htt(),gtt(),Itt(),xtt(),Rtt(),Ltt(),Htt(),Xtt(),Ztt(),tnt(),nnt(),rnt(),int(),ant(),lnt(),cnt(),unt(),dnt(),pnt(),fnt(),_nt()}});function hnt(e){return!!(e.kind&1)}function gnt(e){return!!(e.kind&2)}function Dz(e){return!!(e&&e.kind&4)}function E2(e){return!!(e&&e.kind===32)}function vnt(e){return Dz(e)||E2(e)||Xme(e)}function ynt(e){return(Dz(e)||E2(e))&&!!e.isFromPackageJson}function bnt(e){return!!(e.kind&8)}function Ent(e){return!!(e.kind&16)}function lke(e){return!!(e&&e.kind&64)}function cke(e){return!!(e&&e.kind&128)}function Snt(e){return!!(e&&e.kind&256)}function Xme(e){return!!(e&&e.kind&512)}function uke(e,t,r,i,o,s,l,u,p){var h,f,b;const A=Xs(),I=l||KA(md(i.getCompilerOptions()));let R=!1,M=0,N=0,O=0,U=0;const K=p({tryResolve:V,skippedAny:()=>R,resolvedAny:()=>N>0,resolvedBeyondLimit:()=>N>GQ}),ee=U?" (".concat((O/U*100).toFixed(1),"% hit rate)"):"";return(h=t.log)==null||h.call(t,"".concat(e,": resolved ").concat(N," module specifiers, plus ").concat(M," ambient and ").concat(O," from cache").concat(ee)),(f=t.log)==null||f.call(t,"".concat(e,": response is ").concat(R?"incomplete":"complete")),(b=t.log)==null||b.call(t,"".concat(e,": ").concat(Xs()-A)),K;function V(se,G){if(G){const Q=r.getModuleSpecifierForBestExportInfo(se,o,u);return Q&&M++,Q||"failed"}const re=I||s.allowIncompleteCompletions&&N<GQ,_e=!re&&s.allowIncompleteCompletions&&U<o_e,ye=re||_e?r.getModuleSpecifierForBestExportInfo(se,o,u,_e):void 0;return(!re&&!_e||_e&&!ye)&&(R=!0),N+=(ye==null?void 0:ye.computedWithoutCacheCount)||0,O+=se.length-((ye==null?void 0:ye.computedWithoutCacheCount)||0),_e&&U++,ye||(I?"failed":"skipped")}}function Tnt(e,t,r,i,o,s,l,u,p,h,f=!1){var b;const{previousToken:A}=wQ(o,i);if(l&&!NI(i,o,A)&&!irt(i,l,A,o))return;if(l===" ")return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const I=t.getCompilerOptions(),R=t.getTypeChecker(),M=s.allowIncompleteCompletions?(b=e.getIncompleteCompletionsCache)==null?void 0:b.call(e):void 0;if(M&&u===3&&A&&je(A)){const U=Ant(M,i,A,t,e,s,p,o);if(U)return U}else M==null||M.clear();const N=jQ.getStringLiteralCompletions(i,o,A,I,e,t,r,s,f);if(N)return N;if(A&&pN(A.parent)&&(A.kind===83||A.kind===88||A.kind===80))return jnt(A.parent);const O=Ske(t,r,i,I,o,s,void 0,e,h,p);if(O)switch(O.kind){case 0:const U=Cnt(i,e,t,I,r,O,s,h,o,f);return U!=null&&U.isIncomplete&&(M==null||M.set(U)),U;case 1:return Yme([...j0.getJSDocTagNameCompletions(),...pke(i,o,R,I,s,!0)]);case 2:return Yme([...j0.getJSDocTagCompletions(),...pke(i,o,R,I,s,!1)]);case 3:return Yme(j0.getJSDocParameterNameCompletions(O.tag));case 4:return Rnt(O.keywordCompletions,O.isNewIdentifierLocation);default:return C.assertNever(O)}}function Cz(e,t){var r,i;let o=BM(e.sortText,t.sortText);return o===0&&(o=BM(e.name,t.name)),o===0&&((r=e.data)!=null&&r.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(o=Sk(e.data.moduleSpecifier,t.data.moduleSpecifier)),o===0?-1:o}function dke(e){return!!(e!=null&&e.moduleSpecifier)}function Ant(e,t,r,i,o,s,l,u){const p=e.get();if(!p)return;const h=Vd(t,u),f=r.text.toLowerCase(),b=RO(t,o,i,s,l),A=uke("continuePreviousIncompleteResponse",o,Fu.createImportSpecifierResolver(t,i,o,s),i,r.getStart(),s,!1,I0(r),I=>{const R=Hi(p.entries,M=>{var N;if(!M.hasAction||!M.source||!M.data||dke(M.data))return M;if(!Oke(M.name,f))return;const{origin:O}=C.checkDefined(Tke(M.name,M.data,i,o)),U=b.get(t.path,M.data.exportMapKey),K=U&&I.tryResolve(U,!Qc(am(O.moduleSymbol.name)));if(K==="skipped")return M;if(!K||K==="failed"){(N=o.log)==null||N.call(o,"Unexpected failure resolving auto import for '".concat(M.name,"' from '").concat(M.source,"'"));return}const ee={...O,kind:32,moduleSpecifier:K.moduleSpecifier};return M.data=yke(ee),M.source=Qme(ee),M.sourceDisplay=[df(ee.moduleSpecifier)],M});return I.skippedAny()||(p.isIncomplete=void 0),R});return p.entries=A,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=_ke(h),p}function Yme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function pke(e,t,r,i,o,s){const l=fo(e,t);if(!oR(l)&&!i_(l))return[];const u=i_(l)?l:l.parent;if(!i_(u))return[];const p=u.parent;if(!Qo(p))return[];const h=dd(e),f=o.includeCompletionsWithSnippetText||void 0,b=lu(u.tags,A=>o_(A)&&A.getEnd()<=t);return Hi(p.parameters,A=>{if(!Zx(A).length){if(je(A.name)){const I={tabstop:1},R=A.name.text;let M=ZO(R,A.initializer,A.dotDotDotToken,h,!1,!1,r,i,o),N=f?ZO(R,A.initializer,A.dotDotDotToken,h,!1,!0,r,i,o,I):void 0;return s&&(M=M.slice(1),N&&(N=N.slice(1))),{name:M,kind:"parameter",sortText:zu.LocationPriority,insertText:f?N:void 0,isSnippet:f}}else if(A.parent.parameters.indexOf(A)===b){const I="param".concat(b),R=fke(I,A.name,A.initializer,A.dotDotDotToken,h,!1,r,i,o),M=f?fke(I,A.name,A.initializer,A.dotDotDotToken,h,!0,r,i,o):void 0;let N=R.join(Hv(i)+"* "),O=M==null?void 0:M.join(Hv(i)+"* ");return s&&(N=N.slice(1),O&&(O=O.slice(1))),{name:N,kind:"parameter",sortText:zu.LocationPriority,insertText:f?O:void 0,isSnippet:f}}}})}function fke(e,t,r,i,o,s,l,u,p){if(!o)return[ZO(e,r,i,o,!1,s,l,u,p,{tabstop:1})];return h(e,t,r,i,{tabstop:1});function h(b,A,I,R,M){if(dm(A)&&!R){const O={tabstop:M.tabstop},U=ZO(b,I,R,o,!0,s,l,u,p,O);let K=[];for(const ee of A.elements){const V=f(b,ee,O);if(V)K.push(...V);else{K=void 0;break}}if(K)return M.tabstop=O.tabstop,[U,...K]}return[ZO(b,I,R,o,!1,s,l,u,p,M)]}function f(b,A,I){if(!A.propertyName&&je(A.name)||je(A.name)){const R=A.propertyName?SN(A.propertyName):A.name.text;if(!R)return;const M="".concat(b,".").concat(R);return[ZO(M,A.initializer,A.dotDotDotToken,o,!1,s,l,u,p,I)]}else if(A.propertyName){const R=SN(A.propertyName);return R&&h("".concat(b,".").concat(R),A.name,A.initializer,A.dotDotDotToken,I)}}}function ZO(e,t,r,i,o,s,l,u,p,h){if(s&&C.assertIsDefined(h),t&&(e=Int(e,t)),s&&(e=t1(e)),i){let f="*";if(o)C.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),f="Object";else{if(t){const I=l.getTypeAtLocation(t.parent);if(!(I.flags&16385)){const R=t.getSourceFile(),N=uf(R,p)===0?268435456:0,O=l.typeToTypeNode(I,zn(t,Qo),N);if(O){const U=s?kQ({removeComments:!0,module:u.module,target:u.target}):O0({removeComments:!0,module:u.module,target:u.target});pr(O,1),f=U.printNode(4,O,R)}}}s&&f==="*"&&(f="${".concat(h.tabstop++,":").concat(f,"}"))}const b=!o&&r?"...":"",A=s?"${".concat(h.tabstop++,"}"):"";return"@param {".concat(b).concat(f,"} ").concat(e," ").concat(A)}else{const f=s?"${".concat(h.tabstop++,"}"):"";return"@param ".concat(e," ").concat(f)}}function Int(e,t){const r=t.getText().trim();return r.includes("\n")||r.length>80?"[".concat(e,"]"):"[".concat(e,"=").concat(r,"]")}function xnt(e){return{name:pa(e),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords}}function Rnt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function mke(e,t,r){return{kind:4,keywordCompletions:Ake(e,t),isNewIdentifierLocation:r}}function Dnt(e){switch(e){case 156:return 8;default:C.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function _ke(e){return(e==null?void 0:e.kind)===80?Dd(e):void 0}function Cnt(e,t,r,i,o,s,l,u,p,h){const{symbols:f,contextToken:b,completionKind:A,isInSnippetScope:I,isNewIdentifierLocation:R,location:M,propertyAccessToConvert:N,keywordFilters:O,symbolToOriginInfoMap:U,recommendedCompletion:K,isJsxInitializer:ee,isTypeOnlyLocation:V,isJsxIdentifierExpected:se,isRightOfOpenTag:G,isRightOfDotOrQuestionDot:re,importStatementCompletion:_e,insideJsDocTagTypeExpression:ye,symbolToSortTextMap:Q,hasUnresolvedAutoImports:Y}=s;let oe=s.literals;const he=r.getTypeChecker();if(yk(e.scriptKind)===1){const qe=Pnt(M,e);if(qe)return qe}const Ae=zn(b,$R);if(Ae&&(jae(b)||HE(b,Ae.expression))){const qe=O5(he,Ae.parent.clauses);oe=oe.filter(Ee=>!qe.hasValue(Ee)),f.forEach((Ee,Me)=>{if(Ee.valueDeclaration&&p1(Ee.valueDeclaration)){const Ce=he.getConstantValue(Ee.valueDeclaration);Ce!==void 0&&qe.hasValue(Ce)&&(U[Me]={kind:256})}})}const de=pG(),ie=hke(e,i);if(ie&&!R&&(!f||f.length===0)&&O===0)return;const ge=Zme(f,de,void 0,b,M,p,e,t,r,ls(i),o,A,l,i,u,V,N,se,ee,_e,K,U,Q,se,G,h);if(O!==0)for(const qe of Ake(O,!ye&&dd(e)))(V&&a2(LE(qe.name))||!V&&prt(qe.name)||!ge.has(qe.name))&&(ge.add(qe.name),xy(de,qe,Cz,!0));for(const qe of Znt(b,p))ge.has(qe.name)||(ge.add(qe.name),xy(de,qe,Cz,!0));for(const qe of oe){const Ee=Lnt(e,l,qe);ge.add(Ee.name),xy(de,Ee,Cz,!0)}ie||Mnt(e,M.pos,ge,ls(i),de);let Ne;if(l.includeCompletionsWithInsertText&&b&&!G&&!re&&(Ne=zn(b,SP))){const qe=gke(Ne,e,l,i,t,r,u);qe&&de.push(qe.entry)}return{flags:s.flags,isGlobalCompletion:I,isIncomplete:l.allowIncompleteCompletions&&Y?!0:void 0,isMemberCompletion:Nnt(A),isNewIdentifierLocation:R,optionalReplacementSpan:_ke(M),entries:de}}function hke(e,t){return!dd(e)||!!Ak(e,t)}function gke(e,t,r,i,o,s,l){const u=e.clauses,p=s.getTypeChecker(),h=p.getTypeAtLocation(e.parent.expression);if(h&&h.isUnion()&&Yn(h.types,f=>f.isLiteral())){const f=O5(p,u),b=ls(i),A=uf(t,r),I=Fu.createImportAdder(t,s,r,o),R=[];for(const V of h.types)if(V.flags&1024){C.assert(V.symbol,"An enum member type should have a symbol"),C.assert(V.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const se=V.symbol.valueDeclaration&&p.getConstantValue(V.symbol.valueDeclaration);if(se!==void 0){if(f.hasValue(se))continue;f.addValue(se)}const G=Fu.typeToAutoImportableTypeNode(p,I,V,e,b);if(!G)return;const re=MQ(G,b,A);if(!re)return;R.push(re)}else if(!f.hasValue(V.value))switch(typeof V.value){case"object":R.push(V.value.negative?w.createPrefixUnaryExpression(41,w.createBigIntLiteral({negative:!1,base10Value:V.value.base10Value})):w.createBigIntLiteral(V.value));break;case"number":R.push(V.value<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-V.value)):w.createNumericLiteral(V.value));break;case"string":R.push(w.createStringLiteral(V.value,A===0));break}if(R.length===0)return;const M=Ot(R,V=>w.createCaseClause(V,[])),N=ny(o,l==null?void 0:l.options),O=kQ({removeComments:!0,module:i.module,target:i.target,newLine:xO(N)}),U=l?V=>O.printAndFormatNode(4,V,t,l):V=>O.printNode(4,V,t),K=Ot(M,(V,se)=>r.includeCompletionsWithSnippetText?"".concat(U(V),"$").concat(se+1):"".concat(U(V))).join(N),ee=O.printNode(4,M[0],t);return{entry:{name:"".concat(ee," ..."),kind:"",sortText:zu.GlobalsOrKeywords,insertText:K,hasAction:I.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:I}}}function MQ(e,t,r){switch(e.kind){case 183:const i=e.typeName;return LQ(i,t,r);case 199:const o=MQ(e.objectType,t,r),s=MQ(e.indexType,t,r);return o&&s&&w.createElementAccessExpression(o,s);case 201:const l=e.literal;switch(l.kind){case 11:return w.createStringLiteral(l.text,r===0);case 9:return w.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:const u=MQ(e.type,t,r);return u&&(je(u)?u:w.createParenthesizedExpression(u));case 186:return LQ(e.exprName,t,r);case 205:C.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function LQ(e,t,r){if(je(e))return e;const i=ji(e.right.escapedText);return JU(i,t)?w.createPropertyAccessExpression(LQ(e.left,t,r),i):w.createElementAccessExpression(LQ(e.left,t,r),w.createStringLiteral(i,r===0))}function Nnt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Pnt(e,t){const r=zn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){const i=!!Es(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Dd(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:zu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[p]}}}function Mnt(e,t,r,i,o){XY(e).forEach((s,l)=>{if(s===t)return;const u=ji(l);!r.has(u)&&tf(u,i)&&(r.add(u),xy(o,{name:u,kind:"warning",kindModifiers:"",sortText:zu.JavascriptIdentifiers,isFromUncheckedFile:!0},Cz))})}function $me(e,t,r){return typeof r=="object"?ZE(r)+"n":No(r)?p2(e,t,r):JSON.stringify(r)}function Lnt(e,t,r){return{name:$me(e,t,r),kind:"string",kindModifiers:"",sortText:zu.LocationPriority}}function knt(e,t,r,i,o,s,l,u,p,h,f,b,A,I,R,M,N,O,U,K,ee,V,se,G){var re,_e;let ye,Q,Y=mX(r),oe,he,Ae=Qme(b),de,ie,ge;const Ne=p.getTypeChecker(),qe=b&&Ent(b),Ee=b&&gnt(b)||f;if(b&&hnt(b))ye=f?"this".concat(qe?"?.":"","[").concat(bke(l,U,h),"]"):"this".concat(qe?"?.":".").concat(h);else if((Ee||qe)&&I){ye=Ee?f?"[".concat(bke(l,U,h),"]"):"[".concat(h,"]"):h,(qe||I.questionDotToken)&&(ye="?.".concat(ye));const Ce=Es(I,25,l)||Es(I,29,l);if(!Ce)return;const Oe=po(h,I.name.text)?I.name.end:Ce.end;Y=hc(Ce.getStart(l),Oe)}if(R&&(ye===void 0&&(ye=h),ye="{".concat(ye,"}"),typeof R!="boolean"&&(Y=Dd(R,l))),b&&bnt(b)&&I){ye===void 0&&(ye=h);const Ce=Dc(I.pos,l);let Oe="";Ce&&x5(Ce.end,Ce.parent,l)&&(Oe=";"),Oe+="(await ".concat(I.expression.getText(),")"),ye=f?"".concat(Oe).concat(ye):"".concat(Oe).concat(qe?"?.":".").concat(ye);const be=ti(I.parent,eb)?I.parent:I.expression;Y=hc(be.getStart(l),I.end)}if(E2(b)&&(de=[df(b.moduleSpecifier)],M&&({insertText:ye,replacementSpan:Y}=Gnt(h,M,b,N,l,O,U),he=U.includeCompletionsWithSnippetText?!0:void 0)),(b==null?void 0:b.kind)===64&&(ie=!0),K===0&&i&&((re=Dc(i.pos,l,i))==null?void 0:re.kind)!==28&&(Kl(i.parent.parent)||rf(i.parent.parent)||Sp(i.parent.parent)||Yv(i.parent)||((_e=zn(i.parent,bc))==null?void 0:_e.getLastToken(l))===i||rp(i.parent)&&Ts(l,i.getEnd()).line!==Ts(l,s).line)&&(Ae="ObjectLiteralMemberWithComma/",ie=!0),U.includeCompletionsWithClassMemberSnippets&&U.includeCompletionsWithInsertText&&K===3&&wnt(e,o,l)){let Ce;const Oe=vke(u,p,O,U,h,e,o,s,i,ee);if(Oe)({insertText:ye,filterText:Q,isSnippet:he,importAdder:Ce}=Oe),Ce!=null&&Ce.hasFixes()&&(ie=!0,Ae="ClassMemberSnippet/");else return}if(b&&cke(b)&&({insertText:ye,isSnippet:he,labelDetails:ge}=b,U.useLabelDetailsInCompletionEntries||(h=h+ge.detail,ge=void 0),Ae="ObjectLiteralMethodSnippet/",t=zu.SortBelow(t)),V&&!se&&U.includeCompletionsWithSnippetText&&U.jsxAttributeCompletionStyle&&U.jsxAttributeCompletionStyle!=="none"&&!(F_(o.parent)&&o.parent.initializer)){let Ce=U.jsxAttributeCompletionStyle==="braces";const Oe=Ne.getTypeOfSymbolAtLocation(e,o);U.jsxAttributeCompletionStyle==="auto"&&!(Oe.flags&528)&&!(Oe.flags&1048576&&Tn(Oe.types,At=>!!(At.flags&528)))&&(Oe.flags&402653316||Oe.flags&1048576&&Yn(Oe.types,At=>!!(At.flags&402686084||jue(At)))?(ye="".concat(t1(h),"=").concat(p2(l,U,"$1")),he=!0):Ce=!0),Ce&&(ye="".concat(t1(h),"={$1}"),he=!0)}if(ye!==void 0&&!U.includeCompletionsWithInsertText)return;(Dz(b)||E2(b))&&(oe=yke(b),ie=!M);const Me=zn(o,B3);if((Me==null?void 0:Me.kind)===275){const Ce=LE(h);Me&&Ce&&(Ce===135||rU(Ce))&&(ye="".concat(h," as ").concat(h,"_"))}return{name:h,kind:oy.getSymbolKind(Ne,e,o),kindModifiers:oy.getSymbolModifiers(Ne,e),sortText:t,source:Ae,hasAction:ie?!0:void 0,isRecommended:Vnt(e,A,Ne)||void 0,insertText:ye,filterText:Q,replacementSpan:Y,sourceDisplay:de,labelDetails:ge,isSnippet:he,isPackageJsonImport:ynt(b)||void 0,isImportStatementCompletion:!!M||void 0,data:oe,...G?{symbol:e}:void 0}}function wnt(e,t,r){return sr(t)?!1:!!(e.flags&106500)&&(ui(t)||t.parent&&t.parent.parent&&Zc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&ui(t.parent.parent)||t.parent&&tD(t)&&ui(t.parent))}function vke(e,t,r,i,o,s,l,u,p,h){const f=zn(l,ui);if(!f)return;let b,A=o;const I=o,R=t.getTypeChecker(),M=l.getSourceFile(),N=kQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:xO(ny(e,h==null?void 0:h.options))}),O=Fu.createImportAdder(M,t,i,e);let U;if(i.includeCompletionsWithSnippetText){b=!0;const _e=w.createEmptyStatement();U=w.createBlock([_e],!0),SH(_e,{kind:0,order:0})}else U=w.createBlock([],!0);let K=0;const{modifiers:ee,range:V,decorators:se}=Ont(p,M,u),G=ee&64&&f.modifierFlagsCache&64;let re=[];if(Fu.addNewNodeForMemberSymbol(s,f,M,{program:t,host:e},i,O,_e=>{let ye=0;G&&(ye|=64),Zc(_e)&&R.getMemberOverrideModifierStatus(f,_e,s)===1&&(ye|=16),re.length||(K=_e.modifierFlagsCache|ye),_e=w.replaceModifiers(_e,K),re.push(_e)},U,Fu.PreserveOptionalFlags.Property,!!G),re.length){const _e=s.flags&8192;let ye=K|16|1;_e?ye|=1024:ye|=136;const Q=ee&ye;if(ee&~ye)return;if(K&4&&Q&1&&(K&=-5),Q!==0&&!(Q&1)&&(K&=-2),K|=Q,re=re.map(oe=>w.replaceModifiers(oe,K)),se!=null&&se.length){const oe=re[re.length-1];QS(oe)&&(re[re.length-1]=w.replaceDecoratorsAndModifiers(oe,se.concat(kE(oe)||[])))}const Y=131073;h?A=N.printAndFormatSnippetList(Y,w.createNodeArray(re),M,h):A=N.printSnippetList(Y,w.createNodeArray(re),M)}return{insertText:A,filterText:I,isSnippet:b,importAdder:O,eraseRange:V}}function Ont(e,t,r){if(!e||Ts(t,r).line>Ts(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;const l={pos:r,end:r};if(Uo(e.parent)&&e.parent.modifiers&&(i|=M_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Su)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=Wnt(e)){const u=UA(s);i&u||(i|=u,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:o,range:l.pos!==r?l:void 0}}function Wnt(e){if(xa(e))return e.kind;if(je(e)){const t=p0(e);if(t&&Fv(t))return t}}function Fnt(e,t,r,i,o,s,l,u){const p=l.includeCompletionsWithSnippetText||void 0;let h=t;const f=r.getSourceFile(),b=znt(e,r,f,i,o,l);if(!b)return;const A=kQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:xO(ny(o,u==null?void 0:u.options))});u?h=A.printAndFormatSnippetList(80,w.createNodeArray([b],!0),f,u):h=A.printSnippetList(80,w.createNodeArray([b],!0),f);const I=O0({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),R=w.createMethodSignature(void 0,"",b.questionToken,b.typeParameters,b.parameters,b.type),M={detail:I.printNode(4,R,f)};return{isSnippet:p,insertText:h,labelDetails:M}}function znt(e,t,r,i,o,s){const l=e.getDeclarations();if(!(l&&l.length))return;const u=i.getTypeChecker(),p=l[0],h=ll(Po(p),!1),f=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),A=33554432|(uf(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let I=f.flags&1048576&&f.types.length<10?u.getUnionType(f.types,2):f;if(I.flags&1048576){const U=rr(I.types,K=>u.getSignaturesOfType(K,0).length>0);if(U.length===1)I=U[0];else return}if(u.getSignaturesOfType(I,0).length!==1)return;const M=u.typeToTypeNode(I,t,A,Fu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!M||!Th(M))return;let N;if(s.includeCompletionsWithSnippetText){const U=w.createEmptyStatement();N=w.createBlock([U],!0),SH(U,{kind:0,order:0})}else N=w.createBlock([],!0);const O=M.parameters.map(U=>w.createParameterDeclaration(void 0,U.dotDotDotToken,U.name,void 0,void 0,U.initializer));return w.createMethodDeclaration(void 0,void 0,h,void 0,void 0,O,void 0,N)}default:return}}function kQ(e){let t;const r=_r.createWriter(Hv(e)),i=O0(e,r),o={...r,write:A=>s(A,()=>r.write(A)),nonEscapingWrite:r.write,writeLiteral:A=>s(A,()=>r.writeLiteral(A)),writeStringLiteral:A=>s(A,()=>r.writeStringLiteral(A)),writeSymbol:(A,I)=>s(A,()=>r.writeSymbol(A,I)),writeParameter:A=>s(A,()=>r.writeParameter(A)),writeComment:A=>s(A,()=>r.writeComment(A)),writeProperty:A=>s(A,()=>r.writeProperty(A))};return{printSnippetList:l,printAndFormatSnippetList:p,printNode:h,printAndFormatNode:b};function s(A,I){const R=t1(A);if(R!==A){const M=r.getTextPos();I();const N=r.getTextPos();t=Rn(t||(t=[]),{newText:R,span:{start:M,length:N-M}})}else I()}function l(A,I,R){const M=u(A,I,R);return t?_r.applyChanges(M,t):M}function u(A,I,R){return t=void 0,o.clear(),i.writeList(A,I,R,o),o.getText()}function p(A,I,R,M){const N={text:u(A,I,R),getLineAndCharacterOfPosition(ee){return Ts(this,ee)}},O=w5(M,R),U=Pi(I,ee=>{const V=_r.assignPositionsToNode(ee);return Fc.formatNodeGivenIndentation(V,N,R.languageVariant,0,0,{...M,options:O})}),K=t?Cv(To(U,t),(ee,V)=>W6(ee.span,V.span)):U;return _r.applyChanges(N.text,K)}function h(A,I,R){const M=f(A,I,R);return t?_r.applyChanges(M,t):M}function f(A,I,R){return t=void 0,o.clear(),i.writeNode(A,I,R,o),o.getText()}function b(A,I,R,M){const N={text:f(A,I,R),getLineAndCharacterOfPosition(V){return Ts(this,V)}},O=w5(M,R),U=_r.assignPositionsToNode(I),K=Fc.formatNodeGivenIndentation(U,N,R.languageVariant,0,0,{...M,options:O}),ee=t?Cv(To(K,t),(V,se)=>W6(V.span,se.span)):K;return _r.applyChanges(N.text,ee)}}function yke(e){const t=e.fileName?void 0:am(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return E2(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:am(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function Bnt(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return dke(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}}function Gnt(e,t,r,i,o,s,l){const u=t.replacementSpan,p=t1(p2(o,l,r.moduleSpecifier)),h=r.isDefaultExport?1:r.exportName==="export="?2:0,f=l.includeCompletionsWithSnippetText?"$1":"",b=Fu.getImportKind(o,h,s,!0),A=t.couldBeTypeOnlyImportSpecifier,I=t.isTopLevelTypeOnly?" ".concat(pa(156)," "):" ",R=A?"".concat(pa(156)," "):"",M=i?";":"";switch(b){case 3:return{replacementSpan:u,insertText:"import".concat(I).concat(t1(e)).concat(f," = require(").concat(p,")").concat(M)};case 1:return{replacementSpan:u,insertText:"import".concat(I).concat(t1(e)).concat(f," from ").concat(p).concat(M)};case 2:return{replacementSpan:u,insertText:"import".concat(I,"* as ").concat(t1(e)," from ").concat(p).concat(M)};case 0:return{replacementSpan:u,insertText:"import".concat(I,"{ ").concat(R).concat(t1(e)).concat(f," } from ").concat(p).concat(M)}}}function bke(e,t,r){return/^\d+$/.test(r)?r:p2(e,t,r)}function Vnt(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Qme(e){if(Dz(e))return am(e.moduleSymbol.name);if(E2(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function Zme(e,t,r,i,o,s,l,u,p,h,f,b,A,I,R,M,N,O,U,K,ee,V,se,G,re,_e=!1){var ie;const ye=Xs(),Q=crt(i,o),Y=TO(l),oe=p.getTypeChecker(),he=new Map;for(let ge=0;ge<e.length;ge++){const Ne=e[ge],qe=V==null?void 0:V[ge],Ee=OQ(Ne,h,qe,b,!!O);if(!Ee||he.get(Ee.name)&&(!qe||!cke(qe))||b===1&&se&&!Ae(Ne,se)||!M&&sr(l)&&de(Ne))continue;const{name:Me,needsConvertPropertyAccess:Ce}=Ee,Oe=(ie=se==null?void 0:se[Ta(Ne)])!=null?ie:zu.LocationPriority,At=urt(Ne,oe)?zu.Deprecated(Oe):Oe,be=knt(Ne,At,r,i,o,s,l,u,p,Me,Ce,qe,ee,N,U,K,Y,I,A,b,R,G,re,_e);if(!be)continue;const Ue=(!qe||lke(qe))&&!(Ne.parent===void 0&&!St(Ne.declarations,it=>it.getSourceFile()===o.getSourceFile()));he.set(Me,Ue),xy(t,be,Cz,!0)}return f("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Xs()-ye)),{has:ge=>he.has(ge),add:ge=>he.set(ge,!0)};function Ae(ge,Ne){var Me;var qe;let Ee=ge.flags;if(!Zi(o)){if(wl(o.parent))return!0;if(ti(Q,ki)&&ge.valueDeclaration===Q)return!1;const Ce=(Me=ge.valueDeclaration)!=null?Me:(qe=ge.declarations)==null?void 0:qe[0];if(Q&&Ce&&(gl(Q)&&gl(Ce)||Io(Q)&&Io(Ce))){const At=Ce.pos,be=Io(Q)?Q.parent.parameters:BS(Q.parent)?void 0:Q.parent.typeParameters;if(At>=Q.pos&&be&&At<be.end)return!1}const Oe=Eu(ge,oe);if(l.externalModuleIndicator&&!I.allowUmdGlobalAccess&&Ne[Ta(ge)]===zu.GlobalsOrKeywords&&(Ne[Ta(Oe)]===zu.AutoImportSuggestions||Ne[Ta(Oe)]===zu.LocationPriority))return!1;if(Ee|=kR(Oe),$7(o))return!!(Ee&1920);if(M)return i_e(ge,oe)}return!!(Ee&111551)}function de(ge){var Ne;const qe=kR(Eu(ge,oe));return!(qe&111551)&&(!sr((Ne=ge.declarations)==null?void 0:Ne[0])||!!(qe&788968))}}function jnt(e){const t=Unt(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function Unt(e){const t=[],r=new Map;let i=e;for(;i&&!Qo(i);){if(s1(i)){const o=i.label.text;r.has(o)||(r.set(o,!0),t.push({name:o,kindModifiers:"",kind:"label",sortText:zu.LocationPriority}))}i=i.parent}return t}function Eke(e,t,r,i,o,s,l){if(o.source==="SwitchCases/")return{type:"cases"};if(o.data){const K=Tke(o.name,o.data,e,s);if(K){const{contextToken:ee,previousToken:V}=wQ(i,r);return{type:"symbol",symbol:K.symbol,location:Vd(r,i),previousToken:V,contextToken:ee,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:K.origin}}}const u=e.getCompilerOptions(),p=Ske(e,t,r,u,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!p)return{type:"none"};if(p.kind!==0)return{type:"request",request:p};const{symbols:h,literals:f,location:b,completionKind:A,symbolToOriginInfoMap:I,contextToken:R,previousToken:M,isJsxInitializer:N,isTypeOnlyLocation:O}=p,U=Tn(f,K=>$me(r,l,K)===o.name);return U!==void 0?{type:"literal",literal:U}:qt(h,(K,ee)=>{const V=I[ee],se=OQ(K,ls(u),V,A,p.isJsxIdentifierExpected);return se&&se.name===o.name&&(o.source==="ClassMemberSnippet/"&&K.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&K.flags&8196||Qme(V)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:K,location:b,origin:V,contextToken:R,previousToken:M,isJsxInitializer:N,isTypeOnlyLocation:O}:void 0})||{type:"none"}}function Hnt(e,t,r,i,o,s,l,u,p){const h=e.getTypeChecker(),f=e.getCompilerOptions(),{name:b,source:A,data:I}=o,{previousToken:R,contextToken:M}=wQ(i,r);if(NI(r,i,R))return jQ.getStringLiteralCompletionDetails(b,r,i,R,e,s,p,u);const N=Eke(e,t,r,i,o,s,u);switch(N.type){case"request":{const{request:O}=N;switch(O.kind){case 1:return j0.getJSDocTagNameCompletionDetails(b);case 2:return j0.getJSDocTagCompletionDetails(b);case 3:return j0.getJSDocParameterNameCompletionDetails(b);case 4:return St(O.keywordCompletions,U=>U.name===b)?e_e(b,"keyword",5):void 0;default:return C.assertNever(O)}}case"symbol":{const{symbol:O,location:U,contextToken:K,origin:ee,previousToken:V}=N,{codeActions:se,sourceDisplay:G}=qnt(b,U,K,ee,O,e,s,f,r,i,V,l,u,I,A,p),re=Xme(ee)?ee.symbolName:O.name;return t_e(O,re,h,r,U,p,se,G)}case"literal":{const{literal:O}=N;return e_e($me(r,u,O),"string",typeof O=="string"?8:7)}case"cases":{const O=gke(M.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(O!=null&&O.importAdder.hasFixes()){const{entry:U,importAdder:K}=O,ee=_r.ChangeTracker.with({host:s,formatContext:l,preferences:u},K.writeFixes);return{name:U.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:ee,description:uT([m.Includes_imports_of_types_referenced_by_0,b])}]}}return{name:b,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return c_e().some(O=>O.name===b)?e_e(b,"keyword",5):void 0;default:C.assertNever(N)}}function e_e(e,t,r){return Nz(e,"",t,[ip(e,r)])}function t_e(e,t,r,i,o,s,l,u){const{displayParts:p,documentation:h,symbolKind:f,tags:b}=r.runWithCancellationToken(s,A=>oy.getSymbolDisplayPartsDocumentationAndSymbolKind(A,e,i,o,o,7));return Nz(t,oy.getSymbolModifiers(r,e),f,p,h,b,l,u)}function Nz(e,t,r,i,o,s,l,u){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:u,sourceDisplay:u}}function qnt(e,t,r,i,o,s,l,u,p,h,f,b,A,I,R,M){if(I!=null&&I.moduleSpecifier&&f&&Pke(r||f,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[df(I.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){const{importAdder:se,eraseRange:G}=vke(l,s,u,A,e,o,t,h,r,b);if(se||G)return{sourceDisplay:void 0,codeActions:[{changes:_r.ChangeTracker.with({host:l,formatContext:b,preferences:A},_e=>{se&&se.writeFixes(_e),G&&_e.deleteRange(p,G)}),description:uT([m.Includes_imports_of_types_referenced_by_0,e])}]}}if(lke(i)){const se=Fu.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,b,A);return C.assertIsDefined(se,"Expected to have a code action for promoting type-only alias"),{codeActions:[se],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){const se=_r.ChangeTracker.with({host:l,formatContext:b,preferences:A},G=>G.insertText(p,r.end,","));if(se)return{sourceDisplay:void 0,codeActions:[{changes:se,description:uT([m.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(Dz(i)||E2(i)))return{codeActions:void 0,sourceDisplay:void 0};const N=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:O}=i,U=N.getMergedSymbol(Eu(o.exportSymbol||o,N)),K=(r==null?void 0:r.kind)===30&&ud(r.parent),{moduleSpecifier:ee,codeAction:V}=Fu.getImportCompletionAction(U,O,I==null?void 0:I.exportMapKey,p,e,K,l,s,b,f&&je(f)?f.getStart(p):h,A,M);return C.assert(!(I!=null&&I.moduleSpecifier)||ee===I.moduleSpecifier),{sourceDisplay:[df(ee)],codeActions:[V]}}function Jnt(e,t,r,i,o,s,l){const u=Eke(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}function Knt(e,t,r){return qt(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!Loe(o)?n_e(o,e,r):void 0})}function Xnt(e,t,r,i){const{parent:o}=e;switch(e.kind){case 80:return T5(e,i);case 64:switch(o.kind){case 260:return i.getContextualType(o.initializer);case 226:return i.getTypeAtLocation(o.left);case 291:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:const s=ti(o,$R);return s?WX(s,i):void 0;case 19:return TP(o)&&!mg(o.parent)&&!c1(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const l=o8.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):A5(e.kind)&&mr(o)&&A5(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function n_e(e,t,r){const i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Xa(i):e.parent&&(Ynt(e.parent)?e:n_e(e.parent,t,r))}function Ynt(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function Ske(e,t,r,i,o,s,l,u,p,h){const f=e.getTypeChecker(),b=hke(r,i);let A=Xs(),I=fo(r,o);t("getCompletionData: Get current token: "+(Xs()-A)),A=Xs();const R=Zv(r,o,I);t("getCompletionData: Is inside comment: "+(Xs()-A));let M=!1,N=!1;if(R){if(Bue(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const Ve=fm(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(Ve,o)))return{kind:2}}}const fe=ert(I,o);if(fe){if(fe.tagName.pos<=o&&o<=fe.tagName.end)return{kind:1};const Ve=on(fe);if(Ve&&(I=fo(r,o),(!I||!jg(I)&&(I.parent.kind!==355||I.parent.name!==I))&&(M=q(Ve))),!M&&o_(fe)&&(Gl(fe.name)||fe.name.pos<=o&&o<=fe.name.end))return{kind:3,tag:fe}}if(!M){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}A=Xs();const O=!M&&dd(r),U=wQ(o,r),K=U.previousToken;let ee=U.contextToken;t("getCompletionData: Get previous token: "+(Xs()-A));let V=I,se,G=!1,re=!1,_e=!1,ye=!1,Q=!1,Y=!1,oe,he=Vd(r,o),Ae=0,de=!1,ie=0;if(ee){const fe=Pke(ee,r);if(fe.keywordCompletion){if(fe.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[xnt(fe.keywordCompletion)],isNewIdentifierLocation:fe.isNewIdentifierLocation};Ae=Dnt(fe.keywordCompletion)}if(fe.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ie|=2,oe=fe,de=fe.isNewIdentifierLocation),!fe.replacementSpan&&eo(ee))return t("Returning an empty list because completion was requested in an invalid position."),Ae?mke(Ae,O,fa()):void 0;let Ve=ee.parent;if(ee.kind===25||ee.kind===29)switch(G=ee.kind===25,re=ee.kind===29,Ve.kind){case 211:se=Ve,V=se.expression;const ke=wR(se);if(Gl(ke)||(sa(V)||Qo(V))&&V.end===ee.pos&&V.getChildCount(r)&&es(V.getChildren(r)).kind!==22)return;break;case 166:V=Ve.left;break;case 267:V=Ve.name;break;case 205:V=Ve;break;case 236:V=Ve.getFirstToken(r),C.assert(V.kind===102||V.kind===105);break;default:return}else if(!oe){if(Ve&&Ve.kind===211&&(ee=Ve,Ve=Ve.parent),I.parent===he)switch(I.kind){case 32:(I.parent.kind===284||I.parent.kind===286)&&(he=I);break;case 44:I.parent.kind===285&&(he=I);break}switch(Ve.kind){case 287:ee.kind===44&&(ye=!0,he=ee);break;case 226:if(!Nke(Ve))break;case 285:case 284:case 286:Y=!0,ee.kind===30&&(_e=!0,he=ee);break;case 294:case 293:(K.kind===20||K.kind===80&&K.parent.kind===291)&&(Y=!0);break;case 291:if(Ve.initializer===K&&K.end<o){Y=!0;break}switch(K.kind){case 64:Q=!0;break;case 80:Y=!0,Ve!==K.parent&&!Ve.initializer&&Es(Ve,64,r)&&(Q=K)}break}}}const ge=Xs();let Ne=5,qe=!1,Ee=[],Me;const Ce=[],Oe=[],At=new Map,be=Di(),Ue=ph(fe=>sT(fe?u.getPackageJsonAutoImportProvider():e,u));if(G||re)$t();else if(_e)Ee=f.getJsxIntrinsicTagNamesAt(he),C.assertEachIsDefined(Ee,"getJsxIntrinsicTagNames() should all be defined"),tn(),Ne=1,Ae=0;else if(ye){const fe=ee.parent.parent.openingElement.tagName,Ve=f.getSymbolAtLocation(fe);Ve&&(Ee=[Ve]),Ne=1,Ae=0}else if(!tn())return Ae?mke(Ae,O,de):void 0;t("getCompletionData: Semantic work: "+(Xs()-ge));const it=K&&Xnt(K,o,r,f),gt=!ti(K,ds)&&!Y?Hi(it&&(it.isUnion()?it.types:[it]),fe=>fe.isLiteral()&&!(fe.flags&1024)?fe.value:void 0):[],Qe=K&&it&&Knt(K,it,f);return{kind:0,symbols:Ee,completionKind:Ne,isInSnippetScope:N,propertyAccessToConvert:se,isNewIdentifierLocation:de,location:he,keywordFilters:Ae,literals:gt,symbolToOriginInfoMap:Ce,recommendedCompletion:Qe,previousToken:K,contextToken:ee,isJsxInitializer:Q,insideJsDocTagTypeExpression:M,symbolToSortTextMap:Oe,isTypeOnlyLocation:be,isJsxIdentifierExpected:Y,isRightOfOpenTag:_e,isRightOfDotOrQuestionDot:G||re,importStatementCompletion:oe,hasUnresolvedAutoImports:qe,flags:ie};function It(fe){switch(fe.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!fe.constraint;default:return!1}}function on(fe){if(It(fe)){const Ve=pm(fe)?fe.constraint:fe.typeExpression;return Ve&&Ve.kind===316?Ve:void 0}if(vI(fe)||dF(fe))return fe.class}function $t(){Ne=2;const fe=Vy(V),Ve=fe&&!V.isTypeOf||ig(V.parent)||dO(ee,r,f),ke=$7(V);if(Zd(V)||fe||Fr(V)){const Tt=Ql(V.parent);Tt&&(de=!0);let kt=f.getSymbolAtLocation(V);if(kt&&(kt=Eu(kt,f),kt.flags&1920)){const nn=f.getExportsOfModule(kt);C.assertEachIsDefined(nn,"getExportsOfModule() should all be defined");const En=ai=>f.isValidPropertyAccess(fe?V:V.parent,ai.name),nr=ai=>i_e(ai,f),lr=Tt?ai=>{var si;return!!(ai.flags&1920)&&!((si=ai.declarations)!=null&&si.every(Kn=>Kn.parent===V.parent))}:ke?ai=>nr(ai)||En(ai):Ve||M?nr:En;for(const ai of nn)lr(ai)&&Ee.push(ai);if(!Ve&&!M&&kt.declarations&&kt.declarations.some(ai=>ai.kind!==312&&ai.kind!==267&&ai.kind!==266)){let ai=f.getTypeOfSymbolAtLocation(kt,V).getNonOptionalType(),si=!1;if(ai.isNullableType()){const Kn=G&&!re&&s.includeAutomaticOptionalChainCompletions!==!1;(Kn||re)&&(ai=ai.getNonNullableType(),Kn&&(si=!0))}Cn(ai,!!(V.flags&65536),si)}return}}if(!Ve||kS(V)){f.tryGetThisTypeAt(V,!1);let Tt=f.getTypeAtLocation(V).getNonOptionalType();if(Ve)Cn(Tt.getNonNullableType(),!1,!1);else{let kt=!1;if(Tt.isNullableType()){const nn=G&&!re&&s.includeAutomaticOptionalChainCompletions!==!1;(nn||re)&&(Tt=Tt.getNonNullableType(),nn&&(kt=!0))}Cn(Tt,!!(V.flags&65536),kt)}}}function Cn(fe,Ve,ke){de=!!fe.getStringIndexType(),re&&St(fe.getCallSignatures())&&(de=!0);const Tt=V.kind===205?V:V.parent;if(b)for(const kt of fe.getApparentProperties())f.isValidPropertyAccessForCompletions(Tt,fe,kt)&&Hn(kt,!1,ke);else Ee.push(...rr(zQ(fe,f),kt=>f.isValidPropertyAccessForCompletions(Tt,fe,kt)));if(Ve&&s.includeCompletionsWithInsertText){const kt=f.getPromisedTypeOfPromise(fe);if(kt)for(const nn of kt.getApparentProperties())f.isValidPropertyAccessForCompletions(Tt,kt,nn)&&Hn(nn,!0,ke)}}function Hn(fe,Ve,ke){var Tt;const kt=qt(fe.declarations,lr=>ti(Po(lr),rs));if(kt){const lr=yn(kt.expression),ai=lr&&f.getSymbolAtLocation(lr),si=ai&&n_e(ai,ee,f),Kn=si&&Ta(si);if(Kn&&Pm(At,Kn)){const Hr=Ee.length;Ee.push(si);const bo=si.parent;if(!bo||!mO(bo)||f.tryGetMemberInModuleExportsAndProperties(si.name,bo)!==si)Ce[Hr]={kind:nr(2)};else{const wi=Qc(am(bo.name))?(Tt=G4(bo))==null?void 0:Tt.fileName:void 0,{moduleSpecifier:vi}=(Me||(Me=Fu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:wi,isFromPackageJson:!1,moduleSymbol:bo,symbol:si,targetFlags:Eu(si,f).flags}],o,I0(he))||{};if(vi){const ga={kind:nr(6),moduleSymbol:bo,isDefaultExport:!1,symbolName:si.name,exportName:si.name,fileName:wi,moduleSpecifier:vi};Ce[Hr]=ga}}}else if(s.includeCompletionsWithInsertText){if(Kn&&At.has(Kn))return;En(fe),nn(fe),Ee.push(fe)}}else En(fe),nn(fe),Ee.push(fe);function nn(lr){art(lr)&&(Oe[Ta(lr)]=zu.LocalDeclarationPriority)}function En(lr){s.includeCompletionsWithInsertText&&(Ve&&Pm(At,Ta(lr))?Ce[Ee.length]={kind:nr(8)}:ke&&(Ce[Ee.length]={kind:16}))}function nr(lr){return ke?lr|16:lr}}function yn(fe){return je(fe)?fe:Fr(fe)?yn(fe.expression):void 0}function tn(){return(An()||wn()||ho()||Je()||mt()||pt()||en()||Pt()||gi()||(Gi(),1))===1}function en(){return Fe(ee)?(Ne=5,de=!0,Ae=4,1):0}function gi(){const fe=j(ee),Ve=fe&&f.getContextualType(fe.attributes);if(!Ve)return 0;const ke=fe&&f.getContextualType(fe.attributes,4);return Ee=To(Ee,me(FQ(Ve,ke,fe.attributes,f),fe.attributes.properties)),H(),Ne=3,de=!1,1}function ho(){return oe?(de=!0,nt(),1):0}function Gi(){Ae=dt(ee)?5:1,Ne=1,de=fa(),K!==ee&&C.assert(!!K,"Expected 'contextToken' to be defined when different from 'previousToken'.");const fe=K!==ee?K.getStart():o,Ve=yi(ee,fe,r)||r;N=Qn(Ve);const ke=(be?0:111551)|788968|1920|2097152,Tt=K&&!I0(K);Ee=To(Ee,f.getSymbolsInScope(Ve,ke)),C.assertEachIsDefined(Ee,"getSymbolsInScope() should all be defined");for(let kt=0;kt<Ee.length;kt++){const nn=Ee[kt];if(!f.isArgumentsSymbol(nn)&&!St(nn.declarations,En=>En.getSourceFile()===r)&&(Oe[Ta(nn)]=zu.GlobalsOrKeywords),Tt&&!(nn.flags&111551)){const En=nn.declarations&&Tn(nn.declarations,_L);if(En){const nr={kind:64,declaration:En};Ce[kt]=nr}}}if(s.includeCompletionsWithInsertText&&Ve.kind!==312){const kt=f.tryGetThisTypeAt(Ve,!1,ui(Ve.parent)?Ve:void 0);if(kt&&!ort(kt,r,f))for(const nn of zQ(kt,f))Ce[Ee.length]={kind:1},Ee.push(nn),Oe[Ta(nn)]=zu.SuggestedClassMembers}nt(),be&&(Ae=ee&&bS(ee.parent)?6:7)}function xo(){return oe?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||yX(e.getCompilerOptions())?!0:que(e):!1}function Qn(fe){switch(fe.kind){case 312:case 228:case 294:case 241:return!0;default:return qi(fe)}}function Di(){return M||!!oe&&h0(he.parent)||!Ir(ee)&&(dO(ee,r,f)||ig(he)||Xt(ee))}function Ir(fe){return fe&&(fe.kind===114&&(fe.parent.kind===186||XR(fe.parent))||fe.kind===131&&fe.parent.kind===182)}function Xt(fe){if(fe){const Ve=fe.parent.kind;switch(fe.kind){case 59:return Ve===172||Ve===171||Ve===169||Ve===260||PA(Ve);case 64:return Ve===265||Ve===168;case 130:return Ve===234;case 30:return Ve===183||Ve===216;case 96:return Ve===168;case 152:return Ve===238}}return!1}function nt(){var fe,Ve;if(!xo()||(C.assert(!(l!=null&&l.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;ie|=1;const Tt=K===ee&&oe?"":K&&je(K)?K.text.toLowerCase():"",kt=(fe=u.getModuleSpecifierCache)==null?void 0:fe.call(u),nn=RO(r,u,e,s,h),En=(Ve=u.getPackageJsonAutoImportProvider)==null?void 0:Ve.call(u),nr=l?void 0:m2(r,s,u);uke("collectAutoImports",u,Me||(Me=Fu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!oe,I0(he),ai=>{nn.search(r.path,_e,(si,Kn)=>{if(!tf(si,ls(u.getCompilationSettings()))||!l&&GA(si)||!be&&!oe&&!(Kn&111551)||be&&!(Kn&790504))return!1;const Hr=si.charCodeAt(0);return _e&&(Hr<65||Hr>90)?!1:l?!0:Oke(si,Tt)},(si,Kn,Hr,bo)=>{if(l&&!St(si,va=>l.source===am(va.moduleSymbol.name))||(si=rr(si,lr),!si.length))return;const wi=ai.tryResolve(si,Hr)||{};if(wi==="failed")return;let vi=si[0],ga;wi!=="skipped"&&({exportInfo:vi=si[0],moduleSpecifier:ga}=wi);const Ja=vi.exportKind===1,Qt=Ja&&LR(vi.symbol)||vi.symbol;Bt(Qt,{kind:ga?32:4,moduleSpecifier:ga,symbolName:Kn,exportMapKey:bo,exportName:vi.exportKind===2?"export=":vi.symbol.name,fileName:vi.moduleFileName,isDefaultExport:Ja,moduleSymbol:vi.moduleSymbol,isFromPackageJson:vi.isFromPackageJson})}),qe=ai.skippedAny(),ie|=ai.resolvedAny()?8:0,ie|=ai.resolvedBeyondLimit()?16:0});function lr(ai){const si=ti(ai.moduleSymbol.valueDeclaration,Zi);if(!si){const Kn=am(ai.moduleSymbol.name);return G_.nodeCoreModules.has(Kn)&&po(Kn,"node:")!==k5(r,e)?!1:nr?nr.allowsImportingAmbientModule(ai.moduleSymbol,Ue(ai.isFromPackageJson)):!0}return ZX(ai.isFromPackageJson?En:e,r,si,s,nr,Ue(ai.isFromPackageJson),kt)}}function Bt(fe,Ve){const ke=Ta(fe);Oe[ke]!==zu.GlobalsOrKeywords&&(Ce[Ee.length]=Ve,Oe[ke]=oe?zu.LocationPriority:zu.AutoImportSuggestions,Ee.push(fe))}function Dn(fe,Ve){sr(he)||fe.forEach(ke=>{if(!oi(ke))return;const Tt=OQ(ke,ls(i),void 0,0,!1);if(!Tt)return;const{name:kt}=Tt,nn=Fnt(ke,kt,Ve,e,u,i,s,p);if(!nn)return;const En={kind:128,...nn};ie|=32,Ce[Ee.length]=En,Ee.push(ke)})}function oi(fe){return!!(fe.flags&8196)}function yi(fe,Ve,ke){let Tt=fe;for(;Tt&&!oX(Tt,Ve,ke);)Tt=Tt.parent;return Tt}function eo(fe){const Ve=Xs(),ke=Fa(fe)||Dt(fe)||Gt(fe)||Ro(fe)||YW(fe);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Xs()-Ve)),ke}function Ro(fe){if(fe.kind===12)return!0;if(fe.kind===32&&fe.parent){if(he===fe.parent&&(he.kind===286||he.kind===285))return!1;if(fe.parent.kind===286)return he.parent.kind!==286;if(fe.parent.kind===287||fe.parent.kind===285)return!!fe.parent.parent&&fe.parent.parent.kind===284}return!1}function fa(){if(ee){const fe=ee.parent.kind,Ve=WQ(ee);switch(Ve){case 28:return fe===213||fe===176||fe===214||fe===209||fe===226||fe===184||fe===210;case 21:return fe===213||fe===176||fe===214||fe===217||fe===196;case 23:return fe===209||fe===181||fe===167;case 144:case 145:case 102:return!0;case 25:return fe===267;case 19:return fe===263||fe===210;case 64:return fe===260||fe===226;case 16:return fe===228;case 17:return fe===239;case 134:return fe===174||fe===304;case 42:return fe===174}if(Pz(Ve))return!0}return!1}function Fa(fe){return(RH(fe)||aj(fe))&&(lO(fe,o)||o===fe.end&&(!!fe.isUnterminated||RH(fe)))}function An(){const fe=rrt(ee);if(!fe)return 0;const ke=(uI(fe.parent)?fe.parent:void 0)||fe,Tt=Cke(ke,f);if(!Tt)return 0;const kt=f.getTypeFromTypeNode(ke),nn=zQ(Tt,f),En=zQ(kt,f),nr=new Set;return En.forEach(lr=>nr.add(lr.escapedName)),Ee=To(Ee,rr(nn,lr=>!nr.has(lr.escapedName))),Ne=0,de=!0,1}function wn(){const fe=Ee.length,Ve=$nt(ee,o,r);if(!Ve)return 0;Ne=0;let ke,Tt;if(Ve.kind===210){const kt=srt(Ve,f);if(kt===void 0)return Ve.flags&67108864?2:0;const nn=f.getContextualType(Ve,4),En=(nn||kt).getStringIndexType(),nr=(nn||kt).getNumberIndexType();if(de=!!En||!!nr,ke=FQ(kt,nn,Ve,f),Tt=Ve.properties,ke.length===0&&!nr)return 0}else{C.assert(Ve.kind===206),de=!1;const kt=N_(Ve.parent);if(!fR(kt))return C.fail("Root declaration is not variable-like.");let nn=zy(kt)||!!bu(kt)||kt.parent.parent.kind===250;if(!nn&&kt.kind===169&&(bt(kt.parent)?nn=!!f.getContextualType(kt.parent):(kt.parent.kind===174||kt.parent.kind===178)&&(nn=bt(kt.parent.parent)&&!!f.getContextualType(kt.parent.parent))),nn){const En=f.getTypeAtLocation(Ve);if(!En)return 2;ke=f.getPropertiesOfType(En).filter(nr=>f.isPropertyAccessible(Ve,!1,!1,En,nr)),Tt=Ve.elements}}if(ke&&ke.length>0){const kt=hn(ke,C.checkDefined(Tt));Ee=To(Ee,kt),H(),Ve.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Lt(fe),Dn(kt,Ve))}return 1}function Je(){if(!ee)return 0;const fe=ee.kind===19||ee.kind===28?ti(ee.parent,B3):f5(ee)?ti(ee.parent.parent,B3):void 0;if(!fe)return 0;f5(ee)||(Ae=8);const{moduleSpecifier:Ve}=fe.kind===275?fe.parent.parent:fe.parent;if(!Ve)return de=!0,fe.kind===275?2:0;const ke=f.getSymbolAtLocation(Ve);if(!ke)return de=!0,2;Ne=3,de=!1;const Tt=f.getExportsAndPropertiesOfModule(ke),kt=new Set(fe.elements.filter(En=>!q(En)).map(En=>(En.propertyName||En.name).escapedText)),nn=Tt.filter(En=>En.escapedName!=="default"&&!kt.has(En.escapedName));return Ee=To(Ee,nn),nn.length||(Ae=0),1}function mt(){if(ee===void 0)return 0;const fe=ee.kind===19||ee.kind===28?ti(ee.parent,mI):ee.kind===59?ti(ee.parent.parent,mI):void 0;if(fe===void 0)return 0;const Ve=new Set(fe.elements.map(cW));return Ee=rr(f.getTypeAtLocation(fe).getApparentProperties(),ke=>!Ve.has(ke.escapedName)),1}function pt(){var fe;const Ve=ee&&(ee.kind===19||ee.kind===28)?ti(ee.parent,Pf):void 0;if(!Ve)return 0;const ke=zn(Ve,Qm(Zi,Ql));return Ne=5,de=!1,(fe=ke.locals)==null||fe.forEach((Tt,kt)=>{var nn,En;Ee.push(Tt),(En=(nn=ke.symbol)==null?void 0:nn.exports)!=null&&En.has(kt)&&(Oe[Ta(Tt)]=zu.OptionalMember)}),1}function Pt(){const fe=nrt(r,ee,he,o);if(!fe)return 0;if(Ne=3,de=!0,Ae=ee.kind===42?0:ui(fe)?2:3,!ui(fe))return 1;const Ve=ee.kind===27?ee.parent.parent:ee.parent;let ke=Zc(Ve)?pd(Ve):0;if(ee.kind===80&&!q(ee))switch(ee.getText()){case"private":ke=ke|2;break;case"static":ke=ke|256;break;case"override":ke=ke|16;break}if(Rl(Ve)&&(ke|=256),!(ke&2)){const Tt=ui(fe)&&ke&16?AA(D_(fe)):NN(fe),kt=Pi(Tt,nn=>{const En=f.getTypeAtLocation(nn);return ke&256?(En==null?void 0:En.symbol)&&f.getPropertiesOfType(f.getTypeOfSymbolAtLocation(En.symbol,fe)):En&&f.getPropertiesOfType(En)});Ee=To(Ee,L(kt,fe.members,ke)),He(Ee,(nn,En)=>{const nr=nn==null?void 0:nn.valueDeclaration;if(nr&&Zc(nr)&&nr.name&&rs(nr.name)){const lr={kind:512,symbolName:f.symbolToString(nn)};Ce[En]=lr}})}return 1}function le(fe){return!!fe.parent&&Io(fe.parent)&&Ll(fe.parent.parent)&&(_N(fe.kind)||jg(fe))}function Fe(fe){if(fe){const Ve=fe.parent;switch(fe.kind){case 21:case 28:return Ll(fe.parent)?fe.parent:void 0;default:if(le(fe))return Ve.parent}}}function dt(fe){if(fe){let Ve;const ke=zn(fe.parent,Tt=>ui(Tt)?"quit":js(Tt)&&Ve===Tt.body?!0:(Ve=Tt,!1));return ke&&ke}}function j(fe){if(fe){const Ve=fe.parent;switch(fe.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Ve&&(Ve.kind===285||Ve.kind===286)){if(fe.kind===32){const ke=Dc(fe.pos,r,void 0);if(!Ve.typeArguments||ke&&ke.kind===44)break}return Ve}else if(Ve.kind===291)return Ve.parent.parent;break;case 11:if(Ve&&(Ve.kind===291||Ve.kind===293))return Ve.parent.parent;break;case 20:if(Ve&&Ve.kind===294&&Ve.parent&&Ve.parent.kind===291)return Ve.parent.parent.parent;if(Ve&&Ve.kind===293)return Ve.parent.parent;break}}}function ot(fe,Ve){return r.getLineEndOfPosition(fe.getEnd())<Ve}function Dt(fe){const Ve=fe.parent,ke=Ve.kind;switch(fe.kind){case 28:return ke===260||gn(fe)||ke===243||ke===266||_t(ke)||ke===264||ke===207||ke===265||ui(Ve)&&!!Ve.typeParameters&&Ve.typeParameters.end>=fe.pos;case 25:return ke===207;case 59:return ke===208;case 23:return ke===207;case 21:return ke===299||_t(ke);case 19:return ke===266;case 30:return ke===263||ke===231||ke===264||ke===265||PA(ke);case 126:return ke===172&&!ui(Ve.parent);case 26:return ke===169||!!Ve.parent&&Ve.parent.kind===207;case 125:case 123:case 124:return ke===169&&!Ll(Ve.parent);case 130:return ke===276||ke===281||ke===274;case 139:case 153:return!BQ(fe);case 80:{if(ke===276&&fe===Ve.name&&fe.text==="type"||zn(fe.parent,ki)&&ot(fe,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 ke!==276;case 42:return Qo(fe.parent)&&!Kl(fe.parent)}if(Pz(WQ(fe))&&BQ(fe)||le(fe)&&(!je(fe)||_N(WQ(fe))||q(fe)))return!1;switch(WQ(fe)){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 Uo(fe.parent)}if(zn(fe.parent,ui)&&fe===K&&Ye(fe,o))return!1;const kt=S0(fe.parent,172);if(kt&&fe!==K&&ui(K.parent.parent)&&o<=K.end){if(Ye(fe,K.end))return!1;if(fe.kind!==64&&(ww(kt)||w4(kt)))return!0}return jg(fe)&&!rp(fe.parent)&&!F_(fe.parent)&&!((ui(fe.parent)||hd(fe.parent)||gl(fe.parent))&&(fe!==K||o>K.end))}function Ye(fe,Ve){return fe.kind!==64&&(fe.kind===27||!Rf(fe.end,Ve,r))}function _t(fe){return PA(fe)&&fe!==176}function Gt(fe){if(fe.kind===9){const Ve=fe.getFullText();return Ve.charAt(Ve.length-1)==="."}return!1}function gn(fe){return fe.parent.kind===261&&!dO(fe,r,f)}function hn(fe,Ve){if(Ve.length===0)return fe;const ke=new Set,Tt=new Set;for(const nn of Ve){if(nn.kind!==303&&nn.kind!==304&&nn.kind!==208&&nn.kind!==174&&nn.kind!==177&&nn.kind!==178&&nn.kind!==305||q(nn))continue;let En;if(Yv(nn))dn(nn,ke);else if(ns(nn)&&nn.propertyName)nn.propertyName.kind===80&&(En=nn.propertyName.escapedText);else{const nr=Po(nn);En=nr&&C_(nr)?LN(nr):void 0}En!==void 0&&Tt.add(En)}const kt=fe.filter(nn=>!Tt.has(nn.escapedName));return We(ke,kt),kt}function dn(fe,Ve){const ke=fe.expression,Tt=f.getSymbolAtLocation(ke),kt=Tt&&f.getTypeOfSymbolAtLocation(Tt,ke),nn=kt&&kt.properties;nn&&nn.forEach(En=>{Ve.add(En.name)})}function H(){Ee.forEach(fe=>{var Ve;if(fe.flags&16777216){const ke=Ta(fe);Oe[ke]=(Ve=Oe[ke])!=null?Ve:zu.OptionalMember}})}function We(fe,Ve){if(fe.size!==0)for(const ke of Ve)fe.has(ke.name)&&(Oe[Ta(ke)]=zu.MemberDeclaredBySpreadAssignment)}function Lt(fe){var Ve;for(let ke=fe;ke<Ee.length;ke++){const Tt=Ee[ke],kt=Ta(Tt),nn=Ce==null?void 0:Ce[ke],En=ls(i),nr=OQ(Tt,En,nn,0,!1);if(nr){const lr=(Ve=Oe[kt])!=null?Ve:zu.LocationPriority,{name:ai}=nr;Oe[kt]=zu.ObjectLiteralProperty(lr,ai)}}}function L(fe,Ve,ke){const Tt=new Set;for(const kt of Ve){if(kt.kind!==172&&kt.kind!==174&&kt.kind!==177&&kt.kind!==178||q(kt)||yp(kt,2)||aa(kt)!==!!(ke&256))continue;const nn=PS(kt.name);nn&&Tt.add(nn)}return fe.filter(kt=>!Tt.has(kt.escapedName)&&!!kt.declarations&&!(Df(kt)&2)&&!(kt.valueDeclaration&&cd(kt.valueDeclaration)))}function me(fe,Ve){const ke=new Set,Tt=new Set;for(const nn of Ve)q(nn)||(nn.kind===291?ke.add(sP(nn.name)):gI(nn)&&dn(nn,Tt));const kt=fe.filter(nn=>!ke.has(nn.escapedName));return We(Tt,kt),kt}function q(fe){return fe.getStart(r)<=o&&o<=fe.getEnd()}}function $nt(e,t,r){var i;if(e){const{parent:o}=e;switch(e.kind){case 19:case 28:if(Wa(o)||dm(o))return o;break;case 42:return Kl(o)?ti(o.parent,Wa):void 0;case 134:return ti(o.parent,Wa);case 80:if(e.text==="async"&&rp(e.parent))return e.parent.parent;{if(Wa(e.parent.parent)&&(Yv(e.parent)||rp(e.parent)&&Ts(r,e.getEnd()).line!==Ts(r,t).line))return e.parent.parent;const l=zn(o,bc);if((l==null?void 0:l.getLastToken(r))===e&&Wa(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Kl(o.parent)||rf(o.parent)||Sp(o.parent))&&Wa(o.parent.parent))return o.parent.parent;if(Yv(o)&&Wa(o.parent))return o.parent;const s=zn(o,bc);if(e.kind!==59&&(s==null?void 0:s.getLastToken(r))===e&&Wa(s.parent))return s.parent}}}function wQ(e,t){const r=Dc(e,t);return r&&e<=r.end&&(tg(r)||Bd(r.kind))?{contextToken:Dc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function Tke(e,t,r,i){const o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(C.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let u=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return u?(u=t.exportName==="default"&&LR(u)||u,{symbol:u,origin:Bnt(t,e,l)}):void 0}function OQ(e,t,r,i,o){if(Snt(r))return;const s=vnt(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&VL(s.charCodeAt(0))||lk(e))return;const l={name:s,needsConvertPropertyAccess:!1};if(tf(s,t,o?1:0)||e.valueDeclaration&&cd(e.valueDeclaration))return l;switch(i){case 3:return Xme(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:C.assertNever(i)}}function Ake(e,t){if(!t)return Ike(e);const r=e+8+1;return Mz[r]||(Mz[r]=Ike(e).filter(i=>!Qnt(LE(i.name))))}function Ike(e){return Mz[e]||(Mz[e]=c_e().filter(t=>{const r=LE(t.name);switch(e){case 0:return!1;case 1:return Rke(r)||r===138||r===144||r===156||r===145||r===128||a2(r)&&r!==157;case 5:return Rke(r);case 2:return Pz(r);case 3:return xke(r);case 4:return _N(r);case 6:return a2(r)||r===87;case 7:return a2(r);case 8:return r===156;default:return C.assertNever(e)}}))}function Qnt(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}}function xke(e){return e===148}function Pz(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return sj(e)}}function Rke(e){return e===134||e===135||e===160||e===130||e===152||e===156||!y3(e)&&!Pz(e)}function WQ(e){var t;return je(e)?(t=p0(e))!=null?t:0:e.kind}function Znt(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Oc(o)||Zl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:pa(132),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords})}return r}function ert(e,t){return zn(e,r=>oR(r)&&sO(r,t)?!0:i_(r)?"quit":!1)}function FQ(e,t,r,i){const o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=trt(s,r,i);return s.isClass()&&Dke(l)?[]:o?rr(l,u):l;function u(p){return Le(p.declarations)?St(p.declarations,h=>h.parent!==r):!0}}function trt(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(rr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&Dke(i.getApparentProperties())))):e.getApparentProperties()}function Dke(e){return St(e,t=>!!(Df(t)&6))}function zQ(e,t){return e.isUnion()?C.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):C.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function nrt(e,t,r,i){var o;switch(r.kind){case 358:return ti(r.parent,qA);case 1:const s=ti(el(oa(r.parent,Zi).statements),qA);if(s&&!Es(s,20,e))return s;break;case 81:if(ti(r.parent,Uo))return zn(r,ui);break;case 80:{if(p0(r)||Uo(r.parent)&&r.parent.initializer===r)return;if(BQ(r))return zn(r,qA)}}if(t){if(r.kind===137||je(t)&&Uo(t.parent)&&ui(r))return zn(t,ui);switch(t.kind){case 64:return;case 27:case 20:return BQ(r)&&r.parent.name===r?r.parent.parent:ti(r,qA);case 19:case 28:return ti(t.parent,qA);default:if(qA(r)){if(Ts(e,t.getEnd()).line!==Ts(e,i).line)return r;const s=ui(t.parent.parent)?Pz:xke;return s(t.kind)||t.kind===42||je(t)&&s((o=p0(t))!=null?o:0)?t.parent.parent:void 0}return}}}function rrt(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(Tp(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&Tp(t.parent))return t.parent;break}}function Cke(e,t){if(!e)return;if(Ui(e)&&O4(e.parent))return t.getTypeArgumentConstraint(e);const r=Cke(e.parent,t);if(r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function BQ(e){return e.parent&&D4(e.parent)&&qA(e.parent.parent)}function irt(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&cde(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ji(r)&&!!cu(r);case"<":return!!r&&r.kind===30&&(!mr(r.parent)||Nke(r.parent));case"/":return!!r&&(ds(r)?!!$L(r):r.kind===44&&l1(r.parent));case" ":return!!r&&gP(r)&&r.parent.kind===312;default:return C.assertNever(t)}}function Nke({left:e}){return Gl(e)}function ort(e,t,r){const i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;const s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function art(e){return!!(e.valueDeclaration&&pd(e.valueDeclaration)&256&&ui(e.valueDeclaration.parent))}function srt(e,t){const r=t.getContextualType(e);if(r)return r;const i=Gv(e.parent);if(mr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(bt(i))return t.getContextualType(i)}function Pke(e,t){var r,i,o;let s,l=!1;const u=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(u||s===156),isTopLevelTypeOnly:!!((i=(r=ti(u,Oc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ti(u,ru))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&Lke(u,e),replacementSpan:lrt(u)};function p(){const h=e.parent;if(ru(h)){const f=h.getLastToken(t);if(je(e)&&f!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,r_e(h.moduleReference)?h:void 0}if(Lke(h,e)&&kke(h.parent))return h;if(Kg(h)||nb(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),kke(h))if(e.kind===20||e.kind===80)l=!0,s=161;else return h.parent.parent;return}if(Zl(h)&&e.kind===42||Pf(h)&&e.kind===20){l=!0,s=161;return}if(gP(e)&&Zi(h))return s=156,e;if(gP(e)&&Oc(h))return s=156,r_e(h.moduleSpecifier)?h:void 0}}function lrt(e){var l,u;var t;if(!e)return;const r=(l=zn(e,Qm(Oc,ru)))!=null?l:e,i=r.getSourceFile();if(OS(r,i))return Dd(r,i);C.assert(r.kind!==102&&r.kind!==276);const o=r.kind===272?(u=Mke((t=r.importClause)==null?void 0:t.namedBindings))!=null?u:r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(OS(s,i))return sb(s)}function Mke(e){var t;return Tn((t=ti(e,Kg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&GA(r.name.text)&&((i=Dc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function Lke(e,t){return np(e)&&(e.isTypeOnly||t===e.name&&f5(t))}function kke(e){if(!r_e(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Kg(e)){const t=Mke(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function r_e(e){var t;return Gl(e)?!0:!((t=ti(xh(e)?e.expression:e,ds))!=null&&t.text)}function crt(e,t){if(!e)return;const r=zn(e,o=>VE(o)||wke(o)||Zo(o)?"quit":(Io(o)||gl(o))&&!r1(o.parent)),i=zn(t,o=>VE(o)||wke(o)||Zo(o)?"quit":ki(o));return r||i}function wke(e){return e.parent&&Us(e.parent)&&(e.parent.body===e||e.kind===39)}function i_e(e,t,r=new Map){return i(e)||i(Eu(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Pm(r,Ta(o))&&t.getExportsOfModule(o).some(s=>i_e(s,t,r))}}function urt(e,t){const r=Eu(e,t).declarations;return!!Le(r)&&Yn(r,L5)}function Oke(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const s=e.length;for(let l=0;l<s;l++){const u=e.charCodeAt(l),p=t.charCodeAt(o);if((u===p||u===drt(p))&&(r||(r=i===void 0||97<=i&&i<=122&&65<=u&&u<=90||i===95&&u!==95),r&&o++,o===t.length))return!0;i=u}return!1}function drt(e){return 97<=e&&e<=122?e-32:e}function prt(e){return e==="abstract"||e==="async"||e==="await"||e==="declare"||e==="module"||e==="namespace"||e==="type"}var GQ,o_e,zu,a_e,s_e,l_e,Mz,c_e,frt=T({"src/services/completions.ts"(){ii(),h_e(),GQ=100,o_e=1e3,zu={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return"".concat(e,"\0").concat(t,"\0")},SortBelow(e){return e+"1"}},a_e=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(a_e||{}),s_e=(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))(s_e||{}),l_e=(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))(l_e||{}),Mz=[],c_e=Sd(()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:pa(t),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords});return e})}});function u_e(){const e=new Map;function t(r){const i=e.get(r.name);(!i||__e[i.kind]<__e[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function mrt(e,t,r,i,o,s,l,u,p){if(Uue(e,t)){const h=Nrt(e,t,i,o);return h&&Wke(h)}if(NI(e,t,r)){if(!r||!ds(r))return;const h=zke(e,r,t,s,o,u);return _rt(h,r,e,o,s,l,i,u,t,p)}}function _rt(e,t,r,i,o,s,l,u,p,h){if(e===void 0)return;const f=_X(t);switch(e.kind){case 0:return Wke(e.paths);case 1:{const b=pG();return Zme(e.symbols,b,t,t,r,p,r,i,o,99,s,4,u,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,h),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:f,entries:b}}case 2:{const b=t.kind===15?96:po(gc(t),"'")?39:34,A=e.types.map(I=>({name:lg(I.value,b),kindModifiers:"",kind:"string",sortText:zu.LocationPriority,replacementSpan:mX(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:f,entries:A}}default:return C.assertNever(e)}}function hrt(e,t,r,i,o,s,l,u){if(!i||!ds(i))return;const p=zke(t,i,r,o,s,u);return p&&grt(e,i,p,t,o.getTypeChecker(),l)}function grt(e,t,r,i,o,s){switch(r.kind){case 0:{const l=Tn(r.paths,u=>u.name===e);return l&&Nz(e,Fke(l.extension),l.kind,[df(e)])}case 1:{const l=Tn(r.symbols,u=>u.name===e);return l&&t_e(l,l.name,o,i,t,s)}case 2:return Tn(r.types,l=>l.value===e)?Nz(e,"","string",[df(e)]):void 0;default:return C.assertNever(r)}}function Wke(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:Fke(u),sortText:zu.LocationPriority,replacementSpan:l}))}}function Fke(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 C.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return C.assertNever(e)}}function zke(e,t,r,i,o,s){const l=i.getTypeChecker(),u=d_e(t.parent);switch(u.kind){case 201:{const I=d_e(u.parent);return I.kind===205?{kind:0,paths:Vke(e,t,i,o,s)}:p(I)}case 303:return Wa(u.parent)&&u.name===t?brt(l,u.parent):h()||h(0);case 212:{const{expression:I,argumentExpression:R}=u;return t===vs(R)?Bke(l.getTypeAtLocation(I)):void 0}case 213:case 214:case 291:if(!krt(t)&&!Bp(u)){const I=o8.getArgumentInfoForCompletions(u.kind===291?u.parent:t,r,e,l);return I&&yrt(I.invocation,t,I,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:Vke(e,t,i,o,s)};case 296:const f=O5(l,u.parent.clauses),b=h();return b?{kind:2,types:b.types.filter(I=>!f.hasValue(I.value)),isNewIdentifier:!1}:void 0;default:return h()||h(0)}function p(f){switch(f.kind){case 233:case 183:{const I=zn(u,R=>R.parent===f);return I?{kind:2,types:VQ(l.getTypeArgumentConstraint(I)),isNewIdentifier:!1}:void 0}case 199:const{indexType:b,objectType:A}=f;return sO(b,r)?Bke(l.getTypeFromTypeNode(A)):void 0;case 192:{const I=p(d_e(f.parent));if(!I)return;const R=vrt(f,u);return I.kind===1?{kind:1,symbols:I.symbols.filter(M=>!Nr(R,M.name)),hasIndexSignature:I.hasIndexSignature}:{kind:2,types:I.types.filter(M=>!Nr(R,M.value)),isNewIdentifier:!1}}default:return}}function h(f=4){const b=VQ(T5(t,l,f));if(b.length)return{kind:2,types:b,isNewIdentifier:!1}}}function d_e(e){switch(e.kind){case 196:return nk(e);case 217:return Gv(e);default:return e}}function vrt(e,t){return Hi(e.types,r=>r!==t&&Zy(r)&&Ma(r.literal)?r.literal.text:void 0)}function yrt(e,t,r,i){let o=!1;const s=new Map,l=ud(e)?C.checkDefined(zn(t.parent,F_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=Pi(u,h=>{if(!Yu(h)&&r.argumentCount>h.parameters.length)return;let f=h.getTypeParameterAtPosition(r.argumentIndex);if(ud(e)){const b=i.getTypeOfPropertyOfType(f,Dk(l.name));b&&(f=b)}return o=o||!!(f.flags&4),VQ(f,s)});return Le(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function Bke(e){return e&&{kind:1,symbols:rr(e.getApparentProperties(),t=>!(t.valueDeclaration&&cd(t.valueDeclaration))),hasIndexSignature:OX(e)}}function brt(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:FQ(r,i,t,e),hasIndexSignature:OX(r)}}function VQ(e,t=new Map){return e?(e=vX(e),e.isUnion()?Pi(e.types,r=>VQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Pm(t,e.value)?[e]:et):et}function S2(e,t,r){return{name:e,kind:t,extension:r}}function p_e(e){return S2(e,"directory",void 0)}function Gke(e,t,r){const i=Mrt(e,t),o=e.length===0?void 0:yu(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(ol)||s.includes(ZM)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function Vke(e,t,r,i,o){return Gke(t.text,t.getStart(e)+1,Ert(e,t,r,i,o))}function Ert(e,t,r,i,o){const s=Lu(t.text),l=ds(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,p=ri(u),h=r.getCompilerOptions(),f=r.getTypeChecker(),b=f_e(h,1,e,f,o,l);return Lrt(s)||!h.baseUrl&&!h.paths&&(_p(s)||sre(s))?Srt(s,p,h,i,u,b):xrt(s,p,l,h,i,b,f)}function f_e(e,t,r,i,o,s){return{extensionsToSearch:ra(Trt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o==null?void 0:o.importModuleSpecifierEnding,resolutionMode:s}}function Srt(e,t,r,i,o,s){return r.rootDirs?Irt(r.rootDirs,e,t,s,r,i,o):Wo(e8(e,t,s,i,!0,o).values())}function Trt(e,t){const r=t?Hi(t.getAmbientModules(),s=>{const l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...YN(e),r],o=md(e);return m5(o)?Ek(e,i):i}function Art(e,t,r,i){e=e.map(s=>Vc(ha(_p(s)?s:Yr(t,s))));const o=qt(e,s=>Am(s,r,t,i)?r.substr(s.length):void 0);return NE([...e.map(s=>Yr(s,o)),r].map(s=>s0(s)),dS,Uu)}function Irt(e,t,r,i,o,s,l){const u=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=Art(e,u,r,p);return NE(Pi(h,f=>Wo(e8(t,f,i,s,!0,l).values())),(f,b)=>f.name===b.name&&f.kind===b.kind&&f.extension===b.extension)}function e8(e,t,r,i,o,s,l=u_e()){var u;e===void 0&&(e=""),e=Lu(e),wv(e)||(e=ri(e)),e===""&&(e="."+ol),e=Vc(e);const p=Py(t,e),h=wv(p)?p:ri(p);if(!o){const I=dde(h,i);if(I){const M=jN(I,i).typesVersions;if(typeof M=="object"){const N=(u=OF(M))==null?void 0:u.paths;if(N){const O=ri(I),U=p.slice(Vc(O).length);if(Uke(l,U,O,r,i,N))return l}}}}const f=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!D5(i,h))return l;const b=FX(i,h,r.extensionsToSearch,void 0,["./*"]);if(b)for(let I of b){if(I=ha(I),s&&Og(I,s,t,f)===0)continue;const{name:R,extension:M}=jke(lc(I),i.getCompilationSettings(),r,!1);l.add(S2(R,"script",M))}const A=R5(i,h);if(A)for(const I of A){const R=lc(ha(I));R!=="@types"&&l.add(p_e(R))}return l}function jke(e,t,r,i){const o=h1.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:qg(o)};if(r.referenceKind===0)return{name:e,extension:qg(e)};let s=Mw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(u=>u!==0&&u!==1)),s[0]===3){if(Ic(e,Lk))return{name:e,extension:qg(e)};const u=h1.tryGetJSExtensionForFile(e,t);return u?{name:A0(e,u),extension:u}:{name:e,extension:qg(e)}}if(!i&&(s[0]===0||s[0]===1)&&Ic(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Ad(e),extension:qg(e)};const l=h1.tryGetJSExtensionForFile(e,t);return l?{name:A0(e,l),extension:l}:{name:e,extension:qg(e)}}function Uke(e,t,r,i,o,s){const l=p=>s[p],u=(p,h)=>{const f=FR(p),b=FR(h),A=typeof f=="object"?f.prefix.length:p.length,I=typeof b=="object"?b.prefix.length:h.length;return nl(I,A)};return Hke(e,!1,t,r,i,o,Qh(s),l,u)}function Hke(e,t,r,i,o,s,l,u,p){let h=[],f;for(const b of l){if(b===".")continue;const A=b.replace(/^\.\//,""),I=u(b);if(I){const R=FR(A);if(!R)continue;const M=typeof R=="object"&&z6(R,r);M&&(f===void 0||p(b,f)===-1)&&(f=b,h=h.filter(O=>!O.matchedPattern)),(typeof R=="string"||f===void 0||p(b,f)!==1)&&h.push({matchedPattern:M,results:Rrt(A,I,r,i,o,t&&M,s).map(({name:O,kind:U,extension:K})=>S2(O,U,K))})}}return h.forEach(b=>b.results.forEach(A=>e.add(A))),f!==void 0}function xrt(e,t,r,i,o,s,l){const{baseUrl:u,paths:p}=i,h=u_e(),f=md(i);if(u){const A=ha(Yr(o.getCurrentDirectory(),u));e8(e,A,s,o,!1,void 0,h)}if(p){const A=x3(i,o);Uke(h,e,A,s,o,p)}const b=Jke(e);for(const A of Crt(e,b,l))h.add(S2(A,"external module name",void 0));if(Yke(o,i,t,b,s,h),m5(f)){let A=!1;if(b===void 0)for(const I of Prt(o,t)){const R=S2(I,"external module name",void 0);h.has(R.name)||(A=!0,h.add(R))}if(!A){let I=R=>{const M=Yr(R,"node_modules");D5(o,M)&&e8(e,M,s,o,!1,void 0,h)};if(b&&mW(i)){const R=I;I=M=>{const N=Gc(e);N.shift();let O=N.shift();if(!O)return R(M);if(po(O,"@")){const ee=N.shift();if(!ee)return R(M);O=Yr(O,ee)}const U=Yr(M,"node_modules",O),K=Yr(U,"package.json");if(AO(o,K)){const V=jN(K,o).exports;if(V){if(typeof V!="object"||V===null)return;const se=Qh(V),G=N.join("/")+(N.length&&wv(e)?"/":""),re=ib(i,r);Hke(h,!0,G,U,s,o,se,_e=>AA(qke(V[_e],re)),Vq);return}}return R(M)}}xm(t,I)}}return Wo(h.values())}function qke(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Ao(e)){for(const r in e)if(r==="default"||t.includes(r)||Nw(t,r)){const i=e[r];return qke(i,t)}}}function Jke(e){return m_e(e)?wv(e)?e:ri(e):void 0}function Rrt(e,t,r,i,o,s,l){if(!Al(e,"*"))return e.includes("*")?et:h(e,"script");const u=e.slice(0,e.length-1),p=IG(r,u);if(p===void 0)return e[e.length-2]==="/"?h(u,"directory"):Pi(t,b=>{var A;return(A=Kke("",i,b,o,s,l))==null?void 0:A.map(({name:I,...R})=>({name:u+I,...R}))});return Pi(t,f=>Kke(p,i,f,o,s,l));function h(f,b){return po(f,r)?[{name:s0(f),kind:b,extension:void 0}]:et}}function Kke(e,t,r,i,o,s){if(!s.readDirectory)return;const l=FR(r);if(l===void 0||No(l))return;const u=Py(l.prefix),p=wv(l.prefix)?u:ri(u),h=wv(l.prefix)?"":lc(u),f=m_e(e),b=f?wv(e)?e:ri(e):void 0,A=f?Yr(p,h+b):p,I=ha(l.suffix),R=I&&I3("_"+I),M=R?[A0(I,R),I]:[I],N=ha(Yr(t,A)),O=f?N:Vc(N)+h,U=I?M.map(se=>"**/*"+se):["./*"],K=Hi(FX(s,N,i.extensionsToSearch,void 0,U),se=>{const G=V(se);if(G){if(m_e(G))return p_e(Gc(Xke(G))[1]);const{name:re,extension:_e}=jke(G,s.getCompilationSettings(),i,o);return S2(re,"script",_e)}}),ee=I?et:Hi(R5(s,N),se=>se==="node_modules"?void 0:p_e(se));return[...K,...ee];function V(se){return qt(M,G=>{const re=Drt(ha(se),O,G);return re===void 0?void 0:Xke(re)})}}function Drt(e,t,r){return po(e,t)&&Al(e,r)?e.slice(t.length,e.length-r.length):void 0}function Xke(e){return e[0]===ol?e.slice(1):e}function Crt(e,t,r){const o=r.getAmbientModules().map(s=>am(s.name)).filter(s=>po(s,e)&&!s.includes("*"));if(t!==void 0){const s=Vc(t);return o.map(l=>QC(l,s))}return o}function Nrt(e,t,r,i){const o=fo(e,t),s=Zh(e.text,o.pos),l=s&&Tn(s,R=>t>=R.pos&&t<=R.end);if(!l)return;const u=e.text.slice(l.pos,t),p=$ke.exec(u);if(!p)return;const[,h,f,b]=p,A=ri(e.path),I=f==="path"?e8(b,A,f_e(r,0,e),i,!0,e.path):f==="types"?Yke(i,r,A,Jke(b),f_e(r,1,e)):C.fail();return Gke(b,l.pos+h.length,Wo(I.values()))}function Yke(e,t,r,i,o,s=u_e()){const l=new Map,u=C5(()=>OP(t,e))||et;for(const h of u)p(h);for(const h of zX(r,e)){const f=Yr(ri(h),"node_modules/@types");p(f)}return s;function p(h){if(D5(e,h))for(const f of R5(e,h)){const b=Pw(f);if(!(t.types&&!Nr(t.types,b)))if(i===void 0)l.has(b)||(s.add(S2(b,"external module name",void 0)),l.set(b,!0));else{const A=Yr(h,f),I=FU(i,b,Vv(e));I!==void 0&&e8(I,A,o,e,!1,void 0,s)}}}}function Prt(e,t){if(!e.readFile||!e.fileExists)return et;const r=[];for(const i of zX(t,e)){const o=jN(i,e);for(const s of Qke){const l=o[s];if(l)for(const u in l)Cs(l,u)&&!po(u,"@types/")&&r.push(u)}}return r}function Mrt(e,t){const r=Math.max(e.lastIndexOf(ol),e.lastIndexOf(ZM)),i=r!==-1?r+1:0,o=e.length-i;return o===0||tf(e.substr(i,o),99)?void 0:yu(t+i,o)}function Lrt(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function m_e(e){return e.includes(ol)}function krt(e){return sa(e.parent)&&$c(e.parent.arguments)===e&&je(e.parent.expression)&&e.parent.expression.escapedText==="require"}var __e,$ke,Qke,wrt=T({"src/services/stringCompletions.ts"(){vle(),ii(),h_e(),__e={directory:0,script:1,"external module name":2},$ke=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,Qke=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),jQ={};X(jQ,{getStringLiteralCompletionDetails:()=>hrt,getStringLiteralCompletions:()=>mrt});var Ort=T({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){wrt()}}),GI={};X(GI,{CompletionKind:()=>l_e,CompletionSource:()=>a_e,SortText:()=>zu,StringCompletions:()=>jQ,SymbolOriginInfoKind:()=>s_e,createCompletionDetails:()=>Nz,createCompletionDetailsForSymbol:()=>t_e,getCompletionEntriesFromSymbols:()=>Zme,getCompletionEntryDetails:()=>Hnt,getCompletionEntrySymbol:()=>Jnt,getCompletionsAtPosition:()=>Tnt,getPropertiesForObjectExpression:()=>FQ,moduleSpecifierResolutionCacheAttemptLimit:()=>o_e,moduleSpecifierResolutionLimit:()=>GQ});var h_e=T({"src/services/_namespaces/ts.Completions.ts"(){frt(),Ort()}});function g_e(e,t,r,i){const o=Brt(e,r,i);return(s,l,u)=>{const{directImports:p,indirectUsers:h}=Wrt(e,t,o,l,r,i);return{indirectUsers:h,...Frt(p,s,l.exportKind,r,u)}}}function Wrt(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){const u=PI(),p=PI(),h=[],f=!!i.globalExports,b=f?void 0:[];return I(i),{directImports:h,indirectUsers:A()};function A(){if(f)return e;if(i.declarations)for(const K of i.declarations)zE(K)&&t.has(K.getSourceFile().fileName)&&O(K);return b.map(jn)}function I(K){const ee=U(K);if(ee){for(const V of ee)if(u(V))switch(l&&l.throwIfCancellationRequested(),V.kind){case 213:if(Bp(V)){R(V);break}if(!f){const G=V.parent;if(o===2&&G.kind===260){const{name:re}=G;if(re.kind===80){h.push(re);break}}}break;case 80:break;case 271:N(V,V.name,$r(V,32),!1);break;case 272:h.push(V);const se=V.importClause&&V.importClause.namedBindings;se&&se.kind===274?N(V,se.name,!1,!0):!f&&WA(V)&&O(Lz(V));break;case 278:V.exportClause?V.exportClause.kind===280?O(Lz(V),!0):h.push(V):I(Hrt(V,s));break;case 205:!f&&V.isTypeOf&&!V.qualifier&&M(V)&&O(V.getSourceFile(),!0),h.push(V);break;default:C.failBadSyntaxKind(V,"Unexpected import kind.")}}}function R(K){const ee=zn(K,UQ)||K.getSourceFile();O(ee,!!M(K,!0))}function M(K,ee=!1){return zn(K,V=>ee&&UQ(V)?"quit":km(V)&&St(V.modifiers,oI))}function N(K,ee,V,se){if(o===2)se||h.push(K);else if(!f){const G=Lz(K);C.assert(G.kind===312||G.kind===267),V||zrt(G,ee,s)?O(G,!0):O(G)}}function O(K,ee=!1){if(C.assert(!f),!p(K)||(b.push(K),!ee))return;const se=s.getMergedSymbol(K.symbol);if(!se)return;C.assert(!!(se.flags&1536));const G=U(se);if(G)for(const re of G)fg(re)||O(Lz(re),!0)}function U(K){return r.get(Ta(K).toString())}}function Frt(e,t,r,i,o){const s=[],l=[];function u(A,I){s.push([A,I])}if(e)for(const A of e)p(A);return{importSearches:s,singleReferences:l};function p(A){if(A.kind===271){y_e(A)&&h(A.name);return}if(A.kind===80){h(A);return}if(A.kind===205){if(A.qualifier){const M=Vp(A.qualifier);M.escapedText===El(t)&&l.push(M)}else r===2&&l.push(A.argument.literal);return}if(A.moduleSpecifier.kind!==11)return;if(A.kind===278){A.exportClause&&Pf(A.exportClause)&&f(A.exportClause);return}const{name:I,namedBindings:R}=A.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 274:h(R.name);break;case 275:(r===0||r===1)&&f(R);break;default:C.assertNever(R)}if(I&&(r===1||r===2)&&(!o||I.escapedText===h5(t))){const M=i.getSymbolAtLocation(I);u(I,M)}}function h(A){r===2&&(!o||b(A.escapedText))&&u(A,i.getSymbolAtLocation(A))}function f(A){if(A)for(const I of A.elements){const{name:R,propertyName:M}=I;if(b((M||R).escapedText))if(M)l.push(M),(!o||R.escapedText===t.escapedName)&&u(R,i.getSymbolAtLocation(R));else{const N=I.kind===281&&I.propertyName?i.getExportSpecifierLocalTargetSymbol(I):i.getSymbolAtLocation(R);u(R,N)}}}function b(A){return A===t.escapedName||r!==0&&A==="default"}}function zrt(e,t,r){const i=r.getSymbolAtLocation(t);return!!ewe(e,o=>{if(!Zl(o))return;const{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Pf(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function Zke(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const l of t){const u=r.valueDeclaration;if((u==null?void 0:u.kind)===312){for(const p of l.referencedFiles)e.getSourceFileFromReference(l,p)===u&&o.push({kind:"reference",referencingFile:l,ref:p});for(const p of l.typeReferenceDirectives){const h=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;h!==void 0&&h.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}twe(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push(Ys(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function Brt(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),twe(o,(s,l)=>{const u=t.getSymbolAtLocation(l);if(u){const p=Ta(u).toString();let h=i.get(p);h||i.set(p,h=[]),h.push(s)}});return i}function ewe(e,t){return He(e.kind===312?e.statements:e.body.statements,r=>t(r)||UQ(r)&&He(r.body&&r.body.statements,t))}function twe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(DN(r),r);else ewe(e,r=>{switch(r.kind){case 278:case 272:{const i=r;i.moduleSpecifier&&Ma(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{const i=r;y_e(i)&&t(i,i.moduleReference.expression);break}}})}function nwe(e,t,r,i){return i?o():o()||s();function o(){var p;const{parent:h}=e,f=h.parent;if(t.exportSymbol)return h.kind===211?(p=t.declarations)!=null&&p.some(I=>I===h)&&mr(f)?A(f,!1):void 0:l(t.exportSymbol,u(h));{const I=Vrt(h,e);if(I&&$r(I,32))return ru(I)&&I.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(I.name)}:l(t,u(I));if(Ih(h))return l(t,0);if(wl(h))return b(h);if(wl(f))return b(f);if(mr(h))return A(h,!0);if(mr(f))return A(f,!0);if(YS(h)||BH(h))return l(t,0)}function b(I){if(!I.symbol.parent)return;const R=I.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:I.symbol.parent,exportKind:R}}}function A(I,R){let M;switch(Vl(I)){case 1:M=0;break;case 2:M=2;break;default:return}const N=R?r.getSymbolAtLocation(LU(oa(I.left,zs))):t;return N&&l(N,M)}}function s(){if(!jrt(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=Urt(h,r),h.escapedName==="export="&&(h=Grt(h,r),h===void 0)))return;const f=h5(h);if(f===void 0||f==="default"||f===t.escapedName)return{kind:0,symbol:h}}function l(p,h){const f=v_e(p,h,r);return f&&{kind:1,symbol:p,exportInfo:f}}function u(p){return $r(p,2048)?1:0}}function Grt(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const o=C.checkDefined(e.valueDeclaration);if(wl(o))return(r=ti(o.expression,x_))==null?void 0:r.symbol;if(mr(o))return(i=ti(o.right,x_))==null?void 0:i.symbol;if(Zi(o))return o.symbol}function Vrt(e,t){const r=ki(e)?e:ns(e)?Qx(e):void 0;return r?e.name!==t||d1(r.parent)?void 0:kl(r.parent.parent)?r.parent.parent:void 0:e}function jrt(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&y_e(t);case 276:return!t.propertyName;case 273:case 274:return C.assert(t.name===e),!0;case 208:return sr(e)&&jE(t.parent.parent);default:return!1}}function v_e(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return mO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Urt(e,t){if(e.declarations)for(const r of e.declarations){if(Ku(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Fr(r)&&ag(r.expression)&&!Ji(r.name))return t.getSymbolAtLocation(r);if(rp(r)&&mr(r.parent.parent)&&Vl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function Hrt(e,t){return t.getMergedSymbol(Lz(e).symbol)}function Lz(e){if(e.kind===213)return e.getSourceFile();const{parent:t}=e;return t.kind===312?t:(C.assert(t.kind===268),oa(t.parent,UQ))}function UQ(e){return e.kind===267&&e.name.kind===11}function y_e(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var b_e,E_e,qrt=T({"src/services/importTracker.ts"(){ii(),b_e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(b_e||{}),E_e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(E_e||{})}});function gg(e,t=1){return{kind:t,node:e.name||e,context:Jrt(e)}}function S_e(e){return e&&e.kind===void 0}function Jrt(e){if(Ju(e))return dT(e);if(e.parent){if(!Ju(e.parent)&&!wl(e.parent)){if(sr(e)){const r=mr(e.parent)?e.parent:zs(e.parent)&&mr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&Vl(r)!==0)return dT(r)}if(W_(e.parent)||l1(e.parent))return e.parent.parent;if(JS(e.parent)||s1(e.parent)||pN(e.parent))return e.parent;if(ds(e)){const r=$L(e);if(r){const i=zn(r,o=>Ju(o)||qi(o)||oR(o));return Ju(i)?dT(i):i}}const t=zn(e,rs);return t?dT(t.parent):void 0}if(e.parent.name===e||Ll(e.parent)||wl(e.parent)||(NA(e.parent)||ns(e.parent))&&e.parent.propertyName===e||e.kind===90&&$r(e.parent,2080))return dT(e.parent)}}function dT(e){if(e)switch(e.kind){case 260:return!qc(e.parent)||e.parent.declarations.length!==1?e:kl(e.parent.parent)?e.parent.parent:rR(e.parent.parent)?dT(e.parent.parent):e.parent;case 208:return dT(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return nu(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return ey(e.parent)?dT(zn(e.parent,t=>mr(t)||rR(t))):e;case 255:return{start:Tn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function T_e(e,t,r){if(!r)return;const i=S_e(r)?wz(r.start,t,r.end):wz(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function Krt(e,t,r,i,o){const s=Vd(i,o),l={use:1},u=VI.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=VI.getAdjustedNode(s,l),f=Xrt(h)?p.getSymbolAtLocation(h):void 0;return!u||!u.length?void 0:Hi(u,({definition:b,references:A})=>b&&{definition:p.runWithCancellationToken(t,I=>Qrt(b,I,s)),references:A.map(I=>eit(I,f))})}function Xrt(e){return e.kind===90||!!CN(e)||ik(e)||e.kind===137&&Ll(e.parent)}function Yrt(e,t,r,i,o){const s=Vd(i,o);let l;const u=rwe(e,t,r,s,o);if(s.parent.kind===211||s.parent.kind===208||s.parent.kind===212||s.kind===108)l=u&&[...u];else if(u){const h=zM(u),f=new Map;for(;!h.isEmpty();){const b=h.dequeue();if(!Pm(f,cs(b.node)))continue;l=Rn(l,b);const A=rwe(e,t,r,b.node,b.node.pos);A&&h.enqueue(...A)}}const p=e.getTypeChecker();return Ot(l,h=>nit(h,p))}function rwe(e,t,r,i,o){if(i.kind===312)return;const s=e.getTypeChecker();if(i.parent.kind===304){const l=[];return VI.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(gg(u))),l}else if(i.kind===108||zd(i.parent)){const l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[gg(l.valueDeclaration)]}else return iwe(o,i,e,r,t,{implementations:!0,use:1})}function $rt(e,t,r,i,o,s,l){return Ot(owe(VI.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function iwe(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return owe(VI.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function owe(e){return e&&Pi(e,t=>t.references)}function Qrt(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:f}=e,{displayParts:b,kind:A}=awe(f,t,r),I=b.map(N=>N.text).join(""),R=f.declarations&&$c(f.declarations),M=R?Po(R)||R:r;return{...kz(M),name:I,kind:A,displayParts:b,context:dT(R)}}case 1:{const{node:f}=e;return{...kz(f),name:f.text,kind:"label",displayParts:[ip(f.text,17)]}}case 2:{const{node:f}=e,b=pa(f.kind);return{...kz(f),name:b,kind:"keyword",displayParts:[{text:b,kind:"keyword"}]}}case 3:{const{node:f}=e,b=t.getSymbolAtLocation(f),A=b&&oy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,b,f.getSourceFile(),aT(f),f).displayParts||[df("this")];return{...kz(f),name:"this",kind:"var",displayParts:A}}case 4:{const{node:f}=e;return{...kz(f),name:f.text,kind:"var",displayParts:[ip(gc(f),8)]}}case 5:return{textSpan:sb(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[ip('"'.concat(e.reference.fileName,'"'),8)]};default:return C.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:p,context:h}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:p,...T_e(s,o,h)}}function kz(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:wz(rs(e)?e.expression:e,t)}}function awe(e,t,r){const i=VI.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&$c(e.declarations)||r,{displayParts:s,symbolKind:l}=oy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Zrt(e,t,r,i,o){return{...HQ(e),...i&&tit(e,t,r,o)}}function eit(e,t){const r=swe(e);return t?{...r,isDefinition:e.kind!==0&&lwe(e.node,t)}:r}function swe(e){const t=HQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:I_e(i),isInString:r===2?!0:void 0}}function HQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=wz(e.node,t);return{textSpan:r,fileName:t.fileName,...T_e(r,t,e.context)}}}function tit(e,t,r,i){if(e.kind!==0&&je(t)){const{node:o,kind:s}=e,l=o.parent,u=t.text,p=rp(l);if(p||gO(l)&&l.name===o&&l.dotDotDotToken===void 0){const h={prefixText:u+": "},f={suffixText:": "+u};if(s===3)return h;if(s===4)return f;if(p){const b=l.parent;return Wa(b)&&mr(b.parent)&&ag(b.parent.left)?h:f}else return h}else if(np(l)&&!l.propertyName){const h=Ku(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Nr(h.declarations,l)?{prefixText:u+" as "}:kf}else if(Ku(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&bp(e.node)&&zs(e.node.parent)){const o=SX(i);return{prefixText:o,suffixText:o}}return kf}function nit(e,t){const r=HQ(e);if(e.kind!==0){const{node:i}=e;return{...r,...rit(i,t)}}else return{...r,kind:"",displayParts:[]}}function rit(e,t){const r=t.getSymbolAtLocation(Ju(e)&&e.name?e.name:e);return r?awe(r,t,e):e.kind===210?{kind:"interface",displayParts:[$u(21),df("object literal"),$u(22)]}:e.kind===231?{kind:"local class",displayParts:[$u(21),df("anonymous local class"),$u(22)]}:{kind:E1(e),displayParts:[]}}function iit(e){const t=HQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=I_e(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function wz(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return ds(e)&&o-i>2&&(C.assert(r===void 0),i+=1,o-=1),(r==null?void 0:r.kind)===269&&(o=r.getFullStart()),hc(i,o)}function A_e(e){return e.kind===0?e.textSpan:wz(e.node,e.node.getSourceFile())}function I_e(e){const t=CN(e);return!!t&&oit(t)||e.kind===90||HA(e)}function lwe(e,t){var r;if(!t)return!1;const i=CN(e)||(e.kind===90?e.parent:ik(e)||e.kind===137&&Ll(e.parent)?e.parent.parent:void 0),o=i&&mr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function oit(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!ey(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||d1(e.parent);case 173:case 171:case 355:case 348:return!1;default:return C.failBadSyntaxKind(e)}}var x_e,R_e,D_e,VI,ait=T({"src/services/findAllReferences.ts"(){ii(),C_e(),x_e=(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))(x_e||{}),R_e=(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))(R_e||{}),D_e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(D_e||{}),(e=>{function t(Je,mt,pt,Pt,le,Fe={},dt=new Set(Pt.map(j=>j.fileName))){var j,ot;if(mt=r(mt,Fe),Zi(mt)){const dn=HD.getReferenceAtPosition(mt,Je,pt);if(!(dn!=null&&dn.file))return;const H=pt.getTypeChecker().getMergedSymbol(dn.file.symbol);if(H)return h(pt,H,!1,Pt,dt);const We=pt.getFileIncludeReasons();return We?[{definition:{type:5,reference:dn.reference,file:mt},references:o(dn.file,We,pt)||et}]:void 0}if(!Fe.implementations){const dn=b(mt,Pt,le);if(dn)return dn}const Dt=pt.getTypeChecker(),Ye=Dt.getSymbolAtLocation(Ll(mt)&&mt.parent.name||mt);if(!Ye){if(!Fe.implementations&&ds(mt)){if(g5(mt)){const dn=pt.getFileIncludeReasons(),H=(ot=(j=pt.getResolvedModuleFromModuleSpecifier(mt))==null?void 0:j.resolvedModule)==null?void 0:ot.resolvedFileName,We=H?pt.getSourceFile(H):void 0;if(We)return[{definition:{type:4,node:mt},references:o(We,dn,pt)||et}]}return Di(mt,Pt,Dt,le)}return}if(Ye.escapedName==="export=")return h(pt,Ye.parent,!1,Pt,dt);const _t=l(Ye,pt,Pt,le,Fe,dt);if(_t&&!(Ye.flags&33554432))return _t;const Gt=s(mt,Ye,Dt),gn=Gt&&l(Gt,pt,Pt,le,Fe,dt),hn=A(Ye,mt,Pt,dt,Dt,le,Fe);return u(pt,_t,hn,gn)}e.getReferencedSymbolsForNode=t;function r(Je,mt){return mt.use===1?Je=sX(Je):mt.use===2&&(Je=o5(Je)),Je}e.getAdjustedNode=r;function i(Je,mt,pt,Pt=new Set(pt.map(le=>le.fileName))){var le,Fe;const dt=(le=mt.getSourceFile(Je))==null?void 0:le.symbol;if(dt)return((Fe=h(mt,dt,!1,pt,Pt)[0])==null?void 0:Fe.references)||et;const j=mt.getFileIncludeReasons(),ot=mt.getSourceFile(Je);return ot&&j&&o(ot,j,mt)||et}e.getReferencesForFileName=i;function o(Je,mt,pt){let Pt;const le=mt.get(Je.path)||et;for(const Fe of le)if(W0(Fe)){const dt=pt.getSourceFileByPath(Fe.file),j=QP(pt,Fe);vD(j)&&(Pt=Rn(Pt,{kind:0,fileName:dt.fileName,textSpan:sb(j)}))}return Pt}function s(Je,mt,pt){if(Je.parent&&Zk(Je.parent)){const Pt=pt.getAliasedSymbol(mt),le=pt.getMergedSymbol(Pt);if(Pt!==le)return le}}function l(Je,mt,pt,Pt,le,Fe){const dt=Je.flags&1536&&Je.declarations&&Tn(Je.declarations,Zi);if(!dt)return;const j=Je.exports.get("export="),ot=h(mt,Je,!!j,pt,Fe);if(!j||!Fe.has(dt.fileName))return ot;const Dt=mt.getTypeChecker();return Je=Eu(j,Dt),u(mt,ot,A(Je,void 0,pt,Fe,Dt,Pt,le))}function u(Je,...mt){let pt;for(const Pt of mt)if(!(!Pt||!Pt.length)){if(!pt){pt=Pt;continue}for(const le of Pt){if(!le.definition||le.definition.type!==0){pt.push(le);continue}const Fe=le.definition.symbol,dt=Br(pt,ot=>!!ot.definition&&ot.definition.type===0&&ot.definition.symbol===Fe);if(dt===-1){pt.push(le);continue}const j=pt[dt];pt[dt]={definition:j.definition,references:j.references.concat(le.references).sort((ot,Dt)=>{const Ye=p(Je,ot),_t=p(Je,Dt);if(Ye!==_t)return nl(Ye,_t);const Gt=A_e(ot),gn=A_e(Dt);return Gt.start!==gn.start?nl(Gt.start,gn.start):nl(Gt.length,gn.length)})}}}return pt}function p(Je,mt){const pt=mt.kind===0?Je.getSourceFile(mt.fileName):mt.node.getSourceFile();return Je.getSourceFiles().indexOf(pt)}function h(Je,mt,pt,Pt,le){C.assert(!!mt.valueDeclaration);const Fe=Hi(Zke(Je,Pt,mt),j=>{if(j.kind==="import"){const ot=j.literal.parent;if(Zy(ot)){const Dt=oa(ot.parent,fg);if(pt&&!Dt.qualifier)return}return gg(j.literal)}else if(j.kind==="implicit"){const ot=j.literal.text!==Ky&&NP(j.referencingFile,Dt=>Dt.transformFlags&2?mg(Dt)||JS(Dt)||c1(Dt)?Dt:void 0:"skip")||j.referencingFile.statements[0]||j.referencingFile;return gg(ot)}else return{kind:0,fileName:j.referencingFile.fileName,textSpan:sb(j.ref)}});if(mt.declarations)for(const j of mt.declarations)switch(j.kind){case 312:break;case 267:le.has(j.getSourceFile().fileName)&&Fe.push(gg(j.name));break;default:C.assert(!!(mt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const dt=mt.exports.get("export=");if(dt!=null&&dt.declarations)for(const j of dt.declarations){const ot=j.getSourceFile();if(le.has(ot.fileName)){const Dt=mr(j)&&Fr(j.left)?j.left.expression:wl(j)?C.checkDefined(Es(j,95,ot)):Po(j)||j;Fe.push(gg(Dt))}}return Fe.length?[{definition:{type:0,symbol:mt},references:Fe}]:et}function f(Je){return Je.kind===148&&VS(Je.parent)&&Je.parent.operator===148}function b(Je,mt,pt){if(a2(Je.kind))return Je.kind===116&&pI(Je.parent)||Je.kind===148&&!f(Je)?void 0:Ne(mt,Je.kind,pt,Je.kind===148?f:void 0);if(pR(Je.parent)&&Je.parent.name===Je)return ge(mt,pt);if(aI(Je)&&Rl(Je.parent))return[{definition:{type:2,node:Je},references:[gg(Je)]}];if(aO(Je)){const Pt=Z7(Je.parent,Je.text);return Pt&&de(Pt.parent,Pt)}else if(QK(Je))return de(Je.parent,Je);if(xD(Je))return Qn(Je,mt,pt);if(Je.kind===108)return Gi(Je)}function A(Je,mt,pt,Pt,le,Fe,dt){const j=mt&&M(Je,mt,le,!wn(dt))||Je,ot=mt?yi(mt,j):7,Dt=[],Ye=new U(pt,Pt,mt?R(mt):0,le,Fe,ot,dt,Dt),_t=!wn(dt)||!j.declarations?void 0:Tn(j.declarations,Ku);if(_t)At(_t.name,j,_t,Ye.createSearch(mt,Je,void 0),Ye,!0,!0);else if(mt&&mt.kind===90&&j.escapedName==="default"&&j.parent)gt(mt,j,Ye),K(mt,j,{exportingModuleSymbol:j.parent,exportKind:1},Ye);else{const Gt=Ye.createSearch(mt,j,void 0,{allSearchSymbols:mt?Xt(j,mt,le,dt.use===2,!!dt.providePrefixAndSuffixTextForRename,!!dt.implementations):[j]});I(j,Ye,Gt)}return Dt}function I(Je,mt,pt){const Pt=_e(Je);if(Pt)Ee(Pt,Pt.getSourceFile(),pt,mt,!(Zi(Pt)&&!Nr(mt.sourceFiles,Pt)));else for(const le of mt.sourceFiles)mt.cancellationToken.throwIfCancellationRequested(),G(le,pt,mt)}function R(Je){switch(Je.kind){case 176:case 137:return 1;case 80:if(ui(Je.parent))return C.assert(Je.parent.name===Je),2;default:return 0}}function M(Je,mt,pt,Pt){const{parent:le}=mt;return Ku(le)&&Pt?be(mt,Je,le,pt):qt(Je.declarations,Fe=>{if(!Fe.parent){if(Je.flags&33554432)return;C.fail("Unexpected symbol at ".concat(C.formatSyntaxKind(mt.kind),": ").concat(C.formatSymbol(Je)))}return Tp(Fe.parent)&&Qy(Fe.parent.parent)?pt.getPropertyOfType(pt.getTypeFromTypeNode(Fe.parent.parent),Je.name):void 0})}let N;(Je=>{Je[Je.None=0]="None",Je[Je.Constructor=1]="Constructor",Je[Je.Class=2]="Class"})(N||(N={}));function O(Je){if(!(Je.flags&33555968))return;const mt=Je.declarations&&Tn(Je.declarations,pt=>!Zi(pt)&&!Ql(pt));return mt&&mt.symbol}class U{constructor(mt,pt,Pt,le,Fe,dt,j,ot){this.sourceFiles=mt,this.sourceFilesSet=pt,this.specialSearchKind=Pt,this.checker=le,this.cancellationToken=Fe,this.searchMeaning=dt,this.options=j,this.result=ot,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=PI(),this.markSeenReExportRHS=PI(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(mt){return this.sourceFilesSet.has(mt.fileName)}getImportSearches(mt,pt){return this.importTracker||(this.importTracker=g_e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(mt,pt,this.options.use===2)}createSearch(mt,pt,Pt,le={}){const{text:Fe=am(El(LR(pt)||O(pt)||pt)),allSearchSymbols:dt=[pt]}=le,j=hl(Fe),ot=this.options.implementations&&mt?An(mt,pt,this.checker):void 0;return{symbol:pt,comingFrom:Pt,text:Fe,escapedText:j,parents:ot,allSearchSymbols:dt,includes:Dt=>Nr(dt,Dt)}}referenceAdder(mt){const pt=Ta(mt);let Pt=this.symbolIdToReferences[pt];return Pt||(Pt=this.symbolIdToReferences[pt]=[],this.result.push({definition:{type:0,symbol:mt},references:Pt})),(le,Fe)=>Pt.push(gg(le,Fe))}addStringOrCommentReference(mt,pt){this.result.push({definition:void 0,references:[{kind:0,fileName:mt,textSpan:pt}]})}markSearchedSymbols(mt,pt){const Pt=cs(mt),le=this.sourceFileToSeenSymbols[Pt]||(this.sourceFileToSeenSymbols[Pt]=new Set);let Fe=!1;for(const dt of pt)Fe=Dv(le,Ta(dt))||Fe;return Fe}}function K(Je,mt,pt,Pt){const{importSearches:le,singleReferences:Fe,indirectUsers:dt}=Pt.getImportSearches(mt,pt);if(Fe.length){const j=Pt.referenceAdder(mt);for(const ot of Fe)V(ot,Pt)&&j(ot)}for(const[j,ot]of le)qe(j.getSourceFile(),Pt.createSearch(j,ot,1),Pt);if(dt.length){let j;switch(pt.exportKind){case 0:j=Pt.createSearch(Je,mt,1);break;case 1:j=Pt.options.use===2?void 0:Pt.createSearch(Je,mt,1,{text:"default"});break}if(j)for(const ot of dt)G(ot,j,Pt)}}function ee(Je,mt,pt,Pt,le,Fe,dt,j){const ot=g_e(Je,new Set(Je.map(Gt=>Gt.fileName)),mt,pt),{importSearches:Dt,indirectUsers:Ye,singleReferences:_t}=ot(Pt,{exportKind:dt?1:0,exportingModuleSymbol:le},!1);for(const[Gt]of Dt)j(Gt);for(const Gt of _t)je(Gt)&&fg(Gt.parent)&&j(Gt);for(const Gt of Ye)for(const gn of he(Gt,dt?"default":Fe)){const hn=mt.getSymbolAtLocation(gn),dn=St(hn==null?void 0:hn.declarations,H=>!!ti(H,wl));je(gn)&&!NA(gn.parent)&&(hn===Pt||dn)&&j(gn)}}e.eachExportReference=ee;function V(Je,mt){return Me(Je,mt)?mt.options.use!==2?!0:je(Je)?!(NA(Je.parent)&&Je.escapedText==="default"):!1:!1}function se(Je,mt){if(Je.declarations)for(const pt of Je.declarations){const Pt=pt.getSourceFile();qe(Pt,mt.createSearch(pt,Je,0),mt,mt.includesSourceFile(Pt))}}function G(Je,mt,pt){XY(Je).get(mt.escapedText)!==void 0&&qe(Je,mt,pt)}function re(Je,mt){return ey(Je.parent.parent)?mt.getPropertySymbolOfDestructuringAssignment(Je):void 0}function _e(Je){const{declarations:mt,flags:pt,parent:Pt,valueDeclaration:le}=Je;if(le&&(le.kind===218||le.kind===231))return le;if(!mt)return;if(pt&8196){const j=Tn(mt,ot=>yp(ot,2)||cd(ot));return j?S0(j,263):void 0}if(mt.some(gO))return;const Fe=Pt&&!(Je.flags&262144);if(Fe&&!(mO(Pt)&&!Pt.globalExports))return;let dt;for(const j of mt){const ot=aT(j);if(dt&&dt!==ot||!ot||ot.kind===312&&!zp(ot))return;if(dt=ot,Bs(dt)){let Dt;for(;Dt=Yj(dt);)dt=Dt}}return Fe?dt.getSourceFile():dt}function ye(Je,mt,pt,Pt=pt){return Q(Je,mt,pt,()=>!0,Pt)||!1}e.isSymbolReferencedInFile=ye;function Q(Je,mt,pt,Pt,le=pt){const Fe=hp(Je.parent,Je.parent.parent)?Xa(mt.getSymbolsOfParameterPropertyDeclaration(Je.parent,Je.text)):mt.getSymbolAtLocation(Je);if(Fe)for(const dt of he(pt,Fe.name,le)){if(!je(dt)||dt===Je||dt.escapedText!==Je.escapedText)continue;const j=mt.getSymbolAtLocation(dt);if(j===Fe||mt.getShorthandAssignmentValueSymbol(dt.parent)===Fe||Ku(dt.parent)&&be(dt,j,dt.parent,mt)===Fe){const ot=Pt(dt);if(ot)return ot}}}e.eachSymbolReferenceInFile=Q;function Y(Je,mt){return rr(he(mt,Je),le=>!!CN(le)).reduce((le,Fe)=>{const dt=Pt(Fe);return!St(le.declarationNames)||dt===le.depth?(le.declarationNames.push(Fe),le.depth=dt):dt<le.depth&&(le.declarationNames=[Fe],le.depth=dt),le},{depth:1/0,declarationNames:[]}).declarationNames;function Pt(le){let Fe=0;for(;le;)le=aT(le),Fe++;return Fe}}e.getTopMostDeclarationNamesInFile=Y;function oe(Je,mt,pt,Pt){if(!Je.name||!je(Je.name))return!1;const le=C.checkDefined(pt.getSymbolAtLocation(Je.name));for(const Fe of mt)for(const dt of he(Fe,le.name)){if(!je(dt)||dt===Je.name||dt.escapedText!==Je.name.escapedText)continue;const j=Q7(dt),ot=sa(j.parent)&&j.parent.expression===j?j.parent:void 0,Dt=pt.getSymbolAtLocation(dt);if(Dt&&pt.getRootSymbols(Dt).some(Ye=>Ye===le)&&Pt(dt,ot))return!0}return!1}e.someSignatureUsage=oe;function he(Je,mt,pt=Je){return Hi(Ae(Je,mt,pt),Pt=>{const le=Vd(Je,Pt);return le===Je?void 0:le})}function Ae(Je,mt,pt=Je){const Pt=[];if(!mt||!mt.length)return Pt;const le=Je.text,Fe=le.length,dt=mt.length;let j=le.indexOf(mt,pt.pos);for(;j>=0&&!(j>pt.end);){const ot=j+dt;(j===0||!c0(le.charCodeAt(j-1),99))&&(ot===Fe||!c0(le.charCodeAt(ot),99))&&Pt.push(j),j=le.indexOf(mt,j+dt+1)}return Pt}function de(Je,mt){const pt=Je.getSourceFile(),Pt=mt.text,le=Hi(he(pt,Pt,Je),Fe=>Fe===mt||aO(Fe)&&Z7(Fe,Pt)===mt?gg(Fe):void 0);return[{definition:{type:1,node:mt},references:le}]}function ie(Je,mt){switch(Je.kind){case 81:if(C0(Je.parent))return!0;case 80:return Je.text.length===mt.length;case 15:case 11:{const pt=Je;return(e5(pt)||nX(Je)||Pue(Je)||sa(Je.parent)&&DS(Je.parent)&&Je.parent.arguments[1]===Je)&&pt.text.length===mt.length}case 9:return e5(Je)&&Je.text.length===mt.length;case 90:return mt.length===7;default:return!1}}function ge(Je,mt){const pt=Pi(Je,Pt=>(mt.throwIfCancellationRequested(),Hi(he(Pt,"meta",Pt),le=>{const Fe=le.parent;if(pR(Fe))return gg(Fe)})));return pt.length?[{definition:{type:2,node:pt[0].node},references:pt}]:void 0}function Ne(Je,mt,pt,Pt){const le=Pi(Je,Fe=>(pt.throwIfCancellationRequested(),Hi(he(Fe,pa(mt),Fe),dt=>{if(dt.kind===mt&&(!Pt||Pt(dt)))return gg(dt)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function qe(Je,mt,pt,Pt=!0){return pt.cancellationToken.throwIfCancellationRequested(),Ee(Je,Je,mt,pt,Pt)}function Ee(Je,mt,pt,Pt,le){if(Pt.markSearchedSymbols(mt,pt.allSearchSymbols))for(const Fe of Ae(mt,pt.text,Je))Ce(mt,Fe,pt,Pt,le)}function Me(Je,mt){return!!(oT(Je)&mt.searchMeaning)}function Ce(Je,mt,pt,Pt,le){const Fe=Vd(Je,mt);if(!ie(Fe,pt.text)){!Pt.options.implementations&&(Pt.options.findInStrings&&NI(Je,mt)||Pt.options.findInComments&&Hue(Je,mt))&&Pt.addStringOrCommentReference(Je.fileName,yu(mt,pt.text.length));return}if(!Me(Fe,Pt))return;let dt=Pt.checker.getSymbolAtLocation(Fe);if(!dt)return;const j=Fe.parent;if(np(j)&&j.propertyName===Fe)return;if(Ku(j)){C.assert(Fe.kind===80),At(Fe,dt,j,pt,Pt,le);return}if(fN(j)&&j.isNameFirst&&j.typeExpression&&XS(j.typeExpression.type)&&j.typeExpression.type.jsDocPropertyTags&&Le(j.typeExpression.type.jsDocPropertyTags)){Oe(j.typeExpression.type.jsDocPropertyTags,Fe,pt,Pt);return}const ot=oi(pt,dt,Fe,Pt);if(!ot){Ft(dt,pt,Pt);return}switch(Pt.specialSearchKind){case 0:le&>(Fe,ot,Pt);break;case 1:Qe(Fe,Je,pt,Pt);break;case 2:It(Fe,pt,Pt);break;default:C.assertNever(Pt.specialSearchKind)}sr(Fe)&&ns(Fe.parent)&&jE(Fe.parent.parent.parent)&&(dt=Fe.parent.symbol,!dt)||it(Fe,dt,pt,Pt)}function Oe(Je,mt,pt,Pt){const le=Pt.referenceAdder(pt.symbol);gt(mt,pt.symbol,Pt),He(Je,Fe=>{Id(Fe.name)&&le(Fe.name.left)})}function At(Je,mt,pt,Pt,le,Fe,dt){C.assert(!dt||!!le.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:j,propertyName:ot,name:Dt}=pt,Ye=j.parent,_t=be(Je,mt,pt,le.checker);if(!dt&&!Pt.includes(_t))return;if(ot?Je===ot?(Ye.moduleSpecifier||Gt(),Fe&&le.options.use!==2&&le.markSeenReExportRHS(Dt)&>(Dt,C.checkDefined(pt.symbol),le)):le.markSeenReExportRHS(Je)&&Gt():le.options.use===2&&Dt.escapedText==="default"||Gt(),!wn(le.options)||dt){const hn=Je.escapedText==="default"||pt.name.escapedText==="default"?1:0,dn=C.checkDefined(pt.symbol),H=v_e(dn,hn,le.checker);H&&K(Je,dn,H,le)}if(Pt.comingFrom!==1&&Ye.moduleSpecifier&&!ot&&!wn(le.options)){const gn=le.checker.getExportSpecifierLocalTargetSymbol(pt);gn&&se(gn,le)}function Gt(){Fe&>(Je,_t,le)}}function be(Je,mt,pt,Pt){return Ue(Je,pt)&&Pt.getExportSpecifierLocalTargetSymbol(pt)||mt}function Ue(Je,mt){const{parent:pt,propertyName:Pt,name:le}=mt;return C.assert(Pt===Je||le===Je),Pt?Pt===Je:!pt.parent.moduleSpecifier}function it(Je,mt,pt,Pt){const le=nwe(Je,mt,Pt.checker,pt.comingFrom===1);if(!le)return;const{symbol:Fe}=le;le.kind===0?wn(Pt.options)||se(Fe,Pt):K(Je,Fe,le.exportInfo,Pt)}function Ft({flags:Je,valueDeclaration:mt},pt,Pt){const le=Pt.checker.getShorthandAssignmentValueSymbol(mt),Fe=mt&&Po(mt);!(Je&33554432)&&Fe&&pt.includes(le)&>(Fe,le,Pt)}function gt(Je,mt,pt){const{kind:Pt,symbol:le}="kind"in mt?mt:{kind:void 0,symbol:mt};if(pt.options.use===2&&Je.kind===90)return;const Fe=pt.referenceAdder(le);pt.options.implementations?tn(Je,Fe,pt):Fe(Je,Pt)}function Qe(Je,mt,pt,Pt){r2(Je)&>(Je,pt.symbol,Pt);const le=()=>Pt.referenceAdder(pt.symbol);if(ui(Je.parent))C.assert(Je.kind===90||Je.parent.name===Je),on(pt.symbol,mt,le());else{const Fe=Fa(Je);Fe&&(Cn(Fe,le()),yn(Fe,Pt))}}function It(Je,mt,pt){gt(Je,mt.symbol,pt);const Pt=Je.parent;if(pt.options.use===2||!ui(Pt))return;C.assert(Pt.name===Je);const le=pt.referenceAdder(mt.symbol);for(const Fe of Pt.members)MA(Fe)&&aa(Fe)&&Fe.body&&Fe.body.forEachChild(function dt(j){j.kind===110?le(j):!Qo(j)&&!ui(j)&&j.forEachChild(dt)})}function on(Je,mt,pt){const Pt=$t(Je);if(Pt&&Pt.declarations)for(const le of Pt.declarations){const Fe=Es(le,137,mt);C.assert(le.kind===176&&!!Fe),pt(Fe)}Je.exports&&Je.exports.forEach(le=>{const Fe=le.valueDeclaration;if(Fe&&Fe.kind===174){const dt=Fe.body;dt&&fa(dt,110,j=>{r2(j)&&pt(j)})}})}function $t(Je){return Je.members&&Je.members.get("__constructor")}function Cn(Je,mt){const pt=$t(Je.symbol);if(pt&&pt.declarations)for(const Pt of pt.declarations){C.assert(Pt.kind===176);const le=Pt.body;le&&fa(le,108,Fe=>{XK(Fe)&&mt(Fe)})}}function Hn(Je){return!!$t(Je.symbol)}function yn(Je,mt){if(Hn(Je))return;const pt=Je.symbol,Pt=mt.createSearch(void 0,pt,void 0);I(pt,mt,Pt)}function tn(Je,mt,pt){if(jg(Je)&&eo(Je.parent)){mt(Je);return}if(Je.kind!==80)return;Je.parent.kind===304&&Ro(Je,pt.checker,mt);const Pt=en(Je);if(Pt){mt(Pt);return}const le=zn(Je,j=>!Id(j.parent)&&!Ui(j.parent)&&!yS(j.parent)),Fe=le.parent;if(w4(Fe)&&Fe.type===le&&pt.markSeenContainingTypeReference(Fe))if(zy(Fe))dt(Fe.initializer);else if(Qo(Fe)&&Fe.body){const j=Fe.body;j.kind===241?GE(j,ot=>{ot.expression&&dt(ot.expression)}):dt(j)}else bS(Fe)&&dt(Fe.expression);function dt(j){gi(j)&&mt(j)}}function en(Je){return je(Je)||Fr(Je)?en(Je.parent):Xv(Je)?ti(Je.parent.parent,Qm(ui,hd)):void 0}function gi(Je){switch(Je.kind){case 217:return gi(Je.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function ho(Je,mt,pt,Pt){if(Je===mt)return!0;const le=Ta(Je)+","+Ta(mt),Fe=pt.get(le);if(Fe!==void 0)return Fe;pt.set(le,!1);const dt=!!Je.declarations&&Je.declarations.some(j=>NN(j).some(ot=>{const Dt=Pt.getTypeAtLocation(ot);return!!Dt&&!!Dt.symbol&&ho(Dt.symbol,mt,pt,Pt)}));return pt.set(le,dt),dt}function Gi(Je){let mt=WL(Je,!1);if(!mt)return;let pt=256;switch(mt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:pt&=Uy(mt),mt=mt.parent;break;default:return}const Pt=mt.getSourceFile(),le=Hi(he(Pt,"super",mt),Fe=>{if(Fe.kind!==108)return;const dt=WL(Fe,!1);return dt&&aa(dt)===!!pt&&dt.parent.symbol===mt.symbol?gg(Fe):void 0});return[{definition:{type:0,symbol:mt.symbol},references:le}]}function xo(Je){return Je.kind===80&&Je.parent.kind===169&&Je.parent.name===Je}function Qn(Je,mt,pt){let Pt=Fd(Je,!1,!1),le=256;switch(Pt.kind){case 174:case 173:if(Nm(Pt)){le&=Uy(Pt),Pt=Pt.parent;break}case 172:case 171:case 176:case 177:case 178:le&=Uy(Pt),Pt=Pt.parent;break;case 312:if(dc(Pt)||xo(Je))return;case 262:case 218:break;default:return}const Fe=Pi(Pt.kind===312?mt:[Pt.getSourceFile()],j=>(pt.throwIfCancellationRequested(),he(j,"this",Zi(Pt)?j:Pt).filter(ot=>{if(!xD(ot))return!1;const Dt=Fd(ot,!1,!1);if(!x_(Dt))return!1;switch(Pt.kind){case 218:case 262:return Pt.symbol===Dt.symbol;case 174:case 173:return Nm(Pt)&&Pt.symbol===Dt.symbol;case 231:case 263:case 210:return Dt.parent&&x_(Dt.parent)&&Pt.symbol===Dt.parent.symbol&&aa(Dt)===!!le;case 312:return Dt.kind===312&&!dc(Dt)&&!xo(ot)}}))).map(j=>gg(j));return[{definition:{type:3,node:qt(Fe,j=>Io(j.node.parent)?j.node:void 0)||Je},references:Fe}]}function Di(Je,mt,pt,Pt){const le=i5(Je,pt),Fe=Pi(mt,dt=>(Pt.throwIfCancellationRequested(),Hi(he(dt,Je.text),j=>{if(ds(j)&&j.text===Je.text)if(le){const ot=i5(j,pt);if(le!==pt.getStringType()&&(le===ot||Ir(j,pt)))return gg(j,2)}else return rI(j)&&!OS(j,dt)?void 0:gg(j,2)})));return[{definition:{type:4,node:Je},references:Fe}]}function Ir(Je,mt){if(Ep(Je.parent))return mt.getPropertyOfType(mt.getTypeAtLocation(Je.parent.parent),Je.text)}function Xt(Je,mt,pt,Pt,le,Fe){const dt=[];return nt(Je,mt,pt,Pt,!(Pt&&le),(j,ot,Dt)=>{Dt&&Dn(Je)!==Dn(Dt)&&(Dt=void 0),dt.push(Dt||ot||j)},()=>!Fe),dt}function nt(Je,mt,pt,Pt,le,Fe,dt){const j=UO(mt);if(j){const hn=pt.getShorthandAssignmentValueSymbol(mt.parent);if(hn&&Pt)return Fe(hn,void 0,void 0,3);const dn=pt.getContextualType(j.parent),H=dn&&qt(fz(j,pt,dn,!0),me=>Gt(me,4));if(H)return H;const We=re(mt,pt),Lt=We&&Fe(We,void 0,void 0,4);if(Lt)return Lt;const L=hn&&Fe(hn,void 0,void 0,3);if(L)return L}const ot=s(mt,Je,pt);if(ot){const hn=Fe(ot,void 0,void 0,1);if(hn)return hn}const Dt=Gt(Je);if(Dt)return Dt;if(Je.valueDeclaration&&hp(Je.valueDeclaration,Je.valueDeclaration.parent)){const hn=pt.getSymbolsOfParameterPropertyDeclaration(oa(Je.valueDeclaration,Io),Je.name);return C.assert(hn.length===2&&!!(hn[0].flags&1)&&!!(hn[1].flags&4)),Gt(Je.flags&1?hn[1]:hn[0])}const Ye=fl(Je,281);if(!Pt||Ye&&!Ye.propertyName){const hn=Ye&&pt.getExportSpecifierLocalTargetSymbol(Ye);if(hn){const dn=Fe(hn,void 0,void 0,1);if(dn)return dn}}if(!Pt){let hn;return le?hn=gO(mt.parent)?v5(pt,mt.parent):void 0:hn=gn(Je,pt),hn&&Gt(hn,4)}if(C.assert(Pt),le){const hn=gn(Je,pt);return hn&&Gt(hn,4)}function Gt(hn,dn){return qt(pt.getRootSymbols(hn),H=>Fe(hn,H,void 0,dn)||(H.parent&&H.parent.flags&96&&dt(H)?Bt(H.parent,H.name,pt,We=>Fe(hn,H,We,dn)):void 0))}function gn(hn,dn){const H=fl(hn,208);if(H&&gO(H))return v5(dn,H)}}function Bt(Je,mt,pt,Pt){const le=new Map;return Fe(Je);function Fe(dt){if(!(!(dt.flags&96)||!Pm(le,Ta(dt))))return qt(dt.declarations,j=>qt(NN(j),ot=>{const Dt=pt.getTypeAtLocation(ot),Ye=Dt&&Dt.symbol&&pt.getPropertyOfType(Dt,mt);return Dt&&Ye&&(qt(pt.getRootSymbols(Ye),Pt)||Fe(Dt.symbol))}))}}function Dn(Je){return Je.valueDeclaration?!!(pd(Je.valueDeclaration)&256):!1}function oi(Je,mt,pt,Pt){const{checker:le}=Pt;return nt(mt,pt,le,!1,Pt.options.use!==2||!!Pt.options.providePrefixAndSuffixTextForRename,(Fe,dt,j,ot)=>(j&&Dn(mt)!==Dn(j)&&(j=void 0),Je.includes(j||dt||Fe)?{symbol:dt&&!(xl(Fe)&6)?dt:Fe,kind:ot}:void 0),Fe=>!(Je.parents&&!Je.parents.some(dt=>ho(Fe.parent,dt,Pt.inheritsFromCache,le))))}function yi(Je,mt){let pt=oT(Je);const{declarations:Pt}=mt;if(Pt){let le;do{le=pt;for(const Fe of Pt){const dt=rO(Fe);dt&pt&&(pt|=dt)}}while(pt!==le)}return pt}e.getIntersectingMeaningFromDeclarations=yi;function eo(Je){return Je.flags&33554432?!(hd(Je)||Lm(Je)):fR(Je)?zy(Je):js(Je)?!!Je.body:ui(Je)||SL(Je)}function Ro(Je,mt,pt){const Pt=mt.getSymbolAtLocation(Je),le=mt.getShorthandAssignmentValueSymbol(Pt.valueDeclaration);if(le)for(const Fe of le.getDeclarations())rO(Fe)&1&&pt(Fe)}e.getReferenceEntriesForShorthandPropertyAssignment=Ro;function fa(Je,mt,pt){Vo(Je,Pt=>{Pt.kind===mt&&pt(Pt),fa(Pt,mt,pt)})}function Fa(Je){return SU(Q7(Je).parent)}function An(Je,mt,pt){const Pt=ID(Je)?Je.parent:void 0,le=Pt&&pt.getTypeAtLocation(Pt.expression),Fe=Hi(le&&(le.isUnionOrIntersection()?le.types:le.symbol===mt.parent?void 0:[le]),dt=>dt.symbol&&dt.symbol.flags&96?dt.symbol:void 0);return Fe.length===0?void 0:Fe}function wn(Je){return Je.use===2&&Je.providePrefixAndSuffixTextForRename}})(VI||(VI={}))}}),Gs={};X(Gs,{Core:()=>VI,DefinitionKind:()=>x_e,EntryKind:()=>R_e,ExportKind:()=>b_e,FindReferencesUse:()=>D_e,ImportExport:()=>E_e,createImportTracker:()=>g_e,findModuleReferences:()=>Zke,findReferenceOrRenameEntries:()=>$rt,findReferencedSymbols:()=>Krt,getContextNode:()=>dT,getExportInfo:()=>v_e,getImplementationsAtPosition:()=>Yrt,getImportOrExportSymbol:()=>nwe,getReferenceEntriesForNode:()=>iwe,getTextSpanOfEntry:()=>A_e,isContextWithStartAndEndNode:()=>S_e,isDeclarationOfSymbol:()=>lwe,isWriteAccessForReference:()=>I_e,nodeEntry:()=>gg,toContextSpan:()=>T_e,toHighlightSpan:()=>iit,toReferenceEntry:()=>swe,toRenameLocation:()=>Zrt});var C_e=T({"src/services/_namespaces/ts.FindAllReferences.ts"(){qrt(),ait()}});function cwe(e,t,r,i,o){var s;const l=dwe(t,r,e),u=l&&[vit(l.reference.fileName,l.fileName,l.unverified)]||et;if(l!=null&&l.file)return u;const p=Vd(t,r);if(p===t)return;const{parent:h}=p,f=e.getTypeChecker();if(p.kind===164||je(p)&&cF(h)&&h.tagName===p)return lit(f,p)||et;if(aO(p)){const N=Z7(p.parent,p.text);return N?[N_e(f,N,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:const N=zn(p.parent,U=>Rl(U)?"quit":js(U));return N?[Oz(f,N)]:void 0;case 90:if(!AP(p.parent))break;case 84:const O=zn(p.parent,EP);if(O)return[git(O,t)];break}if(p.kind===135){const N=zn(p,U=>js(U));return N&&St(N.modifiers,U=>U.kind===134)?[Oz(f,N)]:void 0}if(p.kind===127){const N=zn(p,U=>js(U));return N&&N.asteriskToken?[Oz(f,N)]:void 0}if(aI(p)&&Rl(p.parent)){const N=p.parent.parent,{symbol:O,failedAliasResolution:U}=qQ(N,f,o),K=rr(N.members,Rl),ee=O?f.symbolToString(O,N):"",V=p.getSourceFile();return Ot(K,se=>{let{pos:G}=L_(se);return G=wa(V.text,G),N_e(f,se,"constructor","static {}",ee,!1,U,{start:G,length:6})})}let{symbol:b,failedAliasResolution:A}=qQ(p,f,o),I=p;if(i&&A){const N=He([p,...(b==null?void 0:b.declarations)||et],U=>zn(U,Sie)),O=N&&yR(N);O&&({symbol:b,failedAliasResolution:A}=qQ(O,f,o),I=O)}if(!b&&g5(I)){const N=(s=e.getResolvedModuleFromModuleSpecifier(I))==null?void 0:s.resolvedModule;if(N)return[{name:I.text,fileName:N.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:yu(0,0),failedAliasResolution:A,isAmbient:Tu(N.resolvedFileName),unverified:I!==p}]}if(!b)return To(u,mit(p,f));if(i&&Yn(b.declarations,N=>N.getSourceFile().fileName===t.fileName))return;const R=bit(f,p);if(R&&!(ud(p.parent)&&Eit(R))){const N=Oz(f,R,A);if(f.getRootSymbols(b).some(O=>sit(O,R)))return[N];{const O=T2(f,b,p,A,R)||et;return p.kind===108?[N,...O]:[...O,N]}}if(p.parent.kind===304){const N=f.getShorthandAssignmentValueSymbol(b.valueDeclaration),O=N!=null&&N.declarations?N.declarations.map(U=>n8(U,f,N,p,!1,A)):et;return To(O,uwe(f,p))}if(cc(p)&&ns(h)&&dm(h.parent)&&p===(h.propertyName||h.name)){const N=hO(p),O=f.getTypeAtLocation(h.parent);return N===void 0?et:Pi(O.isUnion()?O.types:[O],U=>{const K=U.getProperty(N);return K&&T2(f,K,p)})}const M=uwe(f,p);return To(u,M.length?M:T2(f,b,p,A))}function sit(e,t){var r;return e===t.symbol||e===t.symbol.parent||wc(t.parent)||!WE(t.parent)&&e===((r=ti(t.parent,x_))==null?void 0:r.symbol)}function uwe(e,t){const r=UO(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return Pi(fz(r,e,i,!1),o=>T2(e,o,t))}return et}function lit(e,t){const r=zn(t,Zc);if(!(r&&r.name))return;const i=zn(r,ui);if(!i)return;const o=D_(i);if(!o)return;const s=vs(o.expression),l=tu(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;const u=ji(cR(r.name)),p=vc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),u);if(p)return T2(e,p,t)}function dwe(e,t,r){var i,o;const s=A2(e.referencedFiles,t);if(s){const p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}const l=A2(e.typeReferenceDirectives,t);if(l){const p=(i=r.getResolvedTypeReferenceDirectives().get(l.fileName,l.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,h=p&&r.getSourceFile(p.resolvedFileName);return h&&{reference:l,fileName:h.fileName,file:h,unverified:!1}}const u=A2(e.libReferenceDirectives,t);if(u){const p=r.getLibFileFromReference(u);return p&&{reference:u,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const p=RD(e,t);let h;if(g5(p)&&Qc(p.text)&&(h=r.getResolvedModuleFromModuleSpecifier(p))){const f=(o=h.resolvedModule)==null?void 0:o.resolvedFileName,b=f||Py(ri(e.fileName),p.text);return{file:r.getSourceFile(b),fileName:b,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!f}}}}function cit(e,t){const r=t.symbol.name;if(!M_e.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function pwe(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!M_e.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function uit(e,t,r,i){var o,s;if(Wr(t)&4&&cit(e,t))return t8(e.getTypeArguments(t)[0],e,r,i);if(pwe(e,t)&&t.aliasTypeArguments)return t8(t.aliasTypeArguments[0],e,r,i);if(Wr(t)&32&&t.target&&pwe(e,t.target)){const l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Lm(l)&&Nf(l.type)&&l.type.typeArguments)return t8(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function dit(e,t,r){const i=Vd(t,r);if(i===t)return;if(pR(i.parent)&&i.parent.name===i)return t8(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:o,failedAliasResolution:s}=qQ(i,e,!1);if(!o)return;const l=e.getTypeOfSymbolAtLocation(o,i),u=pit(o,l,e),p=u&&t8(u,e,i,s),[h,f]=p&&p.length!==0?[u,p]:[l,t8(l,e,i,s)];return f.length?[...uit(e,h,i,s),...f]:!(o.flags&111551)&&o.flags&788968?T2(e,Eu(o,e),i,s):void 0}function t8(e,t,r,i){return Pi(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&T2(t,o.symbol,r,i))}function pit(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&ki(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Xa(i))}}function fit(e,t,r){const i=cwe(e,t,r);if(!i||i.length===0)return;const o=A2(t.referencedFiles,r)||A2(t.typeReferenceDirectives,r)||A2(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:sb(o)};const s=Vd(t,r),l=yu(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function mit(e,t){return Hi(t.getIndexInfosAtLocation(e),r=>r.declaration&&Oz(t,r.declaration))}function qQ(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if(i!=null&&i.declarations&&i.flags&2097152&&!r&&_it(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function _it(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function hit(e){if(!RN(e))return!1;const t=zn(e,r=>wc(r)?!0:RN(r)?!1:"quit");return!!t&&Vl(t)===5}function T2(e,t,r,i,o){const s=rr(t.declarations,b=>b!==o),l=rr(s,b=>!hit(b)),u=St(l)?l:s;return p()||h()||Ot(u,b=>n8(b,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(r2(r)||r.kind===137)){const b=Tn(s,ui)||C.fail("Expected declaration to have at least one class-like declaration");return f(b.members,!0)}}function h(){return YK(r)||rX(r)?f(s,!1):void 0}function f(b,A){if(!b)return;const I=b.filter(A?Ll:Qo),R=I.filter(M=>!!M.body);return I.length?R.length!==0?R.map(M=>n8(M,e,t,r)):[n8(es(I),e,t,r,!1,i)]:void 0}}function n8(e,t,r,i,o,s){const l=t.symbolToString(r),u=oy.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return N_e(t,e,u,l,p,o,s)}function N_e(e,t,r,i,o,s,l,u){const p=t.getSourceFile();if(!u){const h=Po(t)||t;u=Dd(h,p)}return{fileName:p.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Gs.toContextSpan(u,p,Gs.getContextNode(t)),isLocal:!P_e(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function git(e,t){const r=Gs.getContextNode(e),i=Dd(S_e(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Gs.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function P_e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(zy(t.parent)&&t.parent.initializer===t)return P_e(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(yp(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return P_e(e,t.parent);default:return!1}}function Oz(e,t,r){return n8(t,e,t.symbol,t,!1,r)}function A2(e,t){return Tn(e,r=>sL(r,t))}function vit(e,t,r){return{fileName:t,textSpan:hc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function yit(e){const t=zn(e,i=>!ID(i)),r=t==null?void 0:t.parent;return r&&WE(r)&&o3(r)===t?r:void 0}function bit(e,t){const r=yit(t),i=r&&e.getResolvedSignature(r);return ti(i&&i.declaration,o=>Qo(o)&&!Th(o))}function Eit(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var M_e,Sit=T({"src/services/goToDefinition.ts"(){ii(),C_e(),M_e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),HD={};X(HD,{createDefinitionInfo:()=>n8,findReferenceInPosition:()=>A2,getDefinitionAndBoundSpan:()=>fit,getDefinitionAtPosition:()=>cwe,getReferenceAtPosition:()=>dwe,getTypeDefinitionAtPosition:()=>dit});var Tit=T({"src/services/_namespaces/ts.GoToDefinition.ts"(){Sit()}});function Ait(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function Iit(e){return e.includeInlayParameterNameHints==="literals"}function fwe(e){return e.interactiveInlayHints===!0}function xit(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),p=uf(t,s),h=r.getTypeChecker(),f=[];return b(t),f;function b(de){if(!(!de||de.getFullWidth()===0)){switch(de.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(v4(i,de.pos,de.getFullWidth())&&!(Ui(de)&&!Xv(de)))return s.includeInlayVariableTypeHints&&ki(de)||s.includeInlayPropertyDeclarationTypeHints&&Uo(de)?U(de):s.includeInlayEnumMemberValueHints&&p1(de)?N(de):Ait(s)&&(sa(de)||o1(de))?K(de):(s.includeInlayFunctionParameterTypeHints&&js(de)&&iW(de)&&_e(de),s.includeInlayFunctionLikeReturnTypeHints&&A(de)&&G(de)),Vo(de,b)}}function A(de){return Us(de)||Bs(de)||xc(de)||Kl(de)||rf(de)}function I(de,ie,ge,Ne){let qe="".concat(Ne?"...":"").concat(de),Ee;fwe(s)?(Ee=[Ae(qe,ie),{text:":"}],qe=""):qe+=":",f.push({text:qe,position:ge,kind:"Parameter",whitespaceAfter:!0,displayParts:Ee})}function R(de,ie){f.push({text:typeof de=="string"?": ".concat(de):"",displayParts:typeof de=="string"?void 0:[{text:": "},...de],position:ie,kind:"Type",whitespaceBefore:!0})}function M(de,ie){f.push({text:"= ".concat(de),position:ie,kind:"Enum",whitespaceBefore:!0})}function N(de){if(de.initializer)return;const ie=h.getConstantValue(de);ie!==void 0&&M(ie.toString(),de.end)}function O(de){return de.symbol&&de.symbol.flags&1536}function U(de){if(!de.initializer||Zo(de.name)||ki(de)&&!he(de)||bu(de))return;const ge=h.getTypeAtLocation(de);if(O(ge))return;const Ne=Y(ge);if(Ne){const qe=typeof Ne=="string"?Ne:Ne.map(Me=>Me.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&a0(de.name.getText(),qe))return;R(Ne,de.name.end)}}function K(de){const ie=de.arguments;if(!ie||!ie.length)return;const ge=[],Ne=h.getResolvedSignatureForSignatureHelp(de,ge);if(!Ne||!ge.length)return;let qe=0;for(const Ee of ie){const Me=vs(Ee);if(Iit(s)&&!se(Me)){qe++;continue}let Ce=0;if(n_(Me)){const At=h.getTypeAtLocation(Me.expression);if(h.isTupleType(At)){const{elementFlags:be,fixedLength:Ue}=At.target;if(Ue===0)continue;const it=Br(be,gt=>!(gt&1));(it<0?Ue:it)>0&&(Ce=it<0?Ue:it)}}const Oe=h.getParameterIdentifierInfoAtPosition(Ne,qe);if(qe=qe+(Ce||1),Oe){const{parameter:At,parameterName:be,isRestParameter:Ue}=Oe;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!ee(Me,be))&&!Ue)continue;const Ft=ji(be);if(V(Me,Ft))continue;I(Ft,At,Ee.getStart(),Ue)}}}function ee(de,ie){return je(de)?de.text===ie:Fr(de)?de.name.text===ie:!1}function V(de,ie){if(!tf(ie,u.target,yk(t.scriptKind)))return!1;const ge=Zh(l,de.pos);if(!(ge!=null&&ge.length))return!1;const Ne=mwe(ie);return St(ge,qe=>Ne.test(l.substring(qe.pos,qe.end)))}function se(de){switch(de.kind){case 224:{const ie=de.operand;return OE(ie)||je(ie)&&iP(ie.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const ie=de.escapedText;return oe(ie)||iP(ie)}}return OE(de)}function G(de){if(Us(de)&&!Es(de,21,t)||sm(de)||!de.body)return;const ge=h.getSignatureFromDeclaration(de);if(!ge)return;const Ne=h.getReturnTypeOfSignature(ge);if(O(Ne))return;const qe=Y(Ne);qe&&R(qe,re(de))}function re(de){const ie=Es(de,22,t);return ie?ie.end:de.parameters.end}function _e(de){const ie=h.getSignatureFromDeclaration(de);if(ie)for(let ge=0;ge<de.parameters.length&&ge<ie.parameters.length;++ge){const Ne=de.parameters[ge];if(!he(Ne)||bu(Ne))continue;const Ee=ye(ie.parameters[ge]);Ee&&R(Ee,Ne.questionToken?Ne.questionToken.end:Ne.name.end)}}function ye(de){const ie=de.valueDeclaration;if(!ie||!Io(ie))return;const ge=h.getTypeOfSymbolAtLocation(de,ie);if(!O(ge))return Y(ge)}function Q(de){const ge=y1();return yN(Ne=>{const qe=h.typeToTypeNode(de,void 0,71286784);C.assertIsDefined(qe,"should always get typenode"),ge.writeNode(4,qe,t,Ne)})}function Y(de){if(!fwe(s))return Q(de);const ge=h.typeToTypeNode(de,void 0,71286784);C.assertIsDefined(ge,"should always get typenode");const Ne=[];return qe(ge),Ne;function qe(Oe){var At,be;if(!Oe)return;const Ue=pa(Oe.kind);if(Ue){Ne.push({text:Ue});return}if(OE(Oe)){Ne.push({text:Ce(Oe)});return}switch(Oe.kind){case 80:C.assertNode(Oe,je);const it=Tr(Oe),Ft=Oe.symbol&&Oe.symbol.declarations&&Oe.symbol.declarations.length&&Po(Oe.symbol.declarations[0]);Ft?Ne.push(Ae(it,Ft)):Ne.push({text:it});break;case 166:C.assertNode(Oe,Id),qe(Oe.left),Ne.push({text:"."}),qe(Oe.right);break;case 182:C.assertNode(Oe,Kk),Oe.assertsModifier&&Ne.push({text:"asserts "}),qe(Oe.parameterName),Oe.type&&(Ne.push({text:" is "}),qe(Oe.type));break;case 183:C.assertNode(Oe,Nf),qe(Oe.typeName),Oe.typeArguments&&(Ne.push({text:"<"}),Me(Oe.typeArguments,", "),Ne.push({text:">"}));break;case 168:C.assertNode(Oe,gl),Oe.modifiers&&Me(Oe.modifiers," "),qe(Oe.name),Oe.constraint&&(Ne.push({text:" extends "}),qe(Oe.constraint)),Oe.default&&(Ne.push({text:" = "}),qe(Oe.default));break;case 169:C.assertNode(Oe,Io),Oe.modifiers&&Me(Oe.modifiers," "),Oe.dotDotDotToken&&Ne.push({text:"..."}),qe(Oe.name),Oe.questionToken&&Ne.push({text:"?"}),Oe.type&&(Ne.push({text:": "}),qe(Oe.type));break;case 185:C.assertNode(Oe,qR),Ne.push({text:"new "}),Ee(Oe),Ne.push({text:" => "}),qe(Oe.type);break;case 186:C.assertNode(Oe,lI),Ne.push({text:"typeof "}),qe(Oe.exprName),Oe.typeArguments&&(Ne.push({text:"<"}),Me(Oe.typeArguments,", "),Ne.push({text:">"}));break;case 187:C.assertNode(Oe,Tp),Ne.push({text:"{"}),Oe.members.length&&(Ne.push({text:" "}),Me(Oe.members,"; "),Ne.push({text:" "})),Ne.push({text:"}"});break;case 188:C.assertNode(Oe,Xk),qe(Oe.elementType),Ne.push({text:"[]"});break;case 189:C.assertNode(Oe,cI),Ne.push({text:"["}),Me(Oe.elements,", "),Ne.push({text:"]"});break;case 202:C.assertNode(Oe,JR),Oe.dotDotDotToken&&Ne.push({text:"..."}),qe(Oe.name),Oe.questionToken&&Ne.push({text:"?"}),Ne.push({text:": "}),qe(Oe.type);break;case 190:C.assertNode(Oe,tF),qe(Oe.type),Ne.push({text:"?"});break;case 191:C.assertNode(Oe,nF),Ne.push({text:"..."}),qe(Oe.type);break;case 192:C.assertNode(Oe,Qy),Me(Oe.types," | ");break;case 193:C.assertNode(Oe,uI),Me(Oe.types," & ");break;case 194:C.assertNode(Oe,dI),qe(Oe.checkType),Ne.push({text:" extends "}),qe(Oe.extendsType),Ne.push({text:" ? "}),qe(Oe.trueType),Ne.push({text:" : "}),qe(Oe.falseType);break;case 195:C.assertNode(Oe,BS),Ne.push({text:"infer "}),qe(Oe.typeParameter);break;case 196:C.assertNode(Oe,GS),Ne.push({text:"("}),qe(Oe.type),Ne.push({text:")"});break;case 198:C.assertNode(Oe,VS),Ne.push({text:"".concat(pa(Oe.operator)," ")}),qe(Oe.type);break;case 199:C.assertNode(Oe,jS),qe(Oe.objectType),Ne.push({text:"["}),qe(Oe.indexType),Ne.push({text:"]"});break;case 200:C.assertNode(Oe,KR),Ne.push({text:"{ "}),Oe.readonlyToken&&(Oe.readonlyToken.kind===40?Ne.push({text:"+"}):Oe.readonlyToken.kind===41&&Ne.push({text:"-"}),Ne.push({text:"readonly "})),Ne.push({text:"["}),qe(Oe.typeParameter),Oe.nameType&&(Ne.push({text:" as "}),qe(Oe.nameType)),Ne.push({text:"]"}),Oe.questionToken&&(Oe.questionToken.kind===40?Ne.push({text:"+"}):Oe.questionToken.kind===41&&Ne.push({text:"-"}),Ne.push({text:"?"})),Ne.push({text:": "}),Oe.type&&qe(Oe.type),Ne.push({text:"; }"});break;case 201:C.assertNode(Oe,Zy),qe(Oe.literal);break;case 184:C.assertNode(Oe,Th),Ee(Oe),Ne.push({text:" => "}),qe(Oe.type);break;case 205:C.assertNode(Oe,fg),Oe.isTypeOf&&Ne.push({text:"typeof "}),Ne.push({text:"import("}),qe(Oe.argument),Oe.assertions&&(Ne.push({text:", { assert: "}),Me(Oe.assertions.assertClause.elements,", "),Ne.push({text:" }"})),Ne.push({text:")"}),Oe.qualifier&&(Ne.push({text:"."}),qe(Oe.qualifier)),Oe.typeArguments&&(Ne.push({text:"<"}),Me(Oe.typeArguments,", "),Ne.push({text:">"}));break;case 171:C.assertNode(Oe,Ep),(At=Oe.modifiers)!=null&&At.length&&(Me(Oe.modifiers," "),Ne.push({text:" "})),qe(Oe.name),Oe.questionToken&&Ne.push({text:"?"}),Oe.type&&(Ne.push({text:": "}),qe(Oe.type));break;case 181:C.assertNode(Oe,r1),Ne.push({text:"["}),Me(Oe.parameters,", "),Ne.push({text:"]"}),Oe.type&&(Ne.push({text:": "}),qe(Oe.type));break;case 173:C.assertNode(Oe,Sh),(be=Oe.modifiers)!=null&&be.length&&(Me(Oe.modifiers," "),Ne.push({text:" "})),qe(Oe.name),Oe.questionToken&&Ne.push({text:"?"}),Ee(Oe),Oe.type&&(Ne.push({text:": "}),qe(Oe.type));break;case 179:C.assertNode(Oe,sI),Ee(Oe),Oe.type&&(Ne.push({text:": "}),qe(Oe.type));break;case 207:C.assertNode(Oe,i1),Ne.push({text:"["}),Me(Oe.elements,", "),Ne.push({text:"]"});break;case 206:C.assertNode(Oe,dm),Ne.push({text:"{"}),Oe.elements.length&&(Ne.push({text:" "}),Me(Oe.elements,", "),Ne.push({text:" "})),Ne.push({text:"}"});break;case 208:C.assertNode(Oe,ns),qe(Oe.name);break;case 224:C.assertNode(Oe,tb),Ne.push({text:pa(Oe.operator)}),qe(Oe.operand);break;case 203:C.assertNode(Oe,Uae),qe(Oe.head),Oe.templateSpans.forEach(qe);break;case 16:C.assertNode(Oe,iI),Ne.push({text:Ce(Oe)});break;case 204:C.assertNode(Oe,MH),qe(Oe.type),qe(Oe.literal);break;case 17:C.assertNode(Oe,DH),Ne.push({text:Ce(Oe)});break;case 18:C.assertNode(Oe,$W),Ne.push({text:Ce(Oe)});break;case 197:C.assertNode(Oe,Yk),Ne.push({text:"this"});break;default:C.failBadSyntaxKind(Oe)}}function Ee(Oe){Oe.typeParameters&&(Ne.push({text:"<"}),Me(Oe.typeParameters,", "),Ne.push({text:">"})),Ne.push({text:"("}),Me(Oe.parameters,", "),Ne.push({text:")"})}function Me(Oe,At){Oe.forEach((be,Ue)=>{Ue>0&&Ne.push({text:At}),qe(be)})}function Ce(Oe){var At;switch(Oe.kind){case 11:return p===0?"'".concat(lg(Oe.text,39),"'"):'"'.concat(lg(Oe.text,34),'"');case 16:case 17:case 18:{const be=(At=Oe.rawText)!=null?At:dU(lg(Oe.text,96));switch(Oe.kind){case 16:return"`"+be+"${";case 17:return"}"+be+"${";case 18:return"}"+be+"`"}}}return Oe.text}}function oe(de){return de==="undefined"}function he(de){if((JE(de)||ki(de)&&dR(de))&&de.initializer){const ie=vs(de.initializer);return!(se(ie)||o1(ie)||Wa(ie)||bS(ie))}return!0}function Ae(de,ie){const ge=ie.getSourceFile();return{text:de,span:Dd(ie,ge),file:ge.fileName}}}var mwe,Rit=T({"src/services/inlayHints.ts"(){ii(),mwe=e=>new RegExp("^\\s?/\\*\\*?\\s?".concat(e,"\\s?\\*\\/\\s?$"))}}),JQ={};X(JQ,{provideInlayHints:()=>xit});var Dit=T({"src/services/_namespaces/ts.InlayHints.ts"(){Rit()}});function Cit(e,t){const r=[];return xX(e,i=>{for(const o of Pit(i)){const s=i_(o)&&o.tags&&Tn(o.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||i_(o)&&i.kind!==353&&i.kind!==345&&o.tags&&o.tags.some(u=>u.kind===353||u.kind===345)&&!o.tags.some(u=>u.kind===348||u.kind===349))continue;let l=o.comment?qD(o.comment,t):[];s&&s.comment&&(l=l.concat(qD(s.comment,t))),Nr(r,l,Nit)||r.push(l)}}),ra(oo(r,[PD()]))}function Nit(e,t){return Na(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Pit(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(eD(e.parent))return[e.parent.parent];default:return Xj(e)}}function Mit(e,t){const r=[];return xX(e,i=>{const o=_0(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(const s of o)r.push({name:s.tagName.text,text:gwe(s,t)}),r.push(..._we(hwe(s),t))}),r}function _we(e,t){return Pi(e,r=>To([{name:r.tagName.text,text:gwe(r,t)}],_we(hwe(r),t)))}function hwe(e){return fN(e)&&e.isNameFirst&&e.typeExpression&&XS(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function qD(e,t){return typeof e=="string"?[df(e)]:Pi(e,r=>r.kind===328?[df(r.text)]:nde(r,t))}function gwe(e,t){const{comment:r,kind:i}=e,o=Lit(i);switch(i){case 356:const u=e.typeExpression;return u?s(u):r===void 0?void 0:qD(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:const p=e,h=[];if(p.constraint&&h.push(df(p.constraint.getText())),Le(p.typeParameters)){Le(h)&&h.push(Ol());const b=p.typeParameters[p.typeParameters.length-1];He(p.typeParameters,A=>{h.push(o(A.getText())),b!==A&&h.push($u(28),Ol())})}return r&&h.push(Ol(),...qD(r,t)),h;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:f}=e;return f?s(f):r===void 0?void 0:qD(r,t);default:return r===void 0?void 0:qD(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[df(u),...qD(r,t)]:[o(u),Ol(),...qD(r,t)]:[df(u)]}}function Lit(e){switch(e){case 348:return $ue;case 355:return Que;case 352:return ede;case 353:case 345:return Zue;default:return df}}function kit(){return ywe||(ywe=Ot(k_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:GI.SortText.LocationPriority})))}function wit(){return bwe||(bwe=Ot(k_e,e=>({name:"@".concat(e),kind:"keyword",kindModifiers:"",sortText:GI.SortText.LocationPriority})))}function vwe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[df(e)],documentation:et,tags:void 0,codeActions:void 0}}function Oit(e){if(!je(e.name))return et;const t=e.name.text,r=e.parent,i=r.parent;return Qo(i)?Hi(i.parameters,o=>{if(!je(o.name))return;const s=o.name.text;if(!(r.tags.some(l=>l!==e&&o_(l)&&je(l.name)&&l.name.escapedText===s)||t!==void 0&&!po(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:GI.SortText.LocationPriority}}):[]}function Wit(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[df(e)],documentation:et,tags:void 0,codeActions:void 0}}function Fit(e,t,r,i){const o=fo(t,r),s=zn(o,i_);if(s&&(s.comment!==void 0||Le(s.tags)))return;const l=o.getStart(t);if(!s&&l<r)return;const u=Vit(o,i);if(!u)return;const{commentOwner:p,parameters:h,hasReturn:f}=u,b=Fp(p)&&p.jsDoc?p.jsDoc:void 0,A=el(b);if(p.getStart(t)<r||A&&s&&A!==s)return;const I=zit(t,r),R=QE(t.fileName),M=(h?Bit(h||[],R,I,e):"")+(f?Git(I,e):""),N="/**",O=" */",U=Le(_0(p))>0;if(M&&!U){const K=N+e+I+" * ",ee=l===r?e+I:"";return{newText:K+e+M+I+O+ee,caretOffset:K.length}}return{newText:N+O,caretOffset:3}}function zit(e,t){const{text:r}=e,i=fm(t,e);let o=i;for(;o<=t&&A_(r.charCodeAt(o));o++);return r.slice(i,o)}function Bit(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{const u=o.kind===80?o.text:"param"+l,p=t?s?"{...any} ":"{any} ":"";return"".concat(r," * @param ").concat(p).concat(u).concat(i)}).join("")}function Git(e,t){return"".concat(e," * @returns").concat(t)}function Vit(e,t){return die(e,r=>L_e(r,t))}function L_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:Wz(r,t)};case 303:return L_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const o=e;return o.type&&Th(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:Wz(o.type,t)}:{commentOwner:e}}case 243:{const s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?jit(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:Wz(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return L_e(e.expression,t);case 226:{const o=e;return Vl(o)===0?"quit":Qo(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:Wz(o.right,t)}:{commentOwner:e}}case 172:const i=e.initializer;if(i&&(Bs(i)||Us(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:Wz(i,t)}}}function Wz(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(Th(e)||Us(e)&&bt(e.body)||js(e)&&e.body&&Jo(e.body)&&!!GE(e.body,r=>r))}function jit(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Tn(e.members,Ll)}}var k_e,ywe,bwe,Ewe,Uit=T({"src/services/jsDoc.ts"(){ii(),k_e=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","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"],Ewe=vwe}}),j0={};X(j0,{getDocCommentTemplateAtPosition:()=>Fit,getJSDocParameterNameCompletionDetails:()=>Wit,getJSDocParameterNameCompletions:()=>Oit,getJSDocTagCompletionDetails:()=>vwe,getJSDocTagCompletions:()=>wit,getJSDocTagNameCompletionDetails:()=>Ewe,getJSDocTagNameCompletions:()=>kit,getJsDocCommentsFromDeclarations:()=>Cit,getJsDocTagsFromDeclarations:()=>Mit});var Hit=T({"src/services/_namespaces/ts.JsDoc.ts"(){Uit()}});function qit(e,t,r,i,o,s){const l=_r.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",p=u,h=s==="RemoveUnused"||s==="All",f=KQ(e,e.statements.filter(Oc)),b=cot(o,u?()=>Awe(f,o)===2:void 0),A=R=>(h&&(R=Kit(R,e,i)),p&&(R=Swe(R,b,e,o)),u&&(R=Cv(R,(M,N)=>z_e(M,N,b))),R);f.forEach(R=>I(R,A)),s!=="RemoveUnused"&&uot(e).forEach(R=>I(R,M=>w_e(M,b,o)));for(const R of e.statements.filter(ku)){if(!R.body)continue;if(KQ(e,R.body.statements.filter(Oc)).forEach(N=>I(N,A)),s!=="RemoveUnused"){const N=R.body.statements.filter(Zl);I(N,O=>w_e(O,b,o))}}return l.getChanges();function I(R,M){if(Le(R)===0)return;pr(R[0],1024);const N=p?YC(R,K=>Fz(K.moduleSpecifier)):[R],O=u?Cv(N,(K,ee)=>W_e(K[0].moduleSpecifier,ee[0].moduleSpecifier,b)):N,U=Pi(O,K=>Fz(K[0].moduleSpecifier)||K[0].moduleSpecifier===void 0?M(K):K);if(U.length===0)l.deleteNodes(e,R,{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Include},!0);else{const K={leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Include,suffix:ny(r,t.options)};l.replaceNodeWithNodes(e,R[0],U,K);const ee=l.nodeHasTrailingComment(e,R[0],K);l.deleteNodes(e,R.slice(1),{trailingTriviaOption:_r.TrailingTriviaOption.Include},ee)}}}function KQ(e,t){const r=Ov(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&Jit(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function Jit(e,t,r){const i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()<o;)if(r.scan()===4&&(s++,s>=2))return!0;return!1}function Kit(e,t,r){const i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),p=[];for(const f of e){const{importClause:b,moduleSpecifier:A}=f;if(!b){p.push(f);continue}let{name:I,namedBindings:R}=b;if(I&&!h(I)&&(I=void 0),R)if(nb(R))h(R.name)||(R=void 0);else{const M=R.elements.filter(N=>h(N.name));M.length<R.elements.length&&(R=M.length?w.updateNamedImports(R,M):void 0)}I||R?p.push(r8(f,I,R)):Xit(t,A)&&(t.isDeclarationFile?p.push(w.createImportDeclaration(f.modifiers,void 0,A,void 0)):p.push(f))}return p;function h(f){return u&&(f.text===s||l&&f.text===l)&&qX(o.jsx)||Gs.Core.isSymbolReferencedInFile(f,i,t)}}function Xit(e,t){const r=Ma(t)&&t.text;return No(r)&&St(e.moduleAugmentations,i=>Ma(i)&&i.text===r)}function Fz(e){return e!==void 0&&ds(e)?e.text:void 0}function Yit(e,t,r,i){const o=XQ(t);return Swe(e,o,r,i)}function Swe(e,t,r,i){if(e.length===0)return e;const o=w6(e,l=>{if(l.attributes){let u=l.attributes.token+" ";for(const p of uS(l.attributes.elements,(h,f)=>Uu(h.name.text,f.name.text)))u+=p.name.text+":",u+=ds(p.value)?'"'.concat(p.value.text,'"'):p.value.getText()+" ";return u}return""}),s=[];for(const l in o){const u=o[l],{importWithoutClause:p,typeOnlyImports:h,regularImports:f}=$it(u);p&&s.push(p);for(const b of[f,h]){const A=b===h,{defaultImports:I,namespaceImports:R,namedImports:M}=b;if(!A&&I.length===1&&R.length===1&&M.length===0){const re=I[0];s.push(r8(re,re.importClause.name,R[0].importClause.namedBindings));continue}const N=Cv(R,(re,_e)=>t(re.importClause.namedBindings.name.text,_e.importClause.namedBindings.name.text));for(const re of N)s.push(r8(re,void 0,re.importClause.namedBindings));const O=$c(I),U=$c(M),K=O!=null?O:U;if(!K)continue;let ee;const V=[];if(I.length===1)ee=I[0].importClause.name;else for(const re of I)V.push(w.createImportSpecifier(!1,w.createIdentifier("default"),re.importClause.name));V.push(...oot(M));const se=w.createNodeArray(Twe(V,t,i),U==null?void 0:U.importClause.namedBindings.elements.hasTrailingComma),G=se.length===0?ee?void 0:w.createNamedImports(et):U?w.updateNamedImports(U.importClause.namedBindings,se):w.createNamedImports(se);r&&G&&(U!=null&&U.importClause.namedBindings)&&!OS(U.importClause.namedBindings,r)&&pr(G,2),A&&ee&&G?(s.push(r8(K,ee,void 0)),s.push(r8(U!=null?U:K,void 0,G))):s.push(r8(K,ee,G))}}return s}function $it(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const o of e){if(o.importClause===void 0){t=t||o;continue}const s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:u}=o.importClause;l&&s.defaultImports.push(o),u&&(nb(u)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Qit(e,t,r){const i=XQ(t);return w_e(e,i,r)}function w_e(e,t,r){if(e.length===0)return e;const{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=u(e),l=[];i&&l.push(i);for(const p of[o,s]){if(p.length===0)continue;const h=[];h.push(...Pi(p,A=>A.exportClause&&Pf(A.exportClause)?A.exportClause.elements:et));const f=Twe(h,t,r),b=p[0];l.push(w.updateExportDeclaration(b,b.modifiers,b.isTypeOnly,b.exportClause&&(Pf(b.exportClause)?w.updateNamedExports(b.exportClause,f):w.updateNamespaceExport(b.exportClause,b.exportClause.name)),b.moduleSpecifier,b.attributes))}return l;function u(p){let h;const f=[],b=[];for(const A of p)A.exportClause===void 0?h=h||A:A.isTypeOnly?b.push(A):f.push(A);return{exportWithoutClause:h,namedExports:f,typeOnlyExports:b}}}function r8(e,t,r){return w.updateImportDeclaration(e,e.modifiers,w.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function Twe(e,t,r){return Cv(e,(i,o)=>O_e(i,o,t,r))}function O_e(e,t,r,i){switch(i==null?void 0:i.organizeImportsTypeOrder){case"first":return Ry(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Ry(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Zit(e,t,r){const i=XQ(!!r);return W_e(e,t,i)}function W_e(e,t,r){const i=e===void 0?void 0:Fz(e),o=t===void 0?void 0:Fz(t);return Ry(i===void 0,o===void 0)||Ry(Qc(i),Qc(o))||r(i,o)}function F_e(e){var t;switch(e.kind){case 271:return(t=ti(e.moduleReference,xh))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function eot(e,t){return Awe(KQ(e,e.statements.filter(Oc)),t)}function Awe(e,t){const r=JD(t,!1),i=JD(t,!0);let o=3,s=!1;for(const l of e){if(l.length>1){const p=XC(l,h=>{var b;var f;return(b=(f=ti(h.moduleSpecifier,Ma))==null?void 0:f.text)!=null?b:""},r,i);if(p&&(o&=p,s=!0),!o)return o}const u=Tn(l,p=>{var h,f;return((f=ti((h=p.importClause)==null?void 0:h.namedBindings,Kg))==null?void 0:f.elements.length)>1});if(u){const p=B_e(u.importClause.namedBindings.elements,t);if(p&&(o&=p,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function tot(e,t){const r=JD(t,!1),i=JD(t,!0);return XC(e,o=>Fz(F_e(o))||"",r,i)}function not(e,t,r){const i=Nv(e,t,tl,(o,s)=>z_e(o,s,r));return i<0?~i:i}function rot(e,t,r,i){const o=Nv(e,t,tl,(s,l)=>O_e(s,l,r,i));return o<0?~o:o}function z_e(e,t,r){return W_e(F_e(e),F_e(t),r)||iot(e,t)}function iot(e,t){return nl(Iwe(e),Iwe(t))}function Iwe(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function oot(e){return Pi(e,t=>Ot(aot(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?w.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function aot(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Kg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function XQ(e){return e?One:Uu}function sot(e,t){var p,h,f;const r=lot(t),i=(p=t.organizeImportsCaseFirst)!=null?p:!1,o=(h=t.organizeImportsNumericCollation)!=null?h:!1,s=(f=t.organizeImportsAccentCollation)!=null?f:!0,l=e?s?"accent":"base":s?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:o}).compare}function lot(e){let t=e.organizeImportsLocale;t==="auto"&&(t=Wne()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function JD(e,t){var i;return((i=e.organizeImportsCollation)!=null?i:"ordinal")==="unicode"?sot(t,e):XQ(t)}function cot(e,t){var i;const r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(i=t==null?void 0:t())!=null?i:!1;return JD(e,r)}function uot(e){const t=[],r=e.statements,i=Le(r);let o=0,s=0;for(;o<i;)if(Zl(r[o])){t[s]===void 0&&(t[s]=[]);const l=r[o];if(l.moduleSpecifier)t[s].push(l),o++;else{for(;o<i&&Zl(r[o]);)t[s].push(r[o++]);s++}}else o++;return Pi(t,l=>KQ(e,l))}var xwe,B_e,dot=T({"src/services/organizeImports.ts"(){ii(),xwe=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){var i;this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),(i=this._cache)!=null||(this._cache=new WeakMap),this._cache.set(e,r)}},B_e=wne((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!M6(e,(o,s)=>Ry(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!M6(e,(o,s)=>Bx(!0)(o.name.text,s.name.text)))return 0;break;default:if(!M6(e,(o,s)=>Ry(o.isTypeOnly,s.isTypeOnly)))return 0;break}const r=JD(t,!1),i=JD(t,!0);if(t.organizeImportsTypeOrder!=="inline"){const{type:o,regular:s}=w6(e,p=>p.isTypeOnly?"type":"regular"),l=o!=null&&o.length?XC(o,p=>p.name.text,r,i):void 0,u=s!=null&&s.length?XC(s,p=>{var h;return(h=p.name.text)!=null?h:""},r,i):void 0;return l===void 0?u!=null?u:0:u===void 0?l:l===0||u===0?0:u&l}return XC(e,o=>o.name.text,r,i)},new xwe)}}),Wm={};X(Wm,{coalesceExports:()=>Qit,coalesceImports:()=>Yit,compareImportOrExportSpecifiers:()=>O_e,compareImportsOrRequireStatements:()=>z_e,compareModuleSpecifiers:()=>Zit,detectImportDeclarationSorting:()=>tot,detectImportSpecifierSorting:()=>B_e,detectSorting:()=>eot,getImportDeclarationInsertionIndex:()=>not,getImportSpecifierInsertionIndex:()=>rot,getOrganizeImportsComparer:()=>JD,organizeImports:()=>qit});var pot=T({"src/services/_namespaces/ts.OrganizeImports.ts"(){dot()}});function fot(e,t){const r=[];return mot(e,t,r),_ot(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function mot(e,t,r){let i=40,o=0;const s=[...e.statements,e.endOfFileToken],l=s.length;for(;o<l;){for(;o<l&&!TS(s[o]);)u(s[o]),o++;if(o===l)break;const p=o;for(;o<l&&TS(s[o]);)u(s[o]),o++;const h=o-1;h!==p&&r.push(zz(Es(s[p],102,e).getStart(e),s[h].getEnd(),"imports"))}function u(p){var h;if(i===0)return;t.throwIfCancellationRequested(),(Ju(p)||kl(p)||Mm(p)||I_(p)||p.kind===1)&&Dwe(p,e,t,r),Qo(p)&&mr(p.parent)&&Fr(p.parent.left)&&Dwe(p.parent.left,e,t,r),(Jo(p)||O_(p))&&G_e(p.statements.end,e,t,r),(ui(p)||hd(p))&&G_e(p.members.end,e,t,r);const f=hot(p,e);f&&r.push(f),i--,sa(p)?(i++,u(p.expression),i--,p.arguments.forEach(u),(h=p.typeArguments)==null||h.forEach(u)):US(p)&&p.elseStatement&&US(p.elseStatement)?(u(p.expression),u(p.thenStatement),i++,u(p.elseStatement),i--):p.forEachChild(u),i++}}function _ot(e,t){const r=[],i=e.getLineStarts();for(const o of i){const s=e.getLineEndOfPosition(o),l=e.text.substring(o,s),u=Rwe(l);if(!(!u||Zv(e,o)))if(u[1]){const p=r.pop();p&&(p.textSpan.length=s-p.textSpan.start,p.hintSpan.length=s-p.textSpan.start,t.push(p))}else{const p=hc(e.text.indexOf("//",o),s);r.push(jI(p,"region",p,!1,u[2]||"#region"))}}}function Rwe(e){return e=e.trimStart(),po(e,"//")?(e=e.slice(2).trim(),Cwe.exec(e)):null}function G_e(e,t,r,i){const o=Zh(t.text,e);if(!o)return;let s=-1,l=-1,u=0;const p=t.getFullText();for(const{kind:f,pos:b,end:A}of o)switch(r.throwIfCancellationRequested(),f){case 2:const I=p.slice(b,A);if(Rwe(I)){h(),u=0;break}u===0&&(s=b),l=A,u++;break;case 3:h(),i.push(zz(b,A,"comment")),u=0;break;default:C.assertNever(f)}h();function h(){u>1&&i.push(zz(s,l,"comment"))}}function Dwe(e,t,r,i){nI(e)||G_e(e.pos,t,r,i)}function zz(e,t,r){return jI(hc(e,t),r)}function hot(e,t){switch(e.kind){case 241:if(Qo(e.parent))return got(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return f(e.parent);case 258:const I=e.parent;if(I.tryBlock===e)return f(e.parent);if(I.finallyBlock===e){const R=Es(I,98,t);if(R)return f(R)}default:return jI(Dd(e,t),"code")}case 268:return f(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return f(e);case 189:return f(e,!1,!cI(e.parent),23);case 296:case 297:return b(e.statements);case 210:return h(e);case 209:return h(e,23);case 284:return s(e);case 288:return l(e);case 285:case 286:return u(e.attributes);case 228:case 15:return p(e);case 207:return f(e,!1,!ns(e.parent),23);case 219:return o(e);case 213:return i(e);case 217:return A(e);case 275:case 279:case 300:return r(e)}function r(I){if(!I.elements.length)return;const R=Es(I,19,t),M=Es(I,20,t);if(!(!R||!M||Rf(R.pos,M.pos,t)))return YQ(R,M,I,t,!1,!1)}function i(I){if(!I.arguments.length)return;const R=Es(I,21,t),M=Es(I,22,t);if(!(!R||!M||Rf(R.pos,M.pos,t)))return YQ(R,M,I,t,!1,!0)}function o(I){if(Jo(I.body)||Gd(I.body)||Rf(I.body.getFullStart(),I.body.getEnd(),t))return;const R=hc(I.body.getFullStart(),I.body.getEnd());return jI(R,"code",Dd(I))}function s(I){const R=hc(I.openingElement.getStart(t),I.closingElement.getEnd()),M=I.openingElement.tagName.getText(t),N="<"+M+">...</"+M+">";return jI(R,"code",R,!1,N)}function l(I){const R=hc(I.openingFragment.getStart(t),I.closingFragment.getEnd());return jI(R,"code",R,!1,"<>...</>")}function u(I){if(I.properties.length!==0)return zz(I.getStart(t),I.getEnd(),"code")}function p(I){if(!(I.kind===15&&I.text.length===0))return zz(I.getStart(t),I.getEnd(),"code")}function h(I,R=19){return f(I,!1,!_d(I.parent)&&!sa(I.parent),R)}function f(I,R=!1,M=!0,N=19,O=N===19?20:24){const U=Es(e,N,t),K=Es(e,O,t);return U&&K&&YQ(U,K,I,t,R,M)}function b(I){return I.length?jI(sb(I),"code"):void 0}function A(I){if(Rf(I.getStart(),I.getEnd(),t))return;const R=hc(I.getStart(),I.getEnd());return jI(R,"code",Dd(I))}}function got(e,t,r){const i=vot(e,t,r),o=Es(t,20,r);return i&&o&&YQ(i,o,e,r,e.kind!==219)}function YQ(e,t,r,i,o=!1,s=!0){const l=hc(s?e.getFullStart():e.getStart(i),t.getEnd());return jI(l,"code",Dd(r,i),o)}function jI(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function vot(e,t,r){if(Noe(e.parameters,r)){const i=Es(e,21,r);if(i)return i}return Es(t,19,r)}var Cwe,yot=T({"src/services/outliningElementsCollector.ts"(){ii(),Cwe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),$Q={};X($Q,{collectElements:()=>fot});var bot=T({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){yot()}});function Eot(e,t,r,i){const o=o5(Vd(t,r));if(Pwe(o)){const s=Sot(o,e.getTypeChecker(),t,e,i);if(s)return s}return QQ(m.You_cannot_rename_this_element)}function Sot(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(ds(e)){const A=i5(e,t);if(A&&(A.flags&128||A.flags&1048576&&Yn(A.types,I=>!!(I.flags&128))))return V_e(e.text,e.text,"string","",e,r)}else if(ZK(e)){const A=gc(e);return V_e(A,A,"label","",e,r)}return}const{declarations:l}=s;if(!l||l.length===0)return;if(l.some(A=>Tot(i,A)))return QQ(m.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(je(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(ds(e)&&$L(e))return o.allowRenameOfImportPath?Iot(e,r,s):void 0;const u=Aot(r,s,t,o);if(u)return QQ(u);const p=oy.getSymbolKind(t,s,e),h=rde(e)||nf(e)&&e.parent.kind===167?am(om(e)):void 0,f=h||t.symbolToString(s),b=h||t.getFullyQualifiedName(s);return V_e(f,b,p,oy.getSymbolModifiers(t,s),e,r)}function Tot(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Il(r.fileName,".d.ts")}function Aot(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&Tn(t.declarations,u=>np(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=Nwe(e.path);if(s===void 0)return St(o,l=>IO(l.getSourceFile().path))?m.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const l of o){const u=Nwe(l.getSourceFile().path);if(u){const p=Math.min(s.length,u.length);for(let h=0;h<=p;h++)if(Uu(s[h],u[h])!==0)return m.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function Nwe(e){const t=Gc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function Iot(e,t,r){if(!Qc(e.text))return QQ(m.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&Tn(r.declarations,Zi);if(!i)return;const o=Al(e.text,"/index")||Al(e.text,"/index.js")?void 0:Bne(Ad(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,p=yu(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:p}}function V_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:xot(o,s)}}function QQ(e){return{canRename:!1,localizedErrorMessage:wo(e)}}function xot(e,t){let r=e.getStart(t),i=e.getWidth(t);return ds(e)&&(r+=1,i-=2),yu(r,i)}function Pwe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return e5(e);default:return!1}}var Rot=T({"src/services/rename.ts"(){ii()}}),Bz={};X(Bz,{getRenameInfo:()=>Eot,nodeIsEligibleForRename:()=>Pwe});var Dot=T({"src/services/_namespaces/ts.Rename.ts"(){Rot()}});function Cot(e,t,r,i,o){const s=e.getTypeChecker(),l=a5(t,r);if(!l)return;const u=!!i&&i.kind==="characterTyped";if(u&&(NI(t,r,l)||Zv(t,r)))return;const p=!!i&&i.kind==="invoked",h=qot(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();const f=Not(h,s,t,l,u);return o.throwIfCancellationRequested(),f?s.runWithCancellationToken(o,b=>f.kind===0?zwe(f.candidates,f.resolvedSignature,h,t,b):Kot(f.symbol,h,t,b)):dd(t)?Mot(h,e,o):void 0}function Not({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Pot(o,e.node,i))return;const l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{const{called:l}=e;if(s&&!Mwe(o,i,je(l)?l.parent:l))return;const u=cX(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:Xa(u)};const p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return C.assertNever(e)}}function Pot(e,t,r){if(!I_(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return Nr(i,e);case 28:{const o=r5(e);return!!o&&Nr(i,o)}case 30:return Mwe(e,r,t.expression);default:return!1}}function Mot(e,t,r){if(e.invocation.kind===2)return;const i=Wwe(e.invocation),o=Fr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:qt(t.getSourceFiles(),l=>qt(l.getNamedDeclarations().get(o),u=>{const p=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),h=p&&p.getCallSignatures();if(h&&h.length)return s.runWithCancellationToken(r,f=>zwe(h,h[0],e,l,f,!0))}))}function Mwe(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=Dc(i,t,o,!0);if(s)return cf(r,s);o=o.parent}return C.fail("Could not find preceding token")}function Lot(e,t,r,i){const o=kwe(e,t,r,i);return!o||o.isTypeParameterList||o.invocation.kind!==0?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function Lwe(e,t,r,i){const o=kot(e,r,i);if(!o)return;const{list:s,argumentIndex:l}=o,u=Vot(i,s);l!==0&&C.assertLessThan(l,u);const p=Uot(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:p}}function kot(e,t,r){if(e.kind===30||e.kind===21)return{list:Jot(e.parent,e,t),argumentIndex:0};{const i=r5(e);return i&&{list:i,argumentIndex:Got(r,i,e)}}}function kwe(e,t,r,i){const{parent:o}=e;if(I_(o)){const s=o,l=Lwe(e,t,r,i);if(!l)return;const{list:u,argumentIndex:p,argumentCount:h,argumentsSpan:f}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:f,argumentIndex:p,argumentCount:h}}else{if(rI(e)&&a1(o))return pO(e,t,r)?U_e(o,0,r):void 0;if(iI(e)&&o.parent.kind===215){const s=o,l=s.parent;C.assert(s.kind===228);const u=pO(e,t,r)?0:1;return U_e(l,u,r)}else if(bP(o)&&a1(o.parent.parent)){const s=o,l=o.parent.parent;if($W(e)&&!pO(e,t,r))return;const u=s.parent.templateSpans.indexOf(s),p=jot(u,e,t,r);return U_e(l,p,r)}else if(ud(o)){const s=o.attributes.pos,l=wa(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:yu(s,l-s),argumentIndex:0,argumentCount:1}}else{const s=uX(e,r);if(s){const{called:l,nTypeArguments:u}=s,p={kind:1,called:l},h=hc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:h,argumentIndex:u,argumentCount:u+1}}return}}}function wot(e,t,r,i){return Oot(e,t,r,i)||kwe(e,t,r,i)}function wwe(e){return mr(e.parent)?wwe(e.parent):e}function j_e(e){return mr(e.left)?j_e(e.left)+1:2}function Oot(e,t,r,i){const o=Wot(e);if(o===void 0)return;const s=Fot(o,r,t,i);if(s===void 0)return;const{contextualType:l,argumentIndex:u,argumentCount:p,argumentsSpan:h}=s,f=l.getNonNullableType(),b=f.symbol;if(b===void 0)return;const A=el(f.getCallSignatures());return A===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:A,node:e,symbol:zot(b)},argumentsSpan:h,argumentIndex:u,argumentCount:p}}function Wot(e){switch(e.kind){case 21:case 28:return e;default:return zn(e.parent,t=>Io(t)?!0:ns(t)||dm(t)||i1(t)?!1:"quit")}}function Fot(e,t,r,i){const{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:const s=Lwe(e,r,t,i);if(!s)return;const{argumentIndex:l,argumentCount:u,argumentsSpan:p}=s,h=Kl(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return h&&{contextualType:h,argumentIndex:l,argumentCount:u,argumentsSpan:p};case 226:{const f=wwe(o),b=i.getContextualType(f),A=e.kind===21?0:j_e(o)-1,I=j_e(f);return b&&{contextualType:b,argumentIndex:A,argumentCount:I,argumentsSpan:Dd(o)}}default:return}}function zot(e){return e.name==="__type"&&qt(e.declarations,t=>{var r;return Th(t)?(r=ti(t.parent,x_))==null?void 0:r.symbol:void 0})||e}function Bot(e,t){const r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){const{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;const s=Br(i,l=>!(l&1));return s<0?o:s}return 0}function Got(e,t,r){return Owe(e,t,r)}function Vot(e,t){return Owe(e,t,void 0)}function Owe(e,t,r){const i=t.getChildren();let o=0,s=!1;for(const l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(n_(l)){o+=Bot(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&es(i).kind===28?o+1:o}function jot(e,t,r,i){return C.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),Gre(t)?pO(t,r,i)?0:e+2:e+1}function U_e(e,t,r){const i=rI(e.template)?1:e.template.templateSpans.length+1;return t!==0&&C.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Hot(e,r),argumentIndex:t,argumentCount:i}}function Uot(e,t){const r=e.getFullStart(),i=wa(t.text,e.getEnd(),!1);return yu(r,i-r)}function Hot(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===228&&es(r.templateSpans).literal.getFullWidth()===0&&(o=wa(t.text,o,!1)),yu(i,o-i)}function qot(e,t,r,i,o){for(let s=e;!Zi(s)&&(o||!Jo(s));s=s.parent){C.assert(cf(s.parent,s),"Not a subspan",()=>"Child: ".concat(C.formatSyntaxKind(s.kind),", parent: ").concat(C.formatSyntaxKind(s.parent.kind)));const l=wot(s,t,r,i);if(l)return l}}function Jot(e,t,r){const i=e.getChildren(r),o=i.indexOf(t);return C.assert(o>=0&&i.length>o+1),i[o+1]}function Wwe(e){return e.kind===0?o3(e.node):e.called}function Fwe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function zwe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,p,h){var f;const b=Fwe(s),A=s.kind===2?s.symbol:p.getSymbolAtLocation(Wwe(s))||h&&((f=t.declaration)==null?void 0:f.symbol),I=A?u2(p,A,h?u:void 0,void 0):et,R=Ot(e,K=>Yot(K,I,r,p,b,u));l!==0&&C.assertLessThan(l,i);let M=0,N=0;for(let K=0;K<R.length;K++){const ee=R[K];if(e[K]===t&&(M=N,ee.length>1)){let V=0;for(const se of ee){if(se.isVariadic||se.parameters.length>=i){M=N+V;break}V++}}N+=ee.length}C.assert(M!==-1);const O={items:sc(R,tl),applicableSpan:o,selectedItemIndex:M,argumentIndex:l,argumentCount:i},U=O.items[M];if(U.isVariadic){const K=Br(U.parameters,ee=>!!ee.isRest);-1<K&&K<U.parameters.length-1?O.argumentIndex=U.parameters.length:O.argumentIndex=Math.min(O.argumentIndex,U.parameters.length-1)}return O}function Kot(e,{argumentCount:t,argumentsSpan:r,invocation:i,argumentIndex:o},s,l){const u=l.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return u?{items:[Xot(e,u,l,Fwe(i),s)],applicableSpan:r,selectedItemIndex:0,argumentIndex:o,argumentCount:t}:void 0}function Xot(e,t,r,i,o){const s=u2(r,e),l=y1(),u=t.map(b=>Bwe(b,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,$u(30)],suffixDisplayParts:[$u(32)],separatorDisplayParts:H_e,parameters:u,documentation:p,tags:h}}function Yot(e,t,r,i,o,s){const l=(r?Qot:Zot)(e,i,o,s);return Ot(l,({isVariadic:u,parameters:p,prefix:h,suffix:f})=>{const b=[...t,...h],A=[...f,...$ot(e,o,i)],I=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:b,suffixDisplayParts:A,separatorDisplayParts:H_e,parameters:p,documentation:I,tags:R}})}function $ot(e,t,r){return lb(i=>{i.writePunctuation(":"),i.writeSpace(" ");const o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function Qot(e,t,r,i){const o=(e.target||e).typeParameters,s=y1(),l=(o||et).map(p=>Bwe(p,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,i8)]:[];return t.getExpandedParameters(e).map(p=>{const h=w.createNodeArray([...u,...Ot(p,b=>t.symbolToParameterDeclaration(b,r,i8))]),f=lb(b=>{s.writeList(2576,h,i,b)});return{isVariadic:!1,parameters:l,prefix:[$u(30)],suffix:[$u(32),...f]}})}function Zot(e,t,r,i){const o=y1(),s=lb(p=>{if(e.typeParameters&&e.typeParameters.length){const h=w.createNodeArray(e.typeParameters.map(f=>t.typeParameterToDeclaration(f,r,i8)));o.writeList(53776,h,i,p)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var h;return!!(p.length&&((h=ti(p[p.length-1],hh))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:u(p),parameters:p.map(h=>eat(h,t,r,i,o)),prefix:[...s,$u(21)],suffix:[$u(22)]}))}function eat(e,t,r,i,o){const s=lb(p=>{const h=t.symbolToParameterDeclaration(e,r,i8);o.writeNode(4,h,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),u=hh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:u}}function Bwe(e,t,r,i,o){const s=lb(l=>{const u=t.typeParameterToDeclaration(e,r,i8);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var i8,H_e,tat=T({"src/services/signatureHelp.ts"(){ii(),i8=70246400,H_e=[$u(28),Ol()]}}),o8={};X(o8,{getArgumentInfoForCompletions:()=>Lot,getSignatureHelpItems:()=>Cot});var nat=T({"src/services/_namespaces/ts.SignatureHelp.ts"(){tat()}});function rat(e,t){var r,i;let o={textSpan:hc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const p=oat(s);if(!p.length)break;for(let h=0;h<p.length;h++){const f=p[h-1],b=p[h],A=p[h+1];if(g0(b,t,!0)>e)break e;const I=ch(l0(t.text,b.end));if(I&&I.kind===2&&u(I.pos,I.end),iat(t,e,b)){if(fj(b)&&js(s)&&!Rf(b.getStart(t),b.getEnd(),t)&&l(b.getStart(t),b.getEnd()),Jo(b)||bP(b)||iI(b)||$W(b)||f&&iI(f)||qc(b)&&kl(s)||tD(b)&&qc(s)||ki(b)&&tD(s)&&p.length===1||f1(b)||N0(b)||XS(b)){s=b;break}if(bP(s)&&A&&R4(A)){const O=b.getFullStart()-2,U=A.getStart()+1;l(O,U)}const R=tD(b)&&aat(f)&&sat(A)&&!Rf(f.getStart(),A.getStart(),t);let M=R?f.getEnd():b.getStart();const N=R?A.getStart():lat(t,b);if(Fp(b)&&((r=b.jsDoc)!=null&&r.length)&&l(Xa(b.jsDoc).getStart(),N),tD(b)){const O=b.getChildren()[0];O&&Fp(O)&&((i=O.jsDoc)!=null&&i.length)&&O.getStart()!==b.pos&&(M=Math.min(M,Xa(O.jsDoc).getStart()))}l(M,N),(Ma(b)||LA(b))&&l(M+1,N-1),s=b;break}if(h===p.length-1)break e}}return o;function l(p,h){if(p!==h){const f=hc(p,h);(!o||!ND(f,o.textSpan)&&yre(f,e))&&(o={textSpan:f,...o&&{parent:o}})}}function u(p,h){l(p,h);let f=p;for(;t.text.charCodeAt(f)===47;)f++;l(f,h)}}function iat(e,t,r){return C.assert(r.pos<=t),t<r.end?!0:r.getEnd()===t?Vd(e,t).pos<r.end:!1}function oat(e){var t;if(Zi(e))return a8(e.getChildAt(0).getChildren(),Gwe);if(KR(e)){const[r,...i]=e.getChildren(),o=C.checkDefined(i.pop());C.assertEqual(r.kind,19),C.assertEqual(o.kind,20);const s=a8(i,u=>u===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=a8(s,({kind:u})=>u===23||u===168||u===24);return[r,s8(ZQ(l,({kind:u})=>u===59)),o]}if(Ep(e)){const r=a8(e.getChildren(),l=>l===e.name||Nr(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=ZQ(o,({kind:l})=>l===59);return i?[i,s8(s)]:s}if(Io(e)){const r=a8(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=a8(r,o=>o===r[0]||o===e.questionToken);return ZQ(i,({kind:o})=>o===64)}return ns(e)?ZQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function a8(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(s8(i)),i=void 0),r.push(o));return i&&r.push(s8(i)),r}function ZQ(e,t,r=!0){if(e.length<2)return e;const i=Br(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],l=es(e),u=r&&l.kind===27,p=e.slice(i+1,u?e.length-1:void 0),h=WM([o.length?s8(o):void 0,s,p.length?s8(p):void 0]);return u?h.concat(l):h}function s8(e){return C.assertGreaterThanOrEqual(e.length,1),bh(Rh.createSyntaxList(e),e[0].pos,es(e).end)}function aat(e){const t=e&&e.kind;return t===19||t===23||t===21||t===286}function sat(e){const t=e&&e.kind;return t===20||t===24||t===22||t===287}function lat(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Gwe,cat=T({"src/services/smartSelection.ts"(){ii(),Gwe=Qm(Oc,ru)}}),eZ={};X(eZ,{getSmartSelectionRange:()=>rat});var uat=T({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){cat()}});function Vwe(e,t,r){const i=jwe(e,t,r);if(i!=="")return i;const o=kR(t);return o&32?fl(t,231)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function jwe(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&Xa(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&bt(r)||VA(r))return"parameter";const o=kR(t);if(o&3)return DX(t)?"parameter":t.valueDeclaration&&dR(t.valueDeclaration)?"const":t.valueDeclaration&&kL(t.valueDeclaration)?"using":t.valueDeclaration&&LL(t.valueDeclaration)?"await using":He(t.declarations,X4)?"let":qwe(t)?"local var":"var";if(o&16)return qwe(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){const s=He(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function Uwe(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Le(r)&&L5(t)&&St(r,s=>!L5(s))?65536:0,o=o2(t,i);if(o)return o.split(",")}return[]}function dat(e,t){if(!t)return"";const r=new Set(Uwe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&He(Uwe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Wo(r.values()).join(","):""}function Hwe(e,t,r,i,o,s,l,u){var p;const h=[];let f=[],b=[];const A=kR(t);let I=l&1?jwe(e,t,o):"",R=!1;const M=o.kind===110&&s3(o)||VA(o);let N,O,U=!1;if(o.kind===110&&!M)return{displayParts:[Ip(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(I!==""||A&32||A&2097152){if(I==="getter"||I==="setter"){const he=Tn(t.declarations,Ae=>Ae.name===o);if(he)switch(he.kind){case 177:I="getter";break;case 178:I="setter";break;case 172:I="accessor";break;default:C.assertNever(he)}else I="property"}let Y;if(s!=null||(s=M?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){const he=o.parent.name;(he===o||he&&he.getFullWidth()===0)&&(o=o.parent)}let oe;if(I_(o)?oe=o:(XK(o)||r2(o)||o.parent&&(ud(o.parent)||a1(o.parent))&&Qo(t.valueDeclaration))&&(oe=o.parent),oe){Y=e.getResolvedSignature(oe);const he=oe.kind===214||sa(oe)&&oe.expression.kind===108,Ae=he?s.getConstructSignatures():s.getCallSignatures();if(Y&&!Nr(Ae,Y.target)&&!Nr(Ae,Y)&&(Y=Ae.length?Ae[0]:void 0),Y){switch(he&&A&32?(I="constructor",re(s.symbol,I)):A&2097152?(I="alias",_e(I),h.push(Ol()),he&&(Y.flags&4&&(h.push(Ip(128)),h.push(Ol())),h.push(Ip(105)),h.push(Ol())),G(t)):re(t,I),I){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push($u(59)),h.push(Ol()),!(Wr(s)&16)&&s.symbol&&(Ur(h,u2(e,s.symbol,i,void 0,5)),h.push(PD())),he&&(Y.flags&4&&(h.push(Ip(128)),h.push(Ol())),h.push(Ip(105)),h.push(Ol())),ye(Y,Ae,262144);break;default:ye(Y,Ae)}R=!0,U=Ae.length>1}}else if(rX(o)&&!(A&98304)||o.kind===137&&o.parent.kind===176){const he=o.parent;if(t.declarations&&Tn(t.declarations,de=>de===(o.kind===137?he.parent:he))){const de=he.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(he)?Y=de[0]:Y=e.getSignatureFromDeclaration(he),he.kind===176?(I="constructor",re(s.symbol,I)):re(he.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,I),Y&&ye(Y,de),R=!0,U=de.length>1}}}if(A&32&&!R&&!M&&(V(),fl(t,231)?_e("local class"):h.push(Ip(86)),h.push(Ol()),G(t),Q(t,r)),A&64&&l&2&&(ee(),h.push(Ip(120)),h.push(Ol()),G(t),Q(t,r)),A&524288&&l&2&&(ee(),h.push(Ip(156)),h.push(Ol()),G(t),Q(t,r),h.push(Ol()),h.push(c2(64)),h.push(Ol()),Ur(h,yO(e,o.parent&&zg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),A&384&&(ee(),St(t.declarations,Y=>D0(Y)&&BE(Y))&&(h.push(Ip(87)),h.push(Ol())),h.push(Ip(94)),h.push(Ol()),G(t)),A&1536&&!M){ee();const Y=fl(t,267),oe=Y&&Y.name&&Y.name.kind===80;h.push(Ip(oe?145:144)),h.push(Ol()),G(t)}if(A&262144&&l&2)if(ee(),h.push($u(21)),h.push(df("type parameter")),h.push($u(22)),h.push(Ol()),G(t),t.parent)se(),G(t.parent,i),Q(t.parent,i);else{const Y=fl(t,168);if(Y===void 0)return C.fail();const oe=Y.parent;if(oe)if(Qo(oe)){se();const he=e.getSignatureFromDeclaration(oe);oe.kind===180?(h.push(Ip(105)),h.push(Ol())):oe.kind!==179&&oe.name&&G(oe.symbol),Ur(h,PX(e,he,r,32))}else Lm(oe)&&(se(),h.push(Ip(156)),h.push(Ol()),G(oe.symbol),Q(oe.symbol,r))}if(A&8){I="enum member",re(t,"enum member");const Y=(p=t.declarations)==null?void 0:p[0];if((Y==null?void 0:Y.kind)===306){const oe=e.getConstantValue(Y);oe!==void 0&&(h.push(Ol()),h.push(c2(64)),h.push(Ol()),h.push(ip(vie(oe),typeof oe=="number"?7:8)))}}if(t.flags&2097152){if(ee(),!R||f.length===0&&b.length===0){const Y=e.getAliasedSymbol(t);if(Y!==t&&Y.declarations&&Y.declarations.length>0){const oe=Y.declarations[0],he=Po(oe);if(he&&!R){const Ae=H4(oe)&&$r(oe,128),de=t.name!=="default"&&!Ae,ie=Hwe(e,Y,jn(oe),oe,he,s,l,de?t:Y);h.push(...ie.displayParts),h.push(PD()),N=ie.documentation,O=ie.tags}else N=Y.getContextualDocumentationComment(oe,e),O=Y.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:h.push(Ip(95)),h.push(Ol()),h.push(Ip(145));break;case 277:h.push(Ip(95)),h.push(Ol()),h.push(Ip(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(Ip(95));break;default:h.push(Ip(102))}h.push(Ol()),G(t),He(t.declarations,Y=>{if(Y.kind===271){const oe=Y;if(v0(oe))h.push(Ol()),h.push(c2(64)),h.push(Ol()),h.push(Ip(149)),h.push($u(21)),h.push(ip(gc(xN(oe)),8)),h.push($u(22));else{const he=e.getSymbolAtLocation(oe.moduleReference);he&&(h.push(Ol()),h.push(c2(64)),h.push(Ol()),G(he,i))}return!0}})}if(!R)if(I!==""){if(s){if(M?(ee(),h.push(Ip(110))):re(t,I),I==="property"||I==="accessor"||I==="getter"||I==="setter"||I==="JSX attribute"||A&3||I==="local var"||I==="index"||I==="using"||I==="await using"||M){if(h.push($u(59)),h.push(Ol()),s.symbol&&s.symbol.flags&262144&&I!=="index"){const Y=lb(oe=>{const he=e.typeParameterToDeclaration(s,i,q_e);K().writeNode(4,he,jn(Do(i)),oe)});Ur(h,Y)}else Ur(h,yO(e,s,i));if(hh(t)&&t.links.target&&hh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const Y=t.links.target.links.tupleLabelDeclaration;C.assertNode(Y.name,je),h.push(Ol()),h.push($u(21)),h.push(df(Tr(Y.name))),h.push($u(22))}}else if(A&16||A&8192||A&16384||A&131072||A&98304||I==="method"){const Y=s.getNonNullableType().getCallSignatures();Y.length&&(ye(Y[0],Y),U=Y.length>1)}}}else I=Vwe(e,t,o);if(f.length===0&&!U&&(f=t.getContextualDocumentationComment(i,e)),f.length===0&&A&4&&t.parent&&t.declarations&&He(t.parent.declarations,Y=>Y.kind===312))for(const Y of t.declarations){if(!Y.parent||Y.parent.kind!==226)continue;const oe=e.getSymbolAtLocation(Y.parent.right);if(oe&&(f=oe.getDocumentationComment(e),b=oe.getJsDocTags(e),f.length>0))break}if(f.length===0&&je(o)&&t.valueDeclaration&&ns(t.valueDeclaration)){const Y=t.valueDeclaration,oe=Y.parent,he=Y.propertyName||Y.name;if(je(he)&&dm(oe)){const Ae=om(he),de=e.getTypeAtLocation(oe);f=qt(de.isUnion()?de.types:[de],ie=>{const ge=ie.getProperty(Ae);return ge?ge.getDocumentationComment(e):void 0})||et}}return b.length===0&&!U&&(b=t.getContextualJsDocTags(i,e)),f.length===0&&N&&(f=N),b.length===0&&O&&(b=O),{displayParts:h,documentation:f,symbolKind:I,tags:b.length===0?void 0:b};function K(){return y1()}function ee(){h.length&&h.push(PD()),V()}function V(){u&&(_e("alias"),h.push(Ol()))}function se(){h.push(Ol()),h.push(Ip(103)),h.push(Ol())}function G(Y,oe){let he;u&&Y===t&&(Y=u),I==="index"&&(he=e.getIndexInfosOfIndexSymbol(Y));let Ae=[];Y.flags&131072&&he?(Y.parent&&(Ae=u2(e,Y.parent)),Ae.push($u(23)),he.forEach((de,ie)=>{Ae.push(...yO(e,de.keyType)),ie!==he.length-1&&(Ae.push(Ol()),Ae.push($u(52)),Ae.push(Ol()))}),Ae.push($u(24))):Ae=u2(e,Y,oe||r,void 0,7),Ur(h,Ae),t.flags&16777216&&h.push($u(58))}function re(Y,oe){ee(),oe&&(_e(oe),Y&&!St(Y.declarations,he=>Us(he)||(Bs(he)||tu(he))&&!he.name)&&(h.push(Ol()),G(Y)))}function _e(Y){switch(Y){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":h.push(CX(Y));return;default:h.push($u(21)),h.push(CX(Y)),h.push($u(22));return}}function ye(Y,oe,he=0){Ur(h,PX(e,Y,i,he|32)),oe.length>1&&(h.push(Ol()),h.push($u(21)),h.push(c2(40)),h.push(ip((oe.length-1).toString(),7)),h.push(Ol()),h.push(df(oe.length===2?"overload":"overloads")),h.push($u(22))),f=Y.getDocumentationComment(e),b=Y.getJsDocTags(),oe.length>1&&f.length===0&&b.length===0&&(f=oe[0].getDocumentationComment(e),b=oe[0].getJsDocTags().filter(Ae=>Ae.name!=="deprecated"))}function Q(Y,oe){const he=lb(Ae=>{const de=e.symbolToTypeParameterDeclarations(Y,oe,q_e);K().writeList(53776,de,jn(Do(oe)),Ae)});Ur(h,he)}}function pat(e,t,r,i,o,s=oT(o),l){return Hwe(e,t,r,i,o,void 0,s,l)}function qwe(e){return e.parent?!1:He(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!VE(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var q_e,fat=T({"src/services/symbolDisplay.ts"(){ii(),q_e=70246400}}),oy={};X(oy,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>pat,getSymbolKind:()=>Vwe,getSymbolModifiers:()=>dat});var mat=T({"src/services/_namespaces/ts.SymbolDisplay.ts"(){fat()}});function Jwe(e){const t=e.__pos;return C.assert(typeof t=="number"),t}function J_e(e,t){C.assert(typeof t=="number"),e.__pos=t}function Kwe(e){const t=e.__end;return C.assert(typeof t=="number"),t}function K_e(e,t){C.assert(typeof t=="number"),e.__end=t}function Xwe(e,t){return wa(e,t,!1,!0)}function _at(e,t){let r=t;for(;r<e.length;){const i=e.charCodeAt(r);if(A_(i)){r++;continue}return i===47}return!1}function l8(e,t,r,i){return{pos:pT(e,t,i),end:KD(e,r,i)}}function pT(e,t,r,i=!1){var o,s;const{leadingTriviaOption:l}=r;if(l===0)return t.getStart(e);if(l===3){const I=t.getStart(e),R=fm(I,e);return sO(t,R)?R:I}if(l===2){const I=Wj(t,e.text);if(I!=null&&I.length)return fm(I[0].pos,e)}const u=t.getFullStart(),p=t.getStart(e);if(u===p)return p;const h=fm(u,e);if(fm(p,e)===h)return l===1?u:p;if(i){const I=((o=Zh(e.text,u))==null?void 0:o[0])||((s=l0(e.text,u))==null?void 0:s[0]);if(I)return wa(e.text,I.end,!0,!0)}const b=u>0?1:0;let A=Gy(WN(e,h)+b,e);return A=Xwe(e.text,A),Gy(WN(e,A),e)}function X_e(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=l0(e.text,i);if(s){const l=WN(e,t.end);for(const u of s){if(u.kind===2||WN(e,u.pos)>l)break;if(WN(e,u.end)>l)return wa(e.text,u.end,!0,!0)}}}}function KD(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const p=To(l0(e.text,o),Zh(e.text,o)),h=(i=p==null?void 0:p[p.length-1])==null?void 0:i.end;return h||o}const l=X_e(e,t,r);if(l)return l;const u=wa(e.text,o,!0);return u!==o&&(s===2||Hu(e.text.charCodeAt(u-1)))?u:o}function tZ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function hat(e){return Bs(e)||xc(e)}function gat(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function vat(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const r=e,i=t;return je(r.name)&&je(i.name)&&r.name.escapedText===i.name.escapedText?w.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return w.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return w.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function Y_e(e,t){return wa(e.text,pT(e,t,{leadingTriviaOption:1}),!1,!0)}function yat(e,t,r,i){const o=Y_e(e,i);if(r===void 0||Rf(KD(e,t,{}),o,e))return o;const s=Dc(i.getStart(e),e);if(tZ(t,s)){const l=Dc(t.getStart(e),e);if(tZ(r,l)){const u=wa(e.text,s.getEnd(),!0,!0);if(Rf(l.getStart(e),s.getStart(e),e))return Hu(e.text.charCodeAt(u-1))?u-1:u;if(Hu(e.text.charCodeAt(u)))return u}}return o}function bat(e,t){const r=Es(e,19,t),i=Es(e,20,t);return[r==null?void 0:r.end,i==null?void 0:i.end]}function nZ(e){return Wa(e)?e.properties:e.members}function $_e(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:o}=t[r];e="".concat(e.substring(0,i.start)).concat(o).concat(e.substring($l(i)))}return e}function Eat(e){return wa(e,0)===e.length}function rZ(e){const t=xn(e,rZ,Zwe,Sat,rZ),r=Ys(t)?t:Object.create(t);return bh(r,Jwe(e),Kwe(e)),r}function Sat(e,t,r,i,o){const s=Bn(e,t,r,i,o);if(!s)return s;C.assert(e);const l=s===e?w.createNodeArray(s.slice(0)):s;return bh(l,Jwe(e),Kwe(e)),l}function Ywe(e){let t=0;const r=pk(e),i=ie=>{ie&&J_e(ie,t)},o=ie=>{ie&&K_e(ie,t)},s=ie=>{ie&&J_e(ie,t)},l=ie=>{ie&&K_e(ie,t)},u=ie=>{ie&&J_e(ie,t)},p=ie=>{ie&&K_e(ie,t)};function h(ie,ge){if(ge||!Eat(ie)){t=r.getTextPos();let Ne=0;for(;Fg(ie.charCodeAt(ie.length-Ne-1));)Ne++;t-=Ne}}function f(ie){r.write(ie),h(ie,!1)}function b(ie){r.writeComment(ie)}function A(ie){r.writeKeyword(ie),h(ie,!1)}function I(ie){r.writeOperator(ie),h(ie,!1)}function R(ie){r.writePunctuation(ie),h(ie,!1)}function M(ie){r.writeTrailingSemicolon(ie),h(ie,!1)}function N(ie){r.writeParameter(ie),h(ie,!1)}function O(ie){r.writeProperty(ie),h(ie,!1)}function U(ie){r.writeSpace(ie),h(ie,!1)}function K(ie){r.writeStringLiteral(ie),h(ie,!1)}function ee(ie,ge){r.writeSymbol(ie,ge),h(ie,!1)}function V(ie){r.writeLine(ie)}function se(){r.increaseIndent()}function G(){r.decreaseIndent()}function re(){return r.getText()}function _e(ie){r.rawWrite(ie),h(ie,!1)}function ye(ie){r.writeLiteral(ie),h(ie,!0)}function Q(){return r.getTextPos()}function Y(){return r.getLine()}function oe(){return r.getColumn()}function he(){return r.getIndent()}function Ae(){return r.isAtStartOfLine()}function de(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:p,write:f,writeComment:b,writeKeyword:A,writeOperator:I,writePunctuation:R,writeTrailingSemicolon:M,writeParameter:N,writeProperty:O,writeSpace:U,writeStringLiteral:K,writeSymbol:ee,writeLine:V,increaseIndent:se,decreaseIndent:G,getText:re,rawWrite:_e,writeLiteral:ye,getTextPos:Q,getLine:Y,getColumn:oe,getIndent:he,isAtStartOfLine:Ae,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:de}}function Tat(e){let t;for(const h of e.statements)if(Cm(h))t=h;else break;let r=0;const i=e.text;if(t)return r=t.end,p(),r;const o=h4(i);o!==void 0&&(r=o.length,p());const s=Zh(i,r);if(!s)return r;let l,u;for(const h of s){if(h.kind===3){if(j4(i,h.pos)){l={range:h,pinnedOrTripleSlash:!0};continue}}else if(Sj(i,h.pos,h.end)){l={range:h,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const f=e.getLineAndCharacterOfPosition(h.pos).line,b=e.getLineAndCharacterOfPosition(l.range.end).line;if(f>=b+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const f=e.getLineAndCharacterOfPosition(h.end).line;if(u<f+2)break}l={range:h,pinnedOrTripleSlash:!1}}return l&&(r=l.range.end,p()),r;function p(){if(r<i.length){const h=i.charCodeAt(r);Hu(h)&&(r++,r<i.length&&h===13&&i.charCodeAt(r)===10&&r++)}}}function $we(e,t){return!Zv(e,t)&&!NI(e,t)&&!lX(e,t)&&!Fue(e,t)}function Aat(e,t){return(Ep(e)||Uo(e))&&D4(t)&&t.name.kind===167||TL(e)&&TL(t)}function Zg(e,t,r,i={leadingTriviaOption:1}){const o=pT(t,r,i),s=KD(t,r,i);e.deleteRange(t,{pos:o,end:s})}function c8(e,t,r,i){const o=C.checkDefined(Fc.SmartIndenter.getContainingList(i,r)),s=lR(o,i);if(C.assert(s!==-1),o.length===1){Zg(e,r,i);return}C.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:Y_e(r,i),end:s===o.length-1?KD(r,i,{}):yat(r,i,o[s-1],o[s+1])})}var Q_e,Z_e,I2,Qwe,iZ,Zwe,ehe,Iat=T({"src/services/textChanges.ts"(){ii(),Q_e=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Q_e||{}),Z_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(Z_e||{}),I2={leadingTriviaOption:0,trailingTriviaOption:0},Qwe=class Kbe{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Kbe(ny(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=Kbe.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){C.assertEqual(t.fileName,r.fileName);for(const i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:d5(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,l8(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(const s of r){const l=pT(t,s,i,o),u=KD(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!X_e(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:wa(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){const s=pT(t,r,o),l=KD(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){const s=pT(t,r,o),l=i===void 0?t.text.length:pT(t,i,o);this.deleteRange(t,{pos:s,end:l})}replaceRange(t,r,i,o={}){this.changes.push({kind:1,sourceFile:t,range:r,options:o,node:i})}replaceNode(t,r,i,o=I2){this.replaceRange(t,l8(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=I2){this.replaceRange(t,l8(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=I2){this.replaceRangeWithNodes(t,l8(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,l8(t,r,r,I2),i)}replaceNodeRangeWithNodes(t,r,i,o,s=I2){this.replaceRangeWithNodes(t,l8(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=I2){return!!X_e(t,r,i)}nextCommaToken(t,r){const i=S1(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){const o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,xf(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,xf(r),i,o)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){const o=Tat(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Hu(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Ao(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){const o=t.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,o,r,s)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=Zp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const o=$c(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,pT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,pT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Xa(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,w.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){const s=Gy(r,t),l=ode(t.text,s),u=$we(t,l),p=RD(t,u?l:i),h=t.text.slice(s,l),f="".concat(u?"":this.newLineCharacter,"//").concat(o).concat(this.newLineCharacter).concat(h);this.insertText(t,p.getStart(t),f)}insertJsdocCommentBefore(t,r,i){const o=r.getStart(t);if(r.jsDoc)for(const u of r.jsDoc)this.deleteRange(t,{pos:fm(u.getStart(t),t),end:KD(t,u,{})});const s=E5(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){const i=Pi(r.jsDoc,s=>No(s.comment)?w.createJSDocText(s.comment):s.comment),o=ch(r.jsDoc);return o&&Rf(o.pos,o.end,t)&&Le(i)===0?void 0:w.createNodeArray(oo(i,w.createJSDocText("\n")))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,gat(r),w.createJSDocComment(this.createJSDocText(t,r),w.createNodeArray(i)))}addJSDocTags(t,r,i){const o=sc(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,p)=>{const h=vat(u,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,rr(sc(r.jsDoc,o=>o.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,xf(r),i)}tryInsertTypeAnnotation(t,r,i){var s;let o;if(Qo(r)){if(o=Es(r,22,t),!o){if(!Us(r))return!1;o=Xa(r.parameters)}}else o=(s=r.kind===260?r.exclamationToken:r.questionToken)!=null?s:r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){const o=Es(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){const o=(Es(r,21,t)||Xa(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return qi(t)||Zc(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:ki(t)?{suffix:", "}:Io(t)?Io(r)?{suffix:", "}:{}:Ma(t)&&Oc(t.parent)||Kg(t)?{suffix:", "}:np(t)?{suffix:","+(i?this.newLineCharacter:" ")}:C.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const o=$c(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){const o=Tn(r.body.statements,s=>nu(s)&&IS(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){const o=el(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,w.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const o=pT(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Hu(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){var s;const o=(s=this.guessIndentationFromExistingMembers(t,r))!=null?s:this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,nZ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(const s of nZ(r)){if(W3(o,s,t))return;const l=s.getStart(t),u=Fc.SmartIndenter.findFirstNonWhitespaceColumn(fm(l,t),l,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;o=s}return i}computeIndentationForNewMember(t,r){var o;const i=r.getStart(t);return Fc.SmartIndenter.findFirstNonWhitespaceColumn(fm(i,t),i,t,this.formatContext.options)+((o=this.formatContext.options.indentSize)!=null?o:4)}getInsertNodeAtStartInsertOptions(t,r,i){const s=nZ(r).length===0,l=Pm(this.classesWithNodesInsertedAtStart,cs(r),{node:r,sourceFile:t}),u=Wa(r)&&(!rm(t)||!s),p=Wa(r)&&rm(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:u?",":hd(r)&&s?";":""}}insertNodeAfterComma(t,r,i){const o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){const o=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){const o=this.insertNodeAfterWorker(t,r,Xa(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return Aat(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,xf(r.end),w.createToken(27)),KD(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&qi(r)?i.prefix?"\n".concat(i.prefix):"\n":i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return C.assert(qi(t)||D4(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(C.assert(!r.name),r.kind===219){const o=Es(r,39,t),s=Es(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[w.createToken(100),w.createIdentifier(i)],{joiner:" "}),Zg(this,t,o)):(this.insertText(t,Xa(r.parameters).getStart(t),"function ".concat(i,"(")),this.replaceRange(t,o,w.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[w.createToken(19),w.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[w.createToken(27),w.createToken(20)],{joiner:" "}))}else{const o=Es(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,w.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){const s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Rf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=Fc.SmartIndenter.getContainingList(r,t)){if(!o){C.fail("node is not a list element");return}const s=lR(o,r);if(s<0)return;const l=r.getEnd();if(s!==o.length-1){const u=fo(t,r.end);if(u&&tZ(r,u)){const p=o[s+1],h=Xwe(t.text,p.getFullStart()),f="".concat(pa(u.kind)).concat(t.text.substring(u.end,h));this.insertNodesAt(t,h,[i],{suffix:f})}}else{const u=r.getStart(t),p=fm(u,t);let h,f=!1;if(o.length===1)h=28;else{const b=Dc(r.pos,t);h=tZ(r,b)?b.kind:28,f=fm(o[s-1].getStart(t),t)!==p}if((_at(t.text,r.end)||!Rf(o.pos,o.end,t))&&(f=!0),f){this.replaceRange(t,xf(l),w.createToken(h));const b=Fc.SmartIndenter.findFirstNonWhitespaceColumn(p,u,t,this.formatContext.options);let A=wa(t.text,l,!0,!1);for(;A!==l&&Hu(t.text.charCodeAt(A-1));)A--;this.replaceRange(t,xf(A),i,{indentation:b,prefix:this.newLineCharacter})}else this.replaceRange(t,xf(l),i,{prefix:"".concat(pa(h)," ")})}}parenthesizeExpression(t,r){this.replaceRange(t,jU(r),w.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,o]=bat(t,r);if(i!==void 0&&o!==void 0){const s=nZ(t).length===0,l=Rf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,xf(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&Mue(o.node,i))||(Ao(i)?this.deleteRange(r,UU(r,i)):ehe.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),o=Fc.SmartIndenter.getContainingList(r,i);if(r!==es(o))return;const s=zi(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:Y_e(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=iZ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(iZ.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(u,p,h,f){return Hi(YC(u,b=>b.sourceFile.path),b=>{const A=b[0].sourceFile,I=Cv(b,(M,N)=>M.range.pos-N.range.pos||M.range.end-N.range.end);for(let M=0;M<I.length-1;M++)C.assert(I[M].range.end<=I[M+1].range.pos,"Changes overlap",()=>"".concat(JSON.stringify(I[M].range)," and ").concat(JSON.stringify(I[M+1].range)));const R=Hi(I,M=>{var K,ee;const N=sb(M.range),O=M.kind===1?(K=jn(Ml(M.node)))!=null?K:M.sourceFile:M.kind===2&&(ee=jn(Ml(M.nodes[0])))!=null?ee:M.sourceFile,U=o(M,O,A,p,h,f);if(!(N.length===U.length&&gde(O.text,U,N.start)))return fO(N,U)});return R.length>0?{fileName:A.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,p,h,f){const b=i(Z3(u),p,h,f);return{fileName:u,textChanges:[fO(yu(0,0),b)],isNewFile:!0}}e.newFileChanges=r;function i(u,p,h,f){const b=Pi(p,R=>R.statements.map(M=>M===4?"":l(M,R.oldFile,h).text)).join(h),A=dw("any file name",b,{languageVersion:99,jsDocParsingMode:1},!0,u),I=Fc.formatDocument(A,f);return $_e(b,I)+h}e.newFileChangesWorker=i;function o(u,p,h,f,b,A){var I;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:R={},range:{pos:M}}=u,N=K=>s(K,p,h,M,R,f,b,A),O=u.kind===2?u.nodes.map(K=>Gx(N(K),f)).join(((I=u.options)==null?void 0:I.joiner)||f):N(u.node),U=R.indentation!==void 0||fm(M,p)===M?O:O.replace(/^\s+/,"");return(R.prefix||"")+U+(!R.suffix||Al(U,R.suffix)?"":R.suffix)}function s(u,p,h,f,{indentation:b,prefix:A,delta:I},R,M,N){const{node:O,text:U}=l(u,p,R);N&&N(O,U);const K=w5(M,p),ee=b!==void 0?b:Fc.SmartIndenter.getIndentation(f,h,K,A===R||fm(f,p)===f);I===void 0&&(I=Fc.SmartIndenter.shouldIndentChildNode(K,u)&&K.indentSize||0);const V={text:U,getLineAndCharacterOfPosition(G){return Ts(this,G)}},se=Fc.formatNodeGivenIndentation(O,V,p.languageVariant,ee,I,{...M,options:K});return $_e(U,se)}function l(u,p,h){const f=Ywe(h),b=xO(h);return O0({newLine:b,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},f).writeNode(4,u,p,f),{text:f.getText(),node:rZ(u)}}e.getNonformattedText=l})(iZ||(iZ={})),Zwe={...JP,factory:wk(JP.factory.flags|1,JP.factory.baseFactory)},(e=>{function t(s,l,u,p){switch(p.kind){case 169:{const I=p.parent;Us(I)&&I.parameters.length===1&&!Es(I,21,u)?s.replaceNodeWithText(u,p,"()"):c8(s,l,u,p);break}case 272:case 271:const h=u.imports.length&&p===Xa(u.imports).parent||p===Tn(u.statements,TS);Zg(s,u,p,{leadingTriviaOption:h?0:Fp(p)?2:3});break;case 208:const f=p.parent;f.kind===207&&p!==es(f.elements)?Zg(s,u,p):c8(s,l,u,p);break;case 260:o(s,l,u,p);break;case 168:c8(s,l,u,p);break;case 276:const A=p.parent;A.elements.length===1?i(s,u,A):c8(s,l,u,p);break;case 274:i(s,u,p);break;case 27:Zg(s,u,p,{trailingTriviaOption:0});break;case 100:Zg(s,u,p,{leadingTriviaOption:0});break;case 263:case 262:Zg(s,u,p,{leadingTriviaOption:Fp(p)?2:3});break;default:p.parent?Ah(p.parent)&&p.parent.name===p?r(s,u,p.parent):sa(p.parent)&&Nr(p.parent.arguments,p)?c8(s,l,u,p):Zg(s,u,p):Zg(s,u,p)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)Zg(s,l,u.parent);else{const p=u.name.getStart(l),h=fo(l,u.name.end);if(h&&h.kind===28){const f=wa(l.text,h.end,!1,!0);s.deleteRange(l,{pos:p,end:f})}else Zg(s,l,u.name)}}function i(s,l,u){if(u.parent.name){const p=C.checkDefined(fo(l,u.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:u.end})}else{const p=S0(u,272);Zg(s,l,p)}}function o(s,l,u,p){const{parent:h}=p;if(h.kind===299){s.deleteNodeRange(u,Es(h,21,u),Es(h,22,u));return}if(h.declarations.length!==1){c8(s,l,u,p);return}const f=h.parent;switch(f.kind){case 250:case 249:s.replaceNode(u,p,w.createObjectLiteralExpression());break;case 248:Zg(s,u,h);break;case 243:Zg(s,u,f,{leadingTriviaOption:Fp(f)?2:3});break;default:C.assertNever(f)}}})(ehe||(ehe={}))}}),_r={};X(_r,{ChangeTracker:()=>Qwe,LeadingTriviaOption:()=>Q_e,TrailingTriviaOption:()=>Z_e,applyChanges:()=>$_e,assignPositionsToNode:()=>rZ,createWriter:()=>Ywe,deleteNode:()=>Zg,isThisTypeAnnotatable:()=>hat,isValidLocationToAddComment:()=>$we});var xat=T({"src/services/_namespaces/ts.textChanges.ts"(){Iat()}}),the,nhe,Rat=T({"src/services/formatting/formattingContext.ts"(){ii(),the=(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))(the||{}),nhe=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=C.checkDefined(e),this.currentTokenParent=C.checkDefined(t),this.nextTokenSpan=C.checkDefined(r),this.nextTokenParent=C.checkDefined(i),this.contextNode=C.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=Es(e,19,this.sourceFile),r=Es(e,20,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function rhe(e,t,r,i,o){const s=t===1?tOe:eOe;s.setText(e),s.resetTokenState(r);let l=!0,u,p,h,f,b;const A=o({advance:I,readTokenInfo:V,readEOFTokenRange:G,isOnToken:re,isOnEOF:_e,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:Q,skipToStartOf:Y,getTokenFullStart:()=>{var oe;return(oe=b==null?void 0:b.token.pos)!=null?oe:s.getTokenStart()},getStartPos:()=>{var oe;return(oe=b==null?void 0:b.token.pos)!=null?oe:s.getTokenStart()}});return b=void 0,s.setText(void 0),A;function I(){b=void 0,s.getTokenFullStart()!==r?l=!!p&&es(p).kind===4:s.scan(),u=void 0,p=void 0;let he=s.getTokenFullStart();for(;he<i;){const Ae=s.getToken();if(!xR(Ae))break;s.scan();const de={pos:he,end:s.getTokenFullStart(),kind:Ae};he=s.getTokenFullStart(),u=Rn(u,de)}h=s.getTokenFullStart()}function R(oe){switch(oe.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}function M(oe){if(oe.parent)switch(oe.parent.kind){case 291:case 286:case 287:case 285:return Bd(oe.kind)||oe.kind===80}return!1}function N(oe){return nI(oe)||mg(oe)&&(b==null?void 0:b.token.kind)===12}function O(oe){return oe.kind===14}function U(oe){return oe.kind===17||oe.kind===18}function K(oe){return oe.parent&&F_(oe.parent)&&oe.parent.initializer===oe}function ee(oe){return oe===44||oe===69}function V(oe){C.assert(re());const he=R(oe)?1:O(oe)?2:U(oe)?3:M(oe)?4:N(oe)?5:K(oe)?6:0;if(b&&he===f)return ye(b,oe);s.getTokenFullStart()!==h&&(C.assert(b!==void 0),s.resetTokenState(h),s.scan());let Ae=se(oe,he);const de=lZ(s.getTokenFullStart(),s.getTokenEnd(),Ae);for(p&&(p=void 0);s.getTokenFullStart()<i&&(Ae=s.scan(),!!xR(Ae));){const ie=lZ(s.getTokenFullStart(),s.getTokenEnd(),Ae);if(p||(p=[]),p.push(ie),Ae===4){s.scan();break}}return b={leadingTrivia:u,trailingTrivia:p,token:de},ye(b,oe)}function se(oe,he){const Ae=s.getToken();switch(f=0,he){case 1:if(Ae===32){f=1;const de=s.reScanGreaterToken();return C.assert(oe.kind===de),de}break;case 2:if(ee(Ae)){f=2;const de=s.reScanSlashToken();return C.assert(oe.kind===de),de}break;case 3:if(Ae===20)return f=3,s.reScanTemplateToken(!1);break;case 4:return f=4,s.scanJsxIdentifier();case 5:return f=5,s.reScanJsxToken(!1);case 6:return f=6,s.reScanJsxAttributeValue();case 0:break;default:C.assertNever(he)}return Ae}function G(){return C.assert(_e()),lZ(s.getTokenFullStart(),s.getTokenEnd(),1)}function re(){const oe=b?b.token.kind:s.getToken();return oe!==1&&!xR(oe)}function _e(){return(b?b.token.kind:s.getToken())===1}function ye(oe,he){return CA(he)&&oe.token.kind!==he.kind&&(oe.token.kind=he.kind),oe}function Q(oe){s.resetTokenState(oe.end),h=s.getTokenFullStart(),f=void 0,b=void 0,l=!1,u=void 0,p=void 0}function Y(oe){s.resetTokenState(oe.pos),h=s.getTokenFullStart(),f=void 0,b=void 0,l=!1,u=void 0,p=void 0}}var eOe,tOe,Dat=T({"src/services/formatting/formattingScanner.ts"(){ii(),p8(),eOe=Ov(99,!1,0),tOe=Ov(99,!1,1)}}),Gz,ihe,ohe,Cat=T({"src/services/formatting/rule.ts"(){ii(),Gz=et,ihe=(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))(ihe||{}),ohe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(ohe||{})}});function nOe(){const e=[];for(let se=0;se<=165;se++)se!==1&&e.push(se);function t(...se){return{tokens:e.filter(G=>!se.some(re=>re===G)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=x2([...e,3]),o=x2([...e,1]),s=iOe(83,165),l=iOe(30,79),u=[103,104,165,130,142,152],p=[46,47,55,54],h=[9,10,80,21,23,19,110,105],f=[80,21,110,105],b=[80,22,24,105],A=[80,21,110,105],I=[80,22,24,105],R=[2,3],M=[80,...W5],N=i,O=x2([80,32,3,86,95,102]),U=x2([22,3,92,113,98,93,85]),K=[Kr("IgnoreBeforeComment",r,R,Gz,1),Kr("IgnoreAfterLineComment",2,r,Gz,1),Kr("NotSpaceBeforeColon",r,59,[Ki,Vz,sOe],16),Kr("SpaceAfterColon",59,r,[Ki,Vz,qat],4),Kr("NoSpaceBeforeQuestionMark",r,58,[Ki,Vz,sOe],16),Kr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Ki,Lat],4),Kr("NoSpaceAfterQuestionMark",58,r,[Ki,Mat],16),Kr("NoSpaceBeforeDot",r,[25,29],[Ki,ost],16),Kr("NoSpaceAfterDot",[25,29],r,[Ki],16),Kr("NoSpaceBetweenImportParenInImportType",102,21,[Ki,Uat],16),Kr("NoSpaceAfterUnaryPrefixOperator",p,h,[Ki,Vz],16),Kr("NoSpaceAfterUnaryPreincrementOperator",46,f,[Ki],16),Kr("NoSpaceAfterUnaryPredecrementOperator",47,A,[Ki],16),Kr("NoSpaceBeforeUnaryPostincrementOperator",b,46,[Ki,TOe],16),Kr("NoSpaceBeforeUnaryPostdecrementOperator",I,47,[Ki,TOe],16),Kr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ki,ub],4),Kr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ki,ub],4),Kr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ki,ub],4),Kr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ki,ub],4),Kr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ki,ub],4),Kr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ki,ub],4),Kr("NoSpaceAfterCloseBrace",20,[28,27],[Ki],16),Kr("NewLineBeforeCloseBraceInBlockContext",i,20,[cOe],8),Kr("SpaceAfterCloseBrace",20,t(22),[Ki,Oat],4),Kr("SpaceBetweenCloseBraceAndElse",20,93,[Ki],4),Kr("SpaceBetweenCloseBraceAndWhile",20,117,[Ki],4),Kr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ki,_Oe],16),Kr("SpaceAfterConditionalClosingParen",22,23,[jz],4),Kr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[pOe],16),Kr("SpaceAfterStarInGeneratorDeclaration",42,80,[pOe],4),Kr("SpaceAfterFunctionInFuncDecl",100,r,[fT],4),Kr("NewLineAfterOpenBraceInBlockContext",19,r,[cOe],8),Kr("SpaceAfterGetSetInMember",[139,153],80,[fT],4),Kr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ki,SOe],16),Kr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Ki,SOe],4),Kr("NoSpaceBetweenReturnAndSemicolon",107,27,[Ki],16),Kr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Ki],4),Kr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Ki,Xat],4),Kr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Ki,zat,Bat],16),Kr("SpaceBeforeBinaryKeywordOperator",r,u,[Ki,ub],4),Kr("SpaceAfterBinaryKeywordOperator",u,r,[Ki,ub],4),Kr("SpaceAfterVoidOperator",116,r,[Ki,est],4),Kr("SpaceBetweenAsyncAndOpenParen",134,21,[jat,Ki],4),Kr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ki],4),Kr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ki],16),Kr("SpaceBeforeJsxAttribute",r,80,[Hat,Ki],4),Kr("SpaceBeforeSlashInJsxOpeningElement",r,44,[yOe,Ki],4),Kr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[yOe,Ki],16),Kr("NoSpaceBeforeEqualInJsxAttribute",r,64,[gOe,Ki],16),Kr("NoSpaceAfterEqualInJsxAttribute",64,r,[gOe,Ki],16),Kr("NoSpaceBeforeJsxNamespaceColon",80,59,[vOe],16),Kr("NoSpaceAfterJsxNamespaceColon",59,80,[vOe],16),Kr("NoSpaceAfterModuleImport",[144,149],21,[Ki],16),Kr("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],r,[Ki],4),Kr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Ki],4),Kr("SpaceAfterModuleName",11,19,[Yat],4),Kr("SpaceBeforeArrow",r,39,[Ki],4),Kr("SpaceAfterArrow",39,r,[Ki],4),Kr("NoSpaceAfterEllipsis",26,80,[Ki],16),Kr("NoSpaceAfterOptionalParameters",58,[22,28],[Ki,Vz],16),Kr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Ki,$at],16),Kr("NoSpaceBeforeOpenAngularBracket",M,30,[Ki,Uz],16),Kr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Ki,Uz],16),Kr("NoSpaceAfterOpenAngularBracket",30,r,[Ki,Uz],16),Kr("NoSpaceBeforeCloseAngularBracket",r,32,[Ki,Uz],16),Kr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Ki,Uz,wat,Zat],16),Kr("SpaceBeforeAt",[22,80],60,[Ki],4),Kr("NoSpaceAfterAt",60,r,[Ki],16),Kr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Kat],4),Kr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Ki,tst],16),Kr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ki,Qat],16),Kr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ki],4)],ee=[Kr("SpaceAfterConstructor",137,21,[pf("insertSpaceAfterConstructor"),Ki],4),Kr("NoSpaceAfterConstructor",137,21,[V_("insertSpaceAfterConstructor"),Ki],16),Kr("SpaceAfterComma",28,r,[pf("insertSpaceAfterCommaDelimiter"),Ki,phe,Gat,Vat],4),Kr("NoSpaceAfterComma",28,r,[V_("insertSpaceAfterCommaDelimiter"),Ki,phe],16),Kr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[pf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),fT],4),Kr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[V_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),fT],16),Kr("SpaceAfterKeywordInControl",s,21,[pf("insertSpaceAfterKeywordsInControlFlowStatements"),jz],4),Kr("NoSpaceAfterKeywordInControl",s,21,[V_("insertSpaceAfterKeywordsInControlFlowStatements"),jz],16),Kr("SpaceAfterOpenParen",21,r,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ki],4),Kr("SpaceBeforeCloseParen",r,22,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ki],4),Kr("SpaceBetweenOpenParens",21,21,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ki],4),Kr("NoSpaceBetweenParens",21,22,[Ki],16),Kr("NoSpaceAfterOpenParen",21,r,[V_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ki],16),Kr("NoSpaceBeforeCloseParen",r,22,[V_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ki],16),Kr("SpaceAfterOpenBracket",23,r,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ki],4),Kr("SpaceBeforeCloseBracket",r,24,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ki],4),Kr("NoSpaceBetweenBrackets",23,24,[Ki],16),Kr("NoSpaceAfterOpenBracket",23,r,[V_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ki],16),Kr("NoSpaceBeforeCloseBracket",r,24,[V_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ki],16),Kr("SpaceAfterOpenBrace",19,r,[aOe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),lOe],4),Kr("SpaceBeforeCloseBrace",r,20,[aOe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),lOe],4),Kr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ki,_Oe],16),Kr("NoSpaceAfterOpenBrace",19,r,[ahe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ki],16),Kr("NoSpaceBeforeCloseBrace",r,20,[ahe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ki],16),Kr("SpaceBetweenEmptyBraceBrackets",19,20,[pf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Kr("NoSpaceBetweenEmptyBraceBrackets",19,20,[ahe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ki],16),Kr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[pf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),hOe],4,1),Kr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[pf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ki],4),Kr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[V_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),hOe],16,1),Kr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[V_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ki],16),Kr("SpaceAfterOpenBraceInJsxExpression",19,r,[pf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ki,aZ],4),Kr("SpaceBeforeCloseBraceInJsxExpression",r,20,[pf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ki,aZ],4),Kr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[V_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ki,aZ],16),Kr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[V_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ki,aZ],16),Kr("SpaceAfterSemicolonInFor",27,r,[pf("insertSpaceAfterSemicolonInForStatements"),Ki,lhe],4),Kr("NoSpaceAfterSemicolonInFor",27,r,[V_("insertSpaceAfterSemicolonInForStatements"),Ki,lhe],16),Kr("SpaceBeforeBinaryOperator",r,l,[pf("insertSpaceBeforeAndAfterBinaryOperators"),Ki,ub],4),Kr("SpaceAfterBinaryOperator",l,r,[pf("insertSpaceBeforeAndAfterBinaryOperators"),Ki,ub],4),Kr("NoSpaceBeforeBinaryOperator",r,l,[V_("insertSpaceBeforeAndAfterBinaryOperators"),Ki,ub],16),Kr("NoSpaceAfterBinaryOperator",l,r,[V_("insertSpaceBeforeAndAfterBinaryOperators"),Ki,ub],16),Kr("SpaceBeforeOpenParenInFuncDecl",r,21,[pf("insertSpaceBeforeFunctionParenthesis"),Ki,fT],4),Kr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[V_("insertSpaceBeforeFunctionParenthesis"),Ki,fT],16),Kr("NewLineBeforeOpenBraceInControl",U,19,[pf("placeOpenBraceOnNewLineForControlBlocks"),jz,dhe],8,1),Kr("NewLineBeforeOpenBraceInFunction",N,19,[pf("placeOpenBraceOnNewLineForFunctions"),fT,dhe],8,1),Kr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[pf("placeOpenBraceOnNewLineForFunctions"),fOe,dhe],8,1),Kr("SpaceAfterTypeAssertion",32,r,[pf("insertSpaceAfterTypeAssertion"),Ki,mhe],4),Kr("NoSpaceAfterTypeAssertion",32,r,[V_("insertSpaceAfterTypeAssertion"),Ki,mhe],16),Kr("SpaceBeforeTypeAnnotation",r,[58,59],[pf("insertSpaceBeforeTypeAnnotation"),Ki,che],4),Kr("NoSpaceBeforeTypeAnnotation",r,[58,59],[V_("insertSpaceBeforeTypeAnnotation"),Ki,che],16),Kr("NoOptionalSemicolon",27,o,[oOe("semicolons","remove"),rst],32),Kr("OptionalSemicolon",r,o,[oOe("semicolons","insert"),ist],64)],V=[Kr("NoSpaceBeforeSemicolon",r,27,[Ki],16),Kr("SpaceBeforeOpenBraceInControl",U,19,[she("placeOpenBraceOnNewLineForControlBlocks"),jz,fhe,uhe],4,1),Kr("SpaceBeforeOpenBraceInFunction",N,19,[she("placeOpenBraceOnNewLineForFunctions"),fT,oZ,fhe,uhe],4,1),Kr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[she("placeOpenBraceOnNewLineForFunctions"),fOe,fhe,uhe],4,1),Kr("NoSpaceBeforeComma",r,28,[Ki],16),Kr("NoSpaceBeforeOpenBracket",t(134,84),23,[Ki],16),Kr("NoSpaceAfterCloseBracket",24,r,[Ki,Jat],16),Kr("SpaceAfterSemicolon",27,r,[Ki],4),Kr("SpaceBetweenForAndAwaitKeyword",99,135,[Ki],4),Kr("SpaceBetweenStatements",[22,92,93,84],r,[Ki,phe,Nat],4),Kr("SpaceAfterTryCatchFinally",[113,85,98],19,[Ki],4)];return[...K,...ee,...V]}function Kr(e,t,r,i,o,s=0){return{leftTokenRange:rOe(t),rightTokenRange:rOe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function x2(e){return{tokens:e,isSpecific:!0}}function rOe(e){return typeof e=="number"?x2([e]):Ao(e)?x2(e):e}function iOe(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)Nr(r,o)||i.push(o);return x2(i)}function oOe(e,t){return r=>r.options&&r.options[e]===t}function pf(e){return t=>t.options&&Cs(t.options,e)&&!!t.options[e]}function ahe(e){return t=>t.options&&Cs(t.options,e)&&!t.options[e]}function V_(e){return t=>!t.options||!Cs(t.options,e)||!t.options[e]}function she(e){return t=>!t.options||!Cs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function aOe(e){return t=>!t.options||!Cs(t.options,e)||!!t.options[e]}function lhe(e){return e.contextNode.kind===248}function Nat(e){return!lhe(e)}function ub(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function Vz(e){return!ub(e)}function sOe(e){return!che(e)}function che(e){const t=e.contextNode.kind;return t===172||t===171||t===169||t===260||PA(t)}function Pat(e){return Uo(e.contextNode)&&e.contextNode.questionToken}function Mat(e){return!Pat(e)}function Lat(e){return e.contextNode.kind===227||e.contextNode.kind===194}function uhe(e){return e.TokensAreOnSameLine()||oZ(e)}function lOe(e){return e.contextNode.kind===206||e.contextNode.kind===200||kat(e)}function dhe(e){return oZ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function cOe(e){return uOe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function kat(e){return uOe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function uOe(e){return dOe(e.contextNode)}function oZ(e){return dOe(e.nextTokenParent)}function dOe(e){if(mOe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function fT(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function wat(e){return!fT(e)}function pOe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function fOe(e){return mOe(e.contextNode)}function mOe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Oat(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function jz(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function _Oe(e){return e.contextNode.kind===210}function Wat(e){return e.contextNode.kind===213}function Fat(e){return e.contextNode.kind===214}function zat(e){return Wat(e)||Fat(e)}function Bat(e){return e.currentTokenSpan.kind!==28}function Gat(e){return e.nextTokenSpan.kind!==24}function Vat(e){return e.nextTokenSpan.kind!==22}function jat(e){return e.contextNode.kind===219}function Uat(e){return e.contextNode.kind===205}function Ki(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function hOe(e){return e.contextNode.kind!==12}function phe(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function aZ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function Hat(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function gOe(e){return e.contextNode.kind===291}function qat(e){return e.nextTokenParent.kind!==295}function vOe(e){return e.nextTokenParent.kind===295}function yOe(e){return e.contextNode.kind===285}function Jat(e){return!fT(e)&&!oZ(e)}function Kat(e){return e.TokensAreOnSameLine()&&If(e.contextNode)&&bOe(e.currentTokenParent)&&!bOe(e.nextTokenParent)}function bOe(e){for(;e&&bt(e);)e=e.parent;return e&&e.kind===170}function Xat(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function fhe(e){return e.formattingRequestKind!==2}function Yat(e){return e.contextNode.kind===267}function $at(e){return e.contextNode.kind===187}function Qat(e){return e.contextNode.kind===180}function EOe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function Uz(e){return EOe(e.currentTokenSpan,e.currentTokenParent)||EOe(e.nextTokenSpan,e.nextTokenParent)}function mhe(e){return e.contextNode.kind===216}function Zat(e){return!mhe(e)}function est(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function SOe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function tst(e){return e.contextNode.kind===235}function TOe(e){return!nst(e)}function nst(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function rst(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(xR(t)){const s=e.nextTokenParent===e.currentTokenParent?S1(e.currentTokenParent,zn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!Ep(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Uo(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function ist(e){return x5(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function ost(e){return!Fr(e.contextNode)||!bp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var ast=T({"src/services/formatting/rules.ts"(){ii(),p8()}});function sst(e,t){return{options:e,getRules:lst(),host:t}}function lst(){return _he===void 0&&(_he=ust(nOe())),_he}function cst(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function ust(e){const t=dst(e);return r=>{const i=t[AOe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const l of i){const u=~cst(s);l.action&u&&Yn(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function dst(e){const t=new Array(sZ*sZ),r=new Array(t.length);for(const i of e){const o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const s of i.leftTokenRange.tokens)for(const l of i.rightTokenRange.tokens){const u=AOe(s,l);let p=t[u];p===void 0&&(p=t[u]=[]),pst(p,i.rule,o,r,u)}}return t}function AOe(e,t){return C.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*sZ+t}function pst(e,t,r,i,o){const s=t.action&3?r?0:R2.StopRulesAny:t.context!==Gz?r?R2.ContextRulesSpecific:R2.ContextRulesAny:r?R2.NoContextRulesSpecific:R2.NoContextRulesAny,l=i[o]||0;e.splice(fst(l,s),0,t),i[o]=mst(l,s)}function fst(e,t){let r=0;for(let i=0;i<=t;i+=XD)r+=e&Hz,e>>=XD;return r}function mst(e,t){const r=(e>>t&Hz)+1;return C.assert((r&Hz)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Hz<<t)|r<<t}var _he,XD,Hz,sZ,R2,_st=T({"src/services/formatting/rulesMap.ts"(){ii(),p8(),XD=5,Hz=31,sZ=166,R2=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=XD*1]="StopRulesAny",e[e.ContextRulesSpecific=XD*2]="ContextRulesSpecific",e[e.ContextRulesAny=XD*3]="ContextRulesAny",e[e.NoContextRulesSpecific=XD*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=XD*5]="NoContextRulesAny",e))(R2||{})}});function lZ(e,t,r){const i={pos:e,end:t,kind:r};return C.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>C.formatSyntaxKind(r)}),i}function hst(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=DL(i,t);for(;A_(t.text.charCodeAt(o));)o--;Hu(t.text.charCodeAt(o))&&o--;const s={pos:Gy(i-1,t),end:o+1};return qz(s,t,r,2)}function gst(e,t,r){const i=hhe(e,27,t);return IOe(ghe(i),t,r,3)}function vst(e,t,r){const i=hhe(e,19,t);if(!i)return[];const o=i.parent,s=ghe(o),l={pos:fm(s.getStart(t),t),end:e};return qz(l,t,r,4)}function yst(e,t,r){const i=hhe(e,20,t);return IOe(ghe(i),t,r,5)}function bst(e,t){const r={pos:0,end:e.text.length};return qz(r,e,t,0)}function Est(e,t,r,i){const o={pos:fm(e,r),end:t};return qz(o,r,i,1)}function hhe(e,t,r){const i=Dc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function ghe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Sst(t.parent,t);)t=t.parent;return t}function Sst(e,t){switch(e.kind){case 263:case 264:return cf(e.members,t);case 267:const r=e.body;return!!r&&r.kind===268&&cf(r.statements,t);case 312:case 241:case 268:return cf(e.statements,t);case 299:return cf(e.block.statements,t)}return!1}function Tst(e,t){return r(t);function r(i){const o=Vo(i,s=>iX(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function Ast(e,t){if(!e.length)return o;const r=e.filter(s=>i2(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;const l=r[i];if(s.end<=l.start)return!1;if(n5(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function Ist(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const o=Dc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function xst(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(j_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function Rst(e,t,r,i,o,s){const l={pos:e.pos,end:e.end};return rhe(t.text,r,l.pos,l.end,u=>xOe(l,e,i,o,u,s,1,p=>!1,t))}function IOe(e,t,r,i){if(!e)return[];const o={pos:fm(e.getStart(t),t),end:e.end};return qz(o,t,r,i)}function qz(e,t,r,i){const o=Tst(e,t);return rhe(t.text,t.languageVariant,Ist(o,e,t),e.end,s=>xOe(e,o,j_.getIndentationForNode(o,e,t,r.options),xst(o,r.options,t),s,r,i,Ast(t.parseDiagnostics,e),t))}function xOe(e,t,r,i,o,{options:s,getRules:l,host:u},p,h,f){var b;const A=new nhe(f,p,s);let I,R,M,N,O,U=-1;const K=[];if(o.advance(),o.isOnToken()){const be=f.getLineAndCharacterOfPosition(t.getStart(f)).line;let Ue=be;If(t)&&(Ue=f.getLineAndCharacterOfPosition(Tj(t,f)).line),_e(t,t,be,Ue,r,i)}const ee=o.getCurrentLeadingTrivia();if(ee){const be=j_.nodeWillIndentChild(s,t,void 0,f,!1)?r+s.indentSize:r;ye(ee,be,!0,Ue=>{Y(Ue,f.getLineAndCharacterOfPosition(Ue.pos),t,t,void 0),he(Ue.pos,be,!1)}),s.trimTrailingWhitespace!==!1&&qe(ee)}if(R&&o.getTokenFullStart()>=e.end){const be=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(be&&be.pos===I){const Ue=((b=Dc(be.end,f,t))==null?void 0:b.parent)||M;oe(be,f.getLineAndCharacterOfPosition(be.pos).line,Ue,R,N,M,Ue,void 0)}}return K;function V(be,Ue,it,Ft,gt){if(i2(Ft,be,Ue)||cO(Ft,be,Ue)){if(gt!==-1)return gt}else{const Qe=f.getLineAndCharacterOfPosition(be).line,It=fm(be,f),on=j_.findFirstNonWhitespaceColumn(It,be,f,s);if(Qe!==it||be===on){const $t=j_.getBaseIndentation(s);return $t>on?$t:on}}return-1}function se(be,Ue,it,Ft,gt,Qe){const It=j_.shouldIndentChildNode(s,be)?s.indentSize:0;return Qe===Ue?{indentation:Ue===O?U:gt.getIndentation(),delta:Math.min(s.indentSize,gt.getDelta(be)+It)}:it===-1?be.kind===21&&Ue===O?{indentation:U,delta:gt.getDelta(be)}:j_.childStartsOnTheSameLineWithElseInIfStatement(Ft,be,Ue,f)||j_.childIsUnindentedBranchOfConditionalExpression(Ft,be,Ue,f)||j_.argumentStartsOnSameLineAsPreviousArgument(Ft,be,Ue,f)?{indentation:gt.getIndentation(),delta:It}:{indentation:gt.getIndentation()+gt.getDelta(be),delta:It}:{indentation:it,delta:It}}function G(be){if(km(be)){const Ue=Tn(be.modifiers,xa,Br(be.modifiers,Su));if(Ue)return Ue.kind}switch(be.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(be.asteriskToken)return 42;case 172:case 169:const Ue=Po(be);if(Ue)return Ue.kind}}function re(be,Ue,it,Ft){return{getIndentationForComment:(It,on,$t)=>{switch(It){case 20:case 24:case 22:return it+Qe($t)}return on!==-1?on:it},getIndentationForToken:(It,on,$t,Cn)=>!Cn&>(It,on,$t)?it+Qe($t):it,getIndentation:()=>it,getDelta:Qe,recomputeIndentation:(It,on)=>{j_.shouldIndentChildNode(s,on,be,f)&&(it+=It?s.indentSize:-s.indentSize,Ft=j_.shouldIndentChildNode(s,be)?s.indentSize:0)}};function gt(It,on,$t){switch(on){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch($t.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if($t.kind!==200)return!1;break}return Ue!==It&&!(If(be)&&on===G(be))}function Qe(It){return j_.nodeWillIndentChild(s,be,It,f,!0)?Ft:0}}function _e(be,Ue,it,Ft,gt,Qe){if(!i2(e,be.getStart(f),be.getEnd()))return;const It=re(be,it,gt,Qe);let on=Ue;for(Vo(be,yn=>{$t(yn,-1,be,It,it,Ft,!1)},yn=>{Cn(yn,be,it,It)});o.isOnToken()&&o.getTokenFullStart()<e.end;){const yn=o.readTokenInfo(be);if(yn.token.end>Math.min(be.end,e.end))break;Hn(yn,be,It,be)}function $t(yn,tn,en,gi,ho,Gi,xo,Qn){if(C.assert(!Ys(yn)),Gl(yn)||_ie(en,yn))return tn;const Di=yn.getStart(f),Ir=f.getLineAndCharacterOfPosition(Di).line;let Xt=Ir;If(yn)&&(Xt=f.getLineAndCharacterOfPosition(Tj(yn,f)).line);let nt=-1;if(xo&&cf(e,en)&&(nt=V(Di,yn.end,ho,e,tn),nt!==-1&&(tn=nt)),!i2(e,yn.pos,yn.end))return yn.end<e.pos&&o.skipToEndOf(yn),tn;if(yn.getFullWidth()===0)return tn;for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const oi=o.readTokenInfo(be);if(oi.token.end>e.end)return tn;if(oi.token.end>Di){oi.token.pos>Di&&o.skipToStartOf(yn);break}Hn(oi,be,gi,be)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return tn;if(CA(yn)){const oi=o.readTokenInfo(yn);if(yn.kind!==12)return C.assert(oi.token.end===yn.end,"Token end is child end"),Hn(oi,be,gi,yn),tn}const Bt=yn.kind===170?Ir:Gi,Dn=se(yn,Ir,nt,be,gi,Bt);return _e(yn,on,Ir,Xt,Dn.indentation,Dn.delta),on=be,Qn&&en.kind===209&&tn===-1&&(tn=Dn.indentation),tn}function Cn(yn,tn,en,gi){C.assert(wE(yn)),C.assert(!Ys(yn));const ho=Dst(tn,yn);let Gi=gi,xo=en;if(!i2(e,yn.pos,yn.end)){yn.end<e.pos&&o.skipToEndOf(yn);return}if(ho!==0)for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const Ir=o.readTokenInfo(tn);if(Ir.token.end>yn.pos)break;if(Ir.token.kind===ho){xo=f.getLineAndCharacterOfPosition(Ir.token.pos).line,Hn(Ir,tn,gi,tn);let Xt;if(U!==-1)Xt=U;else{const nt=fm(Ir.token.pos,f);Xt=j_.findFirstNonWhitespaceColumn(nt,Ir.token.pos,f,s)}Gi=re(tn,en,Xt,s.indentSize)}else Hn(Ir,tn,gi,tn)}let Qn=-1;for(let Ir=0;Ir<yn.length;Ir++){const Xt=yn[Ir];Qn=$t(Xt,Qn,be,Gi,xo,xo,!0,Ir===0)}const Di=Cst(ho);if(Di!==0&&o.isOnToken()&&o.getTokenFullStart()<e.end){let Ir=o.readTokenInfo(tn);Ir.token.kind===28&&(Hn(Ir,tn,Gi,tn),Ir=o.isOnToken()?o.readTokenInfo(tn):void 0),Ir&&Ir.token.kind===Di&&cf(tn,Ir.token)&&Hn(Ir,tn,Gi,tn,!0)}}function Hn(yn,tn,en,gi,ho){C.assert(cf(tn,yn.token));const Gi=o.lastTrailingTriviaWasNewLine();let xo=!1;yn.leadingTrivia&&Q(yn.leadingTrivia,tn,on,en);let Qn=0;const Di=cf(e,yn.token),Ir=f.getLineAndCharacterOfPosition(yn.token.pos);if(Di){const Xt=h(yn.token),nt=R;if(Qn=Y(yn.token,Ir,tn,on,en),!Xt)if(Qn===0){const Bt=nt&&f.getLineAndCharacterOfPosition(nt.end).line;xo=Gi&&Ir.line!==Bt}else xo=Qn===1}if(yn.trailingTrivia&&(I=es(yn.trailingTrivia).end,Q(yn.trailingTrivia,tn,on,en)),xo){const Xt=Di&&!h(yn.token)?en.getIndentationForToken(Ir.line,yn.token.kind,gi,!!ho):-1;let nt=!0;if(yn.leadingTrivia){const Bt=en.getIndentationForComment(yn.token.kind,Xt,gi);nt=ye(yn.leadingTrivia,Bt,nt,Dn=>he(Dn.pos,Bt,!1))}Xt!==-1&&nt&&(he(yn.token.pos,Xt,Qn===1),O=Ir.line,U=Xt)}o.advance(),on=tn}}function ye(be,Ue,it,Ft){for(const gt of be){const Qe=cf(e,gt);switch(gt.kind){case 3:Qe&&ie(gt,Ue,!it),it=!1;break;case 2:it&&Qe&&Ft(gt),it=!1;break;case 4:it=!0;break}}return it}function Q(be,Ue,it,Ft){for(const gt of be)if(u5(gt.kind)&&cf(e,gt)){const Qe=f.getLineAndCharacterOfPosition(gt.pos);Y(gt,Qe,Ue,it,Ft)}}function Y(be,Ue,it,Ft,gt){const Qe=h(be);let It=0;if(!Qe)if(R)It=oe(be,Ue.line,it,R,N,M,Ft,gt);else{const on=f.getLineAndCharacterOfPosition(e.pos);ge(on.line,Ue.line)}return R=be,I=be.end,M=it,N=Ue.line,It}function oe(be,Ue,it,Ft,gt,Qe,It,on){A.updateContext(Ft,Qe,be,it,It);const $t=l(A);let Cn=A.options.trimTrailingWhitespace!==!1,Hn=0;return $t?jt($t,yn=>{if(Hn=At(yn,Ft,gt,be,Ue),on)switch(Hn){case 2:it.getStart(f)===be.pos&&on.recomputeIndentation(!1,It);break;case 1:it.getStart(f)===be.pos&&on.recomputeIndentation(!0,It);break;default:C.assert(Hn===0)}Cn=Cn&&!(yn.action&16)&&yn.flags!==1}):Cn=Cn&&be.kind!==1,Ue!==gt&&Cn&&ge(gt,Ue,Ft),Hn}function he(be,Ue,it){const Ft=vhe(Ue,s);if(it)Ce(be,0,Ft);else{const gt=f.getLineAndCharacterOfPosition(be),Qe=Gy(gt.line,f);(Ue!==Ae(Qe,gt.character)||de(Ft,Qe))&&Ce(Qe,gt.character,Ft)}}function Ae(be,Ue){let it=0;for(let Ft=0;Ft<Ue;Ft++)f.text.charCodeAt(be+Ft)===9?it+=s.tabSize-it%s.tabSize:it++;return it}function de(be,Ue){return be!==f.text.substr(Ue,be.length)}function ie(be,Ue,it,Ft=!0){let gt=f.getLineAndCharacterOfPosition(be.pos).line;const Qe=f.getLineAndCharacterOfPosition(be.end).line;if(gt===Qe){it||he(be.pos,Ue,!1);return}const It=[];let on=be.pos;for(let tn=gt;tn<Qe;tn++){const en=DL(tn,f);It.push({pos:on,end:en}),on=Gy(tn+1,f)}if(Ft&&It.push({pos:on,end:be.end}),It.length===0)return;const $t=Gy(gt,f),Cn=j_.findFirstNonWhitespaceCharacterAndColumn($t,It[0].pos,f,s);let Hn=0;it&&(Hn=1,gt++);const yn=Ue-Cn.column;for(let tn=Hn;tn<It.length;tn++,gt++){const en=Gy(gt,f),gi=tn===0?Cn:j_.findFirstNonWhitespaceCharacterAndColumn(It[tn].pos,It[tn].end,f,s),ho=gi.column+yn;if(ho>0){const Gi=vhe(ho,s);Ce(en,gi.character,Gi)}else Me(en,gi.character)}}function ge(be,Ue,it){for(let Ft=be;Ft<Ue;Ft++){const gt=Gy(Ft,f),Qe=DL(Ft,f);if(it&&(u5(it.kind)||dX(it.kind))&&it.pos<=Qe&&it.end>Qe)continue;const It=Ne(gt,Qe);It!==-1&&(C.assert(It===gt||!A_(f.text.charCodeAt(It-1))),Me(It,Qe+1-It))}}function Ne(be,Ue){let it=Ue;for(;it>=be&&A_(f.text.charCodeAt(it));)it--;return it!==Ue?it+1:-1}function qe(be){let Ue=R?R.end:e.pos;for(const it of be)u5(it.kind)&&(Ue<it.pos&&Ee(Ue,it.pos-1,R),Ue=it.end+1);Ue<e.end&&Ee(Ue,e.end,R)}function Ee(be,Ue,it){const Ft=f.getLineAndCharacterOfPosition(be).line,gt=f.getLineAndCharacterOfPosition(Ue).line;ge(Ft,gt+1,it)}function Me(be,Ue){Ue&&K.push(p5(be,Ue,""))}function Ce(be,Ue,it){(Ue||it)&&K.push(p5(be,Ue,it))}function Oe(be,Ue){K.push(p5(be,0,Ue))}function At(be,Ue,it,Ft,gt){const Qe=gt!==it;switch(be.action){case 1:return 0;case 16:if(Ue.end!==Ft.pos)return Me(Ue.end,Ft.pos-Ue.end),Qe?2:0;break;case 32:Me(Ue.pos,Ue.end-Ue.pos);break;case 8:if(be.flags!==1&&it!==gt)return 0;if(gt-it!==1)return Ce(Ue.end,Ft.pos-Ue.end,ny(u,s)),Qe?0:1;break;case 4:if(be.flags!==1&&it!==gt)return 0;if(Ft.pos-Ue.end!==1||f.text.charCodeAt(Ue.end)!==32)return Ce(Ue.end,Ft.pos-Ue.end," "),Qe?2:0;break;case 64:Oe(Ue.end,";")}return 0}}function ROe(e,t,r,i=fo(e,t)){const o=zn(i,i_);if(o&&(i=o.parent),i.getStart(e)<=t&&t<i.getEnd())return;r=r===null?void 0:r===void 0?Dc(t,e):r;const l=r&&l0(e.text,r.end),u=Oj(i,e),p=To(l,u);return p&&Tn(p,h=>lO(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function Dst(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function Cst(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function vhe(e,t){if((!cZ||cZ.tabSize!==t.tabSize||cZ.indentSize!==t.indentSize)&&(cZ={tabSize:t.tabSize,indentSize:t.indentSize},u8=d8=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return d8||(d8=[]),d8[o]===void 0?(i=_O(" ",t.indentSize*o),d8[o]=i):i=d8[o],s?i+_O(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return u8||(u8=[]),u8[i]===void 0?u8[i]=s=_O(" ",i):s=u8[i],o?s+_O(" ",o):s}}var cZ,u8,d8,Nst=T({"src/services/formatting/formatting.ts"(){ii(),p8()}}),j_,Pst=T({"src/services/formatting/smartIndenter.ts"(){ii(),p8(),(e=>{let t;(ie=>{ie[ie.Unknown=-1]="Unknown"})(t||(t={}));function r(ie,ge,Ne,qe=!1){if(ie>ge.text.length)return u(Ne);if(Ne.indentStyle===0)return 0;const Ee=Dc(ie,ge,void 0,!0),Me=ROe(ge,ie,Ee||null);if(Me&&Me.kind===3)return i(ge,ie,Ne,Me);if(!Ee)return u(Ne);if(dX(Ee.kind)&&Ee.getStart(ge)<=ie&&ie<Ee.end)return 0;const Oe=ge.getLineAndCharacterOfPosition(ie).line,At=fo(ge,ie),be=At.kind===19&&At.parent.kind===210;if(Ne.indentStyle===1||be)return o(ge,ie,Ne);if(Ee.kind===28&&Ee.parent.kind!==226){const it=f(Ee,ge,Ne);if(it!==-1)return it}const Ue=ee(ie,Ee.parent,ge);if(Ue&&!cf(Ue,Ee)){const Ft=[218,219].includes(At.parent.kind)?0:Ne.indentSize;return G(Ue,ge,Ne)+Ft}return s(ge,ie,Ee,Oe,qe,Ne)}e.getIndentation=r;function i(ie,ge,Ne,qe){const Ee=Ts(ie,ge).line-1,Me=Ts(ie,qe.pos).line;if(C.assert(Me>=0),Ee<=Me)return Y(Gy(Me,ie),ge,ie,Ne);const Ce=Gy(Ee,ie),{column:Oe,character:At}=Q(Ce,ge,ie,Ne);return Oe===0?Oe:ie.text.charCodeAt(Ce+At)===42?Oe-1:Oe}function o(ie,ge,Ne){let qe=ge;for(;qe>0;){const Me=ie.text.charCodeAt(qe);if(!Fg(Me))break;qe--}const Ee=fm(qe,ie);return Y(Ee,qe,ie,Ne)}function s(ie,ge,Ne,qe,Ee,Me){let Ce,Oe=Ne;for(;Oe;){if(oX(Oe,ge,ie)&&Ae(Me,Oe,Ce,ie,!0)){const be=R(Oe,ie),Ue=I(Ne,Oe,qe,ie),it=Ue!==0?Ee&&Ue===2?Me.indentSize:0:qe!==be.line?Me.indentSize:0;return p(Oe,be,void 0,it,ie,!0,Me)}const At=re(Oe,ie,Me,!0);if(At!==-1)return At;Ce=Oe,Oe=Oe.parent}return u(Me)}function l(ie,ge,Ne,qe){const Ee=Ne.getLineAndCharacterOfPosition(ie.getStart(Ne));return p(ie,Ee,ge,0,Ne,!1,qe)}e.getIndentationForNode=l;function u(ie){return ie.baseIndentSize||0}e.getBaseIndentation=u;function p(ie,ge,Ne,qe,Ee,Me,Ce){var Oe;let At=ie.parent;for(;At;){let be=!0;if(Ne){const gt=ie.getStart(Ee);be=gt<Ne.pos||gt>Ne.end}const Ue=h(At,ie,Ee),it=Ue.line===ge.line||N(At,ie,ge.line,Ee);if(be){const gt=(Oe=K(ie,Ee))==null?void 0:Oe[0],Qe=!!gt&&R(gt,Ee).line>Ue.line;let It=re(ie,Ee,Ce,Qe);if(It!==-1||(It=b(ie,At,ge,it,Ee,Ce),It!==-1))return It+qe}Ae(Ce,At,ie,Ee,Me)&&!it&&(qe+=Ce.indentSize);const Ft=M(At,ie,ge.line,Ee);ie=At,At=ie.parent,ge=Ft?Ee.getLineAndCharacterOfPosition(ie.getStart(Ee)):Ue}return qe+u(Ce)}function h(ie,ge,Ne){const qe=K(ge,Ne),Ee=qe?qe.pos:ie.getStart(Ne);return Ne.getLineAndCharacterOfPosition(Ee)}function f(ie,ge,Ne){const qe=Lue(ie);return qe&&qe.listItemIndex>0?_e(qe.list.getChildren(),qe.listItemIndex-1,ge,Ne):-1}function b(ie,ge,Ne,qe,Ee,Me){return(Ju(ie)||TL(ie))&&(ge.kind===312||!qe)?ye(Ne,Ee,Me):-1}let A;(ie=>{ie[ie.Unknown=0]="Unknown",ie[ie.OpenBrace=1]="OpenBrace",ie[ie.CloseBrace=2]="CloseBrace"})(A||(A={}));function I(ie,ge,Ne,qe){const Ee=S1(ie,ge,qe);if(!Ee)return 0;if(Ee.kind===19)return 1;if(Ee.kind===20){const Me=R(Ee,qe).line;return Ne===Me?2:0}return 0}function R(ie,ge){return ge.getLineAndCharacterOfPosition(ie.getStart(ge))}function M(ie,ge,Ne,qe){if(!(sa(ie)&&Nr(ie.arguments,ge)))return!1;const Ee=ie.expression.getEnd();return Ts(qe,Ee).line===Ne}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=M;function N(ie,ge,Ne,qe){if(ie.kind===245&&ie.elseStatement===ge){const Ee=Es(ie,93,qe);return C.assert(Ee!==void 0),R(Ee,qe).line===Ne}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=N;function O(ie,ge,Ne,qe){if(YR(ie)&&(ge===ie.whenTrue||ge===ie.whenFalse)){const Ee=Ts(qe,ie.condition.end).line;if(ge===ie.whenTrue)return Ne===Ee;{const Me=R(ie.whenTrue,qe).line,Ce=Ts(qe,ie.whenTrue.end).line;return Ee===Me&&Ce===Ne}}return!1}e.childIsUnindentedBranchOfConditionalExpression=O;function U(ie,ge,Ne,qe){if(I_(ie)){if(!ie.arguments)return!1;const Ee=Tn(ie.arguments,At=>At.pos===ge.pos);if(!Ee)return!1;const Me=ie.arguments.indexOf(Ee);if(Me===0)return!1;const Ce=ie.arguments[Me-1],Oe=Ts(qe,Ce.getEnd()).line;if(Ne===Oe)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=U;function K(ie,ge){return ie.parent&&V(ie.getStart(ge),ie.getEnd(),ie.parent,ge)}e.getContainingList=K;function ee(ie,ge,Ne){return ge&&V(ie,ie,ge,Ne)}function V(ie,ge,Ne,qe){switch(Ne.kind){case 183:return Ee(Ne.typeArguments);case 210:return Ee(Ne.properties);case 209:return Ee(Ne.elements);case 187:return Ee(Ne.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Ee(Ne.typeParameters)||Ee(Ne.parameters);case 177:return Ee(Ne.parameters);case 263:case 231:case 264:case 265:case 352:return Ee(Ne.typeParameters);case 214:case 213:return Ee(Ne.typeArguments)||Ee(Ne.arguments);case 261:return Ee(Ne.declarations);case 275:case 279:return Ee(Ne.elements);case 206:case 207:return Ee(Ne.elements)}function Ee(Me){return Me&&cO(se(Ne,Me,qe),ie,ge)?Me:void 0}}function se(ie,ge,Ne){const qe=ie.getChildren(Ne);for(let Ee=1;Ee<qe.length-1;Ee++)if(qe[Ee].pos===ge.pos&&qe[Ee].end===ge.end)return{pos:qe[Ee-1].end,end:qe[Ee+1].getStart(Ne)};return ge}function G(ie,ge,Ne){return ie?ye(ge.getLineAndCharacterOfPosition(ie.pos),ge,Ne):-1}function re(ie,ge,Ne,qe){if(ie.parent&&ie.parent.kind===261)return-1;const Ee=K(ie,ge);if(Ee){const Me=Ee.indexOf(ie);if(Me!==-1){const Ce=_e(Ee,Me,ge,Ne);if(Ce!==-1)return Ce}return G(Ee,ge,Ne)+(qe?Ne.indentSize:0)}return-1}function _e(ie,ge,Ne,qe){C.assert(ge>=0&&ge<ie.length);const Ee=ie[ge];let Me=R(Ee,Ne);for(let Ce=ge-1;Ce>=0;Ce--){if(ie[Ce].kind===28)continue;if(Ne.getLineAndCharacterOfPosition(ie[Ce].end).line!==Me.line)return ye(Me,Ne,qe);Me=R(ie[Ce],Ne)}return-1}function ye(ie,ge,Ne){const qe=ge.getPositionOfLineAndCharacter(ie.line,0);return Y(qe,qe+ie.character,ge,Ne)}function Q(ie,ge,Ne,qe){let Ee=0,Me=0;for(let Ce=ie;Ce<ge;Ce++){const Oe=Ne.text.charCodeAt(Ce);if(!A_(Oe))break;Oe===9?Me+=qe.tabSize+Me%qe.tabSize:Me++,Ee++}return{column:Me,character:Ee}}e.findFirstNonWhitespaceCharacterAndColumn=Q;function Y(ie,ge,Ne,qe){return Q(ie,ge,Ne,qe).column}e.findFirstNonWhitespaceColumn=Y;function oe(ie,ge,Ne,qe,Ee){var Ce;const Me=Ne?Ne.kind:0;switch(ge.kind){case 244:case 263:case 231:case 264:case 266:case 265:case 209:case 241:case 268:case 210:case 187:case 200:case 189:case 217:case 211:case 213:case 214:case 243:case 277:case 253:case 227:case 207:case 206:case 286:case 289:case 285:case 294:case 173:case 179:case 180:case 169:case 184:case 185:case 196:case 215:case 223:case 279:case 275:case 281:case 276:case 172:case 296:case 297:return!0;case 269:return(Ce=ie.indentSwitchCase)!=null?Ce:!0;case 260:case 303:case 226:if(!ie.indentMultiLineObjectLiteralBeginningOnBlankLine&&qe&&Me===210)return de(qe,Ne);if(ge.kind===226&&qe&&Ne&&Me===284){const Oe=qe.getLineAndCharacterOfPosition(wa(qe.text,ge.pos)).line,At=qe.getLineAndCharacterOfPosition(wa(qe.text,Ne.pos)).line;return Oe!==At}if(ge.kind!==226)return!0;break;case 246:case 247:case 249:case 250:case 248:case 245:case 262:case 218:case 174:case 176:case 177:case 178:return Me!==241;case 219:return qe&&Me===217?de(qe,Ne):Me!==241;case 278:return Me!==279;case 272:return Me!==273||!!Ne.namedBindings&&Ne.namedBindings.kind!==275;case 284:return Me!==287;case 288:return Me!==290;case 193:case 192:if(Me===187||Me===189)return!1;break}return Ee}e.nodeWillIndentChild=oe;function he(ie,ge){switch(ie){case 253:case 257:case 251:case 252:return ge.kind!==241;default:return!1}}function Ae(ie,ge,Ne,qe,Ee=!1){return oe(ie,ge,Ne,qe,!1)&&!(Ee&&Ne&&he(Ne.kind,ge))}e.shouldIndentChildNode=Ae;function de(ie,ge){const Ne=wa(ie.text,ge.pos),qe=ie.getLineAndCharacterOfPosition(Ne).line,Ee=ie.getLineAndCharacterOfPosition(ge.end).line;return qe===Ee}})(j_||(j_={}))}}),Fc={};X(Fc,{FormattingContext:()=>nhe,FormattingRequestKind:()=>the,RuleAction:()=>ihe,RuleFlags:()=>ohe,SmartIndenter:()=>j_,anyContext:()=>Gz,createTextRangeWithKind:()=>lZ,formatDocument:()=>bst,formatNodeGivenIndentation:()=>Rst,formatOnClosingCurly:()=>yst,formatOnEnter:()=>hst,formatOnOpeningCurly:()=>vst,formatOnSemicolon:()=>gst,formatSelection:()=>Est,getAllRules:()=>nOe,getFormatContext:()=>sst,getFormattingScanner:()=>rhe,getIndentationString:()=>vhe,getRangeOfEnclosingComment:()=>ROe});var p8=T({"src/services/_namespaces/ts.formatting.ts"(){Rat(),Dat(),Cat(),ast(),_st(),Nst(),Pst()}}),ii=T({"src/services/_namespaces/ts.ts"(){ta(),tO(),Fqe(),lJe(),pJe(),tCe(),AJe(),IJe(),MJe(),VJe(),jJe(),HJe(),ZJe(),eKe(),E$e(),S$e(),I$e(),H$e(),J$e(),Ra(),h_e(),C_e(),Tit(),Dit(),Hit(),ICe(),qCe(),pot(),bot(),Nh(),Dot(),nat(),uat(),mat(),xat(),p8()}});function Mst(){return uZ!=null?uZ:uZ=new Tm(Te)}function DOe(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+="'".concat(e,"' "),s+=i?"has been deprecated since v".concat(i):"is deprecated",s+=t?" and can no longer be used.":r?" and will no longer be usable after v".concat(r,"."):".",s+=o?" ".concat(dg(o,[e])):"",s}function Lst(e,t,r,i){const o=DOe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function kst(e,t,r,i){let o=!1;return()=>{COe&&!o&&(C.log.warn(DOe(e,!1,t,r,i)),o=!0)}}function wst(e,t={}){var p,h;const r=typeof t.typeScriptVersion=="string"?new Tm(t.typeScriptVersion):(p=t.typeScriptVersion)!=null?p:Mst(),i=typeof t.errorAfter=="string"?new Tm(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new Tm(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new Tm(t.since):(h=t.since)!=null?h:o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?Lst(e,i,s,t.message):u?kst(e,i,s,t.message):ts}function Ost(e,t){return function(){return e(),t.apply(this,arguments)}}function yhe(e,t){var i;const r=wst((i=t==null?void 0:t.name)!=null?i:C.getFunctionName(e),t);return Ost(r,e)}var COe,uZ,NOe=T({"src/deprecatedCompat/deprecate.ts"(){pZ(),COe=!0}});function dZ(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(const l of Object.keys(i)){const u=+l;!isNaN(u)&&Cs(t,"".concat(u))&&(t[u]=yhe(t[u],{...i[u],name:e}))}const o=Wst(t,r);return s;function s(...l){const u=o(l),p=u!==void 0?t[u]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function Wst(e,t){return r=>{for(let i=0;Cs(e,"".concat(i))&&Cs(t,"".concat(i));i++){const o=t[i];if(o(r))return i}}}function POe(e){return{overload:t=>({bind:r=>({finish:()=>dZ(e,t,r),deprecate:i=>({finish:()=>dZ(e,t,r,i)})})})}}var Fst=T({"src/deprecatedCompat/deprecations.ts"(){pZ(),NOe()}}),zst=T({"src/deprecatedCompat/5.0/identifierProperties.ts"(){pZ(),NOe(),Foe(e=>{const t=e.getIdentifierConstructor();Cs(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:yhe(function(){return p0(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Cs(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:yhe(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),pZ=T({"src/deprecatedCompat/_namespaces/ts.ts"(){ta(),Fst(),zst()}}),Bst=T({"src/typingsInstallerCore/_namespaces/ts.ts"(){ta(),tO(),Ehe()}});function MOe(e,t,r,i){try{const o=dD(t,Yr(e,"index.d.ts"),{moduleResolution:2},r);return o.resolvedModule&&o.resolvedModule.resolvedFileName}catch(o){i.isEnabled()&&i.writeLine("Failed to resolve ".concat(t," in folder '").concat(e,"': ").concat(o.message));return}}function Gst(e,t,r,i){let o=!1;for(let s=r.length;s>0;){const l=LOe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function LOe(e,t,r,i){const o=r.length-i;let s,l=i;for(;s="".concat(e," install --ignore-scripts ").concat((l===r.length?r:r.slice(o,o+l)).join(" "),' --save-dev --user-agent="typesInstaller/').concat(t,'"'),!(s.length<8e3);)l=l-Math.floor(l/2);return{command:s,remaining:i-l}}function kOe(e){return"@types/".concat(e,"@ts").concat(ue)}var wOe,OOe,Vst=T({"src/typingsInstallerCore/typingsInstaller.ts"(){Bst(),Ehe(),wOe={isEnabled:()=>!1,writeLine:ts},OOe=class{constructor(e,t,r,i,o,s=wOe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=o,this.log=s,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 '".concat(t,"', safe file path '").concat(r,"', types map path ").concat(i)),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});const r={kind:H7,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:C.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine("Closing file watchers for project '".concat(e,"'")),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine("No watchers are registered for project '".concat(e,"'"));return}this.projectWatchers.delete(e),this.sendResponse({kind:n2,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine("Closing file watchers for project '".concat(e,"' - done."))}install(e){this.log.isEnabled()&&this.log.writeLine("Got install request".concat(F0(e))),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine("Request specifies cache path '".concat(e.cachePath,"', loading cached information...")),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();const t=G_.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=xm(ri(t),u=>{if(this.installTypingHost.fileExists(Yr(u,"package.json")))return u})||o;if(l)this.installWorker(-1,[r],l,u=>{const p=u?"Package ".concat(r," installed."):"There was an error installing ".concat(r,"."),h={kind:eO,projectName:i,id:s,success:u,message:p};this.sendResponse(h)});else{const u={kind:eO,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=G_.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine("Loaded safelist from types map file '".concat(this.typesMapLocation,"'")),this.safeList=e;return}this.log.writeLine("Failed to load safelist from types map file '".concat(this.typesMapLocation,"'"))}this.safeList=G_.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine("Processing cache location '".concat(e,"'")),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const t=Yr(e,"package.json"),r=Yr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine("Trying to find '".concat(t,"'...")),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){const i=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine("Loaded content of '".concat(t,"':").concat(F0(i))),this.log.writeLine("Loaded content of '".concat(r,"':").concat(F0(o)))),i.devDependencies&&o.dependencies)for(const s in i.devDependencies){if(!Cs(o.dependencies,s))continue;const l=lc(s);if(!l)continue;const u=MOe(e,l,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(l);continue}const p=this.packageNameToTypingLocation.get(l);if(p){if(p.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine("New typing for package ".concat(l," from '").concat(u,"' conflicts with existing typing file '").concat(p,"'"))}this.log.isEnabled()&&this.log.writeLine("Adding entry into typings cache: '".concat(l,"' => '").concat(u,"'"));const h=k6(o.dependencies,s),f=h&&h.version;if(!f)continue;const b={typingLocation:u,version:new Tm(f)};this.packageNameToTypingLocation.set(l,b)}}this.log.isEnabled()&&this.log.writeLine("Finished processing cache location '".concat(e,"'")),this.knownCachesSet.add(e)}filterTypings(e){return Hi(e,t=>{const r=fD(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine("'".concat(t,"':: '").concat(r,"' is in missingTypingsSet - skipping..."));return}const i=G_.validatePackageName(t);if(i!==G_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(G_.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine("'".concat(t,"':: Entry for package '").concat(r,"' does not exist in local types registry - skipping..."));return}if(this.packageNameToTypingLocation.get(r)&&G_.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine("'".concat(t,"':: '").concat(r,"' already has an up-to-date typing - skipping..."));return}return r})}ensurePackageDirectoryExists(e){const t=Yr(e,"package.json");this.log.isEnabled()&&this.log.writeLine("Npm config file: ".concat(t)),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine("Npm config file: '".concat(t,"' is missing, creating new one...")),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine("Installing typings ".concat(JSON.stringify(i)));const o=this.filterTypings(i);if(o.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:q7,eventId:s,typingsInstallerVersion:Te,projectName:e.projectName});const l=o.map(kOe);this.installTypingsAsync(s,l,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine("install request failed, marking packages as missing to prevent repeated requests: ".concat(JSON.stringify(o)));for(const h of o)this.missingTypingsSet.add(h);return}this.log.isEnabled()&&this.log.writeLine("Installed typings ".concat(JSON.stringify(l)));const p=[];for(const h of o){const f=MOe(t,h,this.installTypingHost,this.log);if(!f){this.missingTypingsSet.add(h);continue}const b=this.typesRegistry.get(h),A=new Tm(b["ts".concat(ue)]||b[this.latestDistTag]),I={typingLocation:f,version:A};this.packageNameToTypingLocation.set(h,I),p.push(f)}this.log.isEnabled()&&this.log.writeLine("Installed typing files ".concat(JSON.stringify(p))),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{const p={kind:J7,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Te};this.sendResponse(p)}})}ensureDirectoryExists(e,t){const r=ri(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}const r=this.projectWatchers.get(e),i=new Set(t);!r||gh(i,o=>!r.has(o))||gh(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:n2,projectName:e,files:t})):this.sendResponse({kind:n2,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Qw}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),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,t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),bhe={};X(bhe,{TypingsInstaller:()=>OOe,getNpmCommandForInstallation:()=>LOe,installNpmPackages:()=>Gst,typingsName:()=>kOe});var jst=T({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){Vst()}}),Ehe=T({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){K7(),jst()}}),Ust=T({"src/server/types.ts"(){}});function She(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function ml(e){return ha(e)}function f8(e,t,r){const i=_p(e)?e:yo(e,t);return r(i)}function WOe(e){return e}function FOe(){const e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function The(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Ahe(e){return"/dev/null/inferredProject".concat(e,"*")}function Ihe(e){return"/dev/null/autoImportProviderProject".concat(e,"*")}function xhe(e){return"/dev/null/auxiliaryProject".concat(e,"*")}function Rhe(){return[]}var fZ,Ec,mZ,ay,Hst=T({"src/server/utilitiesPublic.ts"(){db(),fZ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(fZ||{}),Ec=Rhe(),mZ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(mZ||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(o,s){throw new Error("Project '".concat(s.getProjectName(),"' does not contain document '").concat(o,"'"))}e.ThrowProjectDoesNotContainDocument=i})(ay||(ay={}))}});function _Z(e){const t=lc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function zOe(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}const i=Nv(e,t,tl,r);i>=0&&e.splice(i,1)}var hZ,gZ,qst=T({"src/server/utilities.ts"(){db(),_T(),hZ=class w7e{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){const o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(w7e.run,r,t,this,i)),this.logger&&this.logger.info("Scheduled: ".concat(t).concat(o?", Cancelled earlier one":""))}cancel(t){const r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){var o,s;(o=ad)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info("Running: ".concat(t)),i(),(s=ad)==null||s.logStopScheduledOperation()}},gZ=class O7e{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(O7e.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=ad)==null||r.logStartScheduledOperation("GC collect");const o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){const l=t.host.getMemoryUsage();t.logger.perftrc("GC::before ".concat(s,", after ").concat(l))}(i=ad)==null||i.logStopScheduledOperation()}}}}),vZ,Dhe,Che,Nhe,Phe,Mhe,Lhe,khe,whe,Ohe,Whe,Fhe,zhe,Bhe,Ghe=T({"src/server/protocol.ts"(){vZ=(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.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))(vZ||{}),Dhe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(Dhe||{}),Che=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Che||{}),Nhe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Nhe||{}),Phe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Phe||{}),Mhe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Mhe||{}),Lhe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(Lhe||{}),khe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(khe||{}),whe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(whe||{}),Ohe=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(Ohe||{}),Whe=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(Whe||{}),Fhe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Fhe||{}),zhe=(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.ESNext="ESNext",e))(zhe||{}),Bhe=(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))(Bhe||{})}}),Vhe={};X(Vhe,{ClassificationType:()=>Bhe,CommandTypes:()=>vZ,CompletionTriggerKind:()=>Mhe,IndentStyle:()=>Lhe,JsxEmit:()=>whe,ModuleKind:()=>Ohe,ModuleResolutionKind:()=>Whe,NewLineKind:()=>Fhe,OrganizeImportsMode:()=>Dhe,PollingWatchKind:()=>Phe,ScriptTarget:()=>zhe,SemicolonPreference:()=>khe,WatchDirectoryKind:()=>Nhe,WatchFileKind:()=>Che});var Jst=T({"src/server/_namespaces/ts.server.protocol.ts"(){Ghe()}});function m8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&lc(e)[0]==="^"||e.includes(":^")&&!e.includes(ol)}function BOe(e){return!e||h8(e)?ay.ThrowNoProject():e}function Kst(e){C.assert(typeof e=="number","Expected position ".concat(e," to be a number.")),C.assert(e>=0,"Expected position to be non-negative.")}function Xst(e){C.assert(typeof e.line=="number","Expected line ".concat(e.line," to be a number.")),C.assert(typeof e.offset=="number","Expected offset ".concat(e.offset," to be a number.")),C.assert(e.line>0,"Expected line to be non-".concat(e.line===0?"zero":"negative")),C.assert(e.offset>0,"Expected offset to be non-".concat(e.offset===0?"zero":"negative"))}var yZ,bZ,Yst=T({"src/server/scriptInfo.ts"(){db(),_T(),yZ=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?"SVC-".concat(this.version,"-").concat(this.svc.getSnapshotVersion()):"Text-".concat(this.version)}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}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,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return C.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=DD(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}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 t;var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||((t=this.textSnapshot)!=null?t:this.textSnapshot=Y7.fromString(C.checkDefined(this.text)))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const r=this.getLineMap(),i=r[e],o=e+1<r.length?r[e+1]:this.text.length;return hc(i,o)}lineOffsetToPosition(e,t,r){const i=this.tryUseScriptVersionCache();return i?i.lineOffsetToPosition(e,t):m4(this.getLineMap(),e-1,t-1,this.text,r)}positionToLineOffset(e){const t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);const{line:r,character:i}=Xx(this.getLineMap(),e);return{line:r+1,offset:i+1}}getFileTextAndSize(e){let t;const r=e||this.info.fileName,i=()=>t===void 0?t=this.host.readFile(r)||"":t;if(!XA(this.info.fileName)){const o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>$z)return C.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info("Skipped loading contents of large file ".concat(r," for info ").concat(this.info.fileName,": fileSize: ").concat(o)),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,o),{text:"",fileSize:o}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=u9.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=u9.fromString(C.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(C.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return C.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=DA(C.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};const t=this.getLineMap();return nJ(this.text,t)}},bZ=class{constructor(e,t,r,i,o,s){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=o,this.containingProjects=[],this.isDynamic=m8(t),this.textStorage=new yZ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||Z3(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&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(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){C.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),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 t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}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 Nr(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:Vx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){U0(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!YD(e)&&e.addMissingFileRoot(t.fileName)}zo(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return ay.ThrowNoProject();case 1:return BOe(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s<this.containingProjects.length;s++){const l=this.containingProjects[s];if(U0(l)){if(!l.isSourceOfProjectReferenceRedirect(this.fileName)){if(o===void 0&&s!==this.containingProjects.length-1&&(o=l.projectService.findDefaultConfiguredProject(this)||!1),o===l)return l;i||(i=l)}t||(t=l)}else!e&&SZ(l)?e=l:!r&&YD(l)&&(r=l)}return BOe(o||i||t||e||r)}}registerFileUpdate(){for(const e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=X7(this.host.newLine),zx(this.formatSettings,e))),t&&(this.preferences||(this.preferences=kf),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,DD(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){C.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return this.textStorage.reloadWithFileText(e)?(this.markContainingProjectsAsDirty(),!0):!1}editContent(e,t,r){this.textStorage.edit(e,t,r),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(const e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return!He(this.containingProjects,e=>!e.isOrphan())}isContainedByBackgroundProject(){return St(this.containingProjects,h8)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){Kst(e);const t=this.textStorage.positionToLineOffset(e);return Xst(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!No(this.sourceMapFilePath)&&(Mf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function GOe(e,t){if(e===t||(e||Ec).length===0&&(t||Ec).length===0)return!0;const r=new Map;let i=0;for(const o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(const o of t){const s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function $st(e,t){return e.enable!==t.enable||!GOe(e.include,t.include)||!GOe(e.exclude,t.exclude)}function Qst(e,t){return Xy(e)!==Xy(t)}function Zst(e,t){return e===t?!1:!Ym(e,t)}var Jz,EZ,elt=T({"src/server/typingsCache.ts"(){db(),_T(),Jz={isKnownTypesPackageName:$m,installPackage:qo,enqueueInstallTypingsRequest:ts,attach:ts,onProjectClosed:ts,globalTypingsCacheLocation:void 0},EZ=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,r){const i=e.getTypeAcquisition();if(!i||!i.enable)return;const o=this.perProjectCache.get(e.getProjectName());(r||!o||$st(i,o.typeAcquisition)||Qst(e.getCompilationSettings(),o.compilerOptions)||Zst(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:Ec,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){const s=uS(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?Ec:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function _8(e,t=!1){const r={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 i of e){const o=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=o;break;case 2:r.jsx+=1,r.jsxSize+=o;break;case 3:Tu(i.fileName)?(r.dts+=1,r.dtsSize+=o):(r.ts+=1,r.tsSize+=o);break;case 4:r.tsx+=1,r.tsxSize+=o;break;case 7:r.deferred+=1,r.deferredSize+=o;break}}return r}function tlt(e){const t=_8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function jhe(e){const t=_8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function Uhe(e){const t=_8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function Hhe(e){return!e.some(t=>Il(t,".ts")&&!Tu(t)||Il(t,".tsx"))}function qhe(e){return e.generatedFilePath!==void 0}function nlt(e,t){var r,i;const o=e.getSourceFiles();(r=ar)==null||r.push(ar.Phase.Session,"getUnresolvedImports",{count:o.length});const s=e.getTypeChecker().getAmbientModules().map(u=>am(u.getName())),l=KC(Pi(o,u=>rlt(e,u,s,t)));return(i=ar)==null||i.pop(),l}function rlt(e,t,r,i){return i0(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!$N(s.extension))&&!Qc(l)&&!r.some(u=>u===l)&&(o=Rn(o,Cw(l).packageName))},t),o||Ec})}function YD(e){return e.projectKind===0}function U0(e){return e.projectKind===1}function SZ(e){return e.projectKind===2}function h8(e){return e.projectKind===3||e.projectKind===4}var D2,mT,TZ,AZ,IZ,xZ,RZ,Kz,ilt=T({"src/server/project.ts"(){db(),db(),_T(),D2=(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))(D2||{}),mT=class W7e{constructor(t,r,i,o,s,l,u,p,h,f,b){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=u,this.compileOnSaveEnabled=p,this.watchOptions=h,this.rootFiles=[],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.isInitialLoadPending=$m,this.dirty=!1,this.typingFiles=Ec,this.moduleSpecifierCache=ige(this),this.createHash=ia(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=G_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=f,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(b),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new e$(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||Xy(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=dz(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.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:C.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const A=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=I=>this.writeLog(I):A.trace&&(this.trace=I=>A.trace(I)),this.realpath=ia(A,A.realpath),this.resolutionCache=cK(this,this.currentDirectory,!0),this.languageService=Fpe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),h8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return jp(this),Uhe(this)}isJsOnlyProject(){return jp(this),tlt(this)}static resolveModule(t,r,i,o){return W7e.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){C.assertIsDefined(i.require);let s,l;for(const u of r){const p=Lu(i.resolvePath(Yr(u,"node_modules")));o("Loading ".concat(t.name," from ").concat(u," (resolved to ").concat(p,")"));const h=i.require(p,t.name);if(!h.error){l=h.module;break}const f=h.error.stack||h.error.message||JSON.stringify(h.error);(s!=null?s:s=[]).push("Failed to load module '".concat(t.name,"' from ").concat(p,": ").concat(f))}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){C.assertIsDefined(i.importPlugin);let s,l;for(const u of r){const p=Yr(u,"node_modules");o("Dynamically importing ".concat(t.name," from ").concat(u," (resolved to ").concat(p,")"));let h;try{h=await i.importPlugin(p,t.name)}catch(b){h={module:void 0,error:b}}if(!h.error){l=h.module;break}const f=h.error.stack||h.error.message||JSON.stringify(h.error);(s!=null?s:s=[]).push("Failed to dynamically import module '".concat(t.name,"' from ").concat(p,": ").concat(f))}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=WU(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.rootFiles)return et;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Ur(t,this.typingFiles)||et}getOrCreateScriptInfoAndAttachToProject(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){const i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){const r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const t=ri(ha(this.projectService.getExecutingFilePath()));return Yr(t,aL(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,o,s){return this.directoryStructureHost.readDirectory(t,r,i,o,s)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){const r=this.toPath(t);return!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,o,s,l){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,o,s,l)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l)}resolveLibrary(t,r,i,o){return this.resolutionCache.resolveLibrary(t,r,i,o)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return il(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),Wc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),Wc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel("".concat(this.getProjectName(),"FailedLookupInvalidation"))}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule("".concat(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(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),Wc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return rr(this.projectErrors,t=>!t.file)||Ec}getAllProjectErrors(){return this.projectErrors||Ec}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&jp(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(jp(this),this.builderState=Om.create(this.program,this.builderState,!0),Hi(Om.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:Ec};const{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const l of s){const u=yo(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&Cf(this.compilerOptions)){const l=s.filter(u=>Tu(u.name));if(l.length===1){const u=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):tN(l[0].text);Om.updateSignatureOfFile(this.builderState,p,u.resolvedPath)}}}return{emitSkipped:i,diagnostics:o}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(C.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,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(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return uS(Pi(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info("A plugin threw an exception in getExternalFiles: ".concat(i)),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){const r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),He(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(const r of this.rootFiles)r.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 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,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.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&&(tp(this.missingFilesMap,e_),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(t){const r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Ot(this.program.getSourceFiles(),t=>{const r=this.projectService.getScriptInfoForPath(t.resolvedPath);return C.assert(!!r,"getScriptInfo",()=>"scriptInfo for a file '".concat(t.fileName,"' Path: '").concat(t.path,"' / '").concat(t.resolvedPath,"' is missing.")),r}):this.rootFiles}getExcludedFiles(){return Ec}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){const s=zpe(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}const i=[];for(const o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){const o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(const s of o.extendedSourceFiles)i.push(s)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){const r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(const i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;const r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r;return this.rootFilesMap&&((r=this.rootFilesMap.get(t.path))==null?void 0:r.info)===t}addRoot(t,r){C.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){const r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){jp(this)}updateGraph(){var t,r,i,o,s;(t=ar)==null||t.push(ar.Phase.Session,"updateGraph",{name:this.projectName,kind:D2[this.projectKind]}),(r=ad)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const l=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Ec;for(const f of p)this.cachedUnresolvedImportsPerFile.delete(f);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=nlt(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;const h=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),h&&this.getPackageJsonAutoImportProvider(),(o=ad)==null||o.logStopUpdateGraph(),(s=ar)==null||s.pop(),!l}updateTypingFiles(t){V6(t,this.typingFiles,Bx(!this.useCaseSensitiveFileNames()),ts,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&tp(this.typingWatchers,e_),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:Zw})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}const r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const i=(o,s)=>{const l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),Wc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Il(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(Og(u,Yr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),Wc.TypingInstallerLocationDirectory,this))};for(const o of t){const s=lc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(Am(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){const l=o.indexOf(ol,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(Am(this.projectService.typingsInstaller.globalTypingsCacheLocation,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(o,"DirectoryWatcher")}r.forEach((o,s)=>{o.close(),this.typingWatchers.delete(s)})}getCurrentProgram(){return this.program}removeExistingTypings(t){const r=WF(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;const i=this.languageService.getCurrentProgram();C.assert(i===this.program),C.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog("Starting updateGraphWorker: Project: ".concat(this.getProjectName()));const o=Xs(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions($m,$m);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=ar)==null||t.push(ar.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=ar)==null||r.pop(),C.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,i){for(const f of i.getSourceFiles()){const b=this.program.getSourceFileByPath(f.resolvedPath);(!b||f.resolvedPath===f.path&&b.resolvedPath!==f.path)&&this.detachScriptInfoFromProject(f.fileName,!!this.program.getSourceFileByPath(f.path),!0)}i.forEachResolvedProjectReference(f=>{this.program.getResolvedProjectReferenceByPath(f.sourceFile.path)||this.detachScriptInfoFromProject(f.sourceFile.fileName,void 0,!0)})}if(NJ(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(f,b)=>this.addMissingFileWatcher(f,b)),this.generatedFilesMap){const f=Os(this.compilerOptions);qhe(this.generatedFilesMap)?(!f||!this.isValidGeneratedFileWatcher(Ad(f)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():f?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((b,A)=>{const I=this.program.getSourceFileByPath(A);(!I||I.resolvedPath!==A||!this.isValidGeneratedFileWatcher(A3(I.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),b))&&(Mf(b),this.generatedFilesMap.delete(A))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&gh(this.changedFilesForExportMapCache,f=>{const b=i.getSourceFileByPath(f),A=this.program.getSourceFileByPath(f);return!b||!A?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(b,A,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const p=this.externalFiles||Ec;this.externalFiles=this.getExternalFiles(),V6(this.externalFiles,p,Bx(!this.useCaseSensitiveFileNames()),f=>{const b=this.projectService.getOrCreateScriptInfoNotOpenedByClient(f,this.currentDirectory,this.directoryStructureHost);b==null||b.attachToProject(this)},f=>this.detachScriptInfoFromProject(f));const h=Xs()-o;return this.sendPerformanceEvent("UpdateGraph",h),this.writeLog("Finishing updateGraphWorker: Project: ".concat(this.getProjectName()," projectStateVersion: ").concat(this.projectStateVersion," projectProgramVersion: ").concat(this.projectProgramVersion," structureChanged: ").concat(u).concat(this.program?" structureIsReused:: ".concat(Q6[this.program.structureIsReused]):""," Elapsed: ").concat(h,"ms")),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),u}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){const o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(U0(this)){const s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s==null?void 0:s.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return TD}const o=this.projectService.watchFactory.watchFile(yo(r,this.currentDirectory),(s,l)=>{U0(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),Wc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(Os(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{const i=this.toPath(r);if(this.generatedFilesMap){if(qhe(this.generatedFilesMap)){C.fail("".concat(this.projectName," Expected to not have --out watcher for generated file with options: ").concat(JSON.stringify(this.compilerOptions)));return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),Wc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(qhe(this.generatedFilesMap)?Mf(this.generatedFilesMap):tp(this.generatedFilesMap,Mf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?ay.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.isInitialLoadPending())return" Files (0) InitialLoadPending\n";if(!this.program)return" Files (0) NoProgram\n";const o=this.program.getSourceFiles();let s=" Files (".concat(o.length,")\n");if(t){for(const l of o)s+=" ".concat(l.fileName).concat(i?" ".concat(l.version," ").concat(JSON.stringify(l.text)):"","\n");r&&(s+="\n\n",pK(this.program,l=>s+=" ".concat(l,"\n")))}return s}print(t,r,i){var o;this.writeLog("Project '".concat(this.projectName,"' (").concat(D2[this.projectKind],")")),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(o=this.noDtsResolutionProject)==null||o.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;const i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),W4(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,o;const s=r?p=>Wo(p.entries(),([h,f])=>({fileName:h,isSourceOfProjectReferenceRedirect:f})):p=>Wo(p.keys());this.isInitialLoadPending()||jp(this);const l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:YD(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:l,projectErrors:this.getGlobalProjectErrors()};const p=this.lastReportedFileNames,h=((i=this.externalFiles)==null?void 0:i.map(M=>({fileName:ml(M),isSourceOfProjectReferenceRedirect:!1})))||Ec,f=PE(this.getFileNamesWithRedirectInfo(!!r).concat(h),M=>M.fileName,M=>M.isSourceOfProjectReferenceRedirect),b=new Map,A=new Map,I=u?Wo(u.keys()):[],R=[];return jc(f,(M,N)=>{p.has(N)?r&&M!==p.get(N)&&R.push({fileName:N,isSourceOfProjectReferenceRedirect:M}):b.set(N,M)}),jc(p,(M,N)=>{f.has(N)||A.set(N,M)}),this.lastReportedFileNames=f,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(b),removed:s(A),updated:r?I.map(M=>({fileName:M,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(M)})):I,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const p=this.getFileNamesWithRedirectInfo(!!r),h=((o=this.externalFiles)==null?void 0:o.map(b=>({fileName:ml(b),isSourceOfProjectReferenceRedirect:!1})))||Ec,f=p.concat(h);return this.lastReportedFileNames=PE(f,b=>b.fileName,b=>b.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?f:f.map(b=>b.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){Vx(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Yr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();for(const o of this.projectService.globalPlugins)o&&(t.plugins&&t.plugins.some(s=>s.name===o)||(this.projectService.logger.info("Loading global plugin ".concat(o)),this.enablePlugin({name:o,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info("Skipped loading plugin ".concat(r.name," because it did not expose a proper factory function"));return}const i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:c8e}),s=o.create(i);for(const l of Object.keys(this.languageService))l in s||(this.projectService.logger.info("Plugin activation warning: Missing proxied method ".concat(l," in created LS. Patching.")),s[l]=this.languageService[l]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=s,this.plugins.push({name:r.name,module:o})}catch(i){this.projectService.logger.info("Plugin activation failed: ".concat(i))}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?Ec:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Yr(this.currentDirectory,bD),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=QX(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||IO(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.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:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(jp(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const o=this.includePackageJsonAutoImports();if(o){(t=ar)==null||t.push(ar.Phase.Session,"getPackageJsonAutoImportProvider");const s=Xs();if(this.autoImportProviderHost=xZ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return jp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Xs()-s),(r=ar)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=ar)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!jc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(ml(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return C.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new AZ(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0}}},TZ=class extends mT{constructor(e,t,r,i,o,s,l){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,i,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=l,this.projectRootPath=o&&e.toCanonicalFileName(o),!o&&!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 t=fX(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){C.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.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Yn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){He(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:jhe(this),include:et,exclude:et}}},AZ=class extends mT{constructor(e,t,r,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},IZ=class Xbe extends mT{constructor(t,r,i,o){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,o,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=ia(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ia(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return et;const u=r.getCurrentProgram();if(!u)return et;const p=Xs();let h,f;const b=Yr(r.currentDirectory,bD),A=r.getPackageJsonsForAutoImport(Yr(r.currentDirectory,b));for(const N of A)(s=N.dependencies)==null||s.forEach((O,U)=>R(U)),(l=N.peerDependencies)==null||l.forEach((O,U)=>R(U));let I=0;if(h){const N=r.getSymlinkCache();for(const O of Wo(h.keys())){if(t===2&&I>this.maxDependencies)return r.log("AutoImportProviderProject: attempted to add more than ".concat(this.maxDependencies," dependencies. Aborting.")),et;const U=Mq(O,r.currentDirectory,o,i,u.getModuleResolutionCache());if(U){const ee=M(U,u,N);if(ee){f=To(f,ee),I+=ee.length?1:0;continue}}if(!He([r.currentDirectory,r.getGlobalTypingsCacheLocation()],ee=>{if(ee){const V=Mq("@types/".concat(O),ee,o,i,u.getModuleResolutionCache());if(V){const se=M(V,u,N);return f=To(f,se),I+=se!=null&&se.length?1:0,!0}}})&&U&&o.allowJs&&o.maxNodeModuleJsDepth){const ee=M(U,u,N,!0);f=To(f,ee),I+=ee!=null&&ee.length?1:0}}}return f!=null&&f.length&&r.log("AutoImportProviderProject: found ".concat(f.length," root files in ").concat(I," dependencies in ").concat(Xs()-p," ms")),f||et;function R(N){po(N,"@types/")||(h||(h=new Set)).add(N)}function M(N,O,U,K){var ee;const V=zq(N,o,i,O.getModuleResolutionCache(),K);if(V){const se=(ee=i.realpath)==null?void 0:ee.call(i,N.packageDirectory),G=se?r.toPath(se):void 0,re=G&&G!==r.toPath(N.packageDirectory);return re&&U.setSymlinkedDirectory(N.packageDirectory,{real:Vc(se),realPath:Vc(G)}),Hi(V,_e=>{const ye=re?_e.replace(N.packageDirectory,se):_e;if(!O.getSourceFile(ye)&&!(re&&O.getSourceFile(_e)))return ye})}}}static create(t,r,i,o){if(t===0)return;const s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(l.length)return new Xbe(r,l,o,s)}isEmpty(){return!St(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Xbe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||et}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 t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},IZ.maxDependencies=10,IZ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0},xZ=IZ,RZ=class extends mT{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,ri(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Mv,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=ha(e),r=this.projectService.toCanonicalFileName(t);let i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(ha(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=$m;const t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const i=C.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){C.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const o=ri(this.canonicalConfigFilePath);this.projectService.logger.info("Local plugin loading enabled; adding ".concat(o," to search paths")),i.unshift(o)}if(e.plugins)for(const o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return rr(this.projectErrors,e=>!e.file)||Ec}getAllProjectErrors(){return this.projectErrors||Ec}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return QD(this,e.path,t=>UI(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&jc(t.openFilesImpactedByConfigFile,(r,i)=>{const o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!QD(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return OP(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){xF(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},Kz=class extends mT{constructor(e,t,r,i,o,s,l,u){super(e,2,t,r,!0,o,i,s,u,t.host,ri(l||Lu(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function VOe(e){const t=new Map;for(const r of e)if(typeof r.type=="object"){const i=r.type;i.forEach(o=>{C.assert(typeof o=="number")}),t.set(r.name,i)}return t}function $D(e){return No(e.indentStyle)&&(e.indentStyle=YOe.get(e.indentStyle.toLowerCase()),C.assert(e.indentStyle!==void 0)),e}function Xz(e){return KOe.forEach((t,r)=>{const i=e[r];No(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function g8(e,t){let r,i;return lD.forEach(o=>{const s=e[o.name];if(s===void 0)return;const l=XOe.get(o.name);(r||(r={}))[o.name]=l?No(s)?l.get(s.toLowerCase()):s:ZS(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function Jhe(e){let t;return Sw.forEach(r=>{const i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function DZ(e){return No(e)?CZ(e):e}function CZ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function Khe(e){const{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function jOe(e,t){for(const r of t)if(r.getProjectName()===e)return r}function NZ(e){return!!e.containingProjects}function UOe(e){return!!e.configFileInfo}function QD(e,t,r,i,o){var s;const l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let u;const p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){const f=ml(p.sourceFile.fileName),b=e.projectService.findConfiguredProjectByProjectName(f);if(b){const A=r(b);if(A)return A}else if(i!==0){u=new Map;const A=Xhe(l,e.getCompilerOptions(),(I,R)=>p===I?h(I,R):void 0,i,e.projectService,u);if(A)return A;u.clear()}}return Xhe(l,e.getCompilerOptions(),(f,b)=>p!==f?h(f,b):void 0,i,e.projectService,u);function h(f,b){const A=ml(f.sourceFile.fileName),I=e.projectService.findConfiguredProjectByProjectName(A)||(b===0?void 0:b===1?e.projectService.createConfiguredProject(A):b===2?e.projectService.createAndLoadConfiguredProject(A,o):C.assertNever(b));return I&&r(I)}}function Xhe(e,t,r,i,o,s){const l=t.disableReferencedProjectLoad?0:i;return He(e,u=>{if(!u)return;const p=ml(u.sourceFile.fileName),h=o.toCanonicalFileName(p),f=s==null?void 0:s.get(h);if(f!==void 0&&f>=l)return;const b=r(u,l);return b||((s||(s=new Map)).set(h,l),u.references&&Xhe(u.references,u.commandLine.options,r,l,o,s))})}function HOe(e,t){return e.potentialProjectReferences&&gh(e.potentialProjectReferences,t)}function olt(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?HOe(e,i):He(e.getProjectReferences(),r)}function Yhe(e,t,r){const i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function qOe(e,t){return olt(e,r=>Yhe(e,t,r.sourceFile.path),r=>Yhe(e,t,e.toPath(yD(r))),r=>Yhe(e,t,r))}function alt(e,t){return"".concat(No(t)?"Config: ".concat(t," "):t?"Project: ".concat(t.getProjectName()," "):"","WatchType: ").concat(e)}function JOe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function UI(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function jp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function $he(e){U0(e)&&(e.projectOptions=!0)}function Qhe(e){let t=1;return()=>e(t++)}function Zhe(){return{idToCallbacks:new Map,pathToId:new Map}}function slt(e,t){if(!t||!e.eventHandler||!e.session)return;const r=Zhe(),i=Zhe(),o=Zhe();let s=1;return e.session.addProtocolHandler("watchChange",I=>(h(I.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(I,R){return p(r,I,R,M=>({eventName:i9,data:{id:M,path:I}}))}function u(I,R,M){return p(M?o:i,I,R,N=>({eventName:o9,data:{id:N,path:I,recursive:!!M,ignoreUpdate:I.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:I,idToCallbacks:R},M,N,O){const U=e.toPath(M);let K=I.get(U);K||I.set(U,K=s++);let ee=R.get(K);return ee||(R.set(K,ee=new Set),e.eventHandler(O(K))),ee.add(N),{close(){const V=R.get(K);V!=null&&V.delete(N)&&(V.size||(R.delete(K),I.delete(U),e.eventHandler({eventName:a9,data:{id:K}})))}}}function h(I){Ao(I)?I.forEach(f):f(I)}function f({id:I,created:R,deleted:M,updated:N}){b(I,R,0),b(I,M,2),b(I,N,1)}function b(I,R,M){R!=null&&R.length&&(A(r,I,R,(N,O)=>N(O,M)),A(i,I,R,(N,O)=>N(O)),A(o,I,R,(N,O)=>N(O)))}function A(I,R,M,N){var O;(O=I.idToCallbacks.get(R))==null||O.forEach(U=>{M.forEach(K=>N(U,Lu(K)))})}}function llt(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function ege(e){return e.kind!==void 0}function tge(e){e.print(!1,!1,!1)}var Yz,$z,v8,Qz,Zz,e9,t9,n9,r9,PZ,i9,o9,a9,nge,KOe,XOe,YOe,MZ,s9,l9,LZ,kZ,rge,wZ,clt=T({"src/server/editorServices.ts"(){db(),_T(),Ghe(),Yz=20*1024*1024,$z=4*1024*1024,v8="projectsUpdatedInBackground",Qz="projectLoadingStart",Zz="projectLoadingFinish",e9="largeFileReferenced",t9="configFileDiag",n9="projectLanguageServiceState",r9="projectInfo",PZ="openFileInfo",i9="createFileWatcher",o9="createDirectoryWatcher",a9="closeFileWatcher",nge="*ensureProjectForOpenFiles*",KOe=VOe(_g),XOe=VOe(lD),YOe=new Map(Object.entries({none:0,block:1,smart:2})),MZ={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,"$"]]}},s9={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){const i=Kx(e);i&&St(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>St(t,r=>r.isMixedContent&&Il(e,r.extension))},l9={getFileName:e=>e.fileName,getScriptKind:e=>DZ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},LZ={close:ts},kZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(kZ||{}),rge=class Ybe{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Qhe(Ahe),this.newAutoImportProviderProjectName=Qhe(Ihe),this.newAuxiliaryProjectName=Qhe(xhe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,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=MZ,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=ts,this.verifyDocumentRegistry=ts,this.verifyProgram=ts,this.onProjectCreation=ts;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||Jz,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||Ec,this.pluginProbeLocations=t.pluginProbeLocations||Ec,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Yr(ri(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Zp()),this.currentDirectory=ml(this.host.getCurrentDirectory()),this.toCanonicalFileName=Mu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Vc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new hZ(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new EZ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:X7(this.host.newLine),preferences:kf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=oY(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):ts;this.packageJsonCache=oge(this),this.watchFactory=this.serverMode!==0?{watchFile:AD,watchDirectory:AD}:PJ(slt(this,t.canUseWatchEvents)||this.host,i,o,alt),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return il(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return yo(t,this.host.getCurrentDirectory())}setDocument(t,r,i){const o=C.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){const i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;const i={eventName:n9,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{const t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info('Provided types map file "'.concat(this.typesMapLocation,"\" doesn't exist"));return}const r=JSON.parse(t);for(const i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(const i in r.simpleMap)Cs(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info("Error loading types map: ".concat(t)),this.safelist=MZ,this.legacySafelist.clear()}}updateTypingsForProject(t){const r=this.findProject(t.projectName);if(r)switch(t.kind){case Qw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case Zw:this.typingsCache.enqueueInstallTypingsForProject(r,r.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(nge,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),h8(t))return;const r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&jp(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:v8,data:{openFiles:Wo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;const i={eventName:e9,data:{file:t,fileSize:r,maxFileSize:$z}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:Qz,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const r={eventName:Zz,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(const i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){C.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const i=Xz(t),o=g8(t,r),s=Jhe(t);i.allowNonTsExtensions=!0;const l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(const u of this.inferredProjects)(l?u.projectRootPath===l:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(s),u.setWatchOptions(o==null?void 0:o.watchOptions),u.setProjectErrors(o==null?void 0:o.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return The(t)?jOe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(ml(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){const r=No(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();const r=No(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(No(t)?t:t.fileName),ay.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const r=i=>{t=jp(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){const r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){const r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){r===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(No(t.sourceMapFilePath)){const r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r&&r.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){const r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);const r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){const i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,u=>{const p=this.toPath(u),h=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(u,p);if(lc(p)==="package.json"&&!IO(p)&&(h&&h.fileExists||!h&&this.host.fileExists(u))){const b=this.getNormalizedAbsolutePath(u);this.logger.info("Config: ".concat(i," Detected new package.json: ").concat(b)),this.packageJsonCache.addOrUpdate(b,p),this.watchPackageJsonFile(b,p,l)}const f=this.findConfiguredProjectByProjectName(i);Vw({watchedDirPath:this.toPath(t),fileOrDirectory:u,fileOrDirectoryPath:p,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:(f==null?void 0:f.getCurrentProgram())||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:b=>this.logger.info(b),toPath:b=>this.toPath(b),getScriptKind:f?b=>f.getScriptKind(b):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((b,A)=>{if(!b)return;const I=this.getConfiguredProjectByCanonicalConfigFilePath(A);if(!I)return;const R=f===I?1:0;if(!(I.pendingUpdateLevel!==void 0&&I.pendingUpdateLevel>R))if(this.openFiles.has(p))if(C.checkDefined(this.getScriptInfoForPath(p)).isAttached(I)){const N=Math.max(R,I.openFileWatchTriggered.get(p)||0);I.openFileWatchTriggered.set(p,N)}else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I);else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),Wc.WildcardDirectory,i);const l={packageJsonWatches:void 0,close(){var u;s&&(s.close(),s=void 0,(u=l.packageJsonWatches)==null||u.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){const i=this.configFileExistenceInfoCache.get(t);if(!(i!=null&&i.config))return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{const u=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(u)if(o=!0,l===t){if(u.isInitialLoadPending())return;u.pendingUpdateLevel=2,u.pendingUpdateReason=r,this.delayUpdateProjectGraph(u)}else u.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(u)}),o}onConfigFileChanged(t,r){var i;const o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;const s=(i=o.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;s&&this.removeProject(s)}else o.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(o.openFilesImpactedByConfigFile,!1,!0,r!==2?tl:Mv,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),C.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>C.assert(!r.isAttached(t),"Found script Info still attached to project",()=>"".concat(t.projectName,": ScriptInfos still attached: ").concat(JSON.stringify(Wo(kg(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(o=>o.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")))),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:TA(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:TA(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){C.assert(t.isOrphan());const i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:ri(_p(t.fileName)?t.fileName:yo(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(Vx(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(const o of this.inferredProjects){if(o===i||o.isOrphan())continue;const s=o.getRootScriptInfos();C.assert(s.length===1||!!o.projectRootPath),s.length===1&&He(s[0].containingProjects,l=>l!==s[0].containingProjects[0]&&!l.isOrphan())&&o.removeFile(s[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){const i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);const o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(const l of t.containingProjects){if(U0(l)){t.hasMixedContent&&t.registerFileUpdate();const u=l.openFileWatchTriggered.get(t.path);u!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevel<u&&(l.pendingUpdateLevel=u,l.markFileAsDirty(t.path)))}else YD(l)&&l.isRoot(t)&&(l.isProjectWithSingleRoot()&&(s=!0),l.removeFile(t,i,!0));l.languageServiceEnabled||l.markAsDirty()}return this.openFiles.delete(t.path),this.configFileForOpenFiles.delete(t.path),!r&&s&&this.assignOrphanScriptInfosToInferredProject(),i?this.watchClosedScriptInfo(t):this.handleDeletedFile(t),s}deleteScriptInfo(t){this.filenameToScriptInfo.delete(t.path),this.filenameToScriptInfoVersion.set(t.path,t.textStorage.version);const r=t.getRealpathIfDifferent();r&&this.realpathToScriptInfos.remove(r,t)}configFileExists(t,r,i){var o;let s=this.configFileExistenceInfoCache.get(r);if(s)return NZ(i)&&!((o=s.openFilesImpactedByConfigFile)!=null&&o.has(i.path))&&(s.openFilesImpactedByConfigFile||(s.openFilesImpactedByConfigFile=new Map)).set(i.path,!1),s.exists;const l=this.host.fileExists(t);let u;return NZ(i)&&(u||(u=new Map)).set(i.path,!1),s={exists:l,openFilesImpactedByConfigFile:u},this.configFileExistenceInfoCache.set(r,s),l}createConfigFileWatcherForParsedConfig(t,r,i){var o,s;const l=this.configFileExistenceInfoCache.get(r);(!l.watcher||l.watcher===LZ)&&(l.watcher=this.watchFactory.watchFile(t,(p,h)=>this.onConfigFileChanged(r,h),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l==null?void 0:l.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),Wc.ConfigFile,i));const u=l.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&jc(t.openFilesImpactedByConfigFile,tl)}releaseParsedConfig(t,r){var i,o,s;const l=this.configFileExistenceInfoCache.get(t);(i=l.config)!=null&&i.projects.delete(r.canonicalConfigFilePath)&&((o=l.config)!=null&&o.projects.size||(l.config=void 0,CJ(t,this.sharedExtendedConfigFileWatchers),C.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?M7(Gc(ri(t)))||(l.watcher.close(),l.watcher=LZ):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){C.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;const l=this.configFileExistenceInfoCache.get(r);if(l){const u=(i=l.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(o=l.openFilesImpactedByConfigFile)==null||o.delete(t.path),u&&this.closeConfigFileWatcherOnReleaseOfOpenFile(l),!((s=l.openFilesImpactedByConfigFile)!=null&&s.size)&&!l.config&&(C.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){C.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o||(o={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile||(o.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),o.watcher||(o.watcher=M7(Gc(ri(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,Wc.ConfigFileForInferredRoot):LZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;const o=this.configFileExistenceInfoCache.get(r);(i=o==null?void 0:o.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(C.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;C.assert(!NZ(t)||this.openFiles.has(t.path));const i=this.openFiles.get(t.path);if(C.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=ri(t.fileName);const l=()=>Am(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l();let p=!UOe(t);do{if(p){const f=f8(s,this.currentDirectory,this.toCanonicalFileName),b=Yr(s,"tsconfig.json");let A=r(Yr(f,"tsconfig.json"),b);if(A)return b;const I=Yr(s,"jsconfig.json");if(A=r(Yr(f,"jsconfig.json"),I),A)return I;if(d4(f))break}const h=ri(s);if(h===s)break;s=h,p=!0}while(u||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;const r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&UI(i,t)?i:i==null?void 0:i.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!UOe(t)){const i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info("Search path: ".concat(ri(t.fileName)));const r=this.forEachConfigFileLocation(t,(i,o)=>this.configFileExists(o,i,t));return r?this.logger.info("For info: ".concat(t.fileName," :: Config file name: ").concat(r)):this.logger.info("For info: ".concat(t.fileName," :: No config files found.")),NZ(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(tge),this.configuredProjects.forEach(tge),this.inferredProjects.forEach(tge),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);this.logger.info(" FileName: ".concat(i.fileName," ProjectRootPath: ").concat(t)),this.logger.info(" Projects: ".concat(i.containingProjects.map(o=>o.getProjectName())))}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){const r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return jOe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=Yz;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>s-=u||0);let l=0;for(const u of i){const p=o.getFileName(u);if(!XA(p)&&(l+=this.host.getFileSize(p),l>Yz||l>s)){const h=i.map(f=>o.getFileName(f)).filter(f=>!XA(f)).map(f=>({name:f,size:this.host.getFileSize(f)})).sort((f,b)=>b.size-f.size).slice(0,5);return this.logger.info("Non TS file size exceeded limit (".concat(l,"). Largest files: ").concat(h.map(f=>"".concat(f.name,":").concat(f.size)).join(", "))),p}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){const l=Xz(i),u=g8(i,ri(Lu(t))),p=new Kz(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,l9),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u==null?void 0:u.watchOptions);return p.setProjectErrors(u==null?void 0:u.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,l9,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){$he(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){$he(t);return}const r=U0(t)?t.projectOptions:void 0;$he(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:_8(t.getScriptInfos(),!0),compilerOptions:Fse(t.getCompilationSettings()),typeAcquisition:s(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:o(),projectType:t instanceof Kz?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Te};this.eventHandler({eventName:r9,data:i});function o(){return U0(t)&&_Z(t.getConfigFilePath())||"other"}function s({enable:l,include:u,exclude:p}){return{enable:l,include:u!==void 0&&u.length!==0,exclude:p!==void 0&&p.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t){var r;(r=ar)==null||r.instant(ar.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info("Creating configuration project ".concat(t));const i=this.toCanonicalFileName(t);let o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:g7(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const s=new RZ(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){const i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){const i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){const i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=ar)==null||i.push(ar.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);const s=ha(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=l.config.parsedCommandLine;C.assert(!!u.fileNames);const p=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=MP(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);const h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,u.fileNames,s9);h?(t.disableLanguageService(h),this.configFileExistenceInfoCache.forEach((b,A)=>this.stopWatchingWildCards(A,t))):(t.setCompilerOptions(p),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);const f=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,f,s9,p,u.typeAcquisition,u.compileOnSave,u.watchOptions),(o=ar)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,u;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}const p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||g7(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),h=PP(t,R=>this.host.readFile(R)),f=pw(t,No(h)?h:""),b=f.parseDiagnostics;No(h)||b.push(h);const A=hw(f,p,ri(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);A.errors.length&&b.push(...A.errors),this.logger.info("Config: ".concat(t," : ").concat(JSON.stringify({rootNames:A.fileNames,options:A.options,watchOptions:A.watchOptions,projectReferences:A.projectReferences},void 0," ")));const I=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=A,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:A,cachedDirectoryStructureHost:p,projects:new Map},!I&&!nW(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(A.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),v7(r,A.options,this.sharedExtendedConfigFileWatchers,(R,M)=>this.watchFactory.watchFile(R,()=>{var N;y7(this.extendedConfigCache,M,U=>this.toPath(U));let O=!1;(N=this.sharedExtendedConfigFileWatchers.get(M))==null||N.projects.forEach(U=>{O=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(U,"Change in extended config file ".concat(R," detected"))||O}),O&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,Wc.ExtendedConfigFile,t),R=>this.toPath(R)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,Gw(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(s,l)=>this.watchWildcardDirectory(s,l,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;tp(i.watchedDirectories,Mf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){const i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!jc(i.config.projects,tl)&&(i.config.watchedDirectories&&(tp(i.config.watchedDirectories,Mf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){const o=t.getRootFilesMap(),s=new Map;for(const l of r){const u=i.getFileName(l),p=ml(u),h=m8(p);let f;if(!h&&!t.fileExists(u)){f=f8(p,this.currentDirectory,this.toCanonicalFileName);const b=o.get(f);b?(b.info&&(t.removeFile(b.info,!1,!0),b.info=void 0),b.fileName=p):o.set(f,{fileName:p})}else{const b=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),A=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),I=C.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,b,A,t.directoryStructureHost));f=I.path;const R=o.get(f);!R||R.info!==I?(t.addRoot(I,p),I.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(I)):R.fileName=p}s.set(f,!0)}o.size>s.size&&o.forEach((l,u)=>{s.has(u)||(l.info?t.removeFile(l.info,t.fileExists(l.info.fileName),!0):o.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,u){t.setCompilerOptions(o),t.setWatchOptions(u),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){const r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),s9),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;C.assert(r.updateLevel===1);const i=r.parsedCommandLine.options.configFile.configFileSpecs,o=LP(i,ri(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,s9)}reloadConfiguredProject(t,r,i,o){const s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();const l=t.getConfigFilePath();this.logger.info("".concat(i?"Loading":"Reloading"," configured project ").concat(l)),this.loadConfiguredProject(t,r),t.updateGraph(),this.sendConfigFileDiagEvent(t,l)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:t9,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){const o=this.toCanonicalFileName(r);for(const s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(const o of this.inferredProjects)o.projectRootPath&&Am(o.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>o.projectRootPath.length||(i=o));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){C.assert(!this.useSingleInferredProject);const r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(const i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){const o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects;let s,l;i&&(s=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),l=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),s===void 0&&(s=this.watchOptionsForInferredProjects),l===void 0&&(l=this.typeAcquisitionForInferredProjects),s=s||void 0;const u=new TZ(this,this.documentRegistry,o,s==null?void 0:s.watchOptions,i,t,l);return u.setProjectErrors(s==null?void 0:s.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(ml(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(ml(t))}getScriptInfoOrConfig(t){const r=ml(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;const o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){const r=Wo(this.filenameToScriptInfo.entries(),([i,o])=>({path:i,fileName:o.fileName}));this.logger.msg("Could not find file ".concat(JSON.stringify(t),".\nAll files are: ").concat(JSON.stringify(r)),"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){const o=t.getRealpathIfDifferent();o&&He(this.realpathToScriptInfos.get(o),i),He(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(const s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?jc(r,(l,u)=>u===o.path?!1:Nr(l,s))||r.add(o.path,s):(r=Zp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(C.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!po(t.path,this.globalCacheLocationDirectoryPath))){const r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,Wc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;const u=P7(this.toPath(s));if(!u)return;const p=lc(u);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(p==="package.json"||p==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(h=>{var f;(f=h.getModuleSpecifierCache())==null||f.clear()}),o.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{const h=this.getScriptInfoForPath(u);h?JOe(h)&&this.refreshScriptInfo(h):xA(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,Wc.NodeModules);const o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;const o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return C.assert(!((i=s.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(s.affectedModuleSpecifierCacheProjects||(s.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var l;(l=s.affectedModuleSpecifierCacheProjects)==null||l.delete(r),s.close()}}}watchClosedScriptInfoInNodeModules(t){const r=t+"/node_modules",i=this.toPath(r),o=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return o.refreshScriptInfoRefCount++,{close:()=>{o.refreshScriptInfoRefCount--,o.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||Op).getTime()}refreshScriptInfo(t){const r=this.getModifiedTime(t);if(r!==t.mTime){const i=kV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+ol,this.filenameToScriptInfo.forEach(r=>{JOe(r)&&po(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s){if(_p(t)||m8(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);const l=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(l)return l}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,r,i,o,s){return this.getOrCreateScriptInfoWorker(t,r,!0,i,o,s)}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,s,l)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,u){C.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const p=f8(t,r,this.toCanonicalFileName);let h=this.getScriptInfoForPath(p);if(!h){const f=m8(t);if(C.assert(_p(t)||f||i,"",()=>"".concat(JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Wo(this.openFilesWithNonRootedDiskPath.keys())}),"\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory")),C.assert(!_p(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>"".concat(JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Wo(this.openFilesWithNonRootedDiskPath.keys())}),"\nOpen script files with non rooted disk path opened with current directory context cannot have same canonical names")),C.assert(!f||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>"".concat(JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Wo(this.openFilesWithNonRootedDiskPath.keys())}),"\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.")),!i&&!f&&!(u||this.host).fileExists(t))return;h=new bZ(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!_p(t)&&(!f||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),h):this.watchClosedScriptInfo(h)}return i&&(this.stopWatchingScriptInfo(h),h.open(o),l&&h.registerFileUpdate()),h}getScriptInfoForNormalizedPath(t){return!_p(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(f8(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){const o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),No(o.sourceMapFilePath)){const f=this.getScriptInfoForPath(o.sourceMapFilePath);if(f&&(f.getSnapshot(),f.documentPositionMapper!==void 0))return f.sourceInfos=this.addSourceInfoToSourceMap(i,t,f.sourceInfos),f.documentPositionMapper?f.documentPositionMapper:void 0;o.sourceMapFilePath=void 0}else if(o.sourceMapFilePath){o.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceMapFilePath.sourceInfos);return}else if(o.sourceMapFilePath!==void 0)return;let s,l,u=(f,b)=>{const A=this.getOrCreateScriptInfoNotOpenedByClient(f,t.currentDirectory,this.host);if(!A){l=b;return}s=A;const I=A.getSnapshot();return A.documentPositionMapper!==void 0?A.documentPositionMapper:DD(I)};const p=t.projectName,h=cY({getCanonicalFileName:this.toCanonicalFileName,log:f=>this.logger.info(f),getSourceFileLike:f=>this.getSourceFileLike(f,p,o)},o.fileName,o.textStorage.getLineInfo(),u);return u=void 0,s?(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.documentPositionMapper=h||!1,s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):l?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:yo(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,h}addSourceInfoToSourceMap(t,r,i){if(t){const o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{const o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!No(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Wc.MissingSourceMapFile)}getSourceFileLike(t,r,i){const o=r.projectName?r:this.findProject(r);if(o){const l=o.toPath(t),u=o.getSourceFile(l);if(u&&u.resolvedPath===l)return u}const s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&No(i.sourceMapFilePath)&&s!==i){const l=this.getScriptInfoForPath(i.sourceMapFilePath);l&&(l.sourceInfos||(l.sourceInfos=new Set)).add(s.path)}return s.cacheSourceFile?s.cacheSourceFile.sourceFile:(s.sourceFileLike||(s.sourceFileLike={get text(){return C.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{const u=s.positionToLineOffset(l);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(l,u,p)=>s.lineOffsetToPosition(l+1,u+1,p)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){const i=this.getScriptInfoForNormalizedPath(ml(t.file));i&&(i.setOptions($D(t.formatOptions),t.preferences),this.logger.info("Host configuration update for file ".concat(t.file)))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info("Host information ".concat(t.hostInfo))),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...$D(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(s=>s.forEach(l=>{!l.isClosed()&&l.hasExternalProjectRef()&&l.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(l.getProjectName())&&l.updateGraph()})),o!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(s=>{s.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(r=g8(t.watchOptions))==null?void 0:r.watchOptions,this.logger.info("Host watch options changed to ".concat(JSON.stringify(this.hostConfiguration.watchOptions),", it will be take effect for next watches.")))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||t.fileWatcher&&this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,r)=>{this.throttledOperations.cancel(r),this.pendingProjectUpdates.delete(r)}),this.throttledOperations.cancel(nge),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Mv,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(t,r,i,o,s){const l=new Map,u=p=>{l.has(p.canonicalConfigFilePath)||(l.set(p.canonicalConfigFilePath,!0),this.reloadConfiguredProject(p,s,!1,r))};t==null||t.forEach((p,h)=>{if(this.configFileForOpenFiles.delete(h),!o(p))return;const f=this.getScriptInfoForPath(h);C.assert(f.isScriptOpen());const b=this.getConfigFileNameForFile(f);if(b){const A=this.findConfiguredProjectByProjectName(b)||this.createConfiguredProject(b);l.has(A.canonicalConfigFilePath)||(l.set(A.canonicalConfigFilePath,!0),i?(A.pendingUpdateLevel=2,A.pendingUpdateReason=s,r&&this.clearSemanticCache(A),this.delayUpdateProjectGraph(A)):(this.reloadConfiguredProject(A,s,!1,r),UI(A,f)||QD(A,f.path,R=>(u(R),UI(R,f)),1)&&QD(A,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){C.assert(t.containingProjects.length>0);const r=t.containingProjects[0];!r.isOrphan()&&YD(r)&&r.isRoot(t)&&He(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(jp),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(ml(t),r,i,!1,o?ml(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){const i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;const{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;const u={fileName:ml(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(u);if(!p)return;let h=this.findConfiguredProjectByProjectName(p);if(!h){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l!=null&&l.containingProjects.length?o:r;h=this.createAndLoadConfiguredProject(p,"Creating project for original file: ".concat(u.fileName).concat(r!==o?" for location: "+r.fileName:""))}jp(h);const f=I=>{const R=this.getScriptInfo(s);return R&&UI(I,R)};if(h.isSolution()||!f(h)){if(h=QD(h,s,I=>(jp(I),f(I)?I:void 0),2,"Creating project referenced in solution ".concat(h.projectName," to find possible configured project for original file: ").concat(u.fileName).concat(r!==o?" for location: "+r.fileName:"")),!h)return;if(h===t)return o}A(h);const b=this.getScriptInfo(s);if(!b||!b.containingProjects.length)return;return b.containingProjects.forEach(I=>{U0(I)&&A(I)}),o;function A(I){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(I.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return Tn(this.externalProjects,r=>(jp(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){const l=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,r,i,o);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i,o=this.findExternalProjectContainingOpenScriptInfo(t),s,l,u=!1;return!o&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(o=this.findConfiguredProjectByProjectName(r),o?jp(o):(o=this.createLoadAndUpdateConfiguredProject(r,"Creating possible configured project for ".concat(t.fileName," to open")),u=!0),l=o.containsScriptInfo(t)?o:void 0,s=o,UI(o,t)||QD(o,t.path,p=>{if(jp(p),Ao(s)?s.push(p):s=[o,p],UI(p,t))return l=p,p;!l&&p.containsScriptInfo(t)&&(l=p)},2,"Creating project referenced in solution ".concat(o.projectName," to find possible configured project for ").concat(t.fileName," to open")),l?(r=l.getConfigFilePath(),(l!==o||u)&&(i=l.getAllProjectErrors(),this.sendConfigFileDiagEvent(l,t.fileName))):r=void 0,this.createAncestorProjects(t,o))),t.containingProjects.forEach(jp),t.isOrphan()&&(Ao(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),C.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),C.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}createAncestorProjects(t,r){if(t.isAttached(r))for(;;){if(!r.isInitialLoadPending()&&(!r.getCompilerOptions().composite||r.getCompilerOptions().disableSolutionSearching))return;const i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;const o=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,"Creating project possibly referencing default composite project ".concat(r.getProjectName()," of open file ").concat(t.fileName));o.isInitialLoadPending()&&o.setPotentialProjectReference(r.canonicalConfigFilePath),r=o}}loadAncestorProjectTree(t){t=t||N6(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);const r=new Set;for(const i of Wo(this.configuredProjects.values()))HOe(i,o=>t.has(o))&&jp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Dv(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;const s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(const l of s){if(!l)continue;const u=UJ(l.references,f=>r.has(f.sourceFile.path)?f:void 0);if(!u)continue;const p=ml(l.sourceFile.fileName),h=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,"Creating project referenced by : ".concat(t.projectName," as it references project ").concat(u.sourceFile.fileName));jp(h),this.ensureProjectChildren(h,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(const r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){const l=this.getOrCreateOpenScriptInfo(t,r,i,o,s),{retainProjects:u,...p}=this.assignProjectToOpenedScriptInfo(l);return this.cleanupAfterOpeningFile(u),this.telemetryOnOpenFile(l),this.printProjects(),p}removeOrphanConfiguredProjects(t){const r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((u,p)=>{const h=this.getConfiguredProjectByCanonicalConfigFilePath(p);return h&&s(h)})};t&&(Ao(t)?t.forEach(s):s(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(l=>{l.hasOpenRef()?s(l):r.has(l.canonicalConfigFilePath)&&qOe(l,u=>o(u)&&s(l))}),r.forEach(l=>this.removeProject(l));function o(l){return l.hasOpenRef()||!r.has(l.canonicalConfigFilePath)}function s(l){r.delete(l.canonicalConfigFilePath)&&(i(l),qOe(l,s))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(No(r.sourceMapFilePath)){const o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!gh(i,o=>{const s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(No(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);const o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}),t.forEach(r=>{this.stopWatchingScriptInfo(r),this.deleteScriptInfo(r),r.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Pm(this.allJsFilesForOpenFileTelemetry,t.path))return;const r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;const i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:PZ,data:{info:{checkJs:o}}})}closeClientFile(t,r){const i=this.getScriptInfoForNormalizedPath(ml(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(const s of r){const l=Tn(t,u=>u.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){const i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,this.configuredProjects.values(),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s=!1;if(t)for(const u of t){const p=this.getOrCreateOpenScriptInfo(ml(u.fileName),u.content,DZ(u.scriptKind),u.hasMixedContent,u.projectRootPath?ml(u.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(const u of r){const p=this.getScriptInfo(u.fileName);C.assert(!!p),this.applyChangesToFile(p,u.changes)}if(i)for(const u of i)s=this.closeClientFile(u,!0)||s;let l;o&&(l=Pi(o,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):Le(i)&&this.printProjects()}applyChangesToFile(t,r){for(const i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t==null||t.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){const i=ml(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{const s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){const r=PE(this.externalProjects,i=>i.getProjectName(),i=>!0);gh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(const i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);gh(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=MZ}applySafeList(t){var o;const r=t.typeAcquisition;C.assert(!!r,"proj.typeAcquisition should be set by now");const i=this.applySafeListWorker(t,t.rootFiles,r);return(o=i==null?void 0:i.excludedFiles)!=null?o:[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;const o=i.include||(i.include=[]),s=[],l=r.map(b=>Lu(b.fileName));for(const b of Object.keys(this.safelist)){const A=this.safelist[b];for(const I of l)if(A.match.test(I)){if(this.logger.info("Excluding files based on rule ".concat(b," matching file '").concat(I,"'")),A.types)for(const R of A.types)o.includes(R)||o.push(R);if(A.exclude)for(const R of A.exclude){const M=I.replace(A.match,(...N)=>R.map(O=>typeof O=="number"?No(N[O])?Ybe.escapeFilenameForRegex(N[O]):(this.logger.info("Incorrect RegExp specification in safelist rule ".concat(b," - not enough groups")),"\\*"):O).join(""));s.includes(M)||s.push(M)}else{const R=Ybe.escapeFilenameForRegex(I);s.includes(R)||s.push(R)}}}const u=s.map(b=>new RegExp(b,"i"));let p,h;for(let b=0;b<r.length;b++)if(u.some(A=>A.test(l[b])))f(b);else{if(i.enable){const A=lc(dh(l[b]));if(Il(A,"js")){const I=Ad(A),R=SG(I),M=this.legacySafelist.get(R);if(M!==void 0){this.logger.info("Excluded '".concat(l[b],"' because it matched ").concat(R," from the legacy safelist")),f(b),o.includes(M)||o.push(M);continue}}}/^.+[.-]min\.js$/.test(l[b])?f(b):p==null||p.push(r[b])}return h?{rootFiles:p,excludedFiles:h}:void 0;function f(b){h||(C.assert(!p),p=r.slice(0,b),h=[]),h.push(l[b])}}openExternalProject(t,r){var u,p;const i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName);let s,l=[];for(const h of t.rootFiles){const f=ml(h.fileName);if(_Z(f)){if(this.serverMode===0&&this.host.fileExists(f)){let b=this.findConfiguredProjectByProjectName(f);b||(b=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(f,"Creating configured project in external project: ".concat(t.projectFileName)):this.createLoadAndUpdateConfiguredProject(f,"Creating configured project in external project: ".concat(t.projectFileName))),o!=null&&o.has(b)||b.addExternalProjectReference(),(s!=null?s:s=new Set).add(b),o==null||o.delete(b)}}else l.push(h)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);const h=t.typeAcquisition||{};h.include=h.include||[],h.exclude=h.exclude||[],h.enable===void 0&&(h.enable=Hhe(l.map(A=>A.fileName)));const f=this.applySafeListWorker(t,l,h),b=(u=f==null?void 0:f.excludedFiles)!=null?u:[];if(l=(p=f==null?void 0:f.rootFiles)!=null?p:l,i){i.excludedFiles=b;const A=Xz(t.options),I=g8(t.options,i.getCurrentDirectory()),R=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,A,l,l9);R?i.disableLanguageService(R):i.enableLanguageService(),i.setProjectErrors(I==null?void 0:I.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,l9,A,h,t.options.compileOnSave,I==null?void 0:I.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,h,b).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(const t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){var o;if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info("Enabling plugin ".concat(r.name," from candidate paths: ").concat(i.join(","))),!r.name||Cw(r.name).rest){this.logger.info("Skipped loading plugin ".concat(r.name||JSON.stringify(r)," because only package name is allowed plugin name"));return}if(this.host.importPlugin){const s=mT.importServicePluginAsync(r,i,this.host,u=>this.logger.info(u));(o=this.pendingPluginEnablements)!=null||(this.pendingPluginEnablements=new Map);let l=this.pendingPluginEnablements.get(t);l||this.pendingPluginEnablements.set(t,l=[]),l.push(s);return}this.endEnablePlugin(t,mT.importServicePluginSync(r,i,this.host,s=>this.logger.info(s)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){const l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){const u=r.name;r=l,r.name=u}t.enableProxy(i,r)}else He(o,l=>this.logger.info(l)),this.logger.info("Couldn't find ".concat(r.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 t=Wo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){C.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Ot(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){const i=await Promise.all(r);if(!t.isClosed()){for(const o of i)this.endEnablePlugin(t,o);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){const o=this.packageJsonCache,s=i&&this.toPath(i),l=[],u=p=>{switch(o.directoryHasPackageJson(p)){case 3:return o.searchDirectoryAndAncestors(p),u(p);case-1:const h=Yr(p,"package.json");this.watchPackageJsonFile(h,this.toPath(h),r);const f=o.getInDirectory(p);f&&l.push(f)}if(s&&s===p)return!0};return xm(ri(t),u),l}getNearestAncestorDirectoryWithPackageJson(t){return xm(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists(Yr(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){var s,l;C.assert(i!==void 0);let o=((s=this.packageJsonFilesMap)!=null?s:this.packageJsonFilesMap=new Map).get(r);if(!o){let u=this.watchFactory.watchFile(t,(p,h)=>{switch(h){case 0:return C.fail();case 1:this.packageJsonCache.addOrUpdate(p,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,Wc.PackageJson);o={projects:new Set,close:()=>{var p;o.projects.size||!u||(u.close(),u=void 0,(p=this.packageJsonFilesMap)==null||p.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),((l=i.packageJsonWatches)!=null?l:i.packageJsonWatches=new Set).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=llt())}},rge.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,wZ=rge}});function ige(e){let t,r,i;const o={get(p,h,f,b){if(!(!r||i!==l(p,f,b)))return r.get(h)},set(p,h,f,b,A,I){if(s(p,f,b).set(h,u(A,I,!1)),I){for(const R of A)if(R.isInNodeModules){const M=R.path.substring(0,R.path.indexOf(Dh)+Dh.length-1),N=e.toPath(M);t!=null&&t.has(N)||(t||(t=new Map)).set(N,e.watchNodeModulesForPackageJsonChanges(M))}}},setModulePaths(p,h,f,b,A){const I=s(p,f,b),R=I.get(h);R?R.modulePaths=A:I.set(h,u(A,void 0,void 0))},setBlockedByPackageJsonDependencies(p,h,f,b,A){const I=s(p,f,b),R=I.get(h);R?R.isBlockedByPackageJsonDependencies=A:I.set(h,u(void 0,void 0,A))},clear(){t==null||t.forEach(e_),r==null||r.clear(),t==null||t.clear(),i=void 0},count(){return r?r.size:0}};return C.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,h,f){const b=l(p,h,f);return r&&i!==b&&o.clear(),i=b,r||(r=new Map)}function l(p,h,f){return"".concat(p,",").concat(h.importModuleSpecifierEnding,",").concat(h.importModuleSpecifierPreference,",").concat(f.overrideImportMode)}function u(p,h,f){return{modulePaths:p,moduleSpecifiers:h,isBlockedByPackageJsonDependencies:f}}}var ult=T({"src/server/moduleSpecifierCache.ts"(){db()}});function oge(e){const t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(ri(l),!0)},getInDirectory:l=>t.get(e.toPath(Yr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{xm(l,u=>{const p=e.toPath(u);if(s(p)!==3)return!0;const h=Yr(u,"package.json");AO(e,h)?i(h,Yr(p,"package.json")):r.set(p,!0)})}};function i(l,u){const p=C.checkDefined(BX(l,e.host));t.set(u,p),r.delete(ri(u))}function o(l){t.delete(l),r.delete(ri(l))}function s(l){return t.has(Yr(l,"package.json"))?-1:r.has(l)?0:3}}var dlt=T({"src/server/packageJsonCache.ts"(){db()}});function plt(e){const t=e[0],r=e[1];return(1e9*t+r)/1e6}function $Oe(e,t){if((YD(e)||SZ(e))&&e.isJsOnlyProject()){const r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function flt(e){return Cf(e)||!!e.emitDecoratorMetadata}function QOe(e,t,r){const i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:z_(r.messageText,"\n"),code:r.code,category:mS(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Ot(r.relatedInformation,OZ)}}function OZ(e){return e.file?{span:{start:y8(Ts(e.file,e.start)),end:y8(Ts(e.file,e.start+e.length)),file:e.file.fileName},message:z_(e.messageText,"\n"),category:mS(e),code:e.code}:{message:z_(e.messageText,"\n"),category:mS(e),code:e.code}}function y8(e){return{line:e.line+1,offset:e.character+1}}function b8(e,t){const r=e.file&&y8(Ts(e.file,e.start)),i=e.file&&y8(Ts(e.file,e.start+e.length)),o=z_(e.messageText,"\n"),{code:s,source:l}=e,u=mS(e),p={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Ot(e.relatedInformation,OZ)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function mlt(e,t){return e.every(r=>$l(r.span)<t)}function age(e,t,r,i){const o=t.hasLevel(3),s=JSON.stringify(e);o&&t.info("".concat(e.type,":").concat(F0(e)));const l=r(s,"utf8");return"Content-Length: ".concat(1+l,"\r\n\r\n").concat(s).concat(i)}function sge(e,t){return{seq:0,type:"event",event:e,body:t}}function _lt(e,t,r,i){const o=sc(Ao(r)?r:r.projects,s=>i(s,e));return!Ao(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{const u=t(l);o.push(...Pi(s,p=>i(p,u)))}),NE(o,Lv)}function WZ(e){return bG(({textSpan:t})=>t.start+100003*t.length,IX(e))}function hlt(e,t,r,i,o,s,l){const u=ZOe(e,t,r,!0,(f,b)=>f.getLanguageService().findRenameLocations(b.fileName,b.pos,i,o,s),(f,b)=>b(C2(f)));if(Ao(u))return u;const p=[],h=WZ(l);return u.forEach((f,b)=>{for(const A of f)!h.has(A)&&!FZ(C2(A),b)&&(p.push(A),h.add(A))}),p}function glt(e,t,r){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&$c(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function vlt(e,t,r,i,o){var s,l;const u=ZOe(e,t,r,!1,(b,A)=>(o.info("Finding references to ".concat(A.fileName," position ").concat(A.pos," in project ").concat(b.getProjectName())),b.getLanguageService().findReferences(A.fileName,A.pos)),(b,A)=>{A(C2(b.definition));for(const I of b.references)A(C2(I))});if(Ao(u))return u;const p=u.get(t);if(((l=(s=p==null?void 0:p[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)u.forEach(b=>{for(const A of b)for(const I of A.references)delete I.isDefinition});else{const b=WZ(i);for(const I of p)for(const R of I.references)if(R.isDefinition){b.add(R);break}const A=new Set;for(;;){let I=!1;if(u.forEach((R,M)=>{if(A.has(M))return;M.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,b)&&(A.add(M),I=!0)}),!I)break}u.forEach((I,R)=>{if(!A.has(R))for(const M of I)for(const N of M.references)N.isDefinition=!1})}const h=[],f=WZ(i);return u.forEach((b,A)=>{for(const I of b){const R=FZ(C2(I.definition),A),M=R===void 0?I.definition:{...I.definition,textSpan:yu(R.pos,I.definition.textSpan.length),fileName:R.fileName,contextSpan:Elt(I.definition,A)};let N=Tn(h,O=>AX(O.definition,M,i));N||(N={definition:M,references:[]},h.push(N));for(const O of I.references)!f.has(O)&&!FZ(C2(O),A)&&(f.add(O),N.references.push(O))}}),h.filter(b=>b.references.length!==0)}function lge(e,t,r){for(const i of Ao(e)?e:e.projects)r(i,t);!Ao(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(const s of i)r(s,o)})}function ZOe(e,t,r,i,o,s){const l=new Map,u=zM();u.enqueue({project:t,location:r}),lge(e,r.fileName,(M,N)=>{const O={fileName:N,pos:r.pos};u.enqueue({project:M,location:O})});const p=t.projectService,h=t.getCancellationToken(),f=glt(t,r,i),b=Sd(()=>t.isSourceOfProjectReferenceRedirect(f.fileName)?f:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(f)),A=Sd(()=>t.isSourceOfProjectReferenceRedirect(f.fileName)?f:t.getLanguageService().getSourceMapper().tryGetSourcePosition(f)),I=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(h.isCancellationRequested())break e;const{project:M,location:N}=u.dequeue();if(l.has(M)||e8e(M,N)||(jp(M),!M.containsFile(ml(N.fileName))))continue;const O=R(M,N);l.set(M,O!=null?O:Ec),I.add(blt(M))}f&&(p.loadAncestorProjectTree(I),p.forEachEnabledProject(M=>{if(h.isCancellationRequested()||l.has(M))return;const N=ylt(f,M,b,A);N&&u.enqueue({project:M,location:N})}))}if(l.size===1)return _G(l.values());return l;function R(M,N){const O=o(M,N);if(O){for(const U of O)s(U,K=>{const ee=p.getOriginalLocationEnsuringConfiguredProject(M,K);if(!ee)return;const V=p.getScriptInfo(ee.fileName);for(const G of V.containingProjects)!G.isOrphan()&&!l.has(G)&&u.enqueue({project:G,location:ee});const se=p.getSymlinkedProjects(V);se&&se.forEach((G,re)=>{for(const _e of G)!_e.isOrphan()&&!l.has(_e)&&u.enqueue({project:_e,location:{fileName:re,pos:ee.pos}})})});return O}}}function ylt(e,t,r,i){if(t.containsFile(ml(e.fileName))&&!e8e(t,e))return e;const o=r();if(o&&t.containsFile(ml(o.fileName)))return o;const s=i();return s&&t.containsFile(ml(s.fileName))?s:void 0}function e8e(e,t){if(!t)return!1;const r=e.getLanguageService().getProgram();if(!r)return!1;const i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function blt(e){return U0(e)?e.canonicalConfigFilePath:e.getProjectName()}function C2({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function FZ(e,t){return l2(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function t8e(e,t){return y5(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Elt(e,t){return RX(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Ph(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset($l(e))}}function cge(e,t,r){const i=Ph(e,r),o=t&&Ph(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function Slt(e,t){return{start:n8e(t,e.span.start),end:n8e(t,$l(e.span)),newText:e.newText}}function n8e(e,t){return ege(e)?Alt(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Tlt(e,t){const r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function Alt(e){return{line:e.line+1,offset:e.character+1}}function Ilt(e){C.assert(e.textChanges.length===1);const t=Xa(e.textChanges);return C.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function uge(e,t,r,i){const o=xlt(e,t,i),{line:s,character:l}=Xx(DA(o),r);return{line:s+1,offset:l+1}}function xlt(e,t,r){for(const{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){const{newText:l,span:{start:u,length:p}}=o[s];e=e.slice(0,u)+l+e.slice(u+p)}return e}function r8e(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){const u=C.checkDefined(e.getScriptInfo(t)),p=cge(r,i,u),h=l?void 0:Rlt(u,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function Rlt(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,$l(r)).replace(/\r|\n/g,"")}function Dlt(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var dge,pge,i8e,fge,o8e,mge,Clt=T({"src/server/session.ts"(){db(),_T(),Ghe(),dge={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},pge=vZ,i8e=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){const r=this.requestId;C.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){const i=this.requestId;C.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r))},t,e))}executeAction(e){var t,r,i,o,s,l;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=ar)==null||t.instant(ar.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=ar)==null||r.push(ar.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=ar)==null||i.pop())}catch(p){(o=ar)==null||o.popAll(),u=!0,p instanceof qx?(s=ar)==null||s.instant(ar.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=ar)==null||l.instant(ar.Phase.Session,"stepError",{seq:this.requestId,message:p.message}),this.operationHost.logError(p,"delayed processing of request ".concat(this.requestId)))}(u||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},fge=["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"],o8e=[...fge,"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"],mge=class Fte{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const s={version:Te};return this.requiredResponse(s)},openExternalProject:s=>(this.projectService.openExternalProject(s.arguments,!0),this.requiredResponse(!0)),openExternalProjects:s=>(this.projectService.openExternalProjects(s.arguments.projects),this.requiredResponse(!0)),closeExternalProject:s=>(this.projectService.closeExternalProject(s.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:s=>{const l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);const u=Ot(l,p=>!p.projectErrors||p.projectErrors.length===0?p:{info:p.info,changes:p.changes,files:p.files,projectErrors:this.convertToDiagnosticsWithLinePosition(p.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&Ia(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&Ia(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:kg(fG(l.textChanges),u=>{const p=C.checkDefined(this.projectService.getScriptInfo(l.fileName)),h=p.lineOffsetToPosition(u.start.line,u.start.offset),f=p.lineOffsetToPosition(u.end.line,u.end.offset);return h>=0?{span:{start:h,length:f-h},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&Ia(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:fG(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:s=>this.requiredResponse(this.getDefinition(s.arguments,!0)),"definition-full":s=>this.requiredResponse(this.getDefinition(s.arguments,!1)),definitionAndBoundSpan:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!0)),"definitionAndBoundSpan-full":s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!1)),findSourceDefinition:s=>this.requiredResponse(this.findSourceDefinition(s.arguments)),"emit-output":s=>this.requiredResponse(this.getEmitOutput(s.arguments)),typeDefinition:s=>this.requiredResponse(this.getTypeDefinition(s.arguments)),implementation:s=>this.requiredResponse(this.getImplementation(s.arguments,!0)),"implementation-full":s=>this.requiredResponse(this.getImplementation(s.arguments,!1)),references:s=>this.requiredResponse(this.getReferences(s.arguments,!0)),"references-full":s=>this.requiredResponse(this.getReferences(s.arguments,!1)),rename:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!0)),"renameLocations-full":s=>this.requiredResponse(this.getRenameLocations(s.arguments,!1)),"rename-full":s=>this.requiredResponse(this.getRenameInfo(s.arguments)),open:s=>(this.openClientFile(ml(s.arguments.file),s.arguments.fileContent,CZ(s.arguments.scriptKindName),s.arguments.projectRootPath?ml(s.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!0)),"quickinfo-full":s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!1)),getOutliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!0)),outliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!1)),todoComments:s=>this.requiredResponse(this.getTodoComments(s.arguments)),indentation:s=>this.requiredResponse(this.getIndentation(s.arguments)),nameOrDottedNameSpan:s=>this.requiredResponse(this.getNameOrDottedNameSpan(s.arguments)),breakpointStatement:s=>this.requiredResponse(this.getBreakpointStatement(s.arguments)),braceCompletion:s=>this.requiredResponse(this.isValidBraceCompletion(s.arguments)),docCommentTemplate:s=>this.requiredResponse(this.getDocCommentTemplate(s.arguments)),getSpanOfEnclosingComment:s=>this.requiredResponse(this.getSpanOfEnclosingComment(s.arguments)),fileReferences:s=>this.requiredResponse(this.getFileReferences(s.arguments,!0)),"fileReferences-full":s=>this.requiredResponse(this.getFileReferences(s.arguments,!1)),format:s=>this.requiredResponse(this.getFormattingEditsForRange(s.arguments)),formatonkey:s=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(s.arguments)),"format-full":s=>this.requiredResponse(this.getFormattingEditsForDocumentFull(s.arguments)),"formatonkey-full":s=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(s.arguments)),"formatRange-full":s=>this.requiredResponse(this.getFormattingEditsForRangeFull(s.arguments)),completionInfo:s=>this.requiredResponse(this.getCompletions(s.arguments,"completionInfo")),completions:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions")),"completions-full":s=>this.requiredResponse(this.getCompletions(s.arguments,"completions-full")),completionEntryDetails:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!1)),"completionEntryDetails-full":s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!0)),compileOnSaveAffectedFileList:s=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(s.arguments)),compileOnSaveEmitFile:s=>this.requiredResponse(this.emitFile(s.arguments)),signatureHelp:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!0)),"signatureHelp-full":s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!1)),"compilerOptionsDiagnostics-full":s=>this.requiredResponse(this.getCompilerOptionsDiagnostics(s.arguments)),"encodedSyntacticClassifications-full":s=>this.requiredResponse(this.getEncodedSyntacticClassifications(s.arguments)),"encodedSemanticClassifications-full":s=>this.requiredResponse(this.getEncodedSemanticClassifications(s.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:s=>this.requiredResponse(this.getSemanticDiagnosticsSync(s.arguments)),syntacticDiagnosticsSync:s=>this.requiredResponse(this.getSyntacticDiagnosticsSync(s.arguments)),suggestionDiagnosticsSync:s=>this.requiredResponse(this.getSuggestionDiagnosticsSync(s.arguments)),geterr:s=>(this.errorCheck.startNew(l=>this.getDiagnostics(l,s.arguments.delay,s.arguments.files)),this.notRequired()),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired()),change:s=>(this.change(s.arguments),this.notRequired()),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.doOutput(void 0,"configure",s.seq,!0),this.notRequired()),reload:s=>(this.reload(s.arguments,s.seq),this.requiredResponse({reloadFinished:!0})),saveto:s=>{const l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{const l=s.arguments;return this.closeClientFile(l.file),this.notRequired()},navto:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!0)),"navto-full":s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!1)),brace:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!0)),"brace-full":s=>this.requiredResponse(this.getBraceMatching(s.arguments,!1)),navbar:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!0)),"navbar-full":s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!1)),navtree:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!0)),"navtree-full":s=>this.requiredResponse(this.getNavigationTree(s.arguments,!1)),documentHighlights:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!0)),"documentHighlights-full":s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!1)),compilerOptionsForInferredProjects:s=>(this.setCompilerOptionsForInferredProjects(s.arguments),this.requiredResponse(!0)),projectInfo:s=>this.requiredResponse(this.getProjectInfo(s.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:s=>this.requiredResponse(this.getJsxClosingTag(s.arguments)),linkedEditingRange:s=>this.requiredResponse(this.getLinkedEditingRange(s.arguments)),getCodeFixes:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!0)),"getCodeFixes-full":s=>this.requiredResponse(this.getCodeFixes(s.arguments,!1)),getCombinedCodeFix:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!0)),"getCombinedCodeFix-full":s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!1)),applyCodeActionCommand:s=>this.requiredResponse(this.applyCodeActionCommand(s.arguments)),getSupportedCodeFixes:s=>this.requiredResponse(this.getSupportedCodeFixes(s.arguments)),getApplicableRefactors:s=>this.requiredResponse(this.getApplicableRefactors(s.arguments)),getEditsForRefactor:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!0)),getMoveToRefactoringFileSuggestions:s=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(s.arguments)),"getEditsForRefactor-full":s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!1)),organizeImports:s=>this.requiredResponse(this.organizeImports(s.arguments,!0)),"organizeImports-full":s=>this.requiredResponse(this.organizeImports(s.arguments,!1)),getEditsForFileRename:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!0)),"getEditsForFileRename-full":s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!1)),configurePlugin:s=>(this.configurePlugin(s.arguments),this.doOutput(void 0,"configurePlugin",s.seq,!0),this.notRequired()),selectionRange:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!0)),"selectionRange-full":s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!1)),prepareCallHierarchy:s=>this.requiredResponse(this.prepareCallHierarchy(s.arguments)),provideCallHierarchyIncomingCalls:s=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(s.arguments)),provideCallHierarchyOutgoingCalls:s=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(s.arguments)),toggleLineComment:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!0)),"toggleLineComment-full":s=>this.requiredResponse(this.toggleLineComment(s.arguments,!1)),toggleMultilineComment:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!0)),"toggleMultilineComment-full":s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!1)),commentSelection:s=>this.requiredResponse(this.commentSelection(s.arguments,!0)),"commentSelection-full":s=>this.requiredResponse(this.commentSelection(s.arguments,!1)),uncommentSelection:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!0)),"uncommentSelection-full":s=>this.requiredResponse(this.uncommentSelection(s.arguments,!1)),provideInlayHints:s=>this.requiredResponse(this.provideInlayHints(s.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||Jz,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;const i={executeWithRequestId:(s,l)=>this.executeWithRequestId(s,l),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:s=>this.sendRequestCompletedEvent(s),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new i8e(i);const o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new wZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new gZ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:fge.forEach(s=>this.handlers.set(s,l=>{throw new Error("Request: ".concat(l.command," not allowed in LanguageServiceMode.PartialSemantic"))}));break;case 2:o8e.forEach(s=>this.handlers.set(s,l=>{throw new Error("Request: ".concat(l.command," not allowed in LanguageServiceMode.Syntactic"))}));break;default:C.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,r){var i;this.performanceData||(this.performanceData={}),this.performanceData[t]=((i=this.performanceData[t])!=null?i:0)+r}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case v8:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case Qz:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case Zz:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case e9:case i9:case o9:case a9:this.event(t.data,t.eventName);break;case t9:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Ot(t.data.diagnostics,r=>b8(r,!0))},t.eventName);break;case n9:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case r9:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info("got projects updated in background ".concat(t)),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info("Queueing diagnostics update for ".concat(t)),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},v8))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=":\n"+t2(t.message),t.stack&&(o+="\n"+t2(t.stack))),this.logger.hasLevel(3)){if(i)try{const{file:s,project:l}=this.getFileAndProject(i),u=l.getScriptInfoForNormalizedPath(s);if(u){const p=DD(u.getSnapshot());o+="\n\nFile text of ".concat(i.file,":").concat(t2(p),"\n")}}catch(s){}if(t.ProgramFiles){o+="\n\nProgram files: ".concat(JSON.stringify(t.ProgramFiles),"\n"),o+="\n\nProjects::\n";let s=0;const l=u=>{o+="\nProject '".concat(u.projectName,"' (").concat(D2[u.projectKind],") ").concat(s,"\n"),o+=u.filesToString(!0),o+="\n-----------------------------------------------\n",s++};this.projectService.externalProjects.forEach(l),this.projectService.configuredProjects.forEach(l),this.projectService.inferredProjects.forEach(l)}}this.logger.msg(o,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info("Session does not support events: ignored event: ".concat(F0(t)));return}this.writeMessage(t)}writeMessage(t){var r;const i=age(t,this.logger,this.byteLength,this.host.newLine);(r=ad)==null||r.logEvent("Response message size: ".concat(i.length)),this.host.write(i)}event(t,r){this.send(sge(r,t))}doOutput(t,r,i,o,s){const l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let u;if(Ao(t))l.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:p,...h}=t;l.body=h,u=p}else l.body=t;else l.body=t;u&&(l.metadata=u)}else C.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=ar)==null||i.push(ar.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});const s=$Oe(r,t)?Ec:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=ar)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=ar)==null||i.push(ar.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=ar)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=ar)==null||i.push(ar.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=ar)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>QOe(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){C.assert(!this.suppressDiagnosticEvents);const s=this.changeSeq,l=Math.min(i,200);let u=0;const p=()=>{u++,r.length>u&&t.delay("checkOne",l,h)},h=()=>{if(this.changeSeq!==s)return;let f=r[u];if(No(f)&&(f=this.toPendingErrorCheck(f),!f)){p();return}const{fileName:b,project:A}=f;if(jp(A),!!A.containsFile(b,o)&&(this.syntacticCheck(b,A),this.changeSeq===s)){if(A.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(b,A),this.changeSeq===s){if(this.getPreferences(b).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(b,A),p()})}})}};r.length>u&&this.changeSeq===s&&t.delay("checkOne",i,h)}cleanProjects(t,r){if(r){this.logger.info("cleaning ".concat(t));for(const i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Wo(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){const{file:r,project:i}=this.getFileAndProject(t),o=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,o)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){const r=this.getProject(t.projectFileName),i=ml(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){const o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=rr(To(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Ot(l,u=>b8(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:z_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:mS(r),code:r.code,source:r.source,startLocation:r.file&&y8(Ts(r.file,r.start)),endLocation:r.file&&y8(Ts(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Ot(r.relatedInformation,OZ)}))}getCompilerOptionsDiagnostics(t){const r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(rr(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:z_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:mS(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Ot(i.relatedInformation,OZ)}))}getDiagnosticsWorker(t,r,i,o){const{project:s,file:l}=this.getFileAndProject(t);if(r&&$Oe(s,l))return Ec;const u=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,u):p.map(h=>QOe(l,s,h))}getDefinition(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||Ec,o);return r?this.mapDefinitionInfo(l,o):l.map(Fte.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{const o=t8e(i,r);return o?{...o,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=C.checkDefined(o.getScriptInfo(i)),u=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!u||!u.definitions)return{definitions:Ec,textSpan:void 0};const p=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:h}=u;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Ph(h,l)}:{definitions:p.map(Fte.mapToOriginalLocation),textSpan:h}}findSourceDefinition(t){var r;const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s);let u=this.mapDefinitionInfoLocations(l||Ec,o).slice();if(this.projectService.serverMode===0&&(!St(u,I=>ml(I.fileName)!==i&&!I.isAmbient)||St(u,I=>!!I.failedAliasResolution))){const I=bG(O=>O.textSpan.start,IX(this.host.useCaseSensitiveFileNames));u==null||u.forEach(O=>I.add(O));const R=o.getNoDtsResolutionProject(i),M=R.getLanguageService(),N=(r=M.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(O=>ml(O.fileName)!==i);if(St(N))for(const O of N){if(O.unverified){const U=b(O,o.getLanguageService().getProgram(),M.getProgram());if(St(U)){for(const K of U)I.add(K);continue}}I.add(O)}else{const O=u.filter(U=>ml(U.fileName)!==i&&U.isAmbient);for(const U of St(O)?O:f()){const K=h(U.fileName,i,R);if(!K)continue;const ee=this.projectService.getOrCreateScriptInfoNotOpenedByClient(K,R.currentDirectory,R.directoryStructureHost);if(!ee)continue;R.containsScriptInfo(ee)||(R.addRoot(ee),R.updateGraph());const V=M.getProgram(),se=C.checkDefined(V.getSourceFile(K));for(const G of A(U.name,se,V))I.add(G)}}u=Wo(I.values())}return u=u.filter(I=>!I.isAmbient&&!I.failedAliasResolution),this.mapDefinitionInfo(u,o);function h(I,R,M){var N,O,U;const K=aW(I);if(K&&I.lastIndexOf(Dh)===K.topLevelNodeModulesIndex){const ee=I.substring(0,K.packageRootIndex),V=(N=o.getModuleResolutionCache())==null?void 0:N.getPackageJsonInfoCache(),se=o.getCompilationSettings(),G=Dw(yo(ee+"/package.json",o.getCurrentDirectory()),Rw(V,o,se));if(!G)return;const re=zq(G,{moduleResolution:2},o,o.getModuleResolutionCache()),_e=I.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ye=FP(Pw(_e)),Q=o.toPath(I);if(re&&St(re,Y=>o.toPath(Y)===Q))return(O=M.resolutionCache.resolveSingleModuleNameWithoutWatching(ye,R).resolvedModule)==null?void 0:O.resolvedFileName;{const Y=I.substring(K.packageRootIndex+1),oe="".concat(ye,"/").concat(Ad(Y));return(U=M.resolutionCache.resolveSingleModuleNameWithoutWatching(oe,R).resolvedModule)==null?void 0:U.resolvedFileName}}}function f(){const I=o.getLanguageService(),R=I.getProgram(),M=Vd(R.getSourceFile(i),s);return(ds(M)||je(M))&&zs(M.parent)&&Ooe(M,N=>{var O;if(N===M)return;const U=(O=I.getDefinitionAtPosition(i,N.getStart(),!0,!1))==null?void 0:O.filter(K=>ml(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:om(M)}));if(St(U))return U})||Ec}function b(I,R,M){var N;const O=M.getSourceFile(I.fileName);if(!O)return;const U=Vd(R.getSourceFile(i),s),K=R.getTypeChecker().getSymbolAtLocation(U),ee=K&&fl(K,276);if(!ee)return;const V=((N=ee.propertyName)==null?void 0:N.text)||ee.name.text;return A(V,O,M)}function A(I,R,M){const N=Gs.Core.getTopMostDeclarationNamesInFile(I,R);return Hi(N,O=>{const U=M.getTypeChecker().getSymbolAtLocation(O),K=CN(O);if(U&&K)return HD.createDefinitionInfo(K,M.getTypeChecker(),U,K,!0)})}}getEmitOutput(t){const{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>b8(s,!0))}:o}mapJSDocTagInfo(t,r,i){return t?t.map(o=>{var s;return{...o,text:i?this.mapDisplayParts(o.text,r):(s=o.text)==null?void 0:s.map(l=>l.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r),parameters:o.parameters.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r)})),tags:this.mapJSDocTagInfo(o.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(C.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){const o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,$l(r));return{file:t,start:{line:s.line+1,offset:s.character+1},end:{line:l.line+1,offset:l.character+1}}}toFileSpanWithContext(t,r,i,o){const s=this.toFileSpan(t,r,o),l=i&&this.toFileSpan(t,i,o);return l?{...s,contextStart:l.start,contextEnd:l.end}:s}getTypeDefinition(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||Ec,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{const o=t8e(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||Ec,o);return r?l.map(({fileName:u,textSpan:p,contextSpan:h})=>this.toFileSpanWithContext(u,p,h,o)):l.map(Fte.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?Ec:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){const{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(o,s)=>o.getLanguageService().getSemanticDiagnostics(s).filter(l=>!!l.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?Ec:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getJsxClosingTagAtPosition(r,o);return s===void 0?void 0:{newText:s.newText,caretOffset:0}}getLinkedEditingRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getLinkedEditingRangeAtPosition(r,o),l=this.projectService.getScriptInfoForNormalizedPath(r);if(!(l===void 0||s===void 0))return Tlt(s,l)}getDocumentHighlights(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDocumentHighlights(i,s,t.filesToSearch);return l?r?l.map(({fileName:u,highlightSpans:p})=>{const h=o.getScriptInfo(u);return{file:u,highlightSpans:p.map(({textSpan:f,kind:b,contextSpan:A})=>({...cge(f,A,h),kind:b}))}}):l:Ec}provideInlayHints(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{const{position:u,displayParts:p}=l;return{...l,position:o.positionToLineOffset(u),displayParts:p==null?void 0:p.map(({text:h,span:f,file:b})=>{if(f){C.assertIsDefined(b,"Target file should be defined together with its span.");const A=this.projectService.getScriptInfo(b);return{text:h,span:{start:A.positionToLineOffset(f.start),end:A.positionToLineOffset(f.start+f.length),file:b}}}else return{text:h}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,i,o){const{project:s}=this.getFileAndProjectWorker(t,r);return jp(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,o,s)}getProjects(t,r,i){var l;let o,s;if(t.projectFileName){const u=this.getProject(t.projectFileName);u&&(o=[u])}else{const u=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(u)r||this.projectService.ensureDefaultProjectForFile(u);else return i?Ec:(this.projectService.logErrorForScriptInfoNotFound(t.file),ay.ThrowNoProject());o=u.containingProjects,s=this.projectService.getSymlinkedProjects(u)}return o=rr(o,u=>u.languageServiceEnabled&&!u.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound((l=t.file)!=null?l:t.projectFileName),ay.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){const i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return ay.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){const i=ml(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),u=this.getPreferences(i),p=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,u),C.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];const h=hlt(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(h)}:h}mapRenameInfo(t,r){if(t.canRename){const{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:h}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:Ph(h,r)}}else return t}toSpanGroups(t){const r=new Map;for(const{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:p,...h}of t){let f=r.get(i);f||r.set(i,f={file:i,locs:[]});const b=C.checkDefined(this.projectService.getScriptInfo(i));f.locs.push({...cge(o,s,b),...h})}return Wo(r.values())}getReferences(t,r){const i=ml(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=vlt(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;const u=this.getPreferences(i),p=this.getDefaultProject(t),h=p.getScriptInfoForNormalizedPath(i),f=p.getLanguageService().getQuickInfoAtPosition(i,s),b=f?jO(f.displayParts):"",A=f&&f.textSpan,I=A?h.positionToLineOffset(A.start).offset:0,R=A?h.getSnapshot().getText(A.start,$l(A)):"";return{refs:Pi(l,N=>N.references.map(O=>r8e(this.projectService,O,u))),symbolName:R,symbolStartOffset:I,symbolDisplayString:b}}getFileReferences(t,r){const i=this.getProjects(t),o=t.file,s=this.getPreferences(ml(o)),l=[],u=WZ(this.host.useCaseSensitiveFileNames);return lge(i,void 0,h=>{if(h.getCancellationToken().isCancellationRequested())return;const f=h.getLanguageService().getFileReferences(o);if(f)for(const b of f)u.has(b)||(l.push(b),u.add(b))}),r?{refs:l.map(h=>r8e(this.projectService,h,s)),symbolName:'"'.concat(t.file,'"')}:l}openClientFile(t,r,i,o){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,o)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){const{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){const i=ml(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){const l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(u=>({textSpan:Ph(u.textSpan,l),hintSpan:Ph(u.hintSpan,l),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return s}getTodoComments(t){const{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,o,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?$D(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;const u=!!this.getPreferences(i).displayPartsForJSDoc;if(r){const p=jO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset($l(l.textSpan)),displayString:p,documentation:u?this.mapDisplayParts(l.documentation,o):jO(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,u)}}else return u?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=o.lineOffsetToPosition(t.endLine,t.endOffset),u=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(u)return u.map(p=>this.convertTextChangeToCodeEdit(p,o))}getFormattingEditsForRangeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?$D(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?$D(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?$D(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),u=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key==="\n"&&(!u||u.length===0||mlt(u,s))){const{lineText:p,absolutePosition:h}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){const f=i.getIndentationAtPosition(r,s,l);let b=0,A,I;for(A=0,I=p.length;A<I;A++)if(p.charAt(A)===" ")b++;else if(p.charAt(A)===" ")b+=l.tabSize;else break;if(f!==b){const R=h+A;u.push({span:hc(h,R),newText:Fc.getIndentationString(f,l)})}}}if(u)return u.map(p=>({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset($l(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getCompletionsAtPosition(i,l,{...Khe(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(r==="completions-full")return u;const p=t.prefix||"",h=Hi(u.entries,b=>{if(u.isMemberCompletion||po(b.name.toLowerCase(),p.toLowerCase())){const{name:A,kind:I,kindModifiers:R,sortText:M,insertText:N,filterText:O,replacementSpan:U,hasAction:K,source:ee,sourceDisplay:V,labelDetails:se,isSnippet:G,isRecommended:re,isPackageJsonImport:_e,isImportStatementCompletion:ye,data:Q}=b,Y=U?Ph(U,s):void 0;return{name:A,kind:I,kindModifiers:R,sortText:M,insertText:N,filterText:O,replacementSpan:Y,isSnippet:G,hasAction:K||void 0,source:ee,sourceDisplay:V,labelDetails:se,isRecommended:re,isPackageJsonImport:_e,isImportStatementCompletion:ye,data:Q}}});return r==="completions"?(u.metadata&&(h.metadata=u.metadata),h):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&Ph(u.optionalReplacementSpan,s),entries:h}}getCompletionEntryDetails(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.projectService.getFormatCodeOptions(i),p=!!this.getPreferences(i).displayPartsForJSDoc,h=Hi(t.entryNames,f=>{const{name:b,source:A,data:I}=typeof f=="string"?{name:f,source:void 0,data:void 0}:f;return o.getLanguageService().getCompletionEntryDetails(i,l,b,u,A,this.getPreferences(i),I?oa(I,Dlt):void 0)});return r?p?h:h.map(f=>({...f,tags:this.mapJSDocTagInfo(f.tags,o,!1)})):h.map(f=>({...f,codeActions:Ot(f.codeActions,b=>this.mapCodeAction(b)),documentation:this.mapDisplayParts(f.documentation,o),tags:this.mapJSDocTagInfo(f.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){const r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?_lt(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;const l=o.getCompilationSettings();if(!(l.noEmit||Tu(s.fileName)&&!flt(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!Os(l)}}):Ec}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||ay.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,p,h)=>this.host.writeFile(u,p,h));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>b8(u,!0))}:!s}getSignatureHelpItems(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getSignatureHelpItems(i,l,t),p=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){const h=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(h.start),end:s.positionToLineOffset(h.start+h.length)},items:this.mapSignatureHelpItems(u.items,o,p)}}else return p||!u?u:{...u,items:u.items.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)}))}}toPendingErrorCheck(t){const r=ml(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){const r=this.projectService.getScriptInfo(t.file);C.assert(!!r),r.textStorage.switchToScriptVersionCache();const i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,P6({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){const i=ml(t.file),o=t.tmpfile===void 0?void 0:ml(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;const r=ha(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Ot(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>Ph(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Ph(i,r)),nameSpan:t.nameSpan&&Ph(t.nameSpan,r),childItems:Ot(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){const i=this.getFullNavigateToItems(t);return r?Pi(i,({project:o,navigateToItems:s})=>s.map(l=>{const u=o.getScriptInfo(l.fileName),p={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:u.positionToLineOffset(l.textSpan.start),end:u.positionToLineOffset($l(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(p.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(p.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(p.containerKind=l.containerKind),p})):Pi(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){const{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){C.assertIsDefined(t.file);const{file:A,project:I}=this.getFileAndProject(t);return[{project:I,navigateToItems:I.getLanguageService().getNavigateToItems(i,o,A)}]}const l=this.getHostPreferences(),u=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(A=>h(A));else{const A=this.getProjects(t);lge(A,void 0,I=>h(I))}return u;function h(A){const I=A.getLanguageService().getNavigateToItems(i,o,void 0,A.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=rr(I,M=>f(M)&&!FZ(C2(M),A));R.length&&u.push({project:A,navigateToItems:R})}function f(A){const I=A.name;if(!p.has(I))return p.set(I,[A]),!0;const R=p.get(I);for(const M of R)if(b(M,A))return!1;return R.push(A),!0}function b(A,I){return A===I?!0:!A||!I?!1:A.containerKind===I.containerKind&&A.containerName===I.containerName&&A.fileName===I.fileName&&A.isCaseSensitive===I.isCaseSensitive&&A.kind===I.kind&&A.kindModifiers===I.kindModifiers&&A.matchKind===I.matchKind&&A.name===I.name&&A.textSpan.start===I.textSpan.start&&A.textSpan.length===I.textSpan.length}}getSupportedCodeFixes(t){if(!t)return JY();if(t.file){const{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}const r=this.getProject(t.projectFileName);return r||ay.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),C.checkDefined(i===void 0?o:i);function s(l){return l.position!==void 0?l.position:r.lineOffsetToPosition(l.line,l.offset)}}getRange(t,r){const{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(l===void 0)return{edits:[]};if(r){const{renameFilename:u,renameLocation:p,edits:h}=l;let f;if(u!==void 0&&p!==void 0){const b=o.getScriptInfoForNormalizedPath(ml(u));f=uge(DD(b.getSnapshot()),u,p,h)}return{renameLocation:f,renameFilename:u,edits:this.mapTextChangesToCodeEdits(h),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}organizeImports(t,r){var l;C.assert(t.scope.type==="file");const{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:(l=t.mode)!=null?l:t.skipDestructiveCodeActions?"SortAndCombine":void 0,type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){const i=ml(t.oldFilePath),o=ml(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(h=>{const f=h.getLanguageService().getEditsForFileRename(i,o,s,l),b=[];for(const A of f)u.has(A.fileName)||(p.push(A),b.push(A.fileName));for(const A of b)u.add(A)}),r?p.map(h=>this.mapTextChangeToCodeEdit(h)):p}getCodeFixes(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:u}=this.getStartAndEndPosition(t,s);let p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(h){const f=o.getLanguageService(),b=[...f.getSyntacticDiagnostics(i),...f.getSemanticDiagnostics(i),...f.getSuggestionDiagnostics(i)].map(I=>lL(l,u-l,I.start,I.length)&&I.code),A=t.errorCodes.find(I=>!b.includes(I));throw A!==void 0&&(h.message="BADCLIENT: Bad error code, ".concat(A," not found in range ").concat(l,"..").concat(u," (found: ").concat(b.join(", "),"); could have caused this error:\n").concat(h.message)),h}return r?p.map(h=>this.mapCodeFixAction(h)):p}getCombinedCodeFix({scope:t,fixId:r},i){C.assert(t.type==="file");const{file:o,project:s}=this.getFileAndProject(t.args),l=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(l.changes),commands:l.commands}:l}applyCodeActionCommand(t){const r=t.command;for(const i of SA(r)){const{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(l=>{},l=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:l}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:l}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){const r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),C.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>Slt(i,r))}:Ilt(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getBraceMatchingAtPosition(i,l);return u?r?u.map(p=>Ph(p,s)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;const{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;const l=o.filter(M=>!M.includes("lib.d.ts"));if(l.length===0)return;const u=[],p=[],h=[],f=[],b=ml(i),A=this.projectService.ensureDefaultProjectForFile(b);for(const M of l)this.getCanonicalFileName(M)===this.getCanonicalFileName(i)?u.push(M):this.projectService.getScriptInfo(M).isScriptOpen()?p.push(M):Tu(M)?f.push(M):h.push(M);const R=[...u,...p,...h,...f].map(M=>({fileName:M,project:A}));this.updateErrorCheck(t,R,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){const{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=C.checkDefined(this.projectService.getScriptInfo(o));return Ot(i,u=>{const p=this.getPosition(u,l),h=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(h,l):h})}toggleLineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),u=o.toggleLineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}toggleMultilineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.toggleMultilineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}commentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.commentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}uncommentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.uncommentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}mapSelectionRange(t,r){const i={textSpan:Ph(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=ml(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),ay.ThrowNoProject())}toProtocolCallHierarchyItem(t){const r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Ph(t.span,r),selectionSpan:Ph(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){const r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Ph(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Ph(i,r))}}prepareCallHierarchy(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){const s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&jX(l,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyIncomingCall(l))}provideCallHierarchyOutgoingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyOutgoingCall(l,o))}getCanonicalFileName(t){const r=this.host.useCaseSensitiveFileNames?t:dh(t);return ha(r)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error('Protocol handler already exists for command "'.concat(t,'"'));this.handlers.set(t,r)}setCurrentRequest(t){C.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){C.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r){try{return this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t)}}executeCommand(t){const r=this.handlers.get(t.command);if(r){const i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg("Unrecognized JSON command:".concat(F0(t)),"Err"),this.doOutput(void 0,"unknown",t.seq,!1,"Unrecognized JSON command: ".concat(t.command)),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,u,p,h,f,b,A;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let I;this.logger.hasLevel(2)&&(I=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info("request:".concat(t2(this.toStringMessage(t)))));let R,M;try{R=this.parseMessage(t),M=R.arguments&&R.arguments.file?R.arguments:void 0,(r=ar)==null||r.instant(ar.Phase.Session,"request",{seq:R.seq,command:R.command}),(i=ad)==null||i.logStartCommand(""+R.command,this.toStringMessage(t).substring(0,100)),(o=ar)==null||o.push(ar.Phase.Session,"executeCommand",{seq:R.seq,command:R.command},!0);const{response:N,responseRequired:O}=this.executeCommand(R);if((s=ar)==null||s.pop(),this.logger.hasLevel(2)){const U=plt(this.hrtime(I)).toFixed(4);O?this.logger.perftrc("".concat(R.seq,"::").concat(R.command,": elapsed time (in milliseconds) ").concat(U)):this.logger.perftrc("".concat(R.seq,"::").concat(R.command,": async elapsed time (in milliseconds) ").concat(U))}(l=ad)==null||l.logStopCommand(""+R.command,"Success"),(u=ar)==null||u.instant(ar.Phase.Session,"response",{seq:R.seq,command:R.command,success:!!N}),N?this.doOutput(N,R.command,R.seq,!0):O&&this.doOutput(void 0,R.command,R.seq,!1,"No content available.")}catch(N){if((p=ar)==null||p.popAll(),N instanceof qx){(h=ad)==null||h.logStopCommand(""+(R&&R.command),"Canceled: "+N),(f=ar)==null||f.instant(ar.Phase.Session,"commandCanceled",{seq:R==null?void 0:R.seq,command:R==null?void 0:R.command}),this.doOutput({canceled:!0},R.command,R.seq,!0);return}this.logErrorWorker(N,this.toStringMessage(t),M),(b=ad)==null||b.logStopCommand(""+(R&&R.command),"Error: "+N),(A=ar)==null||A.instant(ar.Phase.Session,"commandError",{seq:R==null?void 0:R.seq,command:R==null?void 0:R.command,message:N.message}),this.doOutput(void 0,R?R.command:"unknown",R?R.seq:0,!1,"Error processing request. "+N.message+"\n"+N.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),HI,zZ,a8e,s8e,c9,u9,_ge,N2,qI,E8,Nlt=T({"src/server/scriptVersionCache.ts"(){db(),_T(),HI=4,zZ=(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))(zZ||{}),a8e=class{constructor(){this.goSubtree=!0,this.lineIndex=new N2,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new qI,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;const i=N2.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(s=this.endBranch[u],u>0?o=this.endBranch[u-1]:o=this.branchNode);s&&o.remove(s);const l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let u=new Array(i.length-1),p=l;for(let b=1;b<i.length;b++)u[b-1]=new E8(i[b]);let h=this.startPath.length-2;for(;h>=0;){const b=this.startPath[h];u=b.insertAt(p,u),h--,p=b}let f=u.length;for(;f>0;){const b=new qI;b.add(this.lineIndex.root),u=b.insertAt(this.lineIndex.root,u),f=u.length,this.lineIndex.root=b}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let p=this.startPath.length-2;p>=0;p--)this.startPath[p].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){const s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function u(p){return p.isLeaf()?new E8(""):new qI}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=u(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=u(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(l)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},s8e=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return cL(yu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},c9=class mA{constructor(){this.changes=[],this.versions=new Array(mA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%mA.maxVersions}currentVersionToIndex(){return this.currentVersion%mA.maxVersions}edit(t,r,i){this.changes.push(new s8e(t,r,i)),(this.changes.length>mA.changeNumberThreshold||r>mA.changeLengthThreshold||i&&i.length>mA.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(const i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new _ge(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=mA.maxVersions&&(this.minVersion=this.currentVersion-mA.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){const r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return yu(o,s)}getTextChangesBetweenVersions(t,r){if(t<r)if(t>=this.minVersion){const i=[];for(let o=t+1;o<=r;o++){const s=this.versions[this.versionToIndex(o)];for(const l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return Sre(i)}else return;else return IL}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const r=new mA,i=new _ge(0,r,new N2);r.versions[r.currentVersion]=i;const o=N2.linesFromText(t);return i.index.load(o.lines),r}},c9.changeNumberThreshold=8,c9.changeLengthThreshold=256,c9.maxVersions=8,u9=c9,_ge=class F7e{constructor(t,r,i,o=Ec){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof F7e&&this.cache===t.cache)return this.version<=t.version?IL:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},N2=class $be{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){const{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){const r=this.getLineCount();if(t<=r){const{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const r=[];for(let i=0;i<t.length;i++)r[i]=new E8(t[i]);this.root=$be.buildTreeFromBottom(r)}else this.root=new qI}walk(t,r,i){this.root.walk(t,r,i)}getText(t,r){let i="";return r>0&&t<this.root.charCount()&&this.walk(t,r,{goSubtree:!0,done:!1,leaf:(o,s,l)=>{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());const o={goSubtree:!0,done:!1,leaf(s,l,u){t(u,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return C.assert(r===0),i!==void 0?(this.load($be.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){const u=this.getText(0,this.root.charCount());o=u.slice(0,t)+i+u.slice(t+r)}const s=new a8e;let l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const u=this.getText(t,1);i?i=u+i:i=u,r=0,l=!0}else if(r>0){const u=t+r,{zeroBasedColumn:p,lineText:h}=this.positionToColumnAndLineText(u);p===0&&(r+=h.length,i=i?i+h:h)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){const u=s.lineIndex.getText(0,s.lineIndex.getLength());C.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length<HI)return new qI(t);const r=new Array(Math.ceil(t.length/HI));let i=0;for(let o=0;o<r.length;o++){const s=Math.min(i+HI,t.length);r[o]=new qI(t.slice(i,s)),i=s}return this.buildTreeFromBottom(r)}static linesFromText(t){const r=DA(t);if(r.length===0)return{lines:[],lineMap:r};const i=new Array(r.length),o=r.length-1;for(let l=0;l<o;l++)i[l]=t.substring(r[l],r[l+1]);const s=t.substring(r[o]);return s.length>0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},qI=class Qbe{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){let o=0,s=this.children[o].charCount(),l=t;for(;l>=s;)this.skipChild(l,r,o,i,0),l-=s,o++,s=this.children[o].charCount();if(l+r<=s){if(this.execWalk(l,r,i,o,2))return}else{if(this.execWalk(l,s-l,i,o,1))return;let u=r-(s-l);for(o++,s=this.children[o].charCount();u>s;){if(this.execWalk(0,s,i,o,3))return;u-=s,o++,s=this.children[o].charCount()}if(u>0&&this.execWalk(0,u,i,o,4))return}if(i.pre){const u=this.children.length;if(o<u-1)for(let p=o+1;p<u;p++)this.skipChild(0,0,p,i,5)}}charOffsetToLineInfo(t,r){if(this.children.length===0)return{oneBasedLine:t,zeroBasedColumn:r,lineText:void 0};for(const s of this.children){if(s.charCount()>r)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}const i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const o=C.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(const i of this.children){const o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r;const i=this.children.length;t++;const o=t;if(t<i){for(r=new Qbe;t<i;)r.add(this.children[t]),t++;r.updateCounts()}return this.children.length=o,r}remove(t){const r=this.findChildIndex(t),i=this.children.length;if(r<i-1)for(let o=r;o<i-1;o++)this.children[o]=this.children[o+1];this.children.pop()}findChildIndex(t){const r=this.children.indexOf(t);return C.assert(r!==-1),r}insertAt(t,r){let i=this.findChildIndex(t);const o=this.children.length,s=r.length;if(o<HI&&i===o-1&&s===1)return this.add(r[0]),this.updateCounts(),[];{const l=this.splitAfter(i);let u=0;for(i++;i<HI&&u<s;)this.children[i]=r[u],i++,u++;let p=[],h=0;if(u<s){h=Math.ceil((s-u)/HI),p=new Array(h);let f=0;for(let A=0;A<h;A++)p[A]=new Qbe;let b=p[0];for(;u<s;)b.add(r[u]),u++,b.children.length===HI&&(f++,b=p[f]);for(let A=p.length-1;A>=0;A--)p[A].children.length===0&&p.pop()}l&&p.push(l),this.updateCounts();for(let f=0;f<h;f++)p[f].updateCounts();return p}}add(t){this.children.push(t),C.assert(this.children.length<=HI)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},E8=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,r){r.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}}}}),hge,gge,Plt=T({"src/server/typingInstallerAdapter.ts"(){db(),_T(),hge=class z7e{constructor(t,r,i,o,s,l){this.telemetryEnabled=t,this.logger=r,this.host=i,this.globalTypingsCacheLocation=o,this.event=s,this.maxActiveRequestCount=l,this.activeRequestCount=0,this.requestQueue=zM(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(t){var r;return G_.validatePackageName(t)!==G_.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((r=this.typesRegistryCache)!=null&&r.has(t)))}installPackage(t){this.packageInstallId++;const r={kind:"installPackage",...t,id:this.packageInstallId},i=new Promise((o,s)=>{var l;((l=this.packageInstalledPromise)!=null?l:this.packageInstalledPromise=new Map).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){const o=She(t,r,i);this.logger.hasLevel(3)&&this.logger.info("TIAdapter:: Scheduling throttled operation:".concat(F0(o))),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(o):(this.logger.hasLevel(3)&&this.logger.info("TIAdapter:: Deferring request for: ".concat(o.projectName)),this.requestQueue.enqueue(o),this.requestMap.set(o.projectName,o))}handleMessage(t){var r,i;switch(this.logger.hasLevel(3)&&this.logger.info("TIAdapter:: Received response:".concat(F0(t))),t.kind){case H7:this.typesRegistryCache=new Map(Object.entries(t.typesRegistry));break;case eO:{const o=(r=this.packageInstalledPromise)==null?void 0:r.get(t.id);C.assertIsDefined(o,"Should find the promise for package install"),(i=this.packageInstalledPromise)==null||i.delete(t.id),t.success?o.resolve({successMessage:t.message}):o.reject(t.message),this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case DK:{const o={message:t.message};this.event(o,"typesInstallerInitializationFailed");break}case q7:{const o={eventId:t.eventId,packages:t.packagesToInstall};this.event(o,"beginInstallTypes");break}case J7:{if(this.telemetryEnabled){const l={telemetryEventName:"typingsInstalled",payload:{installedPackages:t.packagesToInstall.join(","),installSuccess:t.installSuccess,typingsInstallerVersion:t.typingsInstallerVersion}};this.event(l,"telemetry")}const o={eventId:t.eventId,packages:t.packagesToInstall,success:t.installSuccess};this.event(o,"endInstallTypes");break}case Zw:{this.projectService.updateTypingsForProject(t);break}case Qw:{for(this.activeRequestCount>0?this.activeRequestCount--:C.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info("TIAdapter:: Skipping defunct request for: ".concat(o.projectName))}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case n2:this.projectService.watchTypingLocations(t);break}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info("TIAdapter:: Scheduling request for: ".concat(t.projectName)),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info("TIAdapter:: Sending request:".concat(F0(t))),this.installer.send(t)},z7e.requestDelayMillis,"".concat(t.projectName,"::").concat(t.kind))}},hge.requestDelayMillis=100,gge=hge}}),l8e={};X(l8e,{ActionInvalidate:()=>Zw,ActionPackageInstalled:()=>eO,ActionSet:()=>Qw,ActionWatchTypingLocations:()=>n2,Arguments:()=>CK,AutoImportProviderProject:()=>xZ,AuxiliaryProject:()=>AZ,CharRangeSection:()=>zZ,CloseFileWatcherEvent:()=>a9,CommandNames:()=>pge,ConfigFileDiagEvent:()=>t9,ConfiguredProject:()=>RZ,CreateDirectoryWatcherEvent:()=>o9,CreateFileWatcherEvent:()=>i9,Errors:()=>ay,EventBeginInstallTypes:()=>q7,EventEndInstallTypes:()=>J7,EventInitializationFailed:()=>DK,EventTypesRegistry:()=>H7,ExternalProject:()=>Kz,GcTimer:()=>gZ,InferredProject:()=>TZ,LargeFileReferencedEvent:()=>e9,LineIndex:()=>N2,LineLeaf:()=>E8,LineNode:()=>qI,LogLevel:()=>fZ,Msg:()=>mZ,OpenFileInfoTelemetryEvent:()=>PZ,Project:()=>mT,ProjectInfoTelemetryEvent:()=>r9,ProjectKind:()=>D2,ProjectLanguageServiceStateEvent:()=>n9,ProjectLoadingFinishEvent:()=>Zz,ProjectLoadingStartEvent:()=>Qz,ProjectReferenceProjectLoadKind:()=>kZ,ProjectService:()=>wZ,ProjectsUpdatedInBackgroundEvent:()=>v8,ScriptInfo:()=>bZ,ScriptVersionCache:()=>u9,Session:()=>mge,TextStorage:()=>yZ,ThrottledOperations:()=>hZ,TypingsCache:()=>EZ,TypingsInstallerAdapter:()=>gge,allFilesAreJsOrDts:()=>Uhe,allRootFilesAreJsOrDts:()=>jhe,asNormalizedPath:()=>WOe,convertCompilerOptions:()=>Xz,convertFormatOptions:()=>$D,convertScriptKindName:()=>CZ,convertTypeAcquisition:()=>Jhe,convertUserPreferences:()=>Khe,convertWatchOptions:()=>g8,countEachFileTypes:()=>_8,createInstallTypingsRequest:()=>She,createModuleSpecifierCache:()=>ige,createNormalizedPathMap:()=>FOe,createPackageJsonCache:()=>oge,createSortedArray:()=>Rhe,emptyArray:()=>Ec,findArgument:()=>xDe,forEachResolvedProjectReferenceProject:()=>QD,formatDiagnosticToProtocol:()=>b8,formatMessage:()=>age,getBaseConfigFileName:()=>_Z,getLocationInNewDocument:()=>uge,hasArgument:()=>IDe,hasNoTypeScriptSource:()=>Hhe,indent:()=>t2,isBackgroundProject:()=>h8,isConfigFile:()=>ege,isConfiguredProject:()=>U0,isDynamicFileName:()=>m8,isExternalProject:()=>SZ,isInferredProject:()=>YD,isInferredProjectName:()=>The,makeAutoImportProviderProjectName:()=>Ihe,makeAuxiliaryProjectName:()=>xhe,makeInferredProjectName:()=>Ahe,maxFileSize:()=>$z,maxProgramSizeForNonTsFiles:()=>Yz,normalizedPathToPath:()=>f8,nowString:()=>RDe,nullCancellationToken:()=>dge,nullTypingsInstaller:()=>Jz,projectContainsInfoDirectly:()=>UI,protocol:()=>Vhe,removeSorted:()=>zOe,stringifyIndented:()=>F0,toEvent:()=>sge,toNormalizedPath:()=>ml,tryConvertScriptKindName:()=>DZ,typingsInstaller:()=>bhe,updateProjectIfDirty:()=>jp});var _T=T({"src/server/_namespaces/ts.server.ts"(){K7(),Ehe(),Ust(),Hst(),qst(),Jst(),Yst(),elt(),ilt(),clt(),ult(),dlt(),Clt(),Nlt(),Plt()}}),c8e={};X(c8e,{ANONYMOUS:()=>F5,AccessFlags:()=>rV,AssertionLevel:()=>DG,AssignmentDeclarationKind:()=>pV,AssignmentKind:()=>eH,Associativity:()=>nH,BreakpointResolver:()=>t$,BuilderFileEmit:()=>oK,BuilderProgramKind:()=>aK,BuilderState:()=>Om,BundleFileSectionKind:()=>NV,CallHierarchy:()=>OI,CharacterCodes:()=>TV,CheckFlags:()=>QG,CheckMode:()=>YF,ClassificationType:()=>KK,ClassificationTypeNames:()=>JK,CommentDirectiveType:()=>WG,Comparison:()=>Be,CompletionInfoFlags:()=>BK,CompletionTriggerKind:()=>wK,Completions:()=>GI,ContainerFlags:()=>Kq,ContextFlags:()=>jG,Debug:()=>C,DiagnosticCategory:()=>HM,Diagnostics:()=>m,DocumentHighlights:()=>G5,ElementFlags:()=>nV,EmitFlags:()=>a4,EmitHint:()=>RV,EmitOnly:()=>zG,EndOfLineState:()=>jK,EnumKind:()=>$G,ExitStatus:()=>BG,ExportKind:()=>nY,Extension:()=>AV,ExternalEmitHelpers:()=>xV,FileIncludeKind:()=>$6,FilePreprocessingDiagnosticsKind:()=>FG,FileSystemEntryKind:()=>OV,FileWatcherEventKind:()=>wV,FindAllReferences:()=>Gs,FlattenLevel:()=>pJ,FlowFlags:()=>UM,ForegroundColorEscapeSequences:()=>$J,FunctionFlags:()=>tH,GeneratedIdentifierFlags:()=>Y6,GetLiteralTextFlags:()=>$U,GoToDefinition:()=>HD,HighlightSpanKind:()=>WK,IdentifierNameMap:()=>II,IdentifierNameMultiMap:()=>dJ,ImportKind:()=>tY,ImportsNotUsedAsValues:()=>vV,IndentStyle:()=>FK,IndexFlags:()=>iV,IndexKind:()=>sV,InferenceFlags:()=>uV,InferencePriority:()=>cV,InlayHintKind:()=>OK,InlayHints:()=>JQ,InternalEmitFlags:()=>IV,InternalSymbolName:()=>ZG,InvalidatedProjectKind:()=>RK,JSDocParsingMode:()=>LV,JsDoc:()=>j0,JsTyping:()=>G_,JsxEmit:()=>gV,JsxFlags:()=>wG,JsxReferenceKind:()=>oV,LanguageServiceMode:()=>MK,LanguageVariant:()=>EV,LexicalEnvironmentFlags:()=>CV,ListFormat:()=>PV,LogLevel:()=>NG,MemberOverrideStatus:()=>GG,ModifierFlags:()=>K6,ModuleDetectionKind:()=>fV,ModuleInstanceState:()=>Jq,ModuleKind:()=>eN,ModuleResolutionKind:()=>Jx,ModuleSpecifierEnding:()=>dH,NavigateTo:()=>zde,NavigationBar:()=>Xde,NewLineKind:()=>yV,NodeBuilderFlags:()=>UG,NodeCheckFlags:()=>eV,NodeFactoryFlags:()=>yH,NodeFlags:()=>J6,NodeResolutionFeatures:()=>Uq,ObjectFlags:()=>t4,OperationCanceledException:()=>qx,OperatorPrecedence:()=>rH,OrganizeImports:()=>Wm,OrganizeImportsMode:()=>kK,OuterExpressionKinds:()=>DV,OutliningElementsCollector:()=>$Q,OutliningSpanKind:()=>GK,OutputFileType:()=>VK,PackageJsonAutoImportPreference:()=>PK,PackageJsonDependencyGroup:()=>NK,PatternMatchKind:()=>V5,PollingInterval:()=>s4,PollingWatchKind:()=>hV,PragmaKindFlags:()=>MV,PrivateIdentifierKind:()=>xH,ProcessLevel:()=>hJ,ProgramUpdateLevel:()=>MJ,QuotePreference:()=>XX,RelationComparisonResult:()=>X6,Rename:()=>Bz,ScriptElementKind:()=>HK,ScriptElementKindModifier:()=>qK,ScriptKind:()=>r4,ScriptSnapshot:()=>Y7,ScriptTarget:()=>bV,SemanticClassificationFormat:()=>LK,SemanticMeaning:()=>KX,SemicolonPreference:()=>zK,SignatureCheckMode:()=>$F,SignatureFlags:()=>n4,SignatureHelp:()=>o8,SignatureKind:()=>aV,SmartSelectionRange:()=>eZ,SnippetKind:()=>o4,SortKind:()=>RG,StructureIsReused:()=>Q6,SymbolAccessibility:()=>JG,SymbolDisplay:()=>oy,SymbolDisplayPartKind:()=>nO,SymbolFlags:()=>Z6,SymbolFormatFlags:()=>qG,SyntaxKind:()=>q6,SyntheticSymbolKind:()=>KG,Ternary:()=>dV,ThrottledCancellationToken:()=>e$,TokenClass:()=>UK,TokenFlags:()=>OG,TransformFlags:()=>i4,TypeFacts:()=>XF,TypeFlags:()=>e4,TypeFormatFlags:()=>HG,TypeMapKind:()=>lV,TypePredicateKind:()=>XG,TypeReferenceSerializationKind:()=>YG,UnionReduction:()=>VG,UpToDateStatusType:()=>TK,VarianceFlags:()=>tV,Version:()=>Tm,VersionRange:()=>GM,WatchDirectoryFlags:()=>SV,WatchDirectoryKind:()=>_V,WatchFileKind:()=>mV,WatchLogLevel:()=>LJ,WatchType:()=>Wc,accessPrivateIdentifier:()=>Ole,addDisposableResourceHelper:()=>KW,addEmitFlags:()=>k_,addEmitHelper:()=>eI,addEmitHelpers:()=>Jg,addInternalEmitFlags:()=>QA,addNodeFactoryPatcher:()=>KTe,addObjectAllocatorPatcher:()=>Foe,addRange:()=>Ur,addRelatedInfo:()=>Oa,addSyntheticLeadingComment:()=>fP,addSyntheticTrailingComment:()=>EW,addToSeen:()=>Pm,advancedAsyncSuperHelper:()=>Uk,affectsDeclarationPathOptionDeclarations:()=>xq,affectsEmitOptionDeclarations:()=>Iq,allKeysStartWithDot:()=>VF,altDirectorySeparator:()=>ZM,and:()=>B6,append:()=>Rn,appendIfUnique:()=>wg,arrayFrom:()=>Wo,arrayIsEqualTo:()=>Ym,arrayIsHomogeneous:()=>iae,arrayIsSorted:()=>M6,arrayOf:()=>Pne,arrayReverseIterator:()=>fG,arrayToMap:()=>PE,arrayToMultiMap:()=>FM,arrayToNumericMap:()=>Lne,arraysEqual:()=>Na,assertType:()=>D1e,assign:()=>zx,assignHelper:()=>DW,asyncDelegator:()=>NW,asyncGeneratorHelper:()=>CW,asyncSuperHelper:()=>jk,asyncValues:()=>PW,attachFileToDiagnostics:()=>JA,awaitHelper:()=>tI,awaiterHelper:()=>LW,base64decode:()=>Roe,base64encode:()=>xoe,binarySearch:()=>Nv,binarySearchKey:()=>bA,bindSourceFile:()=>dle,breakIntoCharacterSpans:()=>Mde,breakIntoWordSpans:()=>Lde,buildLinkParts:()=>nde,buildOpts:()=>PF,buildOverload:()=>POe,bundlerModuleNameResolver:()=>tle,canBeConvertedToAsync:()=>fY,canHaveDecorators:()=>QS,canHaveExportModifier:()=>Ik,canHaveFlowNode:()=>ZL,canHaveIllegalDecorators:()=>tq,canHaveIllegalModifiers:()=>_se,canHaveIllegalType:()=>TAe,canHaveIllegalTypeParameters:()=>mse,canHaveJSDoc:()=>ek,canHaveLocals:()=>_h,canHaveModifiers:()=>km,canHaveSymbol:()=>x_,canJsonReportNoInputFiles:()=>MP,canProduceDiagnostics:()=>d7,canUsePropertyAccess:()=>JU,canWatchAffectingLocation:()=>jce,canWatchAtTypes:()=>Vce,canWatchDirectoryOrFile:()=>M7,cartesianProduct:()=>jne,cast:()=>oa,chainBundle:()=>wm,chainDiagnosticMessages:()=>Bo,changeAnyExtension:()=>$M,changeCompilerHostLikeToUseCache:()=>Uw,changeExtension:()=>A0,changeFullExtension:()=>lre,changesAffectModuleResolution:()=>W4,changesAffectingProgramStructure:()=>uie,childIsDecorated:()=>IN,classElementOrClassElementParameterIsDecorated:()=>Bj,classHasClassThisAssignment:()=>fJ,classHasDeclaredOrExplicitlyAssignedName:()=>mJ,classHasExplicitlyAssignedName:()=>l7,classOrConstructorParameterIsDecorated:()=>Bv,classPrivateFieldGetHelper:()=>HW,classPrivateFieldInHelper:()=>JW,classPrivateFieldSetHelper:()=>qW,classicNameResolver:()=>sle,classifier:()=>Upe,cleanExtendedConfigCache:()=>y7,clear:()=>zo,clearMap:()=>tp,clearSharedExtendedConfigFileWatcher:()=>CJ,climbPastPropertyAccess:()=>Q7,climbPastPropertyOrElementAccess:()=>Cue,clone:()=>vG,cloneCompilerOptions:()=>fX,closeFileWatcher:()=>e_,closeFileWatcherOf:()=>Mf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>Sre,collectExternalModuleInfo:()=>sJ,combine:()=>Fx,combinePaths:()=>Yr,commentPragmas:()=>qM,commonOptionsWithBuild:()=>bw,commonPackageFolders:()=>aH,compact:()=>WM,compareBooleans:()=>Ry,compareDataObjects:()=>NU,compareDiagnostics:()=>KN,compareDiagnosticsSkipRelatedInformation:()=>V3,compareEmitHelpers:()=>kae,compareNumberOfDirectorySeparators:()=>Sk,comparePaths:()=>Og,comparePathsCaseInsensitive:()=>tSe,comparePathsCaseSensitive:()=>eSe,comparePatternKeys:()=>Vq,compareProperties:()=>zne,compareStringsCaseInsensitive:()=>F6,compareStringsCaseInsensitiveEslintCompatible:()=>One,compareStringsCaseSensitive:()=>Uu,compareStringsCaseSensitiveUI:()=>BM,compareTextSpans:()=>W6,compareValues:()=>nl,compileOnSaveCommandLineOption:()=>vw,compilerOptionsAffectDeclarationPath:()=>Koe,compilerOptionsAffectEmit:()=>Joe,compilerOptionsAffectSemanticDiagnostics:()=>qoe,compilerOptionsDidYouMeanDiagnostics:()=>Tw,compilerOptionsIndicateEsModules:()=>yX,compose:()=>x1e,computeCommonSourceDirectoryOfFilenames:()=>Ece,computeLineAndCharacterOfPosition:()=>Xx,computeLineOfPosition:()=>iN,computeLineStarts:()=>DA,computePositionOfLineAndCharacter:()=>m4,computeSignature:()=>iT,computeSignatureWithDiagnostics:()=>tK,computeSuggestionDiagnostics:()=>uY,computedOptions:()=>yc,concatenate:()=>To,concatenateDiagnosticMessageChains:()=>Voe,consumesNodeCoreModules:()=>P5,contains:()=>Nr,containsIgnoredPath:()=>rP,containsObjectRestOrSpread:()=>cw,containsParseError:()=>sR,containsPath:()=>Am,convertCompilerOptionsForTelemetry:()=>Fse,convertCompilerOptionsFromJson:()=>xIe,convertJsonOption:()=>ZS,convertToBase64:()=>Ioe,convertToJson:()=>_w,convertToObject:()=>Lse,convertToOptionsWithAbsolutePaths:()=>yq,convertToRelativePath:()=>rN,convertToTSConfig:()=>pIe,convertTypeAcquisitionFromJson:()=>RIe,copyComments:()=>lT,copyEntries:()=>F4,copyLeadingComments:()=>MD,copyProperties:()=>yG,copyTrailingAsLeadingComments:()=>SO,copyTrailingComments:()=>d2,couldStartTrivia:()=>pre,countWhere:()=>lu,createAbstractBuilder:()=>LRe,createAccessorPropertyBackingField:()=>rq,createAccessorPropertyGetRedirector:()=>Tse,createAccessorPropertySetRedirector:()=>Ase,createBaseNodeFactory:()=>vae,createBinaryExpressionTrampoline:()=>yF,createBindingHelper:()=>HR,createBuildInfo:()=>zw,createBuilderProgram:()=>nK,createBuilderProgramUsingProgramBuildInfo:()=>Bce,createBuilderStatusReporter:()=>rue,createCacheWithRedirects:()=>kq,createCacheableExportInfoMap:()=>QX,createCachedDirectoryStructureHost:()=>g7,createClassNamedEvaluationHelperBlock:()=>Vle,createClassThisAssignmentBlock:()=>Ble,createClassifier:()=>YDe,createCommentDirectivesMap:()=>hie,createCompilerDiagnostic:()=>Jl,createCompilerDiagnosticForInvalidCustomType:()=>Dse,createCompilerDiagnosticFromMessageChain:()=>G3,createCompilerHost:()=>Sce,createCompilerHostFromProgramHost:()=>yK,createCompilerHostWorker:()=>OJ,createDetachedDiagnostic:()=>WR,createDiagnosticCollection:()=>DR,createDiagnosticForFileFromMessageChain:()=>wj,createDiagnosticForNode:()=>Or,createDiagnosticForNodeArray:()=>uR,createDiagnosticForNodeArrayFromMessageChain:()=>ML,createDiagnosticForNodeFromMessageChain:()=>Gg,createDiagnosticForNodeInSourceFile:()=>nm,createDiagnosticForRange:()=>Die,createDiagnosticMessageChainFromDiagnostic:()=>Rie,createDiagnosticReporter:()=>Xw,createDocumentPositionMapper:()=>Nle,createDocumentRegistry:()=>Ede,createDocumentRegistryInternal:()=>oY,createEmitAndSemanticDiagnosticsBuilderProgram:()=>sK,createEmitHelperFactory:()=>Lae,createEmptyExports:()=>tw,createExpressionForJsxElement:()=>sse,createExpressionForJsxFragment:()=>lse,createExpressionForObjectLiteralElementLike:()=>cse,createExpressionForPropertyName:()=>XH,createExpressionFromEntityName:()=>nw,createExternalHelpersImportDeclarationIfNeeded:()=>QH,createFileDiagnostic:()=>eu,createFileDiagnosticFromMessageChain:()=>J4,createForOfBindingStatement:()=>KH,createGetCanonicalFileName:()=>Mu,createGetSourceFile:()=>kJ,createGetSymbolAccessibilityDiagnosticForNode:()=>$v,createGetSymbolAccessibilityDiagnosticForNodeName:()=>pce,createGetSymbolWalker:()=>ple,createIncrementalCompilerHost:()=>EK,createIncrementalProgram:()=>tue,createInputFiles:()=>YTe,createInputFilesWithFilePaths:()=>gH,createInputFilesWithFileTexts:()=>vH,createJsxFactoryExpression:()=>JH,createLanguageService:()=>Fpe,createLanguageServiceSourceFile:()=>pz,createMemberAccessForPropertyName:()=>$S,createModeAwareCache:()=>TI,createModeAwareCacheKey:()=>WP,createModuleNotFoundChain:()=>z4,createModuleResolutionCache:()=>uD,createModuleResolutionLoader:()=>VJ,createModuleResolutionLoaderUsingGlobalCache:()=>Jce,createModuleSpecifierResolutionHost:()=>sT,createMultiMap:()=>Zp,createNodeConverters:()=>bae,createNodeFactory:()=>wk,createOptionNameMap:()=>SF,createOverload:()=>dZ,createPackageJsonImportFilter:()=>m2,createPackageJsonInfo:()=>BX,createParenthesizerRules:()=>yae,createPatternMatcher:()=>xde,createPrependNodes:()=>XJ,createPrinter:()=>O0,createPrinterWithDefaults:()=>RJ,createPrinterWithRemoveComments:()=>y1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>DJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Bw,createProgram:()=>A7,createProgramHost:()=>bK,createPropertyNameNodeForIdentifierOrLiteral:()=>oW,createQueue:()=>zM,createRange:()=>xf,createRedirectedBuilderProgram:()=>iK,createResolutionCache:()=>cK,createRuntimeTypeSerializer:()=>Jle,createScanner:()=>Ov,createSemanticDiagnosticsBuilderProgram:()=>MRe,createSet:()=>bG,createSolutionBuilder:()=>XRe,createSolutionBuilderHost:()=>JRe,createSolutionBuilderWithWatch:()=>YRe,createSolutionBuilderWithWatchHost:()=>KRe,createSortedArray:()=>pG,createSourceFile:()=>dw,createSourceMapGenerator:()=>xle,createSourceMapSource:()=>$Te,createSuperAccessVariableStatement:()=>u7,createSymbolTable:()=>ua,createSymlinkCache:()=>WU,createSystemWatchFunctions:()=>ire,createTextChange:()=>fO,createTextChangeFromStartLength:()=>p5,createTextChangeRange:()=>cL,createTextRangeFromNode:()=>hX,createTextRangeFromSpan:()=>d5,createTextSpan:()=>yu,createTextSpanFromBounds:()=>hc,createTextSpanFromNode:()=>Dd,createTextSpanFromRange:()=>sb,createTextSpanFromStringLiteralLikeContent:()=>_X,createTextWriter:()=>pk,createTokenRange:()=>RU,createTypeChecker:()=>ble,createTypeReferenceDirectiveResolutionCache:()=>zF,createTypeReferenceResolutionLoader:()=>E7,createUnparsedSourceFile:()=>hH,createWatchCompilerHost:()=>URe,createWatchCompilerHostOfConfigFile:()=>Qce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Zce,createWatchFactory:()=>vK,createWatchHost:()=>gK,createWatchProgram:()=>HRe,createWatchStatusReporter:()=>Kce,createWriteFileMeasuringIO:()=>wJ,declarationNameToString:()=>Ns,decodeMappings:()=>iJ,decodedTextSpanIntersectsWith:()=>lL,decorateHelper:()=>TW,deduplicate:()=>NE,defaultIncludeSpec:()=>kF,defaultInitCompilerOptions:()=>MF,defaultMaximumTruncationLength:()=>Ck,detectSortCaseSensitivity:()=>XC,diagnosticCategoryName:()=>mS,diagnosticToString:()=>uT,directoryProbablyExists:()=>Zm,directorySeparator:()=>ol,displayPart:()=>ip,displayPartsToString:()=>jO,disposeEmitNodes:()=>bH,disposeResourcesHelper:()=>XW,documentSpansEqual:()=>AX,dumpTracingLegend:()=>tre,elementAt:()=>kv,elideNodes:()=>Sse,emitComments:()=>moe,emitDetachedComments:()=>_oe,emitFiles:()=>m7,emitFilesAndReportErrors:()=>O7,emitFilesAndReportErrorsAndGetExitStatus:()=>$ce,emitModuleKindIsNonNodeESM:()=>j3,emitNewLineBeforeLeadingCommentOfPosition:()=>foe,emitNewLineBeforeLeadingComments:()=>doe,emitNewLineBeforeLeadingCommentsOfPosition:()=>poe,emitSkippedWithNoDiagnostics:()=>C7,emitUsingBuildInfo:()=>gce,emptyArray:()=>et,emptyFileSystemEntries:()=>gW,emptyMap:()=>U6,emptyOptions:()=>kf,emptySet:()=>Hne,endsWith:()=>Al,ensurePathIsNonModuleName:()=>ME,ensureScriptKind:()=>Q3,ensureTrailingDirectorySeparator:()=>Vc,entityNameToString:()=>gp,enumerateInsertsAndDeletes:()=>V6,equalOwnProperties:()=>Mne,equateStringsCaseInsensitive:()=>a0,equateStringsCaseSensitive:()=>dS,equateValues:()=>Lv,esDecorateHelper:()=>xW,escapeJsxAttributeString:()=>fU,escapeLeadingUnderscores:()=>hl,escapeNonAsciiString:()=>dk,escapeSnippetText:()=>t1,escapeString:()=>lg,escapeTemplateSubstitution:()=>dU,every:()=>Yn,expandPreOrPostfixIncrementOrDecrementExpression:()=>fF,explainFiles:()=>pK,explainIfFileIsRedirectAndImpliedFormat:()=>fK,exportAssignmentIsAlias:()=>AR,exportStarHelper:()=>UW,expressionResultIsUnused:()=>aae,extend:()=>O6,extendsHelper:()=>kW,extensionFromPath:()=>QN,extensionIsTS:()=>tW,extensionsNotSupportingExtensionlessResolution:()=>kk,externalHelpersModuleNameText:()=>Ky,factory:()=>w,fileExtensionIs:()=>Il,fileExtensionIsOneOf:()=>Ic,fileIncludeReasonToDiagnostics:()=>hK,fileShouldUseJavaScriptRequire:()=>JX,filter:()=>rr,filterMutate:()=>Ks,filterSemanticDiagnostics:()=>I7,find:()=>Tn,findAncestor:()=>zn,findBestPatternMatch:()=>AG,findChildOfKind:()=>Es,findComputedPropertyNameCacheAssignment:()=>bF,findConfigFile:()=>bce,findContainingList:()=>r5,findDiagnosticForNode:()=>fde,findFirstNonJsxWhitespaceToken:()=>kue,findIndex:()=>Br,findLast:()=>ko,findLastIndex:()=>zi,findListItemInfo:()=>Lue,findMap:()=>Go,findModifier:()=>CD,findNextToken:()=>S1,findPackageJson:()=>dde,findPackageJsons:()=>zX,findPrecedingMatchingToken:()=>c5,findPrecedingToken:()=>Dc,findSuperStatementIndexPath:()=>o7,findTokenOnLeftOfPosition:()=>a5,findUseStrictPrologue:()=>$H,first:()=>Xa,firstDefined:()=>qt,firstDefinedIterator:()=>fn,firstIterator:()=>_G,firstOrOnly:()=>UX,firstOrUndefined:()=>$c,firstOrUndefinedIterator:()=>L6,fixupCompilerOptions:()=>_Y,flatMap:()=>Pi,flatMapIterator:()=>Qp,flatMapToMutable:()=>sc,flatten:()=>ra,flattenCommaList:()=>Ise,flattenDestructuringAssignment:()=>tT,flattenDestructuringBinding:()=>v1,flattenDiagnosticMessageText:()=>z_,forEach:()=>He,forEachAncestor:()=>die,forEachAncestorDirectory:()=>xm,forEachChild:()=>Vo,forEachChildRecursively:()=>NP,forEachEmittedFile:()=>TJ,forEachEnclosingBlockScopeContainer:()=>Aie,forEachEntry:()=>jc,forEachExternalModuleToImportFrom:()=>eY,forEachImportClauseDeclaration:()=>h3,forEachKey:()=>gh,forEachLeadingCommentRange:()=>rL,forEachNameInAccessChainWalkingLeft:()=>Ooe,forEachPropertyAssignment:()=>mR,forEachResolvedProjectReference:()=>UJ,forEachReturnStatement:()=>GE,forEachRight:()=>jt,forEachTrailingCommentRange:()=>iL,forEachTsConfigPropArray:()=>OL,forEachUnique:()=>xX,forEachYieldExpression:()=>Nie,forSomeAncestorDirectory:()=>yTe,formatColorAndReset:()=>b1,formatDiagnostic:()=>WJ,formatDiagnostics:()=>fRe,formatDiagnosticsWithColorAndContext:()=>Tce,formatGeneratedName:()=>P0,formatGeneratedNamePart:()=>oD,formatLocation:()=>FJ,formatMessage:()=>kU,formatStringFromArgs:()=>dg,formatting:()=>Fc,fullTripleSlashAMDReferencePathRegEx:()=>ZU,fullTripleSlashReferencePathRegEx:()=>QU,generateDjb2Hash:()=>tN,generateTSConfig:()=>gIe,generatorHelper:()=>GW,getAdjustedReferenceLocation:()=>sX,getAdjustedRenameLocation:()=>o5,getAliasDeclarationFromName:()=>eU,getAllAccessorDeclarations:()=>wS,getAllDecoratorsOfClass:()=>cJ,getAllDecoratorsOfClassElement:()=>s7,getAllJSDocTags:()=>S4,getAllJSDocTagsOfKind:()=>NSe,getAllKeys:()=>A1e,getAllProjectOutputs:()=>f7,getAllSuperTypeNodes:()=>NN,getAllUnscopedEmitHelpers:()=>IH,getAllowJSCompilerOption:()=>Xy,getAllowSyntheticDefaultImports:()=>FS,getAncestor:()=>S0,getAnyExtensionFromPath:()=>Kx,getAreDeclarationMapsEnabled:()=>Pk,getAssignedExpandoInitializer:()=>OA,getAssignedName:()=>b4,getAssignedNameOfIdentifier:()=>UP,getAssignmentDeclarationKind:()=>Vl,getAssignmentDeclarationPropertyAccessKind:()=>KL,getAssignmentTargetKind:()=>BA,getAutomaticTypeDirectiveNames:()=>WF,getBaseFileName:()=>lc,getBinaryOperatorPrecedence:()=>uk,getBuildInfo:()=>_7,getBuildInfoFileVersionMap:()=>rK,getBuildInfoText:()=>hce,getBuildOrderFromAnyBuildOrder:()=>G7,getBuilderCreationParameters:()=>N7,getBuilderFileEmit:()=>ab,getCheckFlags:()=>xl,getClassExtendsHeritageElement:()=>qE,getClassLikeDeclarationOfSymbol:()=>Hg,getCombinedLocalAndExportSymbolFlags:()=>kR,getCombinedModifierFlags:()=>d0,getCombinedNodeFlags:()=>Wv,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>KV,getCommentRange:()=>w_,getCommonSourceDirectory:()=>$P,getCommonSourceDirectoryOfConfig:()=>hD,getCompilerOptionValue:()=>H3,getCompilerOptionsDiffValue:()=>_Ie,getConditions:()=>ib,getConfigFileParsingDiagnostics:()=>rT,getConstantValue:()=>xae,getContainerFlags:()=>qq,getContainerNode:()=>aT,getContainingClass:()=>cu,getContainingClassExcludingClassDecorators:()=>n3,getContainingClassStaticBlock:()=>zie,getContainingFunction:()=>Gp,getContainingFunctionDeclaration:()=>Fie,getContainingFunctionOrClassStaticBlock:()=>t3,getContainingNodeArray:()=>sae,getContainingObjectLiteralElement:()=>UO,getContextualTypeFromParent:()=>T5,getContextualTypeFromParentOrAncestorTypeNode:()=>i5,getCurrentTime:()=>$w,getDeclarationDiagnostics:()=>fce,getDeclarationEmitExtensionForPath:()=>I3,getDeclarationEmitOutputFilePath:()=>aoe,getDeclarationEmitOutputFilePathWorker:()=>A3,getDeclarationFileExtension:()=>sq,getDeclarationFromName:()=>CN,getDeclarationModifierFlagsFromSymbol:()=>Df,getDeclarationOfKind:()=>fl,getDeclarationsOfKind:()=>lie,getDeclaredExpandoInitializer:()=>UL,getDecorators:()=>Ly,getDefaultCompilerOptions:()=>dz,getDefaultExportInfoWorker:()=>B5,getDefaultFormatCodeSettings:()=>X7,getDefaultLibFileName:()=>aL,getDefaultLibFilePath:()=>zpe,getDefaultLikeExportInfo:()=>z5,getDiagnosticText:()=>oIe,getDiagnosticsWithinSpan:()=>mde,getDirectoryPath:()=>ri,getDirectoryToWatchFailedLookupLocation:()=>lK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Hce,getDocumentPositionMapper:()=>cY,getDocumentSpansEqualityComparer:()=>IX,getESModuleInterop:()=>Eh,getEditsForFileRename:()=>Tde,getEffectiveBaseTypeNode:()=>D_,getEffectiveConstraintOfTypeParameter:()=>eR,getEffectiveContainerForJSDocTemplateTag:()=>g3,getEffectiveImplementsTypeNodes:()=>IR,getEffectiveInitializer:()=>jL,getEffectiveJSDocHost:()=>E0,getEffectiveModifierFlags:()=>pd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>yoe,getEffectiveModifierFlagsNoCache:()=>boe,getEffectiveReturnTypeNode:()=>sm,getEffectiveSetAccessorTypeAnnotationNode:()=>uoe,getEffectiveTypeAnnotationNode:()=>bu,getEffectiveTypeParameterDeclarations:()=>ky,getEffectiveTypeRoots:()=>OP,getElementOrPropertyAccessArgumentExpressionOrName:()=>_3,getElementOrPropertyAccessName:()=>Vg,getElementsOfBindingOrAssignmentPattern:()=>iD,getEmitDeclarations:()=>Cf,getEmitFlags:()=>qa,getEmitHelpers:()=>SW,getEmitModuleDetectionKind:()=>iH,getEmitModuleKind:()=>wu,getEmitModuleResolutionKind:()=>md,getEmitScriptTarget:()=>ls,getEmitStandardClassFields:()=>Hoe,getEnclosingBlockScopeContainer:()=>vh,getEnclosingContainer:()=>kj,getEncodedSemanticClassifications:()=>rY,getEncodedSyntacticClassifications:()=>iY,getEndLinePosition:()=>DL,getEntityNameFromTypeNode:()=>zL,getEntrypointsFromPackageJsonInfo:()=>zq,getErrorCountForSummary:()=>k7,getErrorSpanForNode:()=>AS,getErrorSummaryText:()=>Xce,getEscapedTextOfIdentifierOrLiteral:()=>LN,getEscapedTextOfJsxAttributeName:()=>sP,getEscapedTextOfJsxNamespacedName:()=>YA,getExpandoInitializer:()=>y0,getExportAssignmentExpression:()=>tU,getExportInfoMap:()=>RO,getExportNeedsImportStarHelper:()=>Ple,getExpressionAssociativity:()=>lU,getExpressionPrecedence:()=>wN,getExternalHelpersModuleName:()=>iw,getExternalModuleImportEqualsDeclarationExpression:()=>xN,getExternalModuleName:()=>bR,getExternalModuleNameFromDeclaration:()=>ioe,getExternalModuleNameFromPath:()=>_U,getExternalModuleNameLiteral:()=>yI,getExternalModuleRequireArgument:()=>Vj,getFallbackOptions:()=>jw,getFileEmitOutput:()=>Nce,getFileMatcherPatterns:()=>$3,getFileNamesFromConfigSpecs:()=>LP,getFileWatcherEventKind:()=>kV,getFilesInErrorForSummary:()=>w7,getFirstConstructorWithBody:()=>cg,getFirstIdentifier:()=>Vp,getFirstNonSpaceCharacterPosition:()=>ode,getFirstProjectOutput:()=>xJ,getFixableErrorSpanExpression:()=>VX,getFormatCodeSettingsForWriting:()=>w5,getFullWidth:()=>xL,getFunctionFlags:()=>Uc,getHeritageClause:()=>ak,getHostSignatureFromJSDoc:()=>b0,getIdentifierAutoGenerate:()=>nAe,getIdentifierGeneratedImportReference:()=>Mae,getIdentifierTypeArguments:()=>zS,getImmediatelyInvokedFunctionExpression:()=>xS,getImpliedNodeFormatForFile:()=>Jw,getImpliedNodeFormatForFileWorker:()=>JJ,getImportNeedsImportDefaultHelper:()=>aJ,getImportNeedsImportStarHelper:()=>r7,getIndentSize:()=>NR,getIndentString:()=>S3,getInferredLibraryNameResolveFrom:()=>T7,getInitializedVariables:()=>HN,getInitializerOfBinaryExpression:()=>Jj,getInitializerOfBindingOrAssignmentElement:()=>aw,getInterfaceBaseTypeNodes:()=>PN,getInternalEmitFlags:()=>Dm,getInvokedExpression:()=>o3,getIsolatedModules:()=>um,getJSDocAugmentsTag:()=>Pre,getJSDocClassTag:()=>YV,getJSDocCommentRanges:()=>Wj,getJSDocCommentsAndTags:()=>Xj,getJSDocDeprecatedTag:()=>$V,getJSDocDeprecatedTagNoCache:()=>Fre,getJSDocEnumTag:()=>QV,getJSDocHost:()=>NS,getJSDocImplementsTags:()=>Mre,getJSDocOverloadTags:()=>$j,getJSDocOverrideTagNoCache:()=>Wre,getJSDocParameterTags:()=>Zx,getJSDocParameterTagsNoCache:()=>Rre,getJSDocPrivateTag:()=>ISe,getJSDocPrivateTagNoCache:()=>kre,getJSDocProtectedTag:()=>xSe,getJSDocProtectedTagNoCache:()=>wre,getJSDocPublicTag:()=>ASe,getJSDocPublicTagNoCache:()=>Lre,getJSDocReadonlyTag:()=>RSe,getJSDocReadonlyTagNoCache:()=>Ore,getJSDocReturnTag:()=>zre,getJSDocReturnType:()=>dL,getJSDocRoot:()=>TR,getJSDocSatisfiesExpressionType:()=>XU,getJSDocSatisfiesTag:()=>ZV,getJSDocTags:()=>_0,getJSDocTagsNoCache:()=>CSe,getJSDocTemplateTag:()=>DSe,getJSDocThisTag:()=>E4,getJSDocType:()=>m0,getJSDocTypeAliasName:()=>eq,getJSDocTypeAssertionType:()=>_F,getJSDocTypeParameterDeclarations:()=>C3,getJSDocTypeParameterTags:()=>Dre,getJSDocTypeParameterTagsNoCache:()=>Cre,getJSDocTypeTag:()=>f0,getJSXImplicitImportBase:()=>J3,getJSXRuntimeImport:()=>K3,getJSXTransformEnabled:()=>q3,getKeyForCompilerOptions:()=>Lq,getLanguageVariant:()=>yk,getLastChild:()=>PU,getLeadingCommentRanges:()=>Zh,getLeadingCommentRangesOfNode:()=>Oj,getLeftmostAccessExpression:()=>wR,getLeftmostExpression:()=>OR,getLibraryNameFromLibFileName:()=>HJ,getLineAndCharacterOfPosition:()=>Ts,getLineInfo:()=>nJ,getLineOfLocalPosition:()=>WN,getLineOfLocalPositionFromLineMap:()=>LS,getLineStartPositionForPosition:()=>fm,getLineStarts:()=>Wg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Moe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Poe,getLinesBetweenPositions:()=>oN,getLinesBetweenRangeEndAndRangeStart:()=>DU,getLinesBetweenRangeEndPositions:()=>gTe,getLiteralText:()=>gie,getLocalNameForExternalImport:()=>rD,getLocalSymbolForExportDefault:()=>LR,getLocaleSpecificMessage:()=>wo,getLocaleTimeString:()=>Yw,getMappedContextSpan:()=>RX,getMappedDocumentSpan:()=>y5,getMappedLocation:()=>l2,getMatchedFileSpec:()=>mK,getMatchedIncludeSpec:()=>_K,getMeaningFromDeclaration:()=>rO,getMeaningFromLocation:()=>oT,getMembersOfDeclaration:()=>Pie,getModeForFileReference:()=>Hw,getModeForResolutionAtIndex:()=>Ace,getModeForUsageLocation:()=>BJ,getModifiedTime:()=>IA,getModifiers:()=>kE,getModuleInstanceState:()=>$g,getModuleNameStringLiteralAt:()=>Kw,getModuleSpecifierEndingPreference:()=>Qoe,getModuleSpecifierResolverHost:()=>bX,getNameForExportedSymbol:()=>M5,getNameFromImportAttribute:()=>cW,getNameFromIndexInfo:()=>Iie,getNameFromPropertyName:()=>hO,getNameOfAccessExpression:()=>LU,getNameOfCompilerOptionValue:()=>vq,getNameOfDeclaration:()=>Po,getNameOfExpando:()=>Hj,getNameOfJSDocTypedef:()=>xre,getNameOrArgument:()=>JL,getNameTable:()=>XY,getNamesForExportedSymbol:()=>_de,getNamespaceDeclarationNode:()=>ER,getNewLineCharacter:()=>Hv,getNewLineKind:()=>xO,getNewLineOrDefaultFromHost:()=>ny,getNewTargetContainer:()=>Gie,getNextJSDocCommentLocation:()=>Yj,getNodeForGeneratedName:()=>lw,getNodeId:()=>cs,getNodeKind:()=>E1,getNodeModifiers:()=>o2,getNodeModulePathParts:()=>aW,getNonAssignedNameOfDeclaration:()=>y4,getNonAssignmentOperatorForCompoundAssignment:()=>GP,getNonAugmentationDeclaration:()=>Dj,getNonDecoratorTokenPosOfNode:()=>Tj,getNormalizedAbsolutePath:()=>yo,getNormalizedAbsolutePathWithoutRoot:()=>BV,getNormalizedPathComponents:()=>YM,getObjectFlags:()=>Wr,getOperator:()=>uU,getOperatorAssociativity:()=>cU,getOperatorPrecedence:()=>ck,getOptionFromName:()=>mq,getOptionsForLibraryResolution:()=>wq,getOptionsNameMap:()=>sD,getOrCreateEmitNode:()=>Ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>fse,getOrUpdate:()=>i0,getOriginalNode:()=>Ml,getOriginalNodeId:()=>Wu,getOriginalSourceFile:()=>sTe,getOutputDeclarationFileName:()=>YP,getOutputDeclarationFileNameWorker:()=>AJ,getOutputExtension:()=>p7,getOutputFileNames:()=>dRe,getOutputJSFileNameWorker:()=>IJ,getOutputPathsFor:()=>XP,getOutputPathsForBundle:()=>KP,getOwnEmitOutputFilePath:()=>ooe,getOwnKeys:()=>Qh,getOwnValues:()=>EA,getPackageJsonInfo:()=>m1,getPackageJsonTypesVersionsPaths:()=>OF,getPackageJsonsVisibleToFile:()=>pde,getPackageNameFromTypesPackageName:()=>FP,getPackageScopeForPath:()=>Dw,getParameterSymbolFromJSDoc:()=>tk,getParameterTypeNode:()=>DTe,getParentNodeInSpan:()=>vO,getParseTreeNode:()=>Do,getParsedCommandLineOfConfigFile:()=>fw,getPathComponents:()=>Gc,getPathComponentsRelativeTo:()=>VV,getPathFromPathComponents:()=>Ny,getPathUpdater:()=>sY,getPathsBasePath:()=>x3,getPatternFromSpec:()=>Xoe,getPendingEmitKind:()=>ED,getPositionOfLineAndCharacter:()=>tL,getPossibleGenericSignatures:()=>cX,getPossibleOriginalInputExtensionForExtension:()=>soe,getPossibleTypeArgumentsInfo:()=>uX,getPreEmitDiagnostics:()=>pRe,getPrecedingNonSpaceCharacterPosition:()=>E5,getPrivateIdentifier:()=>uJ,getProperties:()=>lJ,getProperty:()=>k6,getPropertyArrayElementValue:()=>Wie,getPropertyAssignmentAliasLikeExpression:()=>eoe,getPropertyNameForPropertyNameNode:()=>PS,getPropertyNameForUniqueESSymbol:()=>oTe,getPropertyNameFromType:()=>cm,getPropertyNameOfBindingOrAssignmentElement:()=>ZH,getPropertySymbolFromBindingElement:()=>v5,getPropertySymbolsFromContextualType:()=>fz,getQuoteFromPreference:()=>SX,getQuotePreference:()=>uf,getRangesWhere:()=>dG,getRefactorContextSpan:()=>LI,getReferencedFileLocation:()=>QP,getRegexFromPattern:()=>qy,getRegularExpressionForWildcard:()=>XN,getRegularExpressionsForWildcards:()=>X3,getRelativePathFromDirectory:()=>Im,getRelativePathFromFile:()=>QM,getRelativePathToDirectoryOrUrl:()=>RA,getRenameLocation:()=>EO,getReplacementSpanForContextToken:()=>mX,getResolutionDiagnostic:()=>YJ,getResolutionModeOverride:()=>gD,getResolveJsonModule:()=>x0,getResolvePackageJsonExports:()=>mW,getResolvePackageJsonImports:()=>_W,getResolvedExternalModuleName:()=>T3,getRestIndicatorOfBindingOrAssignmentElement:()=>gF,getRestParameterElementType:()=>Fj,getRightMostAssignedExpression:()=>HL,getRootDeclaration:()=>N_,getRootDirectoryOfResolutionCache:()=>qce,getRootLength:()=>mh,getRootPathSplitLength:()=>WRe,getScriptKind:()=>MX,getScriptKindFromFileName:()=>Z3,getScriptTargetFeatures:()=>pW,getSelectedEffectiveModifierFlags:()=>jA,getSelectedSyntacticModifierFlags:()=>goe,getSemanticClassifications:()=>yde,getSemanticJsxChildren:()=>RR,getSetAccessorTypeAnnotationNode:()=>loe,getSetAccessorValueParameter:()=>FN,getSetExternalModuleIndicator:()=>bk,getShebang:()=>h4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Kj,getSingleVariableOfVariableStatement:()=>zA,getSnapshotText:()=>DD,getSnippetElement:()=>EH,getSourceFileOfModule:()=>G4,getSourceFileOfNode:()=>jn,getSourceFilePathInNewDir:()=>R3,getSourceFilePathInNewDirWorker:()=>D3,getSourceFileVersionAsHashFromText:()=>W7,getSourceFilesToEmit:()=>hU,getSourceMapRange:()=>Jv,getSourceMapper:()=>wde,getSourceTextOfNodeFromSourceFile:()=>FE,getSpanOfTokenAtPosition:()=>yh,getSpellingSuggestion:()=>$C,getStartPositionOfLine:()=>Gy,getStartPositionOfRange:()=>UN,getStartsOnNewLine:()=>pP,getStaticPropertiesAndClassStaticBlock:()=>a7,getStrictOptionValue:()=>fd,getStringComparer:()=>Bx,getSubPatternFromSpec:()=>Y3,getSuperCallFromStatement:()=>i7,getSuperContainer:()=>WL,getSupportedCodeFixes:()=>JY,getSupportedExtensions:()=>YN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Ek,getSwitchedType:()=>WX,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>sk,getSymbolTarget:()=>LX,getSyntacticClassifications:()=>bde,getSyntacticModifierFlags:()=>Uy,getSyntacticModifierFlagsNoCache:()=>bU,getSynthesizedDeepClone:()=>ll,getSynthesizedDeepCloneWithReplacements:()=>bO,getSynthesizedDeepClones:()=>T1,getSynthesizedDeepClonesWithReplacements:()=>kX,getSyntheticLeadingComments:()=>UR,getSyntheticTrailingComments:()=>Bk,getTargetLabel:()=>Z7,getTargetOfBindingOrAssignmentElement:()=>rb,getTemporaryModuleResolutionState:()=>Rw,getTextOfConstantValue:()=>vie,getTextOfIdentifierOrLiteral:()=>om,getTextOfJSDocComment:()=>fL,getTextOfJsxAttributeName:()=>Dk,getTextOfJsxNamespacedName:()=>lP,getTextOfNode:()=>gc,getTextOfNodeFromSourceText:()=>bN,getTextOfPropertyName:()=>cR,getThisContainer:()=>Fd,getThisParameter:()=>KE,getTokenAtPosition:()=>fo,getTokenPosOfNode:()=>g0,getTokenSourceMapRange:()=>eAe,getTouchingPropertyName:()=>Vd,getTouchingToken:()=>RD,getTrailingCommentRanges:()=>l0,getTrailingSemicolonDeferringWriter:()=>mU,getTransformFlagsSubtreeExclusions:()=>Eae,getTransformers:()=>EJ,getTsBuildInfoEmitOutputFilePath:()=>Qv,getTsConfigObjectLiteralExpression:()=>AN,getTsConfigPropArrayElementValue:()=>e3,getTypeAnnotationNode:()=>coe,getTypeArgumentOrTypeParameterList:()=>Vue,getTypeKeywordOfTypeOnlyImport:()=>TX,getTypeNode:()=>Nae,getTypeNodeIfAccessible:()=>f2,getTypeParameterFromJsDoc:()=>Kie,getTypeParameterOwner:()=>ySe,getTypesPackageName:()=>jF,getUILocale:()=>Wne,getUniqueName:()=>cT,getUniqueSymbolId:()=>ide,getUseDefineForClassFields:()=>dP,getWatchErrorSummaryDiagnosticMessage:()=>uK,getWatchFactory:()=>PJ,group:()=>YC,groupBy:()=>w6,guessIndentation:()=>aie,handleNoEmitOptions:()=>KJ,hasAbstractModifier:()=>$E,hasAccessorModifier:()=>P_,hasAmbientModifier:()=>yU,hasChangesInResolutions:()=>bj,hasChildOfKind:()=>uO,hasContextSensitiveParameters:()=>iW,hasDecorators:()=>If,hasDocComment:()=>Bue,hasDynamicName:()=>jy,hasEffectiveModifier:()=>yp,hasEffectiveModifiers:()=>N3,hasEffectiveReadonlyModifier:()=>zN,hasExtension:()=>xA,hasIndexSignature:()=>OX,hasInitializer:()=>zy,hasInvalidEscape:()=>pU,hasJSDocNodes:()=>Fp,hasJSDocParameterTags:()=>Nre,hasJSFileExtension:()=>QE,hasJsonModuleEmitEnabled:()=>U3,hasOnlyExpressionInitializer:()=>ES,hasOverrideModifier:()=>P3,hasPossibleExternalModuleReference:()=>Tie,hasProperty:()=>Cs,hasPropertyAccessExpressionWithName:()=>oO,hasQuestionToken:()=>FA,hasRecordedExternalHelpers:()=>pse,hasResolutionModeOverride:()=>pae,hasRestParameter:()=>hj,hasScopeMarker:()=>Qre,hasStaticModifier:()=>vc,hasSyntacticModifier:()=>$r,hasSyntacticModifiers:()=>hoe,hasTSFileExtension:()=>XA,hasTabstop:()=>cae,hasTrailingDirectorySeparator:()=>wv,hasType:()=>w4,hasTypeArguments:()=>eTe,hasZeroOrOneAsteriskCharacter:()=>OU,helperString:()=>AH,hostGetCanonicalFileName:()=>Vv,hostUsesCaseSensitiveFileNames:()=>PR,idText:()=>Tr,identifierIsThisKeyword:()=>vU,identifierToKeywordKind:()=>p0,identity:()=>tl,identitySourceMapConsumer:()=>n7,ignoreSourceNewlines:()=>TH,ignoredPaths:()=>XM,importDefaultHelper:()=>jW,importFromModuleSpecifier:()=>DN,importNameElisionDisabled:()=>wU,importStarHelper:()=>Vk,indexOfAnyCharCode:()=>Ac,indexOfNode:()=>lR,indicesOf:()=>OM,inferredTypesContainingFile:()=>bD,injectClassNamedEvaluationHelperBlockIfMissing:()=>c7,injectClassThisAssignmentIfMissing:()=>Gle,insertImports:()=>s2,insertLeadingStatement:()=>yAe,insertSorted:()=>xy,insertStatementAfterCustomPrologue:()=>SS,insertStatementAfterStandardPrologue:()=>USe,insertStatementsAfterCustomPrologue:()=>Ej,insertStatementsAfterStandardPrologue:()=>rg,intersperse:()=>oo,intrinsicTagNameToString:()=>YU,introducesArgumentsExoticObject:()=>wie,inverseJsxOptionMap:()=>kP,isAbstractConstructorSymbol:()=>Loe,isAbstractModifier:()=>Bae,isAccessExpression:()=>zs,isAccessibilityModifier:()=>pX,isAccessor:()=>Oy,isAccessorModifier:()=>Vae,isAliasSymbolDeclaration:()=>nTe,isAliasableExpression:()=>ok,isAmbientModule:()=>ku,isAmbientPropertyDeclaration:()=>Nj,isAnonymousFunctionDefinition:()=>kN,isAnyDirectorySeparator:()=>WV,isAnyImportOrBareOrAccessedRequire:()=>Sie,isAnyImportOrReExport:()=>NL,isAnyImportSyntax:()=>TS,isAnySupportedFileExtension:()=>RTe,isApplicableVersionedTypesKey:()=>Nw,isArgumentExpressionOfElementAccess:()=>tX,isArray:()=>Ao,isArrayBindingElement:()=>C4,isArrayBindingOrAssignmentElement:()=>bL,isArrayBindingOrAssignmentPattern:()=>uj,isArrayBindingPattern:()=>i1,isArrayLiteralExpression:()=>_d,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>ey,isArrayTypeNode:()=>Xk,isArrowFunction:()=>Us,isAsExpression:()=>$k,isAssertClause:()=>Xae,isAssertEntry:()=>dAe,isAssertionExpression:()=>bS,isAssertsKeyword:()=>Fae,isAssignmentDeclaration:()=>RN,isAssignmentExpression:()=>wc,isAssignmentOperator:()=>jv,isAssignmentPattern:()=>gN,isAssignmentTarget:()=>sg,isAsteriskToken:()=>Hk,isAsyncFunction:()=>MN,isAsyncModifier:()=>_P,isAutoAccessorPropertyDeclaration:()=>Wd,isAwaitExpression:()=>eb,isAwaitKeyword:()=>PH,isBigIntLiteral:()=>YW,isBinaryExpression:()=>mr,isBinaryOperatorToken:()=>Ese,isBindableObjectDefinePropertyCall:()=>DS,isBindableStaticAccessExpression:()=>UE,isBindableStaticElementAccessExpression:()=>m3,isBindableStaticNameExpression:()=>CS,isBindingElement:()=>ns,isBindingElementOfBareOrAccessedRequire:()=>Uie,isBindingName:()=>vS,isBindingOrAssignmentElement:()=>qre,isBindingOrAssignmentPattern:()=>vL,isBindingPattern:()=>Zo,isBlock:()=>Jo,isBlockOrCatchScoped:()=>Aj,isBlockScope:()=>Pj,isBlockScopedContainerTopLevel:()=>Eie,isBooleanLiteral:()=>hN,isBreakOrContinueStatement:()=>pN,isBreakStatement:()=>lAe,isBuildInfoFile:()=>_ce,isBuilderProgram:()=>Yce,isBundle:()=>FH,isBundleFileTextLike:()=>woe,isCallChain:()=>hS,isCallExpression:()=>sa,isCallExpressionTarget:()=>XK,isCallLikeExpression:()=>WE,isCallLikeOrFunctionLikeExpression:()=>dj,isCallOrNewExpression:()=>I_,isCallOrNewExpressionTarget:()=>YK,isCallSignatureDeclaration:()=>sI,isCallToHelper:()=>mP,isCaseBlock:()=>SP,isCaseClause:()=>$R,isCaseKeyword:()=>jae,isCaseOrDefaultClause:()=>L4,isCatchClause:()=>d1,isCatchClauseVariableDeclaration:()=>lae,isCatchClauseVariableDeclarationOrBindingElement:()=>Ij,isCheckJsEnabledForFile:()=>Ak,isChildOfNodeWithKind:()=>qSe,isCircularBuildOrder:()=>DI,isClassDeclaration:()=>Rc,isClassElement:()=>Zc,isClassExpression:()=>tu,isClassInstanceProperty:()=>Ure,isClassLike:()=>ui,isClassMemberModifier:()=>sj,isClassNamedEvaluationHelperBlock:()=>RI,isClassOrTypeElement:()=>D4,isClassStaticBlockDeclaration:()=>Rl,isClassThisAssignmentBlock:()=>jP,isCollapsedRange:()=>hTe,isColonToken:()=>Oae,isCommaExpression:()=>rw,isCommaListExpression:()=>yP,isCommaSequence:()=>RP,isCommaToken:()=>wae,isComment:()=>u5,isCommonJsExportPropertyAssignment:()=>Q4,isCommonJsExportedExpression:()=>Lie,isCompoundAssignment:()=>BP,isComputedNonLiteralName:()=>PL,isComputedPropertyName:()=>rs,isConciseBody:()=>P4,isConditionalExpression:()=>YR,isConditionalTypeNode:()=>dI,isConstTypeReference:()=>zg,isConstructSignatureDeclaration:()=>Jk,isConstructorDeclaration:()=>Ll,isConstructorTypeNode:()=>qR,isContextualKeyword:()=>y3,isContinueStatement:()=>sAe,isCustomPrologue:()=>wL,isDebuggerStatement:()=>cAe,isDeclaration:()=>Ju,isDeclarationBindingElement:()=>gL,isDeclarationFileName:()=>Tu,isDeclarationName:()=>jg,isDeclarationNameOfEnumOrNamespace:()=>CU,isDeclarationReadonly:()=>K4,isDeclarationStatement:()=>nie,isDeclarationWithTypeParameterChildren:()=>Lj,isDeclarationWithTypeParameters:()=>Mj,isDecorator:()=>Su,isDecoratorTarget:()=>Rue,isDefaultClause:()=>AP,isDefaultImport:()=>WA,isDefaultModifier:()=>eF,isDefaultedExpandoInitializer:()=>Hie,isDeleteExpression:()=>qae,isDeleteTarget:()=>Zj,isDeprecatedDeclaration:()=>L5,isDestructuringAssignment:()=>Uv,isDiagnosticWithLocation:()=>GX,isDiskPathRoot:()=>FV,isDoStatement:()=>oAe,isDocumentRegistryEntry:()=>DO,isDotDotDotToken:()=>QW,isDottedName:()=>GN,isDynamicName:()=>E3,isESSymbolIdentifier:()=>aTe,isEffectiveExternalModule:()=>wA,isEffectiveModuleDeclaration:()=>bie,isEffectiveStrictModeSourceFile:()=>Cj,isElementAccessChain:()=>ej,isElementAccessExpression:()=>$s,isEmittedFileOfProgram:()=>yce,isEmptyArrayLiteral:()=>Aoe,isEmptyBindingElement:()=>Are,isEmptyBindingPattern:()=>Tre,isEmptyObjectLiteral:()=>IU,isEmptyStatement:()=>wH,isEmptyStringLiteral:()=>Gj,isEntityName:()=>Zd,isEntityNameExpression:()=>jl,isEnumConst:()=>BE,isEnumDeclaration:()=>D0,isEnumMember:()=>p1,isEqualityOperatorKind:()=>A5,isEqualsGreaterThanToken:()=>Wae,isExclamationToken:()=>qk,isExcludedFile:()=>wse,isExclusivelyTypeOnlyImportOrExport:()=>zJ,isExpandoPropertyDeclaration:()=>lW,isExportAssignment:()=>wl,isExportDeclaration:()=>Zl,isExportModifier:()=>oI,isExportName:()=>mF,isExportNamespaceAsDefaultDeclaration:()=>U4,isExportOrDefaultModifier:()=>sw,isExportSpecifier:()=>Ku,isExportsIdentifier:()=>RS,isExportsOrModuleExportsOrAlias:()=>_1,isExpression:()=>bt,isExpressionNode:()=>og,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Pue,isExpressionOfOptionalChainRoot:()=>I4,isExpressionStatement:()=>nu,isExpressionWithTypeArguments:()=>Xv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>M3,isExternalModule:()=>dc,isExternalModuleAugmentation:()=>zE,isExternalModuleImportEqualsDeclaration:()=>v0,isExternalModuleIndicator:()=>EL,isExternalModuleNameRelative:()=>Qc,isExternalModuleReference:()=>xh,isExternalModuleSymbol:()=>mO,isExternalOrCommonJsModule:()=>zp,isFileLevelReservedGeneratedIdentifier:()=>hL,isFileLevelUniqueName:()=>V4,isFileProbablyExternalModule:()=>uw,isFirstDeclarationOfSymbolParameter:()=>DX,isFixablePromiseHandler:()=>pY,isForInOrOfStatement:()=>rR,isForInStatement:()=>aF,isForInitializer:()=>Af,isForOfStatement:()=>Qk,isForStatement:()=>HS,isFunctionBlock:()=>VE,isFunctionBody:()=>fj,isFunctionDeclaration:()=>xc,isFunctionExpression:()=>Bs,isFunctionExpressionOrArrowFunction:()=>e1,isFunctionLike:()=>Qo,isFunctionLikeDeclaration:()=>js,isFunctionLikeKind:()=>PA,isFunctionLikeOrClassStaticBlockDeclaration:()=>nR,isFunctionOrConstructorTypeNode:()=>Hre,isFunctionOrModuleBlock:()=>lj,isFunctionSymbol:()=>Jie,isFunctionTypeNode:()=>Th,isFutureReservedKeyword:()=>rTe,isGeneratedIdentifier:()=>al,isGeneratedPrivateIdentifier:()=>gS,isGetAccessor:()=>Fy,isGetAccessorDeclaration:()=>rf,isGetOrSetAccessorDeclaration:()=>T4,isGlobalDeclaration:()=>HDe,isGlobalScopeAugmentation:()=>R_,isGrammarError:()=>_ie,isHeritageClause:()=>of,isHoistedFunction:()=>Y4,isHoistedVariableStatement:()=>$4,isIdentifier:()=>je,isIdentifierANonContextualKeyword:()=>iU,isIdentifierName:()=>Zie,isIdentifierOrThisTypeNode:()=>gse,isIdentifierPart:()=>c0,isIdentifierStart:()=>eg,isIdentifierText:()=>tf,isIdentifierTypePredicate:()=>Oie,isIdentifierTypeReference:()=>rae,isIfStatement:()=>US,isIgnoredFileFromWildCardWatching:()=>Vw,isImplicitGlob:()=>zU,isImportAttribute:()=>Yae,isImportAttributeName:()=>jre,isImportAttributes:()=>mI,isImportCall:()=>Bp,isImportClause:()=>Ah,isImportDeclaration:()=>Oc,isImportEqualsDeclaration:()=>ru,isImportKeyword:()=>gP,isImportMeta:()=>pR,isImportOrExportSpecifier:()=>NA,isImportOrExportSpecifierName:()=>rde,isImportSpecifier:()=>np,isImportTypeAssertionContainer:()=>uAe,isImportTypeNode:()=>fg,isImportableFile:()=>ZX,isInComment:()=>Zv,isInCompoundLikeAssignment:()=>Qj,isInExpressionContext:()=>s3,isInJSDoc:()=>GL,isInJSFile:()=>sr,isInJSXText:()=>Fue,isInJsonFile:()=>c3,isInNonReferenceComment:()=>Hue,isInReferenceComment:()=>Uue,isInRightSideOfInternalImportEqualsDeclaration:()=>$7,isInString:()=>NI,isInTemplateString:()=>lX,isInTopLevelContext:()=>r3,isInTypeQuery:()=>kS,isIncrementalCompilation:()=>uP,isIndexSignatureDeclaration:()=>r1,isIndexedAccessTypeNode:()=>jS,isInferTypeNode:()=>BS,isInfinityOrNaNString:()=>iP,isInitializedProperty:()=>ww,isInitializedVariable:()=>vk,isInsideJsxElement:()=>l5,isInsideJsxElementOrAttribute:()=>Wue,isInsideNodeModules:()=>IO,isInsideTemplateLiteral:()=>pO,isInstanceOfExpression:()=>L3,isInstantiatedModule:()=>Yq,isInterfaceDeclaration:()=>hd,isInternalDeclaration:()=>gj,isInternalModuleImportEqualsDeclaration:()=>gR,isInternalName:()=>YH,isIntersectionTypeNode:()=>uI,isIntrinsicJsxName:()=>CR,isIterationStatement:()=>Wy,isJSDoc:()=>i_,isJSDocAllType:()=>tse,isJSDocAugmentsTag:()=>vI,isJSDocAuthorTag:()=>_Ae,isJSDocCallbackTag:()=>BH,isJSDocClassTag:()=>rse,isJSDocCommentContainingNode:()=>k4,isJSDocConstructSignature:()=>SR,isJSDocDeprecatedTag:()=>HH,isJSDocEnumTag:()=>ew,isJSDocFunctionType:()=>ZR,isJSDocImplementsTag:()=>dF,isJSDocIndexSignature:()=>u3,isJSDocLikeText:()=>oq,isJSDocLink:()=>Zae,isJSDocLinkCode:()=>ese,isJSDocLinkLike:()=>kA,isJSDocLinkPlain:()=>fAe,isJSDocMemberName:()=>C0,isJSDocNameReference:()=>IP,isJSDocNamepathType:()=>mAe,isJSDocNamespaceBody:()=>FSe,isJSDocNode:()=>iR,isJSDocNonNullableType:()=>sF,isJSDocNullableType:()=>QR,isJSDocOptionalParameter:()=>Rk,isJSDocOptionalType:()=>zH,isJSDocOverloadTag:()=>eD,isJSDocOverrideTag:()=>cF,isJSDocParameterTag:()=>o_,isJSDocPrivateTag:()=>VH,isJSDocPropertyLikeTag:()=>fN,isJSDocPropertyTag:()=>ise,isJSDocProtectedTag:()=>jH,isJSDocPublicTag:()=>GH,isJSDocReadonlyTag:()=>UH,isJSDocReturnTag:()=>uF,isJSDocSatisfiesExpression:()=>KU,isJSDocSatisfiesTag:()=>pF,isJSDocSeeTag:()=>hAe,isJSDocSignature:()=>N0,isJSDocTag:()=>oR,isJSDocTemplateTag:()=>pm,isJSDocThisTag:()=>qH,isJSDocThrowsTag:()=>vAe,isJSDocTypeAlias:()=>im,isJSDocTypeAssertion:()=>nD,isJSDocTypeExpression:()=>f1,isJSDocTypeLiteral:()=>XS,isJSDocTypeTag:()=>xP,isJSDocTypedefTag:()=>YS,isJSDocUnknownTag:()=>gAe,isJSDocUnknownType:()=>nse,isJSDocVariadicType:()=>lF,isJSXTagName:()=>hR,isJsonEqual:()=>nW,isJsonSourceFile:()=>rm,isJsxAttribute:()=>F_,isJsxAttributeLike:()=>M4,isJsxAttributeName:()=>dae,isJsxAttributes:()=>u1,isJsxChild:()=>AL,isJsxClosingElement:()=>l1,isJsxClosingFragment:()=>$ae,isJsxElement:()=>mg,isJsxExpression:()=>TP,isJsxFragment:()=>c1,isJsxNamespacedName:()=>r_,isJsxOpeningElement:()=>W_,isJsxOpeningFragment:()=>hI,isJsxOpeningLikeElement:()=>ud,isJsxOpeningLikeElementTagName:()=>Due,isJsxSelfClosingElement:()=>JS,isJsxSpreadAttribute:()=>gI,isJsxTagNameExpression:()=>vN,isJsxText:()=>nI,isJumpStatementTarget:()=>aO,isKeyword:()=>Bd,isKeywordOrPunctuation:()=>v3,isKnownSymbol:()=>lk,isLabelName:()=>ZK,isLabelOfLabeledStatement:()=>QK,isLabeledStatement:()=>s1,isLateVisibilityPaintedStatement:()=>q4,isLeftHandSideExpression:()=>ep,isLeftHandSideOfAssignment:()=>_Te,isLet:()=>X4,isLineBreak:()=>Hu,isLiteralComputedPropertyDeclarationName:()=>ik,isLiteralExpression:()=>OE,isLiteralExpressionOfObject:()=>oj,isLiteralImportTypeNode:()=>Vy,isLiteralKind:()=>mN,isLiteralLikeAccess:()=>f3,isLiteralLikeElementAccess:()=>qL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>e5,isLiteralTypeLikeExpression:()=>AAe,isLiteralTypeLiteral:()=>Yre,isLiteralTypeNode:()=>Zy,isLocalName:()=>Xg,isLogicalOperator:()=>Eoe,isLogicalOrCoalescingAssignmentExpression:()=>EU,isLogicalOrCoalescingAssignmentOperator:()=>BN,isLogicalOrCoalescingBinaryExpression:()=>mk,isLogicalOrCoalescingBinaryOperator:()=>fk,isMappedTypeNode:()=>KR,isMemberName:()=>tg,isMetaProperty:()=>vP,isMethodDeclaration:()=>Kl,isMethodOrAccessor:()=>MA,isMethodSignature:()=>Sh,isMinusToken:()=>NH,isMissingDeclaration:()=>pAe,isMissingPackageJsonInfo:()=>Qse,isModifier:()=>xa,isModifierKind:()=>Fv,isModifierLike:()=>sl,isModuleAugmentationExternal:()=>Rj,isModuleBlock:()=>O_,isModuleBody:()=>Zre,isModuleDeclaration:()=>Ql,isModuleExportsAccessExpression:()=>ag,isModuleIdentifier:()=>qj,isModuleName:()=>bse,isModuleOrEnumDeclaration:()=>SL,isModuleReference:()=>iie,isModuleSpecifierLike:()=>g5,isModuleWithStringLiteralName:()=>H4,isNameOfFunctionDeclaration:()=>rX,isNameOfModuleDeclaration:()=>nX,isNamedClassElement:()=>LSe,isNamedDeclaration:()=>ld,isNamedEvaluation:()=>vp,isNamedEvaluationSource:()=>oU,isNamedExportBindings:()=>nj,isNamedExports:()=>Pf,isNamedImportBindings:()=>mj,isNamedImports:()=>Kg,isNamedImportsOrExports:()=>B3,isNamedTupleMember:()=>JR,isNamespaceBody:()=>WSe,isNamespaceExport:()=>Ih,isNamespaceExportDeclaration:()=>Zk,isNamespaceImport:()=>nb,isNamespaceReexportDeclaration:()=>jie,isNewExpression:()=>o1,isNewExpressionTarget:()=>r2,isNoSubstitutionTemplateLiteral:()=>rI,isNode:()=>PSe,isNodeArray:()=>wE,isNodeArrayMultiLine:()=>Noe,isNodeDescendantOf:()=>HE,isNodeKind:()=>mL,isNodeLikeSystem:()=>xG,isNodeModulesDirectory:()=>d4,isNodeWithPossibleHoistedDeclaration:()=>Yie,isNonContextualKeyword:()=>rU,isNonExportDefaultModifier:()=>xAe,isNonGlobalAmbientModule:()=>xj,isNonGlobalDeclaration:()=>vde,isNonNullAccess:()=>uae,isNonNullChain:()=>x4,isNonNullExpression:()=>fI,isNonStaticMethodOrAccessorWithPrivateName:()=>Mle,isNotEmittedOrPartiallyEmittedNode:()=>OSe,isNotEmittedStatement:()=>WH,isNullishCoalesce:()=>tj,isNumber:()=>Pv,isNumericLiteral:()=>bp,isNumericLiteralName:()=>pg,isObjectBindingElementWithoutPropertyName:()=>gO,isObjectBindingOrAssignmentElement:()=>yL,isObjectBindingOrAssignmentPattern:()=>cj,isObjectBindingPattern:()=>dm,isObjectLiteralElement:()=>_j,isObjectLiteralElementLike:()=>Bg,isObjectLiteralExpression:()=>Wa,isObjectLiteralMethod:()=>Nm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Z4,isObjectTypeDeclaration:()=>qA,isOctalDigit:()=>_4,isOmittedExpression:()=>Hc,isOptionalChain:()=>qu,isOptionalChainRoot:()=>uN,isOptionalDeclaration:()=>aP,isOptionalJSDocPropertyLikeTag:()=>xk,isOptionalTypeNode:()=>tF,isOuterExpression:()=>hF,isOutermostOptionalChain:()=>dN,isOverrideModifier:()=>Gae,isPackageJsonInfo:()=>FF,isPackedArrayLiteral:()=>qU,isParameter:()=>Io,isParameterDeclaration:()=>JE,isParameterPropertyDeclaration:()=>hp,isParameterPropertyModifier:()=>_N,isParenthesizedExpression:()=>Gd,isParenthesizedTypeNode:()=>GS,isParseTreeNode:()=>cN,isPartOfTypeNode:()=>ig,isPartOfTypeQuery:()=>l3,isPartiallyEmittedExpression:()=>oF,isPatternMatch:()=>z6,isPinnedComment:()=>j4,isPlainJsFile:()=>RL,isPlusToken:()=>CH,isPossiblyTypeArgumentPosition:()=>dO,isPostfixUnaryExpression:()=>LH,isPrefixUnaryExpression:()=>tb,isPrivateIdentifier:()=>Ji,isPrivateIdentifierClassElementDeclaration:()=>cd,isPrivateIdentifierPropertyAccessExpression:()=>tR,isPrivateIdentifierSymbol:()=>toe,isProgramBundleEmitBuildInfo:()=>wce,isProgramUptoDate:()=>qJ,isPrologueDirective:()=>Cm,isPropertyAccessChain:()=>A4,isPropertyAccessEntityNameExpression:()=>_k,isPropertyAccessExpression:()=>Fr,isPropertyAccessOrQualifiedName:()=>Kre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Jre,isPropertyAssignment:()=>bc,isPropertyDeclaration:()=>Uo,isPropertyName:()=>cc,isPropertyNameLiteral:()=>C_,isPropertySignature:()=>Ep,isProtoSetter:()=>noe,isPrototypeAccess:()=>Hy,isPrototypePropertyAssignment:()=>XL,isPunctuation:()=>nU,isPushOrUnshiftIdentifier:()=>aU,isQualifiedName:()=>Id,isQuestionDotToken:()=>ZW,isQuestionOrExclamationToken:()=>hse,isQuestionOrPlusOrMinusToken:()=>yse,isQuestionToken:()=>$y,isRawSourceMap:()=>Dle,isReadonlyKeyword:()=>zae,isReadonlyKeywordOrPlusOrMinusToken:()=>vse,isRecognizedTripleSlashComment:()=>Sj,isReferenceFileLocation:()=>vD,isReferencedFile:()=>W0,isRegularExpressionLiteral:()=>RH,isRequireCall:()=>Td,isRequireVariableStatement:()=>Uj,isRestParameter:()=>ng,isRestTypeNode:()=>nF,isReturnStatement:()=>Mm,isReturnStatementWithFixablePromiseHandler:()=>j5,isRightSideOfAccessExpression:()=>AU,isRightSideOfInstanceofExpression:()=>Toe,isRightSideOfPropertyAccess:()=>ID,isRightSideOfQualifiedName:()=>Nue,isRightSideOfQualifiedNameOrPropertyAccess:()=>VN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Soe,isRootedDiskPath:()=>_p,isSameEntityName:()=>vR,isSatisfiesExpression:()=>kH,isScopeMarker:()=>$re,isSemicolonClassElement:()=>Jae,isSetAccessor:()=>zv,isSetAccessorDeclaration:()=>Sp,isShebangTrivia:()=>jV,isShiftOperatorOrHigher:()=>nq,isShorthandAmbientModuleSymbol:()=>EN,isShorthandPropertyAssignment:()=>rp,isSignedNumericLiteral:()=>b3,isSimpleCopiableExpression:()=>g1,isSimpleInlineableExpression:()=>Ch,isSimpleParameter:()=>Wle,isSimpleParameterList:()=>Ow,isSingleOrDoubleQuote:()=>VL,isSourceFile:()=>Zi,isSourceFileFromLibrary:()=>LD,isSourceFileJS:()=>dd,isSourceFileNotJS:()=>XSe,isSourceFileNotJson:()=>jj,isSourceMapping:()=>Cle,isSpecialPropertyDeclaration:()=>qie,isSpreadAssignment:()=>Yv,isSpreadElement:()=>n_,isStatement:()=>qi,isStatementButNotDeclaration:()=>TL,isStatementOrBlock:()=>rie,isStatementWithLocals:()=>mie,isStatic:()=>aa,isStaticModifier:()=>aI,isString:()=>No,isStringAKeyword:()=>iTe,isStringANonContextualKeyword:()=>GA,isStringAndEmptyAnonymousObjectIntersection:()=>jue,isStringDoubleQuoted:()=>p3,isStringLiteral:()=>Ma,isStringLiteralLike:()=>ds,isStringLiteralOrJsxExpression:()=>oie,isStringLiteralOrTemplate:()=>cde,isStringOrNumericLiteralLike:()=>nf,isStringOrRegularExpressionOrTemplateLiteral:()=>dX,isStringTextContainingNode:()=>aj,isSuperCall:()=>IS,isSuperKeyword:()=>hP,isSuperOrSuperProperty:()=>KSe,isSuperProperty:()=>zd,isSupportedSourceFileName:()=>Zoe,isSwitchStatement:()=>EP,isSyntaxList:()=>tD,isSyntheticExpression:()=>iAe,isSyntheticReference:()=>_I,isTagName:()=>eX,isTaggedTemplateExpression:()=>a1,isTaggedTemplateTag:()=>xue,isTemplateExpression:()=>rF,isTemplateHead:()=>iI,isTemplateLiteral:()=>LA,isTemplateLiteralKind:()=>wy,isTemplateLiteralToken:()=>Gre,isTemplateLiteralTypeNode:()=>Uae,isTemplateLiteralTypeSpan:()=>MH,isTemplateMiddle:()=>DH,isTemplateMiddleOrTemplateTail:()=>R4,isTemplateSpan:()=>bP,isTemplateTail:()=>$W,isTextWhiteSpaceLike:()=>Xue,isThis:()=>xD,isThisContainerOrFunctionBlock:()=>Bie,isThisIdentifier:()=>YE,isThisInTypeQuery:()=>VA,isThisInitializedDeclaration:()=>i3,isThisInitializedObjectBindingExpression:()=>Vie,isThisProperty:()=>FL,isThisTypeNode:()=>Yk,isThisTypeParameter:()=>oP,isThisTypePredicate:()=>JSe,isThrowStatement:()=>OH,isToken:()=>CA,isTokenKind:()=>ij,isTraceEnabled:()=>Yg,isTransientSymbol:()=>hh,isTrivia:()=>xR,isTryStatement:()=>qS,isTupleTypeNode:()=>cI,isTypeAlias:()=>QL,isTypeAliasDeclaration:()=>Lm,isTypeAssertionExpression:()=>Hae,isTypeDeclaration:()=>GR,isTypeElement:()=>yS,isTypeKeyword:()=>a2,isTypeKeywordToken:()=>gX,isTypeKeywordTokenOrIdentifier:()=>f5,isTypeLiteralNode:()=>Tp,isTypeNode:()=>Ui,isTypeNodeKind:()=>MU,isTypeOfExpression:()=>XR,isTypeOnlyExportDeclaration:()=>Vre,isTypeOnlyImportDeclaration:()=>_L,isTypeOnlyImportOrExportDeclaration:()=>h0,isTypeOperatorNode:()=>VS,isTypeParameterDeclaration:()=>gl,isTypePredicateNode:()=>Kk,isTypeQueryNode:()=>lI,isTypeReferenceNode:()=>Nf,isTypeReferenceType:()=>O4,isTypeUsableAsPropertyName:()=>lm,isUMDExportSymbol:()=>z3,isUnaryExpression:()=>pj,isUnaryExpressionWithWrite:()=>Xre,isUnicodeIdentifierStart:()=>f4,isUnionTypeNode:()=>Qy,isUnparsedNode:()=>rj,isUnparsedPrepend:()=>Qae,isUnparsedSource:()=>KS,isUnparsedTextLike:()=>Bre,isUrl:()=>sre,isValidBigIntString:()=>rW,isValidESSymbolDeclaration:()=>kie,isValidTypeOnlyAliasUseSite:()=>I0,isValueSignatureDeclaration:()=>$ie,isVarAwaitUsing:()=>LL,isVarConst:()=>dR,isVarUsing:()=>kL,isVariableDeclaration:()=>ki,isVariableDeclarationInVariableStatement:()=>TN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>jE,isVariableDeclarationInitializedToRequire:()=>d3,isVariableDeclarationList:()=>qc,isVariableLike:()=>fR,isVariableLikeOrAccessor:()=>Mie,isVariableStatement:()=>kl,isVoidExpression:()=>pI,isWatchSet:()=>vTe,isWhileStatement:()=>aAe,isWhiteSpaceLike:()=>Fg,isWhiteSpaceSingleLine:()=>A_,isWithStatement:()=>Kae,isWriteAccess:()=>HA,isWriteOnlyAccess:()=>F3,isYieldExpression:()=>iF,jsxModeNeedsExplicitImport:()=>qX,keywordPart:()=>Ip,last:()=>es,lastOrUndefined:()=>el,length:()=>Le,libMap:()=>DF,libs:()=>yw,lineBreakPart:()=>PD,linkNamePart:()=>tde,linkPart:()=>NX,linkTextPart:()=>b5,listFiles:()=>dK,loadModuleFromGlobalCache:()=>lle,loadWithModeAwareCache:()=>qw,makeIdentifierFromModuleName:()=>yie,makeImport:()=>ty,makeImportIfNecessary:()=>Kue,makeStringLiteral:()=>MI,mangleScopedPackageName:()=>fD,map:()=>Ot,mapAllOrFail:()=>CE,mapDefined:()=>Hi,mapDefinedEntries:()=>N6,mapDefinedIterator:()=>kg,mapEntries:()=>Dne,mapIterator:()=>Ia,mapOneOrMany:()=>jX,mapToDisplayParts:()=>lb,matchFiles:()=>BU,matchPatternOrExact:()=>GU,matchedText:()=>Vne,matchesExclude:()=>RF,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>Goe,memoize:()=>Sd,memoizeCached:()=>wne,memoizeOne:()=>ph,memoizeWeak:()=>I1e,metadataHelper:()=>AW,min:()=>EG,minAndMax:()=>tae,missingFileModifiedTime:()=>Op,modifierToFlag:()=>UA,modifiersToFlags:()=>M_,moduleOptionDeclaration:()=>Sq,moduleResolutionIsEqualTo:()=>pie,moduleResolutionNameAndModeGetter:()=>R7,moduleResolutionOptionDeclarations:()=>CF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>KA,moduleResolutionUsesNodeModules:()=>m5,moduleSpecifiers:()=>h1,moveEmitHelpers:()=>Dae,moveRangeEnd:()=>O3,moveRangePastDecorators:()=>Ug,moveRangePastModifiers:()=>L_,moveRangePos:()=>T0,moveSyntheticComments:()=>Iae,mutateMap:()=>JN,mutateMapSkippingNewValues:()=>ug,needsParentheses:()=>S5,needsScopeMarker:()=>N4,newCaseClauseTracker:()=>O5,newPrivateEnvironment:()=>wle,noEmitNotification:()=>Ww,noEmitSubstitution:()=>qP,noTransformers:()=>SJ,noTruncationMaximumTruncationLength:()=>dW,nodeCanBeDecorated:()=>a3,nodeHasName:()=>uL,nodeIsDecorated:()=>_R,nodeIsMissing:()=>Gl,nodeIsPresent:()=>tm,nodeIsSynthesized:()=>Ys,nodeModuleNameResolver:()=>nle,nodeModulesPathPart:()=>Dh,nodeNextJsonConfigResolver:()=>rle,nodeOrChildIsDecorated:()=>BL,nodeOverlapsWithStartEnd:()=>t5,nodePosToString:()=>BSe,nodeSeenTracker:()=>PI,nodeStartsNewLexicalEnvironment:()=>sU,nodeToDisplayParts:()=>zDe,noop:()=>ts,noopFileWatcher:()=>TD,normalizePath:()=>ha,normalizeSlashes:()=>Lu,not:()=>G6,notImplemented:()=>qo,notImplementedResolver:()=>h7,nullNodeConverters:()=>mH,nullParenthesizerRules:()=>fH,nullTransformationContext:()=>JP,objectAllocator:()=>uu,operatorPart:()=>c2,optionDeclarations:()=>_g,optionMapToObject:()=>AF,optionsAffectingProgramStructure:()=>Rq,optionsForBuild:()=>Cq,optionsForWatch:()=>lD,optionsHaveChanges:()=>aR,optionsHaveModuleResolutionChanges:()=>cie,or:()=>Qm,orderedRemoveItem:()=>Vx,orderedRemoveItemAt:()=>Dy,outFile:()=>Os,packageIdToPackageName:()=>B4,packageIdToString:()=>By,paramHelper:()=>IW,parameterIsThisKeyword:()=>XE,parameterNamePart:()=>$ue,parseBaseNodeFactory:()=>uq,parseBigInt:()=>nae,parseBuildCommand:()=>iIe,parseCommandLine:()=>nIe,parseCommandLineWorker:()=>fq,parseConfigFileTextToJson:()=>_q,parseConfigFileWithSystem:()=>zRe,parseConfigHostFromCompilerHostLike:()=>x7,parseCustomTypeOption:()=>TF,parseIsolatedEntityName:()=>bI,parseIsolatedJSDocComment:()=>Rse,parseJSDocTypeExpressionForTests:()=>jAe,parseJsonConfigFileContent:()=>vIe,parseJsonSourceFileConfigFileContent:()=>hw,parseJsonText:()=>pw,parseListTypeOption:()=>Cse,parseNodeFactory:()=>Rh,parseNodeModuleFromPath:()=>xw,parsePackageName:()=>Cw,parsePseudoBigInt:()=>eP,parseValidBigInt:()=>HU,patchWriteFileEnsuringDirectory:()=>ore,pathContainsNodeModules:()=>w0,pathIsAbsolute:()=>nN,pathIsBareSpecifier:()=>zV,pathIsRelative:()=>Wp,patternText:()=>Gne,perfLogger:()=>ad,performIncrementalCompilation:()=>jRe,performance:()=>Zne,plainJSErrors:()=>D7,positionBelongsToNode:()=>oX,positionIsASICandidate:()=>x5,positionIsSynthesized:()=>t_,positionsAreOnSameLine:()=>Rf,preProcessFile:()=>pCe,probablyUsesSemicolons:()=>TO,processCommentPragmas:()=>lq,processPragmasIntoFields:()=>cq,processTaggedTemplateExpression:()=>_J,programContainsEsModules:()=>Jue,programContainsModules:()=>que,projectReferenceIsEqualTo:()=>yj,propKeyHelper:()=>FW,propertyNamePart:()=>Que,pseudoBigIntToString:()=>ZE,punctuationPart:()=>$u,pushIfUnique:()=>Tf,quote:()=>p2,quotePreferenceFromString:()=>EX,rangeContainsPosition:()=>sO,rangeContainsPositionExclusive:()=>lO,rangeContainsRange:()=>cf,rangeContainsRangeExclusive:()=>Mue,rangeContainsStartEnd:()=>cO,rangeEndIsOnSameLineAsRangeStart:()=>gk,rangeEndPositionsAreOnSameLine:()=>Doe,rangeEquals:()=>mG,rangeIsOnSingleLine:()=>OS,rangeOfNode:()=>jU,rangeOfTypeParameters:()=>UU,rangeOverlapsWithStartEnd:()=>i2,rangeStartIsOnSameLineAsRangeEnd:()=>Coe,rangeStartPositionsAreOnSameLine:()=>W3,readBuilderProgram:()=>B7,readConfigFile:()=>mw,readHelper:()=>OW,readJson:()=>jN,readJsonConfigFile:()=>Mse,readJsonOrUndefined:()=>xU,reduceEachLeadingCommentRange:()=>fre,reduceEachTrailingCommentRange:()=>mre,reduceLeft:()=>od,reduceLeftIterator:()=>Mr,reducePathComponents:()=>_S,refactor:()=>wI,regExpEscape:()=>ITe,relativeComplement:()=>Cne,removeAllComments:()=>Fk,removeEmitHelper:()=>tAe,removeExtension:()=>Tk,removeFileExtension:()=>Ad,removeIgnoredPath:()=>P7,removeMinAndVersionNumbers:()=>SG,removeOptionality:()=>zue,removePrefix:()=>QC,removeSuffix:()=>Gx,removeTrailingDirectorySeparator:()=>s0,repeatString:()=>_O,replaceElement:()=>gG,replaceFirstStar:()=>$A,resolutionExtensionIsTSOrJson:()=>$N,resolveConfigFileProjectName:()=>SK,resolveJSModule:()=>ele,resolveLibrary:()=>BF,resolveModuleName:()=>dD,resolveModuleNameFromCache:()=>txe,resolvePackageNameToPackageJson:()=>Mq,resolvePath:()=>Py,resolveProjectReferencePath:()=>yD,resolveTripleslashReference:()=>b7,resolveTypeReferenceDirective:()=>Yse,resolvingEmptyArray:()=>uW,restHelper:()=>MW,returnFalse:()=>$m,returnNoopFileWatcher:()=>AD,returnTrue:()=>Mv,returnUndefined:()=>o0,returnsPromise:()=>dY,runInitializersHelper:()=>RW,sameFlatMap:()=>Sm,sameMap:()=>no,sameMapping:()=>Vxe,scanShebangTrivia:()=>UV,scanTokenAtPosition:()=>Cie,scanner:()=>Qu,screenStartingMessageCodes:()=>z7,semanticDiagnosticsOptionDeclarations:()=>Aq,serializeCompilerOptions:()=>IF,server:()=>l8e,servicesVersion:()=>Bpe,setCommentRange:()=>uc,setConfigFileInOptions:()=>bq,setConstantValue:()=>Rae,setEachParent:()=>BR,setEmitFlags:()=>pr,setFunctionNameHelper:()=>zW,setGetSourceFileAsHashVersioned:()=>F7,setIdentifierAutoGenerate:()=>Gk,setIdentifierGeneratedImportReference:()=>Pae,setIdentifierTypeArguments:()=>Kv,setInternalEmitFlags:()=>zk,setLocalizedDiagnosticMessages:()=>Boe,setModuleDefaultHelper:()=>VW,setNodeFlags:()=>oae,setObjectAllocator:()=>zoe,setOriginalNode:()=>Pr,setParent:()=>Ya,setParentRecursive:()=>Jy,setPrivateIdentifier:()=>eT,setSnippetElement:()=>SH,setSourceMapRange:()=>Pa,setStackTraceLimit:()=>q1e,setStartsOnNewLine:()=>bW,setSyntheticLeadingComments:()=>R0,setSyntheticTrailingComments:()=>ZA,setSys:()=>$1e,setSysLog:()=>rre,setTextRange:()=>ut,setTextRangeEnd:()=>zR,setTextRangePos:()=>tP,setTextRangePosEnd:()=>bh,setTextRangePosWidth:()=>nP,setTokenSourceMapRange:()=>Aae,setTypeNode:()=>Cae,setUILocale:()=>Fne,setValueDeclaration:()=>YL,shouldAllowImportingTsExtension:()=>mD,shouldPreserveConstEnums:()=>n1,shouldUseUriStyleNodeCoreModules:()=>k5,showModuleSpecifier:()=>koe,signatureHasLiteralTypes:()=>$q,signatureHasRestParameter:()=>Yu,signatureToDisplayParts:()=>PX,single:()=>hG,singleElementArray:()=>AA,singleIterator:()=>P6,singleOrMany:()=>uh,singleOrUndefined:()=>ch,skipAlias:()=>Eu,skipAssertions:()=>EAe,skipConstraint:()=>vX,skipOuterExpressions:()=>ec,skipParentheses:()=>vs,skipPartiallyEmittedExpressions:()=>Rm,skipTrivia:()=>wa,skipTypeChecking:()=>ZN,skipTypeParentheses:()=>rk,skipWhile:()=>Une,sliceAfter:()=>VU,some:()=>St,sort:()=>uS,sortAndDeduplicate:()=>KC,sortAndDeduplicateDiagnostics:()=>$x,sourceFileAffectingCompilerOptions:()=>NF,sourceFileMayBeEmitted:()=>MS,sourceMapCommentRegExp:()=>e7,sourceMapCommentRegExpDontCareLineStart:()=>oJ,spacePart:()=>Ol,spanMap:()=>uG,spreadArrayHelper:()=>WW,stableSort:()=>Cv,startEndContainsRange:()=>iX,startEndOverlapsWithStartEnd:()=>n5,startOnNewLine:()=>Xu,startTracing:()=>ere,startsWith:()=>po,startsWithDirectory:()=>GV,startsWithUnderscore:()=>HX,startsWithUseStrict:()=>use,stringContainsAt:()=>gde,stringToToken:()=>LE,stripQuotes:()=>am,supportedDeclarationExtensions:()=>Mk,supportedJSExtensions:()=>uH,supportedJSExtensionsFlat:()=>jR,supportedLocaleDirectories:()=>vj,supportedTSExtensions:()=>VR,supportedTSExtensionsFlat:()=>cH,supportedTSImplementationExtensions:()=>Lk,suppressLeadingAndTrailingTrivia:()=>xp,suppressLeadingTrivia:()=>wX,suppressTrailingTrivia:()=>ade,symbolEscapedNameNoDefault:()=>h5,symbolName:()=>El,symbolNameNoDefault:()=>_5,symbolPart:()=>Yue,symbolToDisplayParts:()=>u2,syntaxMayBeASICandidate:()=>$X,syntaxRequiresTrailingSemicolonOrASI:()=>I5,sys:()=>vu,sysLog:()=>JM,tagNamesAreEquivalent:()=>M0,takeWhile:()=>j6,targetOptionDeclaration:()=>Ew,templateObjectHelper:()=>wW,testFormatSettings:()=>Iue,textChangeRangeIsUnchanged:()=>Ere,textChangeRangeNewSpan:()=>lN,textChanges:()=>_r,textOrKeywordPart:()=>CX,textPart:()=>df,textRangeContainsPositionInclusive:()=>sL,textSpanContainsPosition:()=>JV,textSpanContainsTextSpan:()=>gre,textSpanEnd:()=>$l,textSpanIntersection:()=>bre,textSpanIntersectsWith:()=>v4,textSpanIntersectsWithPosition:()=>yre,textSpanIntersectsWithTextSpan:()=>vSe,textSpanIsEmpty:()=>hre,textSpanOverlap:()=>vre,textSpanOverlapsWith:()=>gSe,textSpansEqual:()=>ND,textToKeywordObj:()=>oL,timestamp:()=>Xs,toArray:()=>SA,toBuilderFileEmit:()=>Fce,toBuilderStateFileInfoForMultiEmit:()=>Wce,toEditorSettings:()=>VO,toFileNameLowerCase:()=>dh,toLowerCase:()=>kne,toPath:()=>il,toProgramEmitPending:()=>zce,tokenIsIdentifierOrKeyword:()=>sd,tokenIsIdentifierOrKeywordOrGreaterThan:()=>dre,tokenToString:()=>pa,trace:()=>So,tracing:()=>ar,tracingEnabled:()=>jM,transform:()=>uPe,transformClassFields:()=>qle,transformDeclarations:()=>bJ,transformECMAScriptModule:()=>yJ,transformES2015:()=>sce,transformES2016:()=>ace,transformES2017:()=>Yle,transformES2018:()=>$le,transformES2019:()=>Qle,transformES2020:()=>Zle,transformES2021:()=>ece,transformES5:()=>lce,transformESDecorators:()=>Xle,transformESNext:()=>tce,transformGenerators:()=>cce,transformJsx:()=>oce,transformLegacyDecorators:()=>Kle,transformModule:()=>vJ,transformNamedEvaluation:()=>Ap,transformNodeModule:()=>dce,transformNodes:()=>Fw,transformSystemModule:()=>uce,transformTypeScript:()=>Hle,transpile:()=>bCe,transpileModule:()=>Ode,transpileOptionValueCompilerOptions:()=>Dq,tryAddToSet:()=>Dv,tryAndIgnoreErrors:()=>C5,tryCast:()=>ti,tryDirectoryExists:()=>D5,tryExtractTSExtension:()=>k3,tryFileExists:()=>AO,tryGetClassExtendingExpressionWithTypeArguments:()=>SU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>TU,tryGetDirectories:()=>R5,tryGetExtensionFromPath:()=>qg,tryGetImportFromModuleSpecifier:()=>$L,tryGetJSDocSatisfiesTypeNode:()=>sW,tryGetModuleNameFromFile:()=>ow,tryGetModuleSpecifierFromDeclaration:()=>yR,tryGetNativePerformanceHooks:()=>Yne,tryGetPropertyAccessOrIdentifierToString:()=>hk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>vF,tryGetSourceMappingURL:()=>Rle,tryGetTextOfPropertyName:()=>SN,tryIOAndConsumeErrors:()=>N5,tryParseJson:()=>w3,tryParsePattern:()=>FR,tryParsePatterns:()=>eW,tryParseRawSourceMap:()=>rJ,tryReadDirectory:()=>FX,tryReadFile:()=>PP,tryRemoveDirectoryPrefix:()=>FU,tryRemoveExtension:()=>eae,tryRemovePrefix:()=>IG,tryRemoveSuffix:()=>Bne,typeAcquisitionDeclarations:()=>Sw,typeAliasNamePart:()=>Zue,typeDirectiveIsEqualTo:()=>fie,typeKeywords:()=>W5,typeParameterNamePart:()=>ede,typeToDisplayParts:()=>yO,unchangedPollThresholds:()=>KM,unchangedTextChangeRange:()=>IL,unescapeLeadingUnderscores:()=>ji,unmangleScopedPackageName:()=>Pw,unorderedRemoveItem:()=>TA,unorderedRemoveItemAt:()=>TG,unreachableCodeIsError:()=>joe,unusedLabelIsError:()=>Uoe,unwrapInnermostStatementOfLabel:()=>zj,updateErrorForNoInputFiles:()=>xF,updateLanguageServiceSourceFile:()=>KY,updateMissingFilePathsWatch:()=>NJ,updateResolutionField:()=>cD,updateSharedExtendedConfigFileWatcher:()=>v7,updateSourceFile:()=>aq,updateWatchingWildcardDirectories:()=>Gw,usesExtensionsOnImports:()=>$oe,usingSingleLineStringWriter:()=>yN,utf16EncodeAsString:()=>Yx,validateLocaleAndSetLanguage:()=>bSe,valuesHelper:()=>BW,version:()=>Te,versionMajorMinor:()=>ue,visitArray:()=>kw,visitCommaListElements:()=>ZF,visitEachChild:()=>xn,visitFunctionBody:()=>lf,visitIterationBody:()=>xd,visitLexicalEnvironment:()=>tJ,visitNode:()=>rt,visitNodes:()=>Bn,visitParameterList:()=>Dl,walkUpBindingElementsAndPatterns:()=>Qx,walkUpLexicalEnvironments:()=>kle,walkUpOuterExpressions:()=>dse,walkUpParenthesizedExpressions:()=>Gv,walkUpParenthesizedTypes:()=>nk,walkUpParenthesizedTypesAndGetParentAndChild:()=>Qie,whitespaceOrMapCommentRegExp:()=>t7,writeCommentRange:()=>MR,writeFile:()=>ON,writeFileEnsuringDirectories:()=>gU,zipWith:()=>hi});var db=T({"src/server/_namespaces/ts.ts"(){ta(),tO(),ii(),pZ(),_T()}}),u8e={};X(u8e,{ActionInvalidate:()=>Zw,ActionPackageInstalled:()=>eO,ActionSet:()=>Qw,ActionWatchTypingLocations:()=>n2,Arguments:()=>CK,AutoImportProviderProject:()=>xZ,AuxiliaryProject:()=>AZ,CharRangeSection:()=>zZ,CloseFileWatcherEvent:()=>a9,CommandNames:()=>pge,ConfigFileDiagEvent:()=>t9,ConfiguredProject:()=>RZ,CreateDirectoryWatcherEvent:()=>o9,CreateFileWatcherEvent:()=>i9,Errors:()=>ay,EventBeginInstallTypes:()=>q7,EventEndInstallTypes:()=>J7,EventInitializationFailed:()=>DK,EventTypesRegistry:()=>H7,ExternalProject:()=>Kz,GcTimer:()=>gZ,InferredProject:()=>TZ,LargeFileReferencedEvent:()=>e9,LineIndex:()=>N2,LineLeaf:()=>E8,LineNode:()=>qI,LogLevel:()=>fZ,Msg:()=>mZ,OpenFileInfoTelemetryEvent:()=>PZ,Project:()=>mT,ProjectInfoTelemetryEvent:()=>r9,ProjectKind:()=>D2,ProjectLanguageServiceStateEvent:()=>n9,ProjectLoadingFinishEvent:()=>Zz,ProjectLoadingStartEvent:()=>Qz,ProjectReferenceProjectLoadKind:()=>kZ,ProjectService:()=>wZ,ProjectsUpdatedInBackgroundEvent:()=>v8,ScriptInfo:()=>bZ,ScriptVersionCache:()=>u9,Session:()=>mge,TextStorage:()=>yZ,ThrottledOperations:()=>hZ,TypingsCache:()=>EZ,TypingsInstallerAdapter:()=>gge,allFilesAreJsOrDts:()=>Uhe,allRootFilesAreJsOrDts:()=>jhe,asNormalizedPath:()=>WOe,convertCompilerOptions:()=>Xz,convertFormatOptions:()=>$D,convertScriptKindName:()=>CZ,convertTypeAcquisition:()=>Jhe,convertUserPreferences:()=>Khe,convertWatchOptions:()=>g8,countEachFileTypes:()=>_8,createInstallTypingsRequest:()=>She,createModuleSpecifierCache:()=>ige,createNormalizedPathMap:()=>FOe,createPackageJsonCache:()=>oge,createSortedArray:()=>Rhe,emptyArray:()=>Ec,findArgument:()=>xDe,forEachResolvedProjectReferenceProject:()=>QD,formatDiagnosticToProtocol:()=>b8,formatMessage:()=>age,getBaseConfigFileName:()=>_Z,getLocationInNewDocument:()=>uge,hasArgument:()=>IDe,hasNoTypeScriptSource:()=>Hhe,indent:()=>t2,isBackgroundProject:()=>h8,isConfigFile:()=>ege,isConfiguredProject:()=>U0,isDynamicFileName:()=>m8,isExternalProject:()=>SZ,isInferredProject:()=>YD,isInferredProjectName:()=>The,makeAutoImportProviderProjectName:()=>Ihe,makeAuxiliaryProjectName:()=>xhe,makeInferredProjectName:()=>Ahe,maxFileSize:()=>$z,maxProgramSizeForNonTsFiles:()=>Yz,normalizedPathToPath:()=>f8,nowString:()=>RDe,nullCancellationToken:()=>dge,nullTypingsInstaller:()=>Jz,projectContainsInfoDirectly:()=>UI,protocol:()=>Vhe,removeSorted:()=>zOe,stringifyIndented:()=>F0,toEvent:()=>sge,toNormalizedPath:()=>ml,tryConvertScriptKindName:()=>DZ,typingsInstaller:()=>bhe,updateProjectIfDirty:()=>jp});var Mlt=T({"src/typescript/_namespaces/ts.server.ts"(){K7(),_T()}}),d8e={};X(d8e,{ANONYMOUS:()=>F5,AccessFlags:()=>rV,AssertionLevel:()=>DG,AssignmentDeclarationKind:()=>pV,AssignmentKind:()=>eH,Associativity:()=>nH,BreakpointResolver:()=>t$,BuilderFileEmit:()=>oK,BuilderProgramKind:()=>aK,BuilderState:()=>Om,BundleFileSectionKind:()=>NV,CallHierarchy:()=>OI,CharacterCodes:()=>TV,CheckFlags:()=>QG,CheckMode:()=>YF,ClassificationType:()=>KK,ClassificationTypeNames:()=>JK,CommentDirectiveType:()=>WG,Comparison:()=>Be,CompletionInfoFlags:()=>BK,CompletionTriggerKind:()=>wK,Completions:()=>GI,ContainerFlags:()=>Kq,ContextFlags:()=>jG,Debug:()=>C,DiagnosticCategory:()=>HM,Diagnostics:()=>m,DocumentHighlights:()=>G5,ElementFlags:()=>nV,EmitFlags:()=>a4,EmitHint:()=>RV,EmitOnly:()=>zG,EndOfLineState:()=>jK,EnumKind:()=>$G,ExitStatus:()=>BG,ExportKind:()=>nY,Extension:()=>AV,ExternalEmitHelpers:()=>xV,FileIncludeKind:()=>$6,FilePreprocessingDiagnosticsKind:()=>FG,FileSystemEntryKind:()=>OV,FileWatcherEventKind:()=>wV,FindAllReferences:()=>Gs,FlattenLevel:()=>pJ,FlowFlags:()=>UM,ForegroundColorEscapeSequences:()=>$J,FunctionFlags:()=>tH,GeneratedIdentifierFlags:()=>Y6,GetLiteralTextFlags:()=>$U,GoToDefinition:()=>HD,HighlightSpanKind:()=>WK,IdentifierNameMap:()=>II,IdentifierNameMultiMap:()=>dJ,ImportKind:()=>tY,ImportsNotUsedAsValues:()=>vV,IndentStyle:()=>FK,IndexFlags:()=>iV,IndexKind:()=>sV,InferenceFlags:()=>uV,InferencePriority:()=>cV,InlayHintKind:()=>OK,InlayHints:()=>JQ,InternalEmitFlags:()=>IV,InternalSymbolName:()=>ZG,InvalidatedProjectKind:()=>RK,JSDocParsingMode:()=>LV,JsDoc:()=>j0,JsTyping:()=>G_,JsxEmit:()=>gV,JsxFlags:()=>wG,JsxReferenceKind:()=>oV,LanguageServiceMode:()=>MK,LanguageVariant:()=>EV,LexicalEnvironmentFlags:()=>CV,ListFormat:()=>PV,LogLevel:()=>NG,MemberOverrideStatus:()=>GG,ModifierFlags:()=>K6,ModuleDetectionKind:()=>fV,ModuleInstanceState:()=>Jq,ModuleKind:()=>eN,ModuleResolutionKind:()=>Jx,ModuleSpecifierEnding:()=>dH,NavigateTo:()=>zde,NavigationBar:()=>Xde,NewLineKind:()=>yV,NodeBuilderFlags:()=>UG,NodeCheckFlags:()=>eV,NodeFactoryFlags:()=>yH,NodeFlags:()=>J6,NodeResolutionFeatures:()=>Uq,ObjectFlags:()=>t4,OperationCanceledException:()=>qx,OperatorPrecedence:()=>rH,OrganizeImports:()=>Wm,OrganizeImportsMode:()=>kK,OuterExpressionKinds:()=>DV,OutliningElementsCollector:()=>$Q,OutliningSpanKind:()=>GK,OutputFileType:()=>VK,PackageJsonAutoImportPreference:()=>PK,PackageJsonDependencyGroup:()=>NK,PatternMatchKind:()=>V5,PollingInterval:()=>s4,PollingWatchKind:()=>hV,PragmaKindFlags:()=>MV,PrivateIdentifierKind:()=>xH,ProcessLevel:()=>hJ,ProgramUpdateLevel:()=>MJ,QuotePreference:()=>XX,RelationComparisonResult:()=>X6,Rename:()=>Bz,ScriptElementKind:()=>HK,ScriptElementKindModifier:()=>qK,ScriptKind:()=>r4,ScriptSnapshot:()=>Y7,ScriptTarget:()=>bV,SemanticClassificationFormat:()=>LK,SemanticMeaning:()=>KX,SemicolonPreference:()=>zK,SignatureCheckMode:()=>$F,SignatureFlags:()=>n4,SignatureHelp:()=>o8,SignatureKind:()=>aV,SmartSelectionRange:()=>eZ,SnippetKind:()=>o4,SortKind:()=>RG,StructureIsReused:()=>Q6,SymbolAccessibility:()=>JG,SymbolDisplay:()=>oy,SymbolDisplayPartKind:()=>nO,SymbolFlags:()=>Z6,SymbolFormatFlags:()=>qG,SyntaxKind:()=>q6,SyntheticSymbolKind:()=>KG,Ternary:()=>dV,ThrottledCancellationToken:()=>e$,TokenClass:()=>UK,TokenFlags:()=>OG,TransformFlags:()=>i4,TypeFacts:()=>XF,TypeFlags:()=>e4,TypeFormatFlags:()=>HG,TypeMapKind:()=>lV,TypePredicateKind:()=>XG,TypeReferenceSerializationKind:()=>YG,UnionReduction:()=>VG,UpToDateStatusType:()=>TK,VarianceFlags:()=>tV,Version:()=>Tm,VersionRange:()=>GM,WatchDirectoryFlags:()=>SV,WatchDirectoryKind:()=>_V,WatchFileKind:()=>mV,WatchLogLevel:()=>LJ,WatchType:()=>Wc,accessPrivateIdentifier:()=>Ole,addDisposableResourceHelper:()=>KW,addEmitFlags:()=>k_,addEmitHelper:()=>eI,addEmitHelpers:()=>Jg,addInternalEmitFlags:()=>QA,addNodeFactoryPatcher:()=>KTe,addObjectAllocatorPatcher:()=>Foe,addRange:()=>Ur,addRelatedInfo:()=>Oa,addSyntheticLeadingComment:()=>fP,addSyntheticTrailingComment:()=>EW,addToSeen:()=>Pm,advancedAsyncSuperHelper:()=>Uk,affectsDeclarationPathOptionDeclarations:()=>xq,affectsEmitOptionDeclarations:()=>Iq,allKeysStartWithDot:()=>VF,altDirectorySeparator:()=>ZM,and:()=>B6,append:()=>Rn,appendIfUnique:()=>wg,arrayFrom:()=>Wo,arrayIsEqualTo:()=>Ym,arrayIsHomogeneous:()=>iae,arrayIsSorted:()=>M6,arrayOf:()=>Pne,arrayReverseIterator:()=>fG,arrayToMap:()=>PE,arrayToMultiMap:()=>FM,arrayToNumericMap:()=>Lne,arraysEqual:()=>Na,assertType:()=>D1e,assign:()=>zx,assignHelper:()=>DW,asyncDelegator:()=>NW,asyncGeneratorHelper:()=>CW,asyncSuperHelper:()=>jk,asyncValues:()=>PW,attachFileToDiagnostics:()=>JA,awaitHelper:()=>tI,awaiterHelper:()=>LW,base64decode:()=>Roe,base64encode:()=>xoe,binarySearch:()=>Nv,binarySearchKey:()=>bA,bindSourceFile:()=>dle,breakIntoCharacterSpans:()=>Mde,breakIntoWordSpans:()=>Lde,buildLinkParts:()=>nde,buildOpts:()=>PF,buildOverload:()=>POe,bundlerModuleNameResolver:()=>tle,canBeConvertedToAsync:()=>fY,canHaveDecorators:()=>QS,canHaveExportModifier:()=>Ik,canHaveFlowNode:()=>ZL,canHaveIllegalDecorators:()=>tq,canHaveIllegalModifiers:()=>_se,canHaveIllegalType:()=>TAe,canHaveIllegalTypeParameters:()=>mse,canHaveJSDoc:()=>ek,canHaveLocals:()=>_h,canHaveModifiers:()=>km,canHaveSymbol:()=>x_,canJsonReportNoInputFiles:()=>MP,canProduceDiagnostics:()=>d7,canUsePropertyAccess:()=>JU,canWatchAffectingLocation:()=>jce,canWatchAtTypes:()=>Vce,canWatchDirectoryOrFile:()=>M7,cartesianProduct:()=>jne,cast:()=>oa,chainBundle:()=>wm,chainDiagnosticMessages:()=>Bo,changeAnyExtension:()=>$M,changeCompilerHostLikeToUseCache:()=>Uw,changeExtension:()=>A0,changeFullExtension:()=>lre,changesAffectModuleResolution:()=>W4,changesAffectingProgramStructure:()=>uie,childIsDecorated:()=>IN,classElementOrClassElementParameterIsDecorated:()=>Bj,classHasClassThisAssignment:()=>fJ,classHasDeclaredOrExplicitlyAssignedName:()=>mJ,classHasExplicitlyAssignedName:()=>l7,classOrConstructorParameterIsDecorated:()=>Bv,classPrivateFieldGetHelper:()=>HW,classPrivateFieldInHelper:()=>JW,classPrivateFieldSetHelper:()=>qW,classicNameResolver:()=>sle,classifier:()=>Upe,cleanExtendedConfigCache:()=>y7,clear:()=>zo,clearMap:()=>tp,clearSharedExtendedConfigFileWatcher:()=>CJ,climbPastPropertyAccess:()=>Q7,climbPastPropertyOrElementAccess:()=>Cue,clone:()=>vG,cloneCompilerOptions:()=>fX,closeFileWatcher:()=>e_,closeFileWatcherOf:()=>Mf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>Sre,collectExternalModuleInfo:()=>sJ,combine:()=>Fx,combinePaths:()=>Yr,commentPragmas:()=>qM,commonOptionsWithBuild:()=>bw,commonPackageFolders:()=>aH,compact:()=>WM,compareBooleans:()=>Ry,compareDataObjects:()=>NU,compareDiagnostics:()=>KN,compareDiagnosticsSkipRelatedInformation:()=>V3,compareEmitHelpers:()=>kae,compareNumberOfDirectorySeparators:()=>Sk,comparePaths:()=>Og,comparePathsCaseInsensitive:()=>tSe,comparePathsCaseSensitive:()=>eSe,comparePatternKeys:()=>Vq,compareProperties:()=>zne,compareStringsCaseInsensitive:()=>F6,compareStringsCaseInsensitiveEslintCompatible:()=>One,compareStringsCaseSensitive:()=>Uu,compareStringsCaseSensitiveUI:()=>BM,compareTextSpans:()=>W6,compareValues:()=>nl,compileOnSaveCommandLineOption:()=>vw,compilerOptionsAffectDeclarationPath:()=>Koe,compilerOptionsAffectEmit:()=>Joe,compilerOptionsAffectSemanticDiagnostics:()=>qoe,compilerOptionsDidYouMeanDiagnostics:()=>Tw,compilerOptionsIndicateEsModules:()=>yX,compose:()=>x1e,computeCommonSourceDirectoryOfFilenames:()=>Ece,computeLineAndCharacterOfPosition:()=>Xx,computeLineOfPosition:()=>iN,computeLineStarts:()=>DA,computePositionOfLineAndCharacter:()=>m4,computeSignature:()=>iT,computeSignatureWithDiagnostics:()=>tK,computeSuggestionDiagnostics:()=>uY,computedOptions:()=>yc,concatenate:()=>To,concatenateDiagnosticMessageChains:()=>Voe,consumesNodeCoreModules:()=>P5,contains:()=>Nr,containsIgnoredPath:()=>rP,containsObjectRestOrSpread:()=>cw,containsParseError:()=>sR,containsPath:()=>Am,convertCompilerOptionsForTelemetry:()=>Fse,convertCompilerOptionsFromJson:()=>xIe,convertJsonOption:()=>ZS,convertToBase64:()=>Ioe,convertToJson:()=>_w,convertToObject:()=>Lse,convertToOptionsWithAbsolutePaths:()=>yq,convertToRelativePath:()=>rN,convertToTSConfig:()=>pIe,convertTypeAcquisitionFromJson:()=>RIe,copyComments:()=>lT,copyEntries:()=>F4,copyLeadingComments:()=>MD,copyProperties:()=>yG,copyTrailingAsLeadingComments:()=>SO,copyTrailingComments:()=>d2,couldStartTrivia:()=>pre,countWhere:()=>lu,createAbstractBuilder:()=>LRe,createAccessorPropertyBackingField:()=>rq,createAccessorPropertyGetRedirector:()=>Tse,createAccessorPropertySetRedirector:()=>Ase,createBaseNodeFactory:()=>vae,createBinaryExpressionTrampoline:()=>yF,createBindingHelper:()=>HR,createBuildInfo:()=>zw,createBuilderProgram:()=>nK,createBuilderProgramUsingProgramBuildInfo:()=>Bce,createBuilderStatusReporter:()=>rue,createCacheWithRedirects:()=>kq,createCacheableExportInfoMap:()=>QX,createCachedDirectoryStructureHost:()=>g7,createClassNamedEvaluationHelperBlock:()=>Vle,createClassThisAssignmentBlock:()=>Ble,createClassifier:()=>YDe,createCommentDirectivesMap:()=>hie,createCompilerDiagnostic:()=>Jl,createCompilerDiagnosticForInvalidCustomType:()=>Dse,createCompilerDiagnosticFromMessageChain:()=>G3,createCompilerHost:()=>Sce,createCompilerHostFromProgramHost:()=>yK,createCompilerHostWorker:()=>OJ,createDetachedDiagnostic:()=>WR,createDiagnosticCollection:()=>DR,createDiagnosticForFileFromMessageChain:()=>wj,createDiagnosticForNode:()=>Or,createDiagnosticForNodeArray:()=>uR,createDiagnosticForNodeArrayFromMessageChain:()=>ML,createDiagnosticForNodeFromMessageChain:()=>Gg,createDiagnosticForNodeInSourceFile:()=>nm,createDiagnosticForRange:()=>Die,createDiagnosticMessageChainFromDiagnostic:()=>Rie,createDiagnosticReporter:()=>Xw,createDocumentPositionMapper:()=>Nle,createDocumentRegistry:()=>Ede,createDocumentRegistryInternal:()=>oY,createEmitAndSemanticDiagnosticsBuilderProgram:()=>sK,createEmitHelperFactory:()=>Lae,createEmptyExports:()=>tw,createExpressionForJsxElement:()=>sse,createExpressionForJsxFragment:()=>lse,createExpressionForObjectLiteralElementLike:()=>cse,createExpressionForPropertyName:()=>XH,createExpressionFromEntityName:()=>nw,createExternalHelpersImportDeclarationIfNeeded:()=>QH,createFileDiagnostic:()=>eu,createFileDiagnosticFromMessageChain:()=>J4,createForOfBindingStatement:()=>KH,createGetCanonicalFileName:()=>Mu,createGetSourceFile:()=>kJ,createGetSymbolAccessibilityDiagnosticForNode:()=>$v,createGetSymbolAccessibilityDiagnosticForNodeName:()=>pce,createGetSymbolWalker:()=>ple,createIncrementalCompilerHost:()=>EK,createIncrementalProgram:()=>tue,createInputFiles:()=>YTe,createInputFilesWithFilePaths:()=>gH,createInputFilesWithFileTexts:()=>vH,createJsxFactoryExpression:()=>JH,createLanguageService:()=>Fpe,createLanguageServiceSourceFile:()=>pz,createMemberAccessForPropertyName:()=>$S,createModeAwareCache:()=>TI,createModeAwareCacheKey:()=>WP,createModuleNotFoundChain:()=>z4,createModuleResolutionCache:()=>uD,createModuleResolutionLoader:()=>VJ,createModuleResolutionLoaderUsingGlobalCache:()=>Jce,createModuleSpecifierResolutionHost:()=>sT,createMultiMap:()=>Zp,createNodeConverters:()=>bae,createNodeFactory:()=>wk,createOptionNameMap:()=>SF,createOverload:()=>dZ,createPackageJsonImportFilter:()=>m2,createPackageJsonInfo:()=>BX,createParenthesizerRules:()=>yae,createPatternMatcher:()=>xde,createPrependNodes:()=>XJ,createPrinter:()=>O0,createPrinterWithDefaults:()=>RJ,createPrinterWithRemoveComments:()=>y1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>DJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Bw,createProgram:()=>A7,createProgramHost:()=>bK,createPropertyNameNodeForIdentifierOrLiteral:()=>oW,createQueue:()=>zM,createRange:()=>xf,createRedirectedBuilderProgram:()=>iK,createResolutionCache:()=>cK,createRuntimeTypeSerializer:()=>Jle,createScanner:()=>Ov,createSemanticDiagnosticsBuilderProgram:()=>MRe,createSet:()=>bG,createSolutionBuilder:()=>XRe,createSolutionBuilderHost:()=>JRe,createSolutionBuilderWithWatch:()=>YRe,createSolutionBuilderWithWatchHost:()=>KRe,createSortedArray:()=>pG,createSourceFile:()=>dw,createSourceMapGenerator:()=>xle,createSourceMapSource:()=>$Te,createSuperAccessVariableStatement:()=>u7,createSymbolTable:()=>ua,createSymlinkCache:()=>WU,createSystemWatchFunctions:()=>ire,createTextChange:()=>fO,createTextChangeFromStartLength:()=>p5,createTextChangeRange:()=>cL,createTextRangeFromNode:()=>hX,createTextRangeFromSpan:()=>d5,createTextSpan:()=>yu,createTextSpanFromBounds:()=>hc,createTextSpanFromNode:()=>Dd,createTextSpanFromRange:()=>sb,createTextSpanFromStringLiteralLikeContent:()=>_X,createTextWriter:()=>pk,createTokenRange:()=>RU,createTypeChecker:()=>ble,createTypeReferenceDirectiveResolutionCache:()=>zF,createTypeReferenceResolutionLoader:()=>E7,createUnparsedSourceFile:()=>hH,createWatchCompilerHost:()=>URe,createWatchCompilerHostOfConfigFile:()=>Qce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Zce,createWatchFactory:()=>vK,createWatchHost:()=>gK,createWatchProgram:()=>HRe,createWatchStatusReporter:()=>Kce,createWriteFileMeasuringIO:()=>wJ,declarationNameToString:()=>Ns,decodeMappings:()=>iJ,decodedTextSpanIntersectsWith:()=>lL,decorateHelper:()=>TW,deduplicate:()=>NE,defaultIncludeSpec:()=>kF,defaultInitCompilerOptions:()=>MF,defaultMaximumTruncationLength:()=>Ck,detectSortCaseSensitivity:()=>XC,diagnosticCategoryName:()=>mS,diagnosticToString:()=>uT,directoryProbablyExists:()=>Zm,directorySeparator:()=>ol,displayPart:()=>ip,displayPartsToString:()=>jO,disposeEmitNodes:()=>bH,disposeResourcesHelper:()=>XW,documentSpansEqual:()=>AX,dumpTracingLegend:()=>tre,elementAt:()=>kv,elideNodes:()=>Sse,emitComments:()=>moe,emitDetachedComments:()=>_oe,emitFiles:()=>m7,emitFilesAndReportErrors:()=>O7,emitFilesAndReportErrorsAndGetExitStatus:()=>$ce,emitModuleKindIsNonNodeESM:()=>j3,emitNewLineBeforeLeadingCommentOfPosition:()=>foe,emitNewLineBeforeLeadingComments:()=>doe,emitNewLineBeforeLeadingCommentsOfPosition:()=>poe,emitSkippedWithNoDiagnostics:()=>C7,emitUsingBuildInfo:()=>gce,emptyArray:()=>et,emptyFileSystemEntries:()=>gW,emptyMap:()=>U6,emptyOptions:()=>kf,emptySet:()=>Hne,endsWith:()=>Al,ensurePathIsNonModuleName:()=>ME,ensureScriptKind:()=>Q3,ensureTrailingDirectorySeparator:()=>Vc,entityNameToString:()=>gp,enumerateInsertsAndDeletes:()=>V6,equalOwnProperties:()=>Mne,equateStringsCaseInsensitive:()=>a0,equateStringsCaseSensitive:()=>dS,equateValues:()=>Lv,esDecorateHelper:()=>xW,escapeJsxAttributeString:()=>fU,escapeLeadingUnderscores:()=>hl,escapeNonAsciiString:()=>dk,escapeSnippetText:()=>t1,escapeString:()=>lg,escapeTemplateSubstitution:()=>dU,every:()=>Yn,expandPreOrPostfixIncrementOrDecrementExpression:()=>fF,explainFiles:()=>pK,explainIfFileIsRedirectAndImpliedFormat:()=>fK,exportAssignmentIsAlias:()=>AR,exportStarHelper:()=>UW,expressionResultIsUnused:()=>aae,extend:()=>O6,extendsHelper:()=>kW,extensionFromPath:()=>QN,extensionIsTS:()=>tW,extensionsNotSupportingExtensionlessResolution:()=>kk,externalHelpersModuleNameText:()=>Ky,factory:()=>w,fileExtensionIs:()=>Il,fileExtensionIsOneOf:()=>Ic,fileIncludeReasonToDiagnostics:()=>hK,fileShouldUseJavaScriptRequire:()=>JX,filter:()=>rr,filterMutate:()=>Ks,filterSemanticDiagnostics:()=>I7,find:()=>Tn,findAncestor:()=>zn,findBestPatternMatch:()=>AG,findChildOfKind:()=>Es,findComputedPropertyNameCacheAssignment:()=>bF,findConfigFile:()=>bce,findContainingList:()=>r5,findDiagnosticForNode:()=>fde,findFirstNonJsxWhitespaceToken:()=>kue,findIndex:()=>Br,findLast:()=>ko,findLastIndex:()=>zi,findListItemInfo:()=>Lue,findMap:()=>Go,findModifier:()=>CD,findNextToken:()=>S1,findPackageJson:()=>dde,findPackageJsons:()=>zX,findPrecedingMatchingToken:()=>c5,findPrecedingToken:()=>Dc,findSuperStatementIndexPath:()=>o7,findTokenOnLeftOfPosition:()=>a5,findUseStrictPrologue:()=>$H,first:()=>Xa,firstDefined:()=>qt,firstDefinedIterator:()=>fn,firstIterator:()=>_G,firstOrOnly:()=>UX,firstOrUndefined:()=>$c,firstOrUndefinedIterator:()=>L6,fixupCompilerOptions:()=>_Y,flatMap:()=>Pi,flatMapIterator:()=>Qp,flatMapToMutable:()=>sc,flatten:()=>ra,flattenCommaList:()=>Ise,flattenDestructuringAssignment:()=>tT,flattenDestructuringBinding:()=>v1,flattenDiagnosticMessageText:()=>z_,forEach:()=>He,forEachAncestor:()=>die,forEachAncestorDirectory:()=>xm,forEachChild:()=>Vo,forEachChildRecursively:()=>NP,forEachEmittedFile:()=>TJ,forEachEnclosingBlockScopeContainer:()=>Aie,forEachEntry:()=>jc,forEachExternalModuleToImportFrom:()=>eY,forEachImportClauseDeclaration:()=>h3,forEachKey:()=>gh,forEachLeadingCommentRange:()=>rL,forEachNameInAccessChainWalkingLeft:()=>Ooe,forEachPropertyAssignment:()=>mR,forEachResolvedProjectReference:()=>UJ,forEachReturnStatement:()=>GE,forEachRight:()=>jt,forEachTrailingCommentRange:()=>iL,forEachTsConfigPropArray:()=>OL,forEachUnique:()=>xX,forEachYieldExpression:()=>Nie,forSomeAncestorDirectory:()=>yTe,formatColorAndReset:()=>b1,formatDiagnostic:()=>WJ,formatDiagnostics:()=>fRe,formatDiagnosticsWithColorAndContext:()=>Tce,formatGeneratedName:()=>P0,formatGeneratedNamePart:()=>oD,formatLocation:()=>FJ,formatMessage:()=>kU,formatStringFromArgs:()=>dg,formatting:()=>Fc,fullTripleSlashAMDReferencePathRegEx:()=>ZU,fullTripleSlashReferencePathRegEx:()=>QU,generateDjb2Hash:()=>tN,generateTSConfig:()=>gIe,generatorHelper:()=>GW,getAdjustedReferenceLocation:()=>sX,getAdjustedRenameLocation:()=>o5,getAliasDeclarationFromName:()=>eU,getAllAccessorDeclarations:()=>wS,getAllDecoratorsOfClass:()=>cJ,getAllDecoratorsOfClassElement:()=>s7,getAllJSDocTags:()=>S4,getAllJSDocTagsOfKind:()=>NSe,getAllKeys:()=>A1e,getAllProjectOutputs:()=>f7,getAllSuperTypeNodes:()=>NN,getAllUnscopedEmitHelpers:()=>IH,getAllowJSCompilerOption:()=>Xy,getAllowSyntheticDefaultImports:()=>FS,getAncestor:()=>S0,getAnyExtensionFromPath:()=>Kx,getAreDeclarationMapsEnabled:()=>Pk,getAssignedExpandoInitializer:()=>OA,getAssignedName:()=>b4,getAssignedNameOfIdentifier:()=>UP,getAssignmentDeclarationKind:()=>Vl,getAssignmentDeclarationPropertyAccessKind:()=>KL,getAssignmentTargetKind:()=>BA,getAutomaticTypeDirectiveNames:()=>WF,getBaseFileName:()=>lc,getBinaryOperatorPrecedence:()=>uk,getBuildInfo:()=>_7,getBuildInfoFileVersionMap:()=>rK,getBuildInfoText:()=>hce,getBuildOrderFromAnyBuildOrder:()=>G7,getBuilderCreationParameters:()=>N7,getBuilderFileEmit:()=>ab,getCheckFlags:()=>xl,getClassExtendsHeritageElement:()=>qE,getClassLikeDeclarationOfSymbol:()=>Hg,getCombinedLocalAndExportSymbolFlags:()=>kR,getCombinedModifierFlags:()=>d0,getCombinedNodeFlags:()=>Wv,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>KV,getCommentRange:()=>w_,getCommonSourceDirectory:()=>$P,getCommonSourceDirectoryOfConfig:()=>hD,getCompilerOptionValue:()=>H3,getCompilerOptionsDiffValue:()=>_Ie,getConditions:()=>ib,getConfigFileParsingDiagnostics:()=>rT,getConstantValue:()=>xae,getContainerFlags:()=>qq,getContainerNode:()=>aT,getContainingClass:()=>cu,getContainingClassExcludingClassDecorators:()=>n3,getContainingClassStaticBlock:()=>zie,getContainingFunction:()=>Gp,getContainingFunctionDeclaration:()=>Fie,getContainingFunctionOrClassStaticBlock:()=>t3,getContainingNodeArray:()=>sae,getContainingObjectLiteralElement:()=>UO,getContextualTypeFromParent:()=>T5,getContextualTypeFromParentOrAncestorTypeNode:()=>i5,getCurrentTime:()=>$w,getDeclarationDiagnostics:()=>fce,getDeclarationEmitExtensionForPath:()=>I3,getDeclarationEmitOutputFilePath:()=>aoe,getDeclarationEmitOutputFilePathWorker:()=>A3,getDeclarationFileExtension:()=>sq,getDeclarationFromName:()=>CN,getDeclarationModifierFlagsFromSymbol:()=>Df,getDeclarationOfKind:()=>fl,getDeclarationsOfKind:()=>lie,getDeclaredExpandoInitializer:()=>UL,getDecorators:()=>Ly,getDefaultCompilerOptions:()=>dz,getDefaultExportInfoWorker:()=>B5,getDefaultFormatCodeSettings:()=>X7,getDefaultLibFileName:()=>aL,getDefaultLibFilePath:()=>zpe,getDefaultLikeExportInfo:()=>z5,getDiagnosticText:()=>oIe,getDiagnosticsWithinSpan:()=>mde,getDirectoryPath:()=>ri,getDirectoryToWatchFailedLookupLocation:()=>lK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Hce,getDocumentPositionMapper:()=>cY,getDocumentSpansEqualityComparer:()=>IX,getESModuleInterop:()=>Eh,getEditsForFileRename:()=>Tde,getEffectiveBaseTypeNode:()=>D_,getEffectiveConstraintOfTypeParameter:()=>eR,getEffectiveContainerForJSDocTemplateTag:()=>g3,getEffectiveImplementsTypeNodes:()=>IR,getEffectiveInitializer:()=>jL,getEffectiveJSDocHost:()=>E0,getEffectiveModifierFlags:()=>pd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>yoe,getEffectiveModifierFlagsNoCache:()=>boe,getEffectiveReturnTypeNode:()=>sm,getEffectiveSetAccessorTypeAnnotationNode:()=>uoe,getEffectiveTypeAnnotationNode:()=>bu,getEffectiveTypeParameterDeclarations:()=>ky,getEffectiveTypeRoots:()=>OP,getElementOrPropertyAccessArgumentExpressionOrName:()=>_3,getElementOrPropertyAccessName:()=>Vg,getElementsOfBindingOrAssignmentPattern:()=>iD,getEmitDeclarations:()=>Cf,getEmitFlags:()=>qa,getEmitHelpers:()=>SW,getEmitModuleDetectionKind:()=>iH,getEmitModuleKind:()=>wu,getEmitModuleResolutionKind:()=>md,getEmitScriptTarget:()=>ls,getEmitStandardClassFields:()=>Hoe,getEnclosingBlockScopeContainer:()=>vh,getEnclosingContainer:()=>kj,getEncodedSemanticClassifications:()=>rY,getEncodedSyntacticClassifications:()=>iY,getEndLinePosition:()=>DL,getEntityNameFromTypeNode:()=>zL,getEntrypointsFromPackageJsonInfo:()=>zq,getErrorCountForSummary:()=>k7,getErrorSpanForNode:()=>AS,getErrorSummaryText:()=>Xce,getEscapedTextOfIdentifierOrLiteral:()=>LN,getEscapedTextOfJsxAttributeName:()=>sP,getEscapedTextOfJsxNamespacedName:()=>YA,getExpandoInitializer:()=>y0,getExportAssignmentExpression:()=>tU,getExportInfoMap:()=>RO,getExportNeedsImportStarHelper:()=>Ple,getExpressionAssociativity:()=>lU,getExpressionPrecedence:()=>wN,getExternalHelpersModuleName:()=>iw,getExternalModuleImportEqualsDeclarationExpression:()=>xN,getExternalModuleName:()=>bR,getExternalModuleNameFromDeclaration:()=>ioe,getExternalModuleNameFromPath:()=>_U,getExternalModuleNameLiteral:()=>yI,getExternalModuleRequireArgument:()=>Vj,getFallbackOptions:()=>jw,getFileEmitOutput:()=>Nce,getFileMatcherPatterns:()=>$3,getFileNamesFromConfigSpecs:()=>LP,getFileWatcherEventKind:()=>kV,getFilesInErrorForSummary:()=>w7,getFirstConstructorWithBody:()=>cg,getFirstIdentifier:()=>Vp,getFirstNonSpaceCharacterPosition:()=>ode,getFirstProjectOutput:()=>xJ,getFixableErrorSpanExpression:()=>VX,getFormatCodeSettingsForWriting:()=>w5,getFullWidth:()=>xL,getFunctionFlags:()=>Uc,getHeritageClause:()=>ak,getHostSignatureFromJSDoc:()=>b0,getIdentifierAutoGenerate:()=>nAe,getIdentifierGeneratedImportReference:()=>Mae,getIdentifierTypeArguments:()=>zS,getImmediatelyInvokedFunctionExpression:()=>xS,getImpliedNodeFormatForFile:()=>Jw,getImpliedNodeFormatForFileWorker:()=>JJ,getImportNeedsImportDefaultHelper:()=>aJ,getImportNeedsImportStarHelper:()=>r7,getIndentSize:()=>NR,getIndentString:()=>S3,getInferredLibraryNameResolveFrom:()=>T7,getInitializedVariables:()=>HN,getInitializerOfBinaryExpression:()=>Jj,getInitializerOfBindingOrAssignmentElement:()=>aw,getInterfaceBaseTypeNodes:()=>PN,getInternalEmitFlags:()=>Dm,getInvokedExpression:()=>o3,getIsolatedModules:()=>um,getJSDocAugmentsTag:()=>Pre,getJSDocClassTag:()=>YV,getJSDocCommentRanges:()=>Wj,getJSDocCommentsAndTags:()=>Xj,getJSDocDeprecatedTag:()=>$V,getJSDocDeprecatedTagNoCache:()=>Fre,getJSDocEnumTag:()=>QV,getJSDocHost:()=>NS,getJSDocImplementsTags:()=>Mre,getJSDocOverloadTags:()=>$j,getJSDocOverrideTagNoCache:()=>Wre,getJSDocParameterTags:()=>Zx,getJSDocParameterTagsNoCache:()=>Rre,getJSDocPrivateTag:()=>ISe,getJSDocPrivateTagNoCache:()=>kre,getJSDocProtectedTag:()=>xSe,getJSDocProtectedTagNoCache:()=>wre,getJSDocPublicTag:()=>ASe,getJSDocPublicTagNoCache:()=>Lre,getJSDocReadonlyTag:()=>RSe,getJSDocReadonlyTagNoCache:()=>Ore,getJSDocReturnTag:()=>zre,getJSDocReturnType:()=>dL,getJSDocRoot:()=>TR,getJSDocSatisfiesExpressionType:()=>XU,getJSDocSatisfiesTag:()=>ZV,getJSDocTags:()=>_0,getJSDocTagsNoCache:()=>CSe,getJSDocTemplateTag:()=>DSe,getJSDocThisTag:()=>E4,getJSDocType:()=>m0,getJSDocTypeAliasName:()=>eq,getJSDocTypeAssertionType:()=>_F,getJSDocTypeParameterDeclarations:()=>C3,getJSDocTypeParameterTags:()=>Dre,getJSDocTypeParameterTagsNoCache:()=>Cre,getJSDocTypeTag:()=>f0,getJSXImplicitImportBase:()=>J3,getJSXRuntimeImport:()=>K3,getJSXTransformEnabled:()=>q3,getKeyForCompilerOptions:()=>Lq,getLanguageVariant:()=>yk,getLastChild:()=>PU,getLeadingCommentRanges:()=>Zh,getLeadingCommentRangesOfNode:()=>Oj,getLeftmostAccessExpression:()=>wR,getLeftmostExpression:()=>OR,getLibraryNameFromLibFileName:()=>HJ,getLineAndCharacterOfPosition:()=>Ts,getLineInfo:()=>nJ,getLineOfLocalPosition:()=>WN,getLineOfLocalPositionFromLineMap:()=>LS,getLineStartPositionForPosition:()=>fm,getLineStarts:()=>Wg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Moe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Poe,getLinesBetweenPositions:()=>oN,getLinesBetweenRangeEndAndRangeStart:()=>DU,getLinesBetweenRangeEndPositions:()=>gTe,getLiteralText:()=>gie,getLocalNameForExternalImport:()=>rD,getLocalSymbolForExportDefault:()=>LR,getLocaleSpecificMessage:()=>wo,getLocaleTimeString:()=>Yw,getMappedContextSpan:()=>RX,getMappedDocumentSpan:()=>y5,getMappedLocation:()=>l2,getMatchedFileSpec:()=>mK,getMatchedIncludeSpec:()=>_K,getMeaningFromDeclaration:()=>rO,getMeaningFromLocation:()=>oT,getMembersOfDeclaration:()=>Pie,getModeForFileReference:()=>Hw,getModeForResolutionAtIndex:()=>Ace,getModeForUsageLocation:()=>BJ,getModifiedTime:()=>IA,getModifiers:()=>kE,getModuleInstanceState:()=>$g,getModuleNameStringLiteralAt:()=>Kw,getModuleSpecifierEndingPreference:()=>Qoe,getModuleSpecifierResolverHost:()=>bX,getNameForExportedSymbol:()=>M5,getNameFromImportAttribute:()=>cW,getNameFromIndexInfo:()=>Iie,getNameFromPropertyName:()=>hO,getNameOfAccessExpression:()=>LU,getNameOfCompilerOptionValue:()=>vq,getNameOfDeclaration:()=>Po,getNameOfExpando:()=>Hj,getNameOfJSDocTypedef:()=>xre,getNameOrArgument:()=>JL,getNameTable:()=>XY,getNamesForExportedSymbol:()=>_de,getNamespaceDeclarationNode:()=>ER,getNewLineCharacter:()=>Hv,getNewLineKind:()=>xO,getNewLineOrDefaultFromHost:()=>ny,getNewTargetContainer:()=>Gie,getNextJSDocCommentLocation:()=>Yj,getNodeForGeneratedName:()=>lw,getNodeId:()=>cs,getNodeKind:()=>E1,getNodeModifiers:()=>o2,getNodeModulePathParts:()=>aW,getNonAssignedNameOfDeclaration:()=>y4,getNonAssignmentOperatorForCompoundAssignment:()=>GP,getNonAugmentationDeclaration:()=>Dj,getNonDecoratorTokenPosOfNode:()=>Tj,getNormalizedAbsolutePath:()=>yo,getNormalizedAbsolutePathWithoutRoot:()=>BV,getNormalizedPathComponents:()=>YM,getObjectFlags:()=>Wr,getOperator:()=>uU,getOperatorAssociativity:()=>cU,getOperatorPrecedence:()=>ck,getOptionFromName:()=>mq,getOptionsForLibraryResolution:()=>wq,getOptionsNameMap:()=>sD,getOrCreateEmitNode:()=>Ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>fse,getOrUpdate:()=>i0,getOriginalNode:()=>Ml,getOriginalNodeId:()=>Wu,getOriginalSourceFile:()=>sTe,getOutputDeclarationFileName:()=>YP,getOutputDeclarationFileNameWorker:()=>AJ,getOutputExtension:()=>p7,getOutputFileNames:()=>dRe,getOutputJSFileNameWorker:()=>IJ,getOutputPathsFor:()=>XP,getOutputPathsForBundle:()=>KP,getOwnEmitOutputFilePath:()=>ooe,getOwnKeys:()=>Qh,getOwnValues:()=>EA,getPackageJsonInfo:()=>m1,getPackageJsonTypesVersionsPaths:()=>OF,getPackageJsonsVisibleToFile:()=>pde,getPackageNameFromTypesPackageName:()=>FP,getPackageScopeForPath:()=>Dw,getParameterSymbolFromJSDoc:()=>tk,getParameterTypeNode:()=>DTe,getParentNodeInSpan:()=>vO,getParseTreeNode:()=>Do,getParsedCommandLineOfConfigFile:()=>fw,getPathComponents:()=>Gc,getPathComponentsRelativeTo:()=>VV,getPathFromPathComponents:()=>Ny,getPathUpdater:()=>sY,getPathsBasePath:()=>x3,getPatternFromSpec:()=>Xoe,getPendingEmitKind:()=>ED,getPositionOfLineAndCharacter:()=>tL,getPossibleGenericSignatures:()=>cX,getPossibleOriginalInputExtensionForExtension:()=>soe,getPossibleTypeArgumentsInfo:()=>uX,getPreEmitDiagnostics:()=>pRe,getPrecedingNonSpaceCharacterPosition:()=>E5,getPrivateIdentifier:()=>uJ,getProperties:()=>lJ,getProperty:()=>k6,getPropertyArrayElementValue:()=>Wie,getPropertyAssignmentAliasLikeExpression:()=>eoe,getPropertyNameForPropertyNameNode:()=>PS,getPropertyNameForUniqueESSymbol:()=>oTe,getPropertyNameFromType:()=>cm,getPropertyNameOfBindingOrAssignmentElement:()=>ZH,getPropertySymbolFromBindingElement:()=>v5,getPropertySymbolsFromContextualType:()=>fz,getQuoteFromPreference:()=>SX,getQuotePreference:()=>uf,getRangesWhere:()=>dG,getRefactorContextSpan:()=>LI,getReferencedFileLocation:()=>QP,getRegexFromPattern:()=>qy,getRegularExpressionForWildcard:()=>XN,getRegularExpressionsForWildcards:()=>X3,getRelativePathFromDirectory:()=>Im,getRelativePathFromFile:()=>QM,getRelativePathToDirectoryOrUrl:()=>RA,getRenameLocation:()=>EO,getReplacementSpanForContextToken:()=>mX,getResolutionDiagnostic:()=>YJ,getResolutionModeOverride:()=>gD,getResolveJsonModule:()=>x0,getResolvePackageJsonExports:()=>mW,getResolvePackageJsonImports:()=>_W,getResolvedExternalModuleName:()=>T3,getRestIndicatorOfBindingOrAssignmentElement:()=>gF,getRestParameterElementType:()=>Fj,getRightMostAssignedExpression:()=>HL,getRootDeclaration:()=>N_,getRootDirectoryOfResolutionCache:()=>qce,getRootLength:()=>mh,getRootPathSplitLength:()=>WRe,getScriptKind:()=>MX,getScriptKindFromFileName:()=>Z3,getScriptTargetFeatures:()=>pW,getSelectedEffectiveModifierFlags:()=>jA,getSelectedSyntacticModifierFlags:()=>goe,getSemanticClassifications:()=>yde,getSemanticJsxChildren:()=>RR,getSetAccessorTypeAnnotationNode:()=>loe,getSetAccessorValueParameter:()=>FN,getSetExternalModuleIndicator:()=>bk,getShebang:()=>h4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Kj,getSingleVariableOfVariableStatement:()=>zA,getSnapshotText:()=>DD,getSnippetElement:()=>EH,getSourceFileOfModule:()=>G4,getSourceFileOfNode:()=>jn,getSourceFilePathInNewDir:()=>R3,getSourceFilePathInNewDirWorker:()=>D3,getSourceFileVersionAsHashFromText:()=>W7,getSourceFilesToEmit:()=>hU,getSourceMapRange:()=>Jv,getSourceMapper:()=>wde,getSourceTextOfNodeFromSourceFile:()=>FE,getSpanOfTokenAtPosition:()=>yh,getSpellingSuggestion:()=>$C,getStartPositionOfLine:()=>Gy,getStartPositionOfRange:()=>UN,getStartsOnNewLine:()=>pP,getStaticPropertiesAndClassStaticBlock:()=>a7,getStrictOptionValue:()=>fd,getStringComparer:()=>Bx,getSubPatternFromSpec:()=>Y3,getSuperCallFromStatement:()=>i7,getSuperContainer:()=>WL,getSupportedCodeFixes:()=>JY,getSupportedExtensions:()=>YN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Ek,getSwitchedType:()=>WX,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>sk,getSymbolTarget:()=>LX,getSyntacticClassifications:()=>bde,getSyntacticModifierFlags:()=>Uy,getSyntacticModifierFlagsNoCache:()=>bU,getSynthesizedDeepClone:()=>ll,getSynthesizedDeepCloneWithReplacements:()=>bO,getSynthesizedDeepClones:()=>T1,getSynthesizedDeepClonesWithReplacements:()=>kX,getSyntheticLeadingComments:()=>UR,getSyntheticTrailingComments:()=>Bk,getTargetLabel:()=>Z7,getTargetOfBindingOrAssignmentElement:()=>rb,getTemporaryModuleResolutionState:()=>Rw,getTextOfConstantValue:()=>vie,getTextOfIdentifierOrLiteral:()=>om,getTextOfJSDocComment:()=>fL,getTextOfJsxAttributeName:()=>Dk,getTextOfJsxNamespacedName:()=>lP,getTextOfNode:()=>gc,getTextOfNodeFromSourceText:()=>bN,getTextOfPropertyName:()=>cR,getThisContainer:()=>Fd,getThisParameter:()=>KE,getTokenAtPosition:()=>fo,getTokenPosOfNode:()=>g0,getTokenSourceMapRange:()=>eAe,getTouchingPropertyName:()=>Vd,getTouchingToken:()=>RD,getTrailingCommentRanges:()=>l0,getTrailingSemicolonDeferringWriter:()=>mU,getTransformFlagsSubtreeExclusions:()=>Eae,getTransformers:()=>EJ,getTsBuildInfoEmitOutputFilePath:()=>Qv,getTsConfigObjectLiteralExpression:()=>AN,getTsConfigPropArrayElementValue:()=>e3,getTypeAnnotationNode:()=>coe,getTypeArgumentOrTypeParameterList:()=>Vue,getTypeKeywordOfTypeOnlyImport:()=>TX,getTypeNode:()=>Nae,getTypeNodeIfAccessible:()=>f2,getTypeParameterFromJsDoc:()=>Kie,getTypeParameterOwner:()=>ySe,getTypesPackageName:()=>jF,getUILocale:()=>Wne,getUniqueName:()=>cT,getUniqueSymbolId:()=>ide,getUseDefineForClassFields:()=>dP,getWatchErrorSummaryDiagnosticMessage:()=>uK,getWatchFactory:()=>PJ,group:()=>YC,groupBy:()=>w6,guessIndentation:()=>aie,handleNoEmitOptions:()=>KJ,hasAbstractModifier:()=>$E,hasAccessorModifier:()=>P_,hasAmbientModifier:()=>yU,hasChangesInResolutions:()=>bj,hasChildOfKind:()=>uO,hasContextSensitiveParameters:()=>iW,hasDecorators:()=>If,hasDocComment:()=>Bue,hasDynamicName:()=>jy,hasEffectiveModifier:()=>yp,hasEffectiveModifiers:()=>N3,hasEffectiveReadonlyModifier:()=>zN,hasExtension:()=>xA,hasIndexSignature:()=>OX,hasInitializer:()=>zy,hasInvalidEscape:()=>pU,hasJSDocNodes:()=>Fp,hasJSDocParameterTags:()=>Nre,hasJSFileExtension:()=>QE,hasJsonModuleEmitEnabled:()=>U3,hasOnlyExpressionInitializer:()=>ES,hasOverrideModifier:()=>P3,hasPossibleExternalModuleReference:()=>Tie,hasProperty:()=>Cs,hasPropertyAccessExpressionWithName:()=>oO,hasQuestionToken:()=>FA,hasRecordedExternalHelpers:()=>pse,hasResolutionModeOverride:()=>pae,hasRestParameter:()=>hj,hasScopeMarker:()=>Qre,hasStaticModifier:()=>vc,hasSyntacticModifier:()=>$r,hasSyntacticModifiers:()=>hoe,hasTSFileExtension:()=>XA,hasTabstop:()=>cae,hasTrailingDirectorySeparator:()=>wv,hasType:()=>w4,hasTypeArguments:()=>eTe,hasZeroOrOneAsteriskCharacter:()=>OU,helperString:()=>AH,hostGetCanonicalFileName:()=>Vv,hostUsesCaseSensitiveFileNames:()=>PR,idText:()=>Tr,identifierIsThisKeyword:()=>vU,identifierToKeywordKind:()=>p0,identity:()=>tl,identitySourceMapConsumer:()=>n7,ignoreSourceNewlines:()=>TH,ignoredPaths:()=>XM,importDefaultHelper:()=>jW,importFromModuleSpecifier:()=>DN,importNameElisionDisabled:()=>wU,importStarHelper:()=>Vk,indexOfAnyCharCode:()=>Ac,indexOfNode:()=>lR,indicesOf:()=>OM,inferredTypesContainingFile:()=>bD,injectClassNamedEvaluationHelperBlockIfMissing:()=>c7,injectClassThisAssignmentIfMissing:()=>Gle,insertImports:()=>s2,insertLeadingStatement:()=>yAe,insertSorted:()=>xy,insertStatementAfterCustomPrologue:()=>SS,insertStatementAfterStandardPrologue:()=>USe,insertStatementsAfterCustomPrologue:()=>Ej,insertStatementsAfterStandardPrologue:()=>rg,intersperse:()=>oo,intrinsicTagNameToString:()=>YU,introducesArgumentsExoticObject:()=>wie,inverseJsxOptionMap:()=>kP,isAbstractConstructorSymbol:()=>Loe,isAbstractModifier:()=>Bae,isAccessExpression:()=>zs,isAccessibilityModifier:()=>pX,isAccessor:()=>Oy,isAccessorModifier:()=>Vae,isAliasSymbolDeclaration:()=>nTe,isAliasableExpression:()=>ok,isAmbientModule:()=>ku,isAmbientPropertyDeclaration:()=>Nj,isAnonymousFunctionDefinition:()=>kN,isAnyDirectorySeparator:()=>WV,isAnyImportOrBareOrAccessedRequire:()=>Sie,isAnyImportOrReExport:()=>NL,isAnyImportSyntax:()=>TS,isAnySupportedFileExtension:()=>RTe,isApplicableVersionedTypesKey:()=>Nw,isArgumentExpressionOfElementAccess:()=>tX,isArray:()=>Ao,isArrayBindingElement:()=>C4,isArrayBindingOrAssignmentElement:()=>bL,isArrayBindingOrAssignmentPattern:()=>uj,isArrayBindingPattern:()=>i1,isArrayLiteralExpression:()=>_d,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>ey,isArrayTypeNode:()=>Xk,isArrowFunction:()=>Us,isAsExpression:()=>$k,isAssertClause:()=>Xae,isAssertEntry:()=>dAe,isAssertionExpression:()=>bS,isAssertsKeyword:()=>Fae,isAssignmentDeclaration:()=>RN,isAssignmentExpression:()=>wc,isAssignmentOperator:()=>jv,isAssignmentPattern:()=>gN,isAssignmentTarget:()=>sg,isAsteriskToken:()=>Hk,isAsyncFunction:()=>MN,isAsyncModifier:()=>_P,isAutoAccessorPropertyDeclaration:()=>Wd,isAwaitExpression:()=>eb,isAwaitKeyword:()=>PH,isBigIntLiteral:()=>YW,isBinaryExpression:()=>mr,isBinaryOperatorToken:()=>Ese,isBindableObjectDefinePropertyCall:()=>DS,isBindableStaticAccessExpression:()=>UE,isBindableStaticElementAccessExpression:()=>m3,isBindableStaticNameExpression:()=>CS,isBindingElement:()=>ns,isBindingElementOfBareOrAccessedRequire:()=>Uie,isBindingName:()=>vS,isBindingOrAssignmentElement:()=>qre,isBindingOrAssignmentPattern:()=>vL,isBindingPattern:()=>Zo,isBlock:()=>Jo,isBlockOrCatchScoped:()=>Aj,isBlockScope:()=>Pj,isBlockScopedContainerTopLevel:()=>Eie,isBooleanLiteral:()=>hN,isBreakOrContinueStatement:()=>pN,isBreakStatement:()=>lAe,isBuildInfoFile:()=>_ce,isBuilderProgram:()=>Yce,isBundle:()=>FH,isBundleFileTextLike:()=>woe,isCallChain:()=>hS,isCallExpression:()=>sa,isCallExpressionTarget:()=>XK,isCallLikeExpression:()=>WE,isCallLikeOrFunctionLikeExpression:()=>dj,isCallOrNewExpression:()=>I_,isCallOrNewExpressionTarget:()=>YK,isCallSignatureDeclaration:()=>sI,isCallToHelper:()=>mP,isCaseBlock:()=>SP,isCaseClause:()=>$R,isCaseKeyword:()=>jae,isCaseOrDefaultClause:()=>L4,isCatchClause:()=>d1,isCatchClauseVariableDeclaration:()=>lae,isCatchClauseVariableDeclarationOrBindingElement:()=>Ij,isCheckJsEnabledForFile:()=>Ak,isChildOfNodeWithKind:()=>qSe,isCircularBuildOrder:()=>DI,isClassDeclaration:()=>Rc,isClassElement:()=>Zc,isClassExpression:()=>tu,isClassInstanceProperty:()=>Ure,isClassLike:()=>ui,isClassMemberModifier:()=>sj,isClassNamedEvaluationHelperBlock:()=>RI,isClassOrTypeElement:()=>D4,isClassStaticBlockDeclaration:()=>Rl,isClassThisAssignmentBlock:()=>jP,isCollapsedRange:()=>hTe,isColonToken:()=>Oae,isCommaExpression:()=>rw,isCommaListExpression:()=>yP,isCommaSequence:()=>RP,isCommaToken:()=>wae,isComment:()=>u5,isCommonJsExportPropertyAssignment:()=>Q4,isCommonJsExportedExpression:()=>Lie,isCompoundAssignment:()=>BP,isComputedNonLiteralName:()=>PL,isComputedPropertyName:()=>rs,isConciseBody:()=>P4,isConditionalExpression:()=>YR,isConditionalTypeNode:()=>dI,isConstTypeReference:()=>zg,isConstructSignatureDeclaration:()=>Jk,isConstructorDeclaration:()=>Ll,isConstructorTypeNode:()=>qR,isContextualKeyword:()=>y3,isContinueStatement:()=>sAe,isCustomPrologue:()=>wL,isDebuggerStatement:()=>cAe,isDeclaration:()=>Ju,isDeclarationBindingElement:()=>gL,isDeclarationFileName:()=>Tu,isDeclarationName:()=>jg,isDeclarationNameOfEnumOrNamespace:()=>CU,isDeclarationReadonly:()=>K4,isDeclarationStatement:()=>nie,isDeclarationWithTypeParameterChildren:()=>Lj,isDeclarationWithTypeParameters:()=>Mj,isDecorator:()=>Su,isDecoratorTarget:()=>Rue,isDefaultClause:()=>AP,isDefaultImport:()=>WA,isDefaultModifier:()=>eF,isDefaultedExpandoInitializer:()=>Hie,isDeleteExpression:()=>qae,isDeleteTarget:()=>Zj,isDeprecatedDeclaration:()=>L5,isDestructuringAssignment:()=>Uv,isDiagnosticWithLocation:()=>GX,isDiskPathRoot:()=>FV,isDoStatement:()=>oAe,isDocumentRegistryEntry:()=>DO,isDotDotDotToken:()=>QW,isDottedName:()=>GN,isDynamicName:()=>E3,isESSymbolIdentifier:()=>aTe,isEffectiveExternalModule:()=>wA,isEffectiveModuleDeclaration:()=>bie,isEffectiveStrictModeSourceFile:()=>Cj,isElementAccessChain:()=>ej,isElementAccessExpression:()=>$s,isEmittedFileOfProgram:()=>yce,isEmptyArrayLiteral:()=>Aoe,isEmptyBindingElement:()=>Are,isEmptyBindingPattern:()=>Tre,isEmptyObjectLiteral:()=>IU,isEmptyStatement:()=>wH,isEmptyStringLiteral:()=>Gj,isEntityName:()=>Zd,isEntityNameExpression:()=>jl,isEnumConst:()=>BE,isEnumDeclaration:()=>D0,isEnumMember:()=>p1,isEqualityOperatorKind:()=>A5,isEqualsGreaterThanToken:()=>Wae,isExclamationToken:()=>qk,isExcludedFile:()=>wse,isExclusivelyTypeOnlyImportOrExport:()=>zJ,isExpandoPropertyDeclaration:()=>lW,isExportAssignment:()=>wl,isExportDeclaration:()=>Zl,isExportModifier:()=>oI,isExportName:()=>mF,isExportNamespaceAsDefaultDeclaration:()=>U4,isExportOrDefaultModifier:()=>sw,isExportSpecifier:()=>Ku,isExportsIdentifier:()=>RS,isExportsOrModuleExportsOrAlias:()=>_1,isExpression:()=>bt,isExpressionNode:()=>og,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Pue,isExpressionOfOptionalChainRoot:()=>I4,isExpressionStatement:()=>nu,isExpressionWithTypeArguments:()=>Xv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>M3,isExternalModule:()=>dc,isExternalModuleAugmentation:()=>zE,isExternalModuleImportEqualsDeclaration:()=>v0,isExternalModuleIndicator:()=>EL,isExternalModuleNameRelative:()=>Qc,isExternalModuleReference:()=>xh,isExternalModuleSymbol:()=>mO,isExternalOrCommonJsModule:()=>zp,isFileLevelReservedGeneratedIdentifier:()=>hL,isFileLevelUniqueName:()=>V4,isFileProbablyExternalModule:()=>uw,isFirstDeclarationOfSymbolParameter:()=>DX,isFixablePromiseHandler:()=>pY,isForInOrOfStatement:()=>rR,isForInStatement:()=>aF,isForInitializer:()=>Af,isForOfStatement:()=>Qk,isForStatement:()=>HS,isFunctionBlock:()=>VE,isFunctionBody:()=>fj,isFunctionDeclaration:()=>xc,isFunctionExpression:()=>Bs,isFunctionExpressionOrArrowFunction:()=>e1,isFunctionLike:()=>Qo,isFunctionLikeDeclaration:()=>js,isFunctionLikeKind:()=>PA,isFunctionLikeOrClassStaticBlockDeclaration:()=>nR,isFunctionOrConstructorTypeNode:()=>Hre,isFunctionOrModuleBlock:()=>lj,isFunctionSymbol:()=>Jie,isFunctionTypeNode:()=>Th,isFutureReservedKeyword:()=>rTe,isGeneratedIdentifier:()=>al,isGeneratedPrivateIdentifier:()=>gS,isGetAccessor:()=>Fy,isGetAccessorDeclaration:()=>rf,isGetOrSetAccessorDeclaration:()=>T4,isGlobalDeclaration:()=>HDe,isGlobalScopeAugmentation:()=>R_,isGrammarError:()=>_ie,isHeritageClause:()=>of,isHoistedFunction:()=>Y4,isHoistedVariableStatement:()=>$4,isIdentifier:()=>je,isIdentifierANonContextualKeyword:()=>iU,isIdentifierName:()=>Zie,isIdentifierOrThisTypeNode:()=>gse,isIdentifierPart:()=>c0,isIdentifierStart:()=>eg,isIdentifierText:()=>tf,isIdentifierTypePredicate:()=>Oie,isIdentifierTypeReference:()=>rae,isIfStatement:()=>US,isIgnoredFileFromWildCardWatching:()=>Vw,isImplicitGlob:()=>zU,isImportAttribute:()=>Yae,isImportAttributeName:()=>jre,isImportAttributes:()=>mI,isImportCall:()=>Bp,isImportClause:()=>Ah,isImportDeclaration:()=>Oc,isImportEqualsDeclaration:()=>ru,isImportKeyword:()=>gP,isImportMeta:()=>pR,isImportOrExportSpecifier:()=>NA,isImportOrExportSpecifierName:()=>rde,isImportSpecifier:()=>np,isImportTypeAssertionContainer:()=>uAe,isImportTypeNode:()=>fg,isImportableFile:()=>ZX,isInComment:()=>Zv,isInCompoundLikeAssignment:()=>Qj,isInExpressionContext:()=>s3,isInJSDoc:()=>GL,isInJSFile:()=>sr,isInJSXText:()=>Fue,isInJsonFile:()=>c3,isInNonReferenceComment:()=>Hue,isInReferenceComment:()=>Uue,isInRightSideOfInternalImportEqualsDeclaration:()=>$7,isInString:()=>NI,isInTemplateString:()=>lX,isInTopLevelContext:()=>r3,isInTypeQuery:()=>kS,isIncrementalCompilation:()=>uP,isIndexSignatureDeclaration:()=>r1,isIndexedAccessTypeNode:()=>jS,isInferTypeNode:()=>BS,isInfinityOrNaNString:()=>iP,isInitializedProperty:()=>ww,isInitializedVariable:()=>vk,isInsideJsxElement:()=>l5,isInsideJsxElementOrAttribute:()=>Wue,isInsideNodeModules:()=>IO,isInsideTemplateLiteral:()=>pO,isInstanceOfExpression:()=>L3,isInstantiatedModule:()=>Yq,isInterfaceDeclaration:()=>hd,isInternalDeclaration:()=>gj,isInternalModuleImportEqualsDeclaration:()=>gR,isInternalName:()=>YH,isIntersectionTypeNode:()=>uI,isIntrinsicJsxName:()=>CR,isIterationStatement:()=>Wy,isJSDoc:()=>i_,isJSDocAllType:()=>tse,isJSDocAugmentsTag:()=>vI,isJSDocAuthorTag:()=>_Ae,isJSDocCallbackTag:()=>BH,isJSDocClassTag:()=>rse,isJSDocCommentContainingNode:()=>k4,isJSDocConstructSignature:()=>SR,isJSDocDeprecatedTag:()=>HH,isJSDocEnumTag:()=>ew,isJSDocFunctionType:()=>ZR,isJSDocImplementsTag:()=>dF,isJSDocIndexSignature:()=>u3,isJSDocLikeText:()=>oq,isJSDocLink:()=>Zae,isJSDocLinkCode:()=>ese,isJSDocLinkLike:()=>kA,isJSDocLinkPlain:()=>fAe,isJSDocMemberName:()=>C0,isJSDocNameReference:()=>IP,isJSDocNamepathType:()=>mAe,isJSDocNamespaceBody:()=>FSe,isJSDocNode:()=>iR,isJSDocNonNullableType:()=>sF,isJSDocNullableType:()=>QR,isJSDocOptionalParameter:()=>Rk,isJSDocOptionalType:()=>zH,isJSDocOverloadTag:()=>eD,isJSDocOverrideTag:()=>cF,isJSDocParameterTag:()=>o_,isJSDocPrivateTag:()=>VH,isJSDocPropertyLikeTag:()=>fN,isJSDocPropertyTag:()=>ise,isJSDocProtectedTag:()=>jH,isJSDocPublicTag:()=>GH,isJSDocReadonlyTag:()=>UH,isJSDocReturnTag:()=>uF,isJSDocSatisfiesExpression:()=>KU,isJSDocSatisfiesTag:()=>pF,isJSDocSeeTag:()=>hAe,isJSDocSignature:()=>N0,isJSDocTag:()=>oR,isJSDocTemplateTag:()=>pm,isJSDocThisTag:()=>qH,isJSDocThrowsTag:()=>vAe,isJSDocTypeAlias:()=>im,isJSDocTypeAssertion:()=>nD,isJSDocTypeExpression:()=>f1,isJSDocTypeLiteral:()=>XS,isJSDocTypeTag:()=>xP,isJSDocTypedefTag:()=>YS,isJSDocUnknownTag:()=>gAe,isJSDocUnknownType:()=>nse,isJSDocVariadicType:()=>lF,isJSXTagName:()=>hR,isJsonEqual:()=>nW,isJsonSourceFile:()=>rm,isJsxAttribute:()=>F_,isJsxAttributeLike:()=>M4,isJsxAttributeName:()=>dae,isJsxAttributes:()=>u1,isJsxChild:()=>AL,isJsxClosingElement:()=>l1,isJsxClosingFragment:()=>$ae,isJsxElement:()=>mg,isJsxExpression:()=>TP,isJsxFragment:()=>c1,isJsxNamespacedName:()=>r_,isJsxOpeningElement:()=>W_,isJsxOpeningFragment:()=>hI,isJsxOpeningLikeElement:()=>ud,isJsxOpeningLikeElementTagName:()=>Due,isJsxSelfClosingElement:()=>JS,isJsxSpreadAttribute:()=>gI,isJsxTagNameExpression:()=>vN,isJsxText:()=>nI,isJumpStatementTarget:()=>aO,isKeyword:()=>Bd,isKeywordOrPunctuation:()=>v3,isKnownSymbol:()=>lk,isLabelName:()=>ZK,isLabelOfLabeledStatement:()=>QK,isLabeledStatement:()=>s1,isLateVisibilityPaintedStatement:()=>q4,isLeftHandSideExpression:()=>ep,isLeftHandSideOfAssignment:()=>_Te,isLet:()=>X4,isLineBreak:()=>Hu,isLiteralComputedPropertyDeclarationName:()=>ik,isLiteralExpression:()=>OE,isLiteralExpressionOfObject:()=>oj,isLiteralImportTypeNode:()=>Vy,isLiteralKind:()=>mN,isLiteralLikeAccess:()=>f3,isLiteralLikeElementAccess:()=>qL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>e5,isLiteralTypeLikeExpression:()=>AAe,isLiteralTypeLiteral:()=>Yre,isLiteralTypeNode:()=>Zy,isLocalName:()=>Xg,isLogicalOperator:()=>Eoe,isLogicalOrCoalescingAssignmentExpression:()=>EU,isLogicalOrCoalescingAssignmentOperator:()=>BN,isLogicalOrCoalescingBinaryExpression:()=>mk,isLogicalOrCoalescingBinaryOperator:()=>fk,isMappedTypeNode:()=>KR,isMemberName:()=>tg,isMetaProperty:()=>vP,isMethodDeclaration:()=>Kl,isMethodOrAccessor:()=>MA,isMethodSignature:()=>Sh,isMinusToken:()=>NH,isMissingDeclaration:()=>pAe,isMissingPackageJsonInfo:()=>Qse,isModifier:()=>xa,isModifierKind:()=>Fv,isModifierLike:()=>sl,isModuleAugmentationExternal:()=>Rj,isModuleBlock:()=>O_,isModuleBody:()=>Zre,isModuleDeclaration:()=>Ql,isModuleExportsAccessExpression:()=>ag,isModuleIdentifier:()=>qj,isModuleName:()=>bse,isModuleOrEnumDeclaration:()=>SL,isModuleReference:()=>iie,isModuleSpecifierLike:()=>g5,isModuleWithStringLiteralName:()=>H4,isNameOfFunctionDeclaration:()=>rX,isNameOfModuleDeclaration:()=>nX,isNamedClassElement:()=>LSe,isNamedDeclaration:()=>ld,isNamedEvaluation:()=>vp,isNamedEvaluationSource:()=>oU,isNamedExportBindings:()=>nj,isNamedExports:()=>Pf,isNamedImportBindings:()=>mj,isNamedImports:()=>Kg,isNamedImportsOrExports:()=>B3,isNamedTupleMember:()=>JR,isNamespaceBody:()=>WSe,isNamespaceExport:()=>Ih,isNamespaceExportDeclaration:()=>Zk,isNamespaceImport:()=>nb,isNamespaceReexportDeclaration:()=>jie,isNewExpression:()=>o1,isNewExpressionTarget:()=>r2,isNoSubstitutionTemplateLiteral:()=>rI,isNode:()=>PSe,isNodeArray:()=>wE,isNodeArrayMultiLine:()=>Noe,isNodeDescendantOf:()=>HE,isNodeKind:()=>mL,isNodeLikeSystem:()=>xG,isNodeModulesDirectory:()=>d4,isNodeWithPossibleHoistedDeclaration:()=>Yie,isNonContextualKeyword:()=>rU,isNonExportDefaultModifier:()=>xAe,isNonGlobalAmbientModule:()=>xj,isNonGlobalDeclaration:()=>vde,isNonNullAccess:()=>uae,isNonNullChain:()=>x4,isNonNullExpression:()=>fI,isNonStaticMethodOrAccessorWithPrivateName:()=>Mle,isNotEmittedOrPartiallyEmittedNode:()=>OSe,isNotEmittedStatement:()=>WH,isNullishCoalesce:()=>tj,isNumber:()=>Pv,isNumericLiteral:()=>bp,isNumericLiteralName:()=>pg,isObjectBindingElementWithoutPropertyName:()=>gO,isObjectBindingOrAssignmentElement:()=>yL,isObjectBindingOrAssignmentPattern:()=>cj,isObjectBindingPattern:()=>dm,isObjectLiteralElement:()=>_j,isObjectLiteralElementLike:()=>Bg,isObjectLiteralExpression:()=>Wa,isObjectLiteralMethod:()=>Nm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Z4,isObjectTypeDeclaration:()=>qA,isOctalDigit:()=>_4,isOmittedExpression:()=>Hc,isOptionalChain:()=>qu,isOptionalChainRoot:()=>uN,isOptionalDeclaration:()=>aP,isOptionalJSDocPropertyLikeTag:()=>xk,isOptionalTypeNode:()=>tF,isOuterExpression:()=>hF,isOutermostOptionalChain:()=>dN,isOverrideModifier:()=>Gae,isPackageJsonInfo:()=>FF,isPackedArrayLiteral:()=>qU,isParameter:()=>Io,isParameterDeclaration:()=>JE,isParameterPropertyDeclaration:()=>hp,isParameterPropertyModifier:()=>_N,isParenthesizedExpression:()=>Gd,isParenthesizedTypeNode:()=>GS,isParseTreeNode:()=>cN,isPartOfTypeNode:()=>ig,isPartOfTypeQuery:()=>l3,isPartiallyEmittedExpression:()=>oF,isPatternMatch:()=>z6,isPinnedComment:()=>j4,isPlainJsFile:()=>RL,isPlusToken:()=>CH,isPossiblyTypeArgumentPosition:()=>dO,isPostfixUnaryExpression:()=>LH,isPrefixUnaryExpression:()=>tb,isPrivateIdentifier:()=>Ji,isPrivateIdentifierClassElementDeclaration:()=>cd,isPrivateIdentifierPropertyAccessExpression:()=>tR,isPrivateIdentifierSymbol:()=>toe,isProgramBundleEmitBuildInfo:()=>wce,isProgramUptoDate:()=>qJ,isPrologueDirective:()=>Cm,isPropertyAccessChain:()=>A4,isPropertyAccessEntityNameExpression:()=>_k,isPropertyAccessExpression:()=>Fr,isPropertyAccessOrQualifiedName:()=>Kre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Jre,isPropertyAssignment:()=>bc,isPropertyDeclaration:()=>Uo,isPropertyName:()=>cc,isPropertyNameLiteral:()=>C_,isPropertySignature:()=>Ep,isProtoSetter:()=>noe,isPrototypeAccess:()=>Hy,isPrototypePropertyAssignment:()=>XL,isPunctuation:()=>nU,isPushOrUnshiftIdentifier:()=>aU,isQualifiedName:()=>Id,isQuestionDotToken:()=>ZW,isQuestionOrExclamationToken:()=>hse,isQuestionOrPlusOrMinusToken:()=>yse,isQuestionToken:()=>$y,isRawSourceMap:()=>Dle,isReadonlyKeyword:()=>zae,isReadonlyKeywordOrPlusOrMinusToken:()=>vse,isRecognizedTripleSlashComment:()=>Sj,isReferenceFileLocation:()=>vD,isReferencedFile:()=>W0,isRegularExpressionLiteral:()=>RH,isRequireCall:()=>Td,isRequireVariableStatement:()=>Uj,isRestParameter:()=>ng,isRestTypeNode:()=>nF,isReturnStatement:()=>Mm,isReturnStatementWithFixablePromiseHandler:()=>j5,isRightSideOfAccessExpression:()=>AU,isRightSideOfInstanceofExpression:()=>Toe,isRightSideOfPropertyAccess:()=>ID,isRightSideOfQualifiedName:()=>Nue,isRightSideOfQualifiedNameOrPropertyAccess:()=>VN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Soe,isRootedDiskPath:()=>_p,isSameEntityName:()=>vR,isSatisfiesExpression:()=>kH,isScopeMarker:()=>$re,isSemicolonClassElement:()=>Jae,isSetAccessor:()=>zv,isSetAccessorDeclaration:()=>Sp,isShebangTrivia:()=>jV,isShiftOperatorOrHigher:()=>nq,isShorthandAmbientModuleSymbol:()=>EN,isShorthandPropertyAssignment:()=>rp,isSignedNumericLiteral:()=>b3,isSimpleCopiableExpression:()=>g1,isSimpleInlineableExpression:()=>Ch,isSimpleParameter:()=>Wle,isSimpleParameterList:()=>Ow,isSingleOrDoubleQuote:()=>VL,isSourceFile:()=>Zi,isSourceFileFromLibrary:()=>LD,isSourceFileJS:()=>dd,isSourceFileNotJS:()=>XSe,isSourceFileNotJson:()=>jj,isSourceMapping:()=>Cle,isSpecialPropertyDeclaration:()=>qie,isSpreadAssignment:()=>Yv,isSpreadElement:()=>n_,isStatement:()=>qi,isStatementButNotDeclaration:()=>TL,isStatementOrBlock:()=>rie,isStatementWithLocals:()=>mie,isStatic:()=>aa,isStaticModifier:()=>aI,isString:()=>No,isStringAKeyword:()=>iTe,isStringANonContextualKeyword:()=>GA,isStringAndEmptyAnonymousObjectIntersection:()=>jue,isStringDoubleQuoted:()=>p3,isStringLiteral:()=>Ma,isStringLiteralLike:()=>ds,isStringLiteralOrJsxExpression:()=>oie,isStringLiteralOrTemplate:()=>cde,isStringOrNumericLiteralLike:()=>nf,isStringOrRegularExpressionOrTemplateLiteral:()=>dX,isStringTextContainingNode:()=>aj,isSuperCall:()=>IS,isSuperKeyword:()=>hP,isSuperOrSuperProperty:()=>KSe,isSuperProperty:()=>zd,isSupportedSourceFileName:()=>Zoe,isSwitchStatement:()=>EP,isSyntaxList:()=>tD,isSyntheticExpression:()=>iAe,isSyntheticReference:()=>_I,isTagName:()=>eX,isTaggedTemplateExpression:()=>a1,isTaggedTemplateTag:()=>xue,isTemplateExpression:()=>rF,isTemplateHead:()=>iI,isTemplateLiteral:()=>LA,isTemplateLiteralKind:()=>wy,isTemplateLiteralToken:()=>Gre,isTemplateLiteralTypeNode:()=>Uae,isTemplateLiteralTypeSpan:()=>MH,isTemplateMiddle:()=>DH,isTemplateMiddleOrTemplateTail:()=>R4,isTemplateSpan:()=>bP,isTemplateTail:()=>$W,isTextWhiteSpaceLike:()=>Xue,isThis:()=>xD,isThisContainerOrFunctionBlock:()=>Bie,isThisIdentifier:()=>YE,isThisInTypeQuery:()=>VA,isThisInitializedDeclaration:()=>i3,isThisInitializedObjectBindingExpression:()=>Vie,isThisProperty:()=>FL,isThisTypeNode:()=>Yk,isThisTypeParameter:()=>oP,isThisTypePredicate:()=>JSe,isThrowStatement:()=>OH,isToken:()=>CA,isTokenKind:()=>ij,isTraceEnabled:()=>Yg,isTransientSymbol:()=>hh,isTrivia:()=>xR,isTryStatement:()=>qS,isTupleTypeNode:()=>cI,isTypeAlias:()=>QL,isTypeAliasDeclaration:()=>Lm,isTypeAssertionExpression:()=>Hae,isTypeDeclaration:()=>GR,isTypeElement:()=>yS,isTypeKeyword:()=>a2,isTypeKeywordToken:()=>gX,isTypeKeywordTokenOrIdentifier:()=>f5,isTypeLiteralNode:()=>Tp,isTypeNode:()=>Ui,isTypeNodeKind:()=>MU,isTypeOfExpression:()=>XR,isTypeOnlyExportDeclaration:()=>Vre,isTypeOnlyImportDeclaration:()=>_L,isTypeOnlyImportOrExportDeclaration:()=>h0,isTypeOperatorNode:()=>VS,isTypeParameterDeclaration:()=>gl,isTypePredicateNode:()=>Kk,isTypeQueryNode:()=>lI,isTypeReferenceNode:()=>Nf,isTypeReferenceType:()=>O4,isTypeUsableAsPropertyName:()=>lm,isUMDExportSymbol:()=>z3,isUnaryExpression:()=>pj,isUnaryExpressionWithWrite:()=>Xre,isUnicodeIdentifierStart:()=>f4,isUnionTypeNode:()=>Qy,isUnparsedNode:()=>rj,isUnparsedPrepend:()=>Qae,isUnparsedSource:()=>KS,isUnparsedTextLike:()=>Bre,isUrl:()=>sre,isValidBigIntString:()=>rW,isValidESSymbolDeclaration:()=>kie,isValidTypeOnlyAliasUseSite:()=>I0,isValueSignatureDeclaration:()=>$ie,isVarAwaitUsing:()=>LL,isVarConst:()=>dR,isVarUsing:()=>kL,isVariableDeclaration:()=>ki,isVariableDeclarationInVariableStatement:()=>TN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>jE,isVariableDeclarationInitializedToRequire:()=>d3,isVariableDeclarationList:()=>qc,isVariableLike:()=>fR,isVariableLikeOrAccessor:()=>Mie,isVariableStatement:()=>kl,isVoidExpression:()=>pI,isWatchSet:()=>vTe,isWhileStatement:()=>aAe,isWhiteSpaceLike:()=>Fg,isWhiteSpaceSingleLine:()=>A_,isWithStatement:()=>Kae,isWriteAccess:()=>HA,isWriteOnlyAccess:()=>F3,isYieldExpression:()=>iF,jsxModeNeedsExplicitImport:()=>qX,keywordPart:()=>Ip,last:()=>es,lastOrUndefined:()=>el,length:()=>Le,libMap:()=>DF,libs:()=>yw,lineBreakPart:()=>PD,linkNamePart:()=>tde,linkPart:()=>NX,linkTextPart:()=>b5,listFiles:()=>dK,loadModuleFromGlobalCache:()=>lle,loadWithModeAwareCache:()=>qw,makeIdentifierFromModuleName:()=>yie,makeImport:()=>ty,makeImportIfNecessary:()=>Kue,makeStringLiteral:()=>MI,mangleScopedPackageName:()=>fD,map:()=>Ot,mapAllOrFail:()=>CE,mapDefined:()=>Hi,mapDefinedEntries:()=>N6,mapDefinedIterator:()=>kg,mapEntries:()=>Dne,mapIterator:()=>Ia,mapOneOrMany:()=>jX,mapToDisplayParts:()=>lb,matchFiles:()=>BU,matchPatternOrExact:()=>GU,matchedText:()=>Vne,matchesExclude:()=>RF,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>Goe,memoize:()=>Sd,memoizeCached:()=>wne,memoizeOne:()=>ph,memoizeWeak:()=>I1e,metadataHelper:()=>AW,min:()=>EG,minAndMax:()=>tae,missingFileModifiedTime:()=>Op,modifierToFlag:()=>UA,modifiersToFlags:()=>M_,moduleOptionDeclaration:()=>Sq,moduleResolutionIsEqualTo:()=>pie,moduleResolutionNameAndModeGetter:()=>R7,moduleResolutionOptionDeclarations:()=>CF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>KA,moduleResolutionUsesNodeModules:()=>m5,moduleSpecifiers:()=>h1,moveEmitHelpers:()=>Dae,moveRangeEnd:()=>O3,moveRangePastDecorators:()=>Ug,moveRangePastModifiers:()=>L_,moveRangePos:()=>T0,moveSyntheticComments:()=>Iae,mutateMap:()=>JN,mutateMapSkippingNewValues:()=>ug,needsParentheses:()=>S5,needsScopeMarker:()=>N4,newCaseClauseTracker:()=>O5,newPrivateEnvironment:()=>wle,noEmitNotification:()=>Ww,noEmitSubstitution:()=>qP,noTransformers:()=>SJ,noTruncationMaximumTruncationLength:()=>dW,nodeCanBeDecorated:()=>a3,nodeHasName:()=>uL,nodeIsDecorated:()=>_R,nodeIsMissing:()=>Gl,nodeIsPresent:()=>tm,nodeIsSynthesized:()=>Ys,nodeModuleNameResolver:()=>nle,nodeModulesPathPart:()=>Dh,nodeNextJsonConfigResolver:()=>rle,nodeOrChildIsDecorated:()=>BL,nodeOverlapsWithStartEnd:()=>t5,nodePosToString:()=>BSe,nodeSeenTracker:()=>PI,nodeStartsNewLexicalEnvironment:()=>sU,nodeToDisplayParts:()=>zDe,noop:()=>ts,noopFileWatcher:()=>TD,normalizePath:()=>ha,normalizeSlashes:()=>Lu,not:()=>G6,notImplemented:()=>qo,notImplementedResolver:()=>h7,nullNodeConverters:()=>mH,nullParenthesizerRules:()=>fH,nullTransformationContext:()=>JP,objectAllocator:()=>uu,operatorPart:()=>c2,optionDeclarations:()=>_g,optionMapToObject:()=>AF,optionsAffectingProgramStructure:()=>Rq,optionsForBuild:()=>Cq,optionsForWatch:()=>lD,optionsHaveChanges:()=>aR,optionsHaveModuleResolutionChanges:()=>cie,or:()=>Qm,orderedRemoveItem:()=>Vx,orderedRemoveItemAt:()=>Dy,outFile:()=>Os,packageIdToPackageName:()=>B4,packageIdToString:()=>By,paramHelper:()=>IW,parameterIsThisKeyword:()=>XE,parameterNamePart:()=>$ue,parseBaseNodeFactory:()=>uq,parseBigInt:()=>nae,parseBuildCommand:()=>iIe,parseCommandLine:()=>nIe,parseCommandLineWorker:()=>fq,parseConfigFileTextToJson:()=>_q,parseConfigFileWithSystem:()=>zRe,parseConfigHostFromCompilerHostLike:()=>x7,parseCustomTypeOption:()=>TF,parseIsolatedEntityName:()=>bI,parseIsolatedJSDocComment:()=>Rse,parseJSDocTypeExpressionForTests:()=>jAe,parseJsonConfigFileContent:()=>vIe,parseJsonSourceFileConfigFileContent:()=>hw,parseJsonText:()=>pw,parseListTypeOption:()=>Cse,parseNodeFactory:()=>Rh,parseNodeModuleFromPath:()=>xw,parsePackageName:()=>Cw,parsePseudoBigInt:()=>eP,parseValidBigInt:()=>HU,patchWriteFileEnsuringDirectory:()=>ore,pathContainsNodeModules:()=>w0,pathIsAbsolute:()=>nN,pathIsBareSpecifier:()=>zV,pathIsRelative:()=>Wp,patternText:()=>Gne,perfLogger:()=>ad,performIncrementalCompilation:()=>jRe,performance:()=>Zne,plainJSErrors:()=>D7,positionBelongsToNode:()=>oX,positionIsASICandidate:()=>x5,positionIsSynthesized:()=>t_,positionsAreOnSameLine:()=>Rf,preProcessFile:()=>pCe,probablyUsesSemicolons:()=>TO,processCommentPragmas:()=>lq,processPragmasIntoFields:()=>cq,processTaggedTemplateExpression:()=>_J,programContainsEsModules:()=>Jue,programContainsModules:()=>que,projectReferenceIsEqualTo:()=>yj,propKeyHelper:()=>FW,propertyNamePart:()=>Que,pseudoBigIntToString:()=>ZE,punctuationPart:()=>$u,pushIfUnique:()=>Tf,quote:()=>p2,quotePreferenceFromString:()=>EX,rangeContainsPosition:()=>sO,rangeContainsPositionExclusive:()=>lO,rangeContainsRange:()=>cf,rangeContainsRangeExclusive:()=>Mue,rangeContainsStartEnd:()=>cO,rangeEndIsOnSameLineAsRangeStart:()=>gk,rangeEndPositionsAreOnSameLine:()=>Doe,rangeEquals:()=>mG,rangeIsOnSingleLine:()=>OS,rangeOfNode:()=>jU,rangeOfTypeParameters:()=>UU,rangeOverlapsWithStartEnd:()=>i2,rangeStartIsOnSameLineAsRangeEnd:()=>Coe,rangeStartPositionsAreOnSameLine:()=>W3,readBuilderProgram:()=>B7,readConfigFile:()=>mw,readHelper:()=>OW,readJson:()=>jN,readJsonConfigFile:()=>Mse,readJsonOrUndefined:()=>xU,reduceEachLeadingCommentRange:()=>fre,reduceEachTrailingCommentRange:()=>mre,reduceLeft:()=>od,reduceLeftIterator:()=>Mr,reducePathComponents:()=>_S,refactor:()=>wI,regExpEscape:()=>ITe,relativeComplement:()=>Cne,removeAllComments:()=>Fk,removeEmitHelper:()=>tAe,removeExtension:()=>Tk,removeFileExtension:()=>Ad,removeIgnoredPath:()=>P7,removeMinAndVersionNumbers:()=>SG,removeOptionality:()=>zue,removePrefix:()=>QC,removeSuffix:()=>Gx,removeTrailingDirectorySeparator:()=>s0,repeatString:()=>_O,replaceElement:()=>gG,replaceFirstStar:()=>$A,resolutionExtensionIsTSOrJson:()=>$N,resolveConfigFileProjectName:()=>SK,resolveJSModule:()=>ele,resolveLibrary:()=>BF,resolveModuleName:()=>dD,resolveModuleNameFromCache:()=>txe,resolvePackageNameToPackageJson:()=>Mq,resolvePath:()=>Py,resolveProjectReferencePath:()=>yD,resolveTripleslashReference:()=>b7,resolveTypeReferenceDirective:()=>Yse,resolvingEmptyArray:()=>uW,restHelper:()=>MW,returnFalse:()=>$m,returnNoopFileWatcher:()=>AD,returnTrue:()=>Mv,returnUndefined:()=>o0,returnsPromise:()=>dY,runInitializersHelper:()=>RW,sameFlatMap:()=>Sm,sameMap:()=>no,sameMapping:()=>Vxe,scanShebangTrivia:()=>UV,scanTokenAtPosition:()=>Cie,scanner:()=>Qu,screenStartingMessageCodes:()=>z7,semanticDiagnosticsOptionDeclarations:()=>Aq,serializeCompilerOptions:()=>IF,server:()=>u8e,servicesVersion:()=>Bpe,setCommentRange:()=>uc,setConfigFileInOptions:()=>bq,setConstantValue:()=>Rae,setEachParent:()=>BR,setEmitFlags:()=>pr,setFunctionNameHelper:()=>zW,setGetSourceFileAsHashVersioned:()=>F7,setIdentifierAutoGenerate:()=>Gk,setIdentifierGeneratedImportReference:()=>Pae,setIdentifierTypeArguments:()=>Kv,setInternalEmitFlags:()=>zk,setLocalizedDiagnosticMessages:()=>Boe,setModuleDefaultHelper:()=>VW,setNodeFlags:()=>oae,setObjectAllocator:()=>zoe,setOriginalNode:()=>Pr,setParent:()=>Ya,setParentRecursive:()=>Jy,setPrivateIdentifier:()=>eT,setSnippetElement:()=>SH,setSourceMapRange:()=>Pa,setStackTraceLimit:()=>q1e,setStartsOnNewLine:()=>bW,setSyntheticLeadingComments:()=>R0,setSyntheticTrailingComments:()=>ZA,setSys:()=>$1e,setSysLog:()=>rre,setTextRange:()=>ut,setTextRangeEnd:()=>zR,setTextRangePos:()=>tP,setTextRangePosEnd:()=>bh,setTextRangePosWidth:()=>nP,setTokenSourceMapRange:()=>Aae,setTypeNode:()=>Cae,setUILocale:()=>Fne,setValueDeclaration:()=>YL,shouldAllowImportingTsExtension:()=>mD,shouldPreserveConstEnums:()=>n1,shouldUseUriStyleNodeCoreModules:()=>k5,showModuleSpecifier:()=>koe,signatureHasLiteralTypes:()=>$q,signatureHasRestParameter:()=>Yu,signatureToDisplayParts:()=>PX,single:()=>hG,singleElementArray:()=>AA,singleIterator:()=>P6,singleOrMany:()=>uh,singleOrUndefined:()=>ch,skipAlias:()=>Eu,skipAssertions:()=>EAe,skipConstraint:()=>vX,skipOuterExpressions:()=>ec,skipParentheses:()=>vs,skipPartiallyEmittedExpressions:()=>Rm,skipTrivia:()=>wa,skipTypeChecking:()=>ZN,skipTypeParentheses:()=>rk,skipWhile:()=>Une,sliceAfter:()=>VU,some:()=>St,sort:()=>uS,sortAndDeduplicate:()=>KC,sortAndDeduplicateDiagnostics:()=>$x,sourceFileAffectingCompilerOptions:()=>NF,sourceFileMayBeEmitted:()=>MS,sourceMapCommentRegExp:()=>e7,sourceMapCommentRegExpDontCareLineStart:()=>oJ,spacePart:()=>Ol,spanMap:()=>uG,spreadArrayHelper:()=>WW,stableSort:()=>Cv,startEndContainsRange:()=>iX,startEndOverlapsWithStartEnd:()=>n5,startOnNewLine:()=>Xu,startTracing:()=>ere,startsWith:()=>po,startsWithDirectory:()=>GV,startsWithUnderscore:()=>HX,startsWithUseStrict:()=>use,stringContainsAt:()=>gde,stringToToken:()=>LE,stripQuotes:()=>am,supportedDeclarationExtensions:()=>Mk,supportedJSExtensions:()=>uH,supportedJSExtensionsFlat:()=>jR,supportedLocaleDirectories:()=>vj,supportedTSExtensions:()=>VR,supportedTSExtensionsFlat:()=>cH,supportedTSImplementationExtensions:()=>Lk,suppressLeadingAndTrailingTrivia:()=>xp,suppressLeadingTrivia:()=>wX,suppressTrailingTrivia:()=>ade,symbolEscapedNameNoDefault:()=>h5,symbolName:()=>El,symbolNameNoDefault:()=>_5,symbolPart:()=>Yue,symbolToDisplayParts:()=>u2,syntaxMayBeASICandidate:()=>$X,syntaxRequiresTrailingSemicolonOrASI:()=>I5,sys:()=>vu,sysLog:()=>JM,tagNamesAreEquivalent:()=>M0,takeWhile:()=>j6,targetOptionDeclaration:()=>Ew,templateObjectHelper:()=>wW,testFormatSettings:()=>Iue,textChangeRangeIsUnchanged:()=>Ere,textChangeRangeNewSpan:()=>lN,textChanges:()=>_r,textOrKeywordPart:()=>CX,textPart:()=>df,textRangeContainsPositionInclusive:()=>sL,textSpanContainsPosition:()=>JV,textSpanContainsTextSpan:()=>gre,textSpanEnd:()=>$l,textSpanIntersection:()=>bre,textSpanIntersectsWith:()=>v4,textSpanIntersectsWithPosition:()=>yre,textSpanIntersectsWithTextSpan:()=>vSe,textSpanIsEmpty:()=>hre,textSpanOverlap:()=>vre,textSpanOverlapsWith:()=>gSe,textSpansEqual:()=>ND,textToKeywordObj:()=>oL,timestamp:()=>Xs,toArray:()=>SA,toBuilderFileEmit:()=>Fce,toBuilderStateFileInfoForMultiEmit:()=>Wce,toEditorSettings:()=>VO,toFileNameLowerCase:()=>dh,toLowerCase:()=>kne,toPath:()=>il,toProgramEmitPending:()=>zce,tokenIsIdentifierOrKeyword:()=>sd,tokenIsIdentifierOrKeywordOrGreaterThan:()=>dre,tokenToString:()=>pa,trace:()=>So,tracing:()=>ar,tracingEnabled:()=>jM,transform:()=>uPe,transformClassFields:()=>qle,transformDeclarations:()=>bJ,transformECMAScriptModule:()=>yJ,transformES2015:()=>sce,transformES2016:()=>ace,transformES2017:()=>Yle,transformES2018:()=>$le,transformES2019:()=>Qle,transformES2020:()=>Zle,transformES2021:()=>ece,transformES5:()=>lce,transformESDecorators:()=>Xle,transformESNext:()=>tce,transformGenerators:()=>cce,transformJsx:()=>oce,transformLegacyDecorators:()=>Kle,transformModule:()=>vJ,transformNamedEvaluation:()=>Ap,transformNodeModule:()=>dce,transformNodes:()=>Fw,transformSystemModule:()=>uce,transformTypeScript:()=>Hle,transpile:()=>bCe,transpileModule:()=>Ode,transpileOptionValueCompilerOptions:()=>Dq,tryAddToSet:()=>Dv,tryAndIgnoreErrors:()=>C5,tryCast:()=>ti,tryDirectoryExists:()=>D5,tryExtractTSExtension:()=>k3,tryFileExists:()=>AO,tryGetClassExtendingExpressionWithTypeArguments:()=>SU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>TU,tryGetDirectories:()=>R5,tryGetExtensionFromPath:()=>qg,tryGetImportFromModuleSpecifier:()=>$L,tryGetJSDocSatisfiesTypeNode:()=>sW,tryGetModuleNameFromFile:()=>ow,tryGetModuleSpecifierFromDeclaration:()=>yR,tryGetNativePerformanceHooks:()=>Yne,tryGetPropertyAccessOrIdentifierToString:()=>hk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>vF,tryGetSourceMappingURL:()=>Rle,tryGetTextOfPropertyName:()=>SN,tryIOAndConsumeErrors:()=>N5,tryParseJson:()=>w3,tryParsePattern:()=>FR,tryParsePatterns:()=>eW,tryParseRawSourceMap:()=>rJ,tryReadDirectory:()=>FX,tryReadFile:()=>PP,tryRemoveDirectoryPrefix:()=>FU,tryRemoveExtension:()=>eae,tryRemovePrefix:()=>IG,tryRemoveSuffix:()=>Bne,typeAcquisitionDeclarations:()=>Sw,typeAliasNamePart:()=>Zue,typeDirectiveIsEqualTo:()=>fie,typeKeywords:()=>W5,typeParameterNamePart:()=>ede,typeToDisplayParts:()=>yO,unchangedPollThresholds:()=>KM,unchangedTextChangeRange:()=>IL,unescapeLeadingUnderscores:()=>ji,unmangleScopedPackageName:()=>Pw,unorderedRemoveItem:()=>TA,unorderedRemoveItemAt:()=>TG,unreachableCodeIsError:()=>joe,unusedLabelIsError:()=>Uoe,unwrapInnermostStatementOfLabel:()=>zj,updateErrorForNoInputFiles:()=>xF,updateLanguageServiceSourceFile:()=>KY,updateMissingFilePathsWatch:()=>NJ,updateResolutionField:()=>cD,updateSharedExtendedConfigFileWatcher:()=>v7,updateSourceFile:()=>aq,updateWatchingWildcardDirectories:()=>Gw,usesExtensionsOnImports:()=>$oe,usingSingleLineStringWriter:()=>yN,utf16EncodeAsString:()=>Yx,validateLocaleAndSetLanguage:()=>bSe,valuesHelper:()=>BW,version:()=>Te,versionMajorMinor:()=>ue,visitArray:()=>kw,visitCommaListElements:()=>ZF,visitEachChild:()=>xn,visitFunctionBody:()=>lf,visitIterationBody:()=>xd,visitLexicalEnvironment:()=>tJ,visitNode:()=>rt,visitNodes:()=>Bn,visitParameterList:()=>Dl,walkUpBindingElementsAndPatterns:()=>Qx,walkUpLexicalEnvironments:()=>kle,walkUpOuterExpressions:()=>dse,walkUpParenthesizedExpressions:()=>Gv,walkUpParenthesizedTypes:()=>nk,walkUpParenthesizedTypesAndGetParentAndChild:()=>Qie,whitespaceOrMapCommentRegExp:()=>t7,writeCommentRange:()=>MR,writeFile:()=>ON,writeFileEnsuringDirectories:()=>gU,zipWith:()=>hi});var p8e=T({"src/typescript/_namespaces/ts.ts"(){ta(),tO(),ii(),db(),Mlt()}}),Llt=W({"src/typescript/typescript.ts"(e,t){p8e(),p8e(),typeof console<"u"&&(C.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=d8e}});return Llt()})();typeof nG<"u"&&nG.exports&&(nG.exports=DE);var T9e=DE.createClassifier,h1e=DE.createLanguageService,A9e=DE.displayPartsToString,I9e=DE.EndOfLineState,x9e=DE.flattenDiagnosticMessageText,R9e=DE.IndentStyle,qC=DE.ScriptKind,D9e=DE.ScriptTarget,C9e=DE.TokenClass,g1e=DE,uo={};uo["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',uo["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 before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * 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 before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * 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 before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * 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 either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\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 either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n',uo["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',uo["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 FileSystemDirectoryHandle {\n [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;\n entries(): AsyncIterableIterator<[string, FileSystemHandle]>;\n keys(): AsyncIterableIterator<string>;\n values(): AsyncIterableIterator<FileSystemHandle>;\n}\n',uo["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 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 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 hmacCreateSecret?: boolean;\n minPinLength?: boolean;\n}\n\ninterface AuthenticationExtensionsClientOutputs {\n appid?: boolean;\n credProps?: CredentialPropertiesOutput;\n hmacCreateSecret?: boolean;\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 {\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 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}\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 ConvolverOptions extends AudioNodeOptions {\n buffer?: AudioBuffer | null;\n disableNormalization?: boolean;\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 is?: string;\n}\n\ninterface ElementDefinitionOptions {\n extends?: string;\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 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 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 ImageEncodeOptions {\n quality?: number;\n type?: string;\n}\n\ninterface ImportMeta {\n url: string;\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 IntersectionObserverEntryInit {\n boundingClientRect: DOMRectInit;\n intersectionRatio: number;\n intersectionRect: DOMRectInit;\n isIntersecting: boolean;\n rootBounds: DOMRectInit | null;\n target: Element;\n time: DOMHighResTimeStamp;\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 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;\n}\n\ninterface MIDIOptions {\n software?: boolean;\n sysex?: boolean;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\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 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 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 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 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 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 width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n aspectRatio?: boolean;\n autoGainControl?: 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 OscillatorOptions extends AudioNodeOptions {\n detune?: number;\n frequency?: number;\n periodicWave?: PeriodicWave;\n type?: OscillatorType;\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 PaymentCurrencyAmount {\n currency: string;\n value: string;\n}\n\ninterface PaymentDetailsBase {\n displayItems?: PaymentItem[];\n modifiers?: PaymentDetailsModifier[];\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 paymentMethodErrors?: any;\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 PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentValidationErrors {\n error?: string;\n paymentMethod?: any;\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 PictureInPictureEventInit extends EventInit {\n pictureInPictureWindow: PictureInPictureWindow;\n}\n\ninterface PlaneLayout {\n offset: number;\n stride: number;\n}\n\ninterface PointerEventInit extends MouseEventInit {\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 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 PublicKeyCredentialDescriptor {\n id: BufferSource;\n transports?: AuthenticatorTransport[];\n type: PublicKeyCredentialType;\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 PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\n id?: string;\n}\n\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\n displayName: string;\n id: BufferSource;\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 {\n contributingSources?: number[];\n payloadType?: number;\n sequenceNumber?: number;\n synchronizationSource?: number;\n}\n\ninterface RTCEncodedVideoFrameMetadata {\n contributingSources?: number[];\n dependencies?: number[];\n frameId?: number;\n height?: number;\n payloadType?: number;\n spatialIndex?: number;\n synchronizationSource?: 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 RTCIceCandidatePair {\n local?: RTCIceCandidate;\n remote?: RTCIceCandidate;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n availableIncomingBitrate?: number;\n availableOutgoingBitrate?: number;\n bytesReceived?: number;\n bytesSent?: number;\n currentRoundTripTime?: number;\n lastPacketReceivedTimestamp?: DOMHighResTimeStamp;\n lastPacketSentTimestamp?: DOMHighResTimeStamp;\n localCandidateId: string;\n nominated?: boolean;\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 fecPacketsDiscarded?: number;\n fecPacketsReceived?: number;\n firCount?: number;\n frameHeight?: number;\n frameWidth?: number;\n framesDecoded?: number;\n framesDropped?: number;\n framesPerSecond?: number;\n framesReceived?: number;\n headerBytesReceived?: number;\n insertedSamplesForDeceleration?: number;\n jitterBufferDelay?: number;\n jitterBufferEmittedCount?: number;\n keyFramesDecoded?: number;\n lastPacketReceivedTimestamp?: DOMHighResTimeStamp;\n mid?: string;\n nackCount?: number;\n packetsDiscarded?: number;\n pliCount?: number;\n qpSum?: number;\n remoteId?: string;\n removedSamplesForAcceleration?: number;\n silentConcealedSamples?: number;\n totalAudioEnergy?: number;\n totalDecodeTime?: number;\n totalInterFrameDelay?: number;\n totalProcessingDelay?: number;\n totalSamplesDuration?: number;\n totalSamplesReceived?: number;\n totalSquaredInterFrameDelay?: number;\n trackIdentifier: string;\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 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 nackCount?: number;\n pliCount?: number;\n qpSum?: number;\n qualityLimitationResolutionChanges?: number;\n remoteId?: string;\n retransmittedBytesSent?: number;\n retransmittedPacketsSent?: number;\n rid?: string;\n rtxSsrc?: number;\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 url?: string | 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: RTCRtpCodecCapability[];\n headerExtensions: RTCRtpHeaderExtensionCapability[];\n}\n\ninterface RTCRtpCodec {\n channels?: number;\n clockRate: number;\n mimeType: string;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodecCapability extends RTCRtpCodec {\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 dtlsState: RTCDtlsTransportState;\n localCertificateId?: string;\n remoteCertificateId?: string;\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 ReadableStreamReadDoneResult<T> {\n done: true;\n value?: T;\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 delegatesFocus?: boolean;\n mode: ShadowRootMode;\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 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 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 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 keyFrame?: boolean;\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 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 WebTransportSendStreamOptions {\n sendOrder?: number;\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */\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/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/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/ariaColSpan) */\n ariaColSpan: string | 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/ariaDescription) */\n ariaDescription: string | 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/ariaExpanded) */\n ariaExpanded: string | 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 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/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/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/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/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 role: string | null;\n}\n\n/**\n * A controller object that allows you to abort one or more DOM requests as and when desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)\n */\ninterface AbortController {\n /**\n * Returns the AbortSignal object associated with this object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)\n */\n readonly signal: AbortSignal;\n /**\n * Invoking this method will set this object\'s AbortSignal\'s aborted flag and signal to any observers that the associated activity is to be aborted.\n *\n * [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 * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)\n */\ninterface AbortSignal extends EventTarget {\n /**\n * Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise.\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */\n readonly reason: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */\n abort(reason?: any): AbortSignal;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */\n timeout(milliseconds: number): AbortSignal;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */\ninterface AbstractRange {\n /**\n * Returns true if range is collapsed, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed)\n */\n readonly collapsed: boolean;\n /**\n * Returns range\'s end node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer)\n */\n readonly endContainer: Node;\n /**\n * Returns range\'s end offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset)\n */\n readonly endOffset: number;\n /**\n * Returns range\'s start node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer)\n */\n readonly startContainer: Node;\n /**\n * Returns range\'s start offset.\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 * A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode)\n */\ninterface AnalyserNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */\n fftSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */\n readonly frequencyBinCount: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */\n maxDecibels: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */\n minDecibels: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */\n smoothingTimeConstant: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */\n getByteFrequencyData(array: Uint8Array): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */\n getByteTimeDomainData(array: Uint8Array): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */\n getFloatFrequencyData(array: Float32Array): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */\n getFloatTimeDomainData(array: Float32Array): void;\n}\n\ndeclare var AnalyserNode: {\n prototype: AnalyserNode;\n new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;\n};\n\ninterface Animatable {\n /** [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": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */\ninterface Animation extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */\n currentTime: CSSNumberish | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */\n effect: AnimationEffect | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */\n readonly finished: Promise<Animation>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */\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: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */\n readonly pending: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */\n readonly playState: AnimationPlayState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */\n playbackRate: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */\n readonly ready: Promise<Animation>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */\n readonly replaceState: AnimationReplaceState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */\n startTime: CSSNumberish | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */\n timeline: AnimationTimeline | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */\n cancel(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */\n commitStyles(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */\n finish(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */\n pause(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */\n persist(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */\n play(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */\n reverse(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */\ninterface AnimationEffect {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */\n getComputedTiming(): ComputedEffectTiming;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */\n getTiming(): EffectTiming;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */\n updateTiming(timing?: OptionalEffectTiming): void;\n}\n\ndeclare var AnimationEffect: {\n prototype: AnimationEffect;\n new(): AnimationEffect;\n};\n\n/**\n * Events providing information related to animations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent)\n */\ninterface AnimationEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */\n readonly animationName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */\n readonly elapsedTime: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */\ninterface AnimationPlaybackEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */\n readonly currentTime: CSSNumberish | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */\n readonly timelineTime: CSSNumberish | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n prototype: AnimationPlaybackEvent;\n new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */\ninterface AnimationTimeline {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */\n readonly currentTime: CSSNumberish | null;\n}\n\ndeclare var AnimationTimeline: {\n prototype: AnimationTimeline;\n new(): AnimationTimeline;\n};\n\n/**\n * A DOM element\'s attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr)\n */\ninterface Attr extends Node {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */\n readonly localName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */\n readonly namespaceURI: string | null;\n readonly ownerDocument: Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */\n readonly ownerElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */\n readonly prefix: string | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified)\n */\n readonly specified: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */\n value: string;\n}\n\ndeclare var Attr: {\n prototype: Attr;\n new(): Attr;\n};\n\n/**\n * A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer)\n */\ninterface AudioBuffer {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */\n readonly duration: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */\n readonly numberOfChannels: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */\n readonly sampleRate: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */\n copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */\n copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */\n getChannelData(channel: number): Float32Array;\n}\n\ndeclare var AudioBuffer: {\n prototype: AudioBuffer;\n new(options: AudioBufferOptions): AudioBuffer;\n};\n\n/**\n * An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It\'s especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode)\n */\ninterface AudioBufferSourceNode extends AudioScheduledSourceNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */\n buffer: AudioBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */\n readonly detune: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */\n loop: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */\n loopEnd: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */\n loopStart: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */\n readonly playbackRate: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */\n readonly baseLatency: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */\n readonly outputLatency: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */\n createMediaStreamDestination(): MediaStreamAudioDestinationNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */\n getOutputTimestamp(): AudioTimestamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */\n resume(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */\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 * AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode)\n */\ninterface AudioDestinationNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */\n readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n prototype: AudioDestinationNode;\n new(): AudioDestinationNode;\n};\n\n/**\n * The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener)\n */\ninterface AudioListener {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */\n readonly forwardX: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */\n readonly forwardY: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */\n readonly forwardZ: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */\n readonly positionX: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */\n readonly positionY: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */\n readonly positionZ: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */\n readonly upX: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */\n readonly upY: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */\n readonly upZ: AudioParam;\n /**\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 * @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 * A generic interface for representing an audio processing module. Examples include:\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode)\n */\ninterface AudioNode extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */\n channelCount: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */\n channelCountMode: ChannelCountMode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */\n channelInterpretation: ChannelInterpretation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */\n readonly context: BaseAudioContext;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */\n readonly numberOfInputs: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */\n readonly numberOfOutputs: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */\n connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;\n connect(destinationParam: AudioParam, output?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */\n automationRate: AutomationRate;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */\n readonly defaultValue: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */\n readonly maxValue: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */\n readonly minValue: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */\n value: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */\n cancelAndHoldAtTime(cancelTime: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */\n cancelScheduledValues(cancelTime: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */\n exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */\n linearRampToValueAtTime(value: number, endTime: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */\n setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */\n setValueAtTime(value: number, startTime: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */\n setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n prototype: AudioParam;\n new(): AudioParam;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */\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 Web Audio API 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 * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer)\n */\n readonly inputBuffer: AudioBuffer;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer)\n */\n readonly outputBuffer: AudioBuffer;\n /**\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */\n start(when?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */\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 * 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": Event;\n}\n\n/**\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: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */\n readonly parameters: AudioParamMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse)\n */\ninterface AuthenticatorAssertionResponse extends AuthenticatorResponse {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */\n readonly authenticatorData: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */\n readonly signature: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */\n readonly userHandle: ArrayBuffer | null;\n}\n\ndeclare var AuthenticatorAssertionResponse: {\n prototype: AuthenticatorAssertionResponse;\n new(): AuthenticatorAssertionResponse;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse)\n */\ninterface AuthenticatorAttestationResponse extends AuthenticatorResponse {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */\n readonly attestationObject: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */\n getAuthenticatorData(): ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */\n getPublicKey(): ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */\n getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */\n getTransports(): string[];\n}\n\ndeclare var AuthenticatorAttestationResponse: {\n prototype: AuthenticatorAttestationResponse;\n new(): AuthenticatorAttestationResponse;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse)\n */\ninterface AuthenticatorResponse {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */\n readonly clientDataJSON: ArrayBuffer;\n}\n\ndeclare var AuthenticatorResponse: {\n prototype: AuthenticatorResponse;\n new(): AuthenticatorResponse;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */\ninterface BarProp {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */\ninterface BaseAudioContext extends EventTarget {\n /**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */\n readonly currentTime: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */\n readonly destination: AudioDestinationNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */\n readonly sampleRate: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */\n readonly state: AudioContextState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */\n createAnalyser(): AnalyserNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */\n createBiquadFilter(): BiquadFilterNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */\n createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */\n createBufferSource(): AudioBufferSourceNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */\n createChannelMerger(numberOfInputs?: number): ChannelMergerNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */\n createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */\n createConstantSource(): ConstantSourceNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */\n createConvolver(): ConvolverNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */\n createDelay(maxDelayTime?: number): DelayNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */\n createDynamicsCompressor(): DynamicsCompressorNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */\n createGain(): GainNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */\n createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */\n createOscillator(): OscillatorNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */\n createPanner(): PannerNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */\n createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\n /**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */\n createStereoPanner(): StereoPannerNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */\n createWaveShaper(): WaveShaperNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */\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 beforeunload event is fired when the window, the document and its resources are about to be unloaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent)\n */\ninterface BeforeUnloadEvent extends Event {\n /** @deprecated */\n returnValue: any;\n}\n\ndeclare var BeforeUnloadEvent: {\n prototype: BeforeUnloadEvent;\n new(): BeforeUnloadEvent;\n};\n\n/**\n * A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode)\n */\ninterface BiquadFilterNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */\n readonly Q: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */\n readonly detune: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */\n readonly frequency: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */\n readonly gain: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */\n type: BiquadFilterType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var BiquadFilterNode: {\n prototype: BiquadFilterNode;\n new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;\n};\n\n/**\n * A file-like object of immutable, raw data. Blobs represent data that isn\'t necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user\'s system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)\n */\ninterface Blob {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */\n readonly size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */\n arrayBuffer(): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */\n slice(start?: number, end?: number, contentType?: string): Blob;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */\n stream(): ReadableStream<Uint8Array>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */\n text(): Promise<string>;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */\ninterface BlobEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */\n readonly data: Blob;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */\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> | 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/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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */\ninterface BroadcastChannel extends EventTarget {\n /**\n * Returns the channel name (as passed to the constructor).\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 * Closes the BroadcastChannel object, opening it up to garbage collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)\n */\n close(): void;\n /**\n * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.\n *\n * [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 * This Streams API interface 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */\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 * A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */\ninterface CSSAnimation extends Animation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */\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 * A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule)\n */\ninterface CSSConditionRule extends CSSGroupingRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */\n readonly conditionText: string;\n}\n\ndeclare var CSSConditionRule: {\n prototype: CSSConditionRule;\n new(): CSSConditionRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */\ninterface CSSContainerRule extends CSSConditionRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */\n readonly containerName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */\n readonly containerQuery: string;\n}\n\ndeclare var CSSContainerRule: {\n prototype: CSSContainerRule;\n new(): CSSContainerRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */\ninterface CSSCounterStyleRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */\n additiveSymbols: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */\n fallback: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */\n negative: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */\n pad: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */\n prefix: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */\n range: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */\n speakAs: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */\n suffix: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */\n symbols: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */\n system: string;\n}\n\ndeclare var CSSCounterStyleRule: {\n prototype: CSSCounterStyleRule;\n new(): CSSCounterStyleRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */\ninterface CSSFontFaceRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSFontFaceRule: {\n prototype: CSSFontFaceRule;\n new(): CSSFontFaceRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */\ninterface CSSFontFeatureValuesRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */\n fontFamily: string;\n}\n\ndeclare var CSSFontFeatureValuesRule: {\n prototype: CSSFontFeatureValuesRule;\n new(): CSSFontFeatureValuesRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */\ninterface CSSFontPaletteValuesRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */\n readonly basePalette: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */\n readonly fontFamily: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */\n readonly overrideColors: string;\n}\n\ndeclare var CSSFontPaletteValuesRule: {\n prototype: CSSFontPaletteValuesRule;\n new(): CSSFontPaletteValuesRule;\n};\n\n/**\n * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */\n readonly cssRules: CSSRuleList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */\n deleteRule(index: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */\n insertRule(rule: string, index?: number): number;\n}\n\ndeclare var CSSGroupingRule: {\n prototype: CSSGroupingRule;\n new(): CSSGroupingRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */\ninterface CSSImageValue extends CSSStyleValue {\n}\n\ndeclare var CSSImageValue: {\n prototype: CSSImageValue;\n new(): CSSImageValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */\ninterface CSSImportRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */\n readonly href: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */\n readonly layerName: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */\n readonly media: MediaList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */\n readonly styleSheet: CSSStyleSheet | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */\n readonly supportsText: string | null;\n}\n\ndeclare var CSSImportRule: {\n prototype: CSSImportRule;\n new(): CSSImportRule;\n};\n\n/**\n * An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule)\n */\ninterface CSSKeyframeRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */\n keyText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n prototype: CSSKeyframeRule;\n new(): CSSKeyframeRule;\n};\n\n/**\n * An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule)\n */\ninterface CSSKeyframesRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */\n readonly cssRules: CSSRuleList;\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */\n appendRule(rule: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */\n deleteRule(select: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */\n findRule(select: string): CSSKeyframeRule | null;\n [index: number]: CSSKeyframeRule;\n}\n\ndeclare var CSSKeyframesRule: {\n prototype: CSSKeyframesRule;\n new(): CSSKeyframesRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */\ninterface CSSKeywordValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */\n value: string;\n}\n\ndeclare var CSSKeywordValue: {\n prototype: CSSKeywordValue;\n new(value: string): CSSKeywordValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */\ninterface CSSLayerBlockRule extends CSSGroupingRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */\n readonly name: string;\n}\n\ndeclare var CSSLayerBlockRule: {\n prototype: CSSLayerBlockRule;\n new(): CSSLayerBlockRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */\ninterface CSSLayerStatementRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */\ninterface CSSMathInvert extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathInvert: {\n prototype: CSSMathInvert;\n new(arg: CSSNumberish): CSSMathInvert;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */\ninterface CSSMathMax extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMax: {\n prototype: CSSMathMax;\n new(...args: CSSNumberish[]): CSSMathMax;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */\ninterface CSSMathMin extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMin: {\n prototype: CSSMathMin;\n new(...args: CSSNumberish[]): CSSMathMin;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */\ninterface CSSMathNegate extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathNegate: {\n prototype: CSSMathNegate;\n new(arg: CSSNumberish): CSSMathNegate;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */\ninterface CSSMathProduct extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathProduct: {\n prototype: CSSMathProduct;\n new(...args: CSSNumberish[]): CSSMathProduct;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */\ninterface CSSMathSum extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathSum: {\n prototype: CSSMathSum;\n new(...args: CSSNumberish[]): CSSMathSum;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */\ninterface CSSMathValue extends CSSNumericValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */\n readonly operator: CSSMathOperator;\n}\n\ndeclare var CSSMathValue: {\n prototype: CSSMathValue;\n new(): CSSMathValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */\ninterface CSSMatrixComponent extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */\n matrix: DOMMatrix;\n}\n\ndeclare var CSSMatrixComponent: {\n prototype: CSSMatrixComponent;\n new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;\n};\n\n/**\n * A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule)\n */\ninterface CSSMediaRule extends CSSConditionRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */\n readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n prototype: CSSMediaRule;\n new(): CSSMediaRule;\n};\n\n/**\n * An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule)\n */\ninterface CSSNamespaceRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */\n readonly namespaceURI: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */\n readonly prefix: string;\n}\n\ndeclare var CSSNamespaceRule: {\n prototype: CSSNamespaceRule;\n new(): CSSNamespaceRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */\ninterface CSSNumericArray {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */\ninterface CSSNumericValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */\n add(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */\n div(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */\n equals(...value: CSSNumberish[]): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */\n max(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */\n min(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */\n mul(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */\n sub(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */\n to(unit: string): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */\n toSum(...units: string[]): CSSMathSum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */\n type(): CSSNumericType;\n}\n\ndeclare var CSSNumericValue: {\n prototype: CSSNumericValue;\n new(): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */\n parse(cssText: string): CSSNumericValue;\n};\n\n/**\n * CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule)\n */\ninterface CSSPageRule extends CSSGroupingRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */\n selectorText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSPageRule: {\n prototype: CSSPageRule;\n new(): CSSPageRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */\ninterface CSSPerspective extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */\n length: CSSPerspectiveValue;\n}\n\ndeclare var CSSPerspective: {\n prototype: CSSPerspective;\n new(length: CSSPerspectiveValue): CSSPerspective;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */\ninterface CSSPropertyRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */\n readonly inherits: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */\n readonly initialValue: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */\n readonly syntax: string;\n}\n\ndeclare var CSSPropertyRule: {\n prototype: CSSPropertyRule;\n new(): CSSPropertyRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */\ninterface CSSRotate extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */\n angle: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */\n x: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */\n y: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */\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 * A single CSS rule. There are several types of rules, listed in the Type constants section below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule)\n */\ninterface CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */\n cssText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */\n readonly parentRule: CSSRule | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */\n readonly parentStyleSheet: CSSStyleSheet | null;\n /**\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 is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList)\n */\ninterface CSSRuleList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */\n item(index: number): CSSRule | null;\n [index: number]: CSSRule;\n}\n\ndeclare var CSSRuleList: {\n prototype: CSSRuleList;\n new(): CSSRuleList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */\ninterface CSSScale extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */\n x: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */\n y: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */\n z: CSSNumberish;\n}\n\ndeclare var CSSScale: {\n prototype: CSSScale;\n new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */\ninterface CSSSkew extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */\n ax: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkew: {\n prototype: CSSSkew;\n new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */\ninterface CSSSkewX extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */\n ax: CSSNumericValue;\n}\n\ndeclare var CSSSkewX: {\n prototype: CSSSkewX;\n new(ax: CSSNumericValue): CSSSkewX;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */\ninterface CSSSkewY extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkewY: {\n prototype: CSSSkewY;\n new(ay: CSSNumericValue): CSSSkewY;\n};\n\n/**\n * 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 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */\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-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 clipRule: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */\n color: string;\n colorInterpolation: string;\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-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-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/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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */\n cssText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */\n cursor: string;\n cx: string;\n cy: string;\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 dominantBaseline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */\n emptyCells: string;\n fill: string;\n fillOpacity: string;\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 floodColor: string;\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */\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/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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */\n letterSpacing: string;\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 marker: string;\n markerEnd: string;\n markerMid: string;\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-clip-margin) */\n overflowClipMargin: 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */\n pageBreakAfter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */\n pageBreakBefore: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */\n pageBreakInside: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */\n paintOrder: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */\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 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-position) */\n rubyPosition: string;\n rx: string;\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 shapeRendering: string;\n stopColor: string;\n stopOpacity: string;\n stroke: string;\n strokeDasharray: string;\n strokeDashoffset: string;\n strokeLinecap: string;\n strokeLinejoin: string;\n strokeMiterlimit: string;\n strokeOpacity: string;\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 textAnchor: 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/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-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 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/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/-webkit-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/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 /** @deprecated */\n wordWrap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */\n writingMode: string;\n x: string;\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/API/CSSStyleDeclaration/getPropertyPriority) */\n getPropertyPriority(property: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */\n getPropertyValue(property: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */\n item(index: number): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */\n removeProperty(property: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */\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 * CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule)\n */\ninterface CSSStyleRule extends CSSGroupingRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */\n selectorText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */\n readonly style: CSSStyleDeclaration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */\n readonly styleMap: StylePropertyMap;\n}\n\ndeclare var CSSStyleRule: {\n prototype: CSSStyleRule;\n new(): CSSStyleRule;\n};\n\n/**\n * A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet)\n */\ninterface CSSStyleSheet extends StyleSheet {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */\n readonly cssRules: CSSRuleList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */\n readonly ownerRule: CSSRule | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules)\n */\n readonly rules: CSSRuleList;\n /**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */\n deleteRule(index: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */\n insertRule(rule: string, index?: number): number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule)\n */\n removeRule(index?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */\n replace(text: string): Promise<CSSStyleSheet>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */\n replaceSync(text: string): void;\n}\n\ndeclare var CSSStyleSheet: {\n prototype: CSSStyleSheet;\n new(options?: CSSStyleSheetInit): CSSStyleSheet;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */\ninterface CSSStyleValue {\n toString(): string;\n}\n\ndeclare var CSSStyleValue: {\n prototype: CSSStyleValue;\n new(): CSSStyleValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */\n parse(property: string, cssText: string): CSSStyleValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */\n parseAll(property: string, cssText: string): CSSStyleValue[];\n};\n\n/**\n * An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE).\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */\ninterface CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */\n is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */\n toMatrix(): DOMMatrix;\n toString(): string;\n}\n\ndeclare var CSSTransformComponent: {\n prototype: CSSTransformComponent;\n new(): CSSTransformComponent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */\ninterface CSSTransformValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */\n readonly is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */\ninterface CSSTransition extends Animation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */\ninterface CSSTranslate extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */\n x: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */\n y: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */\n z: CSSNumericValue;\n}\n\ndeclare var CSSTranslate: {\n prototype: CSSTranslate;\n new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */\ninterface CSSUnitValue extends CSSNumericValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */\n readonly unit: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */\n value: number;\n}\n\ndeclare var CSSUnitValue: {\n prototype: CSSUnitValue;\n new(value: number, unit: string): CSSUnitValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */\ninterface CSSUnparsedValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */\ninterface CSSVariableReferenceValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */\n readonly fallback: CSSUnparsedValue | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */\n variable: string;\n}\n\ndeclare var CSSVariableReferenceValue: {\n prototype: CSSVariableReferenceValue;\n new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;\n};\n\n/**\n * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don\'t have to use it in conjunction with service workers, even though it is defined in the service worker spec.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)\n */\ninterface Cache {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */\n add(request: RequestInfo | URL): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */\n addAll(requests: RequestInfo[]): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */\n delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */\n keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */\n match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */\n matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */\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 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */\n delete(cacheName: string): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */\n has(cacheName: string): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */\n keys(): Promise<string[]>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */\n match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */\ninterface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */\n readonly canvas: HTMLCanvasElement;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */\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 * An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)\n */\ninterface CanvasGradient {\n /**\n * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\n *\n * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.\n *\n * [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 * 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 * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.\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. It is used for drawing shapes, text, images, and other objects.\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, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */\n readonly canvas: HTMLCanvasElement;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */\n getContextAttributes(): CanvasRenderingContext2DSettings;\n}\n\ndeclare var CanvasRenderingContext2D: {\n prototype: CanvasRenderingContext2D;\n new(): CanvasRenderingContext2D;\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/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 ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.\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. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.\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. This is an abstract interface, meaning there aren\'t any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren\'t abstract.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData)\n */\ninterface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */\n data: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */\n readonly length: number;\n readonly ownerDocument: Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */\n appendData(data: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */\n deleteData(offset: number, count: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */\n insertData(offset: number, data: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */\n replaceData(offset: number, count: number, data: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */\n substringData(offset: number, count: number): string;\n}\n\ndeclare var CharacterData: {\n prototype: CharacterData;\n new(): CharacterData;\n};\n\ninterface ChildNode extends Node {\n /**\n * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n *\n * [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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard)\n */\ninterface Clipboard extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */\n read(): Promise<ClipboardItems>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */\n readText(): Promise<string>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */\n write(data: ClipboardItems): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */\n writeText(data: string): Promise<void>;\n}\n\ndeclare var Clipboard: {\n prototype: Clipboard;\n new(): Clipboard;\n};\n\n/**\n * Events providing information related to modification of the clipboard, that is cut, copy, and paste events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent)\n */\ninterface ClipboardEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */\n readonly clipboardData: DataTransfer | null;\n}\n\ndeclare var ClipboardEvent: {\n prototype: ClipboardEvent;\n new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem)\n */\ninterface ClipboardItem {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */\n readonly types: ReadonlyArray<string>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */\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\n/**\n * A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object\'s onclose attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)\n */\ninterface CloseEvent extends Event {\n /**\n * Returns the WebSocket connection close code provided by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)\n */\n readonly code: number;\n /**\n * Returns the WebSocket connection close reason provided by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)\n */\n readonly reason: string;\n /**\n * Returns true if the connection closed cleanly; false otherwise.\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */\n readonly data: string;\n /**\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */\ninterface CompressionStream extends GenericTransformStream {\n}\n\ndeclare var CompressionStream: {\n prototype: CompressionStream;\n new(format: CompressionFormat): CompressionStream;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */\ninterface ConstantSourceNode extends AudioScheduledSourceNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */\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 * An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode)\n */\ninterface ConvolverNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */\n buffer: AudioBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */\n normalize: boolean;\n}\n\ndeclare var ConvolverNode: {\n prototype: ConvolverNode;\n new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;\n};\n\n/**\n * This Streams API interface 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/CountQueuingStrategy)\n */\ninterface CountQueuingStrategy extends QueuingStrategy {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential)\n */\ninterface Credential {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */\n readonly type: string;\n}\n\ndeclare var Credential: {\n prototype: Credential;\n new(): Credential;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer)\n */\ninterface CredentialsContainer {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */\n create(options?: CredentialCreationOptions): Promise<Credential | null>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */\n get(options?: CredentialRequestOptions): Promise<Credential | null>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */\n preventSilentAccess(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */\n store(credential: Credential): Promise<void>;\n}\n\ndeclare var CredentialsContainer: {\n prototype: CredentialsContainer;\n new(): CredentialsContainer;\n};\n\n/**\n * Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)\n */\ninterface Crypto {\n /**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */\n getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n /**\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 dictionary of the Web Crypto API represents a cryptographic key.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)\n */\ninterface CryptoKey {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */\n readonly algorithm: KeyAlgorithm;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */\n readonly extractable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */\n readonly type: KeyType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */\ninterface CustomElementRegistry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */\n define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */\n get(name: string): CustomElementConstructor | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */\n getName(constructor: CustomElementConstructor): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */\n upgrade(root: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */\n whenDefined(name: string): Promise<CustomElementConstructor>;\n}\n\ndeclare var CustomElementRegistry: {\n prototype: CustomElementRegistry;\n new(): CustomElementRegistry;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */\ninterface CustomEvent<T = any> extends Event {\n /**\n * Returns any custom data event was created with. Typically used for synthetic events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)\n */\n readonly detail: T;\n /**\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 * An abnormal event (called an exception) which 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 * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)\n */\n readonly code: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */\n readonly message: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */\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 * An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation)\n */\ninterface DOMImplementation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */\n createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */\n createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */\n createHTMLDocument(title?: string): Document;\n /**\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */\ninterface DOMMatrix extends DOMMatrixReadOnly {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n m11: number;\n m12: number;\n m13: number;\n m14: number;\n m21: number;\n m22: number;\n m23: number;\n m24: number;\n m31: number;\n m32: number;\n m33: number;\n m34: number;\n m41: number;\n m42: number;\n m43: number;\n m44: number;\n invertSelf(): DOMMatrix;\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n setMatrixValue(transformList: string): DOMMatrix;\n skewXSelf(sx?: number): DOMMatrix;\n skewYSelf(sy?: number): DOMMatrix;\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n prototype: DOMMatrix;\n new(init?: string | number[]): DOMMatrix;\n fromFloat32Array(array32: Float32Array): DOMMatrix;\n fromFloat64Array(array64: Float64Array): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ntype SVGMatrix = DOMMatrix;\ndeclare var SVGMatrix: typeof DOMMatrix;\n\ntype WebKitCSSMatrix = DOMMatrix;\ndeclare var WebKitCSSMatrix: typeof DOMMatrix;\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */\ninterface DOMMatrixReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */\n readonly a: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */\n readonly b: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */\n readonly c: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */\n readonly d: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */\n readonly e: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */\n readonly f: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */\n readonly is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */\n readonly isIdentity: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */\n readonly m11: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */\n readonly m12: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */\n readonly m13: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */\n readonly m14: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */\n readonly m21: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */\n readonly m22: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */\n readonly m23: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */\n readonly m24: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */\n readonly m31: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */\n readonly m32: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */\n readonly m33: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */\n readonly m34: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */\n readonly m41: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */\n readonly m42: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */\n readonly m43: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */\n readonly m44: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */\n flipX(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */\n flipY(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */\n inverse(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */\n multiply(other?: DOMMatrixInit): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)\n */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */\n skewX(sx?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */\n skewY(sy?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */\n toFloat32Array(): Float32Array;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */\n toFloat64Array(): Float64Array;\n toJSON(): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */\n transformPoint(point?: DOMPointInit): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */\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): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n};\n\n/**\n * 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 * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).\n *\n * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.\n *\n * Note that script elements are not evaluated during parsing, and the resulting document\'s encoding will always be UTF-8.\n *\n * Values other than the above for type will cause a TypeError exception to be thrown.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */\ninterface DOMPoint extends DOMPointReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */\n w: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */\n x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */\n y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ntype SVGPoint = DOMPoint;\ndeclare var SVGPoint: typeof DOMPoint;\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */\ninterface DOMPointReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */\n readonly w: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */\n readonly y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */\n readonly z: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */\ninterface DOMQuad {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */\n readonly p1: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */\n readonly p2: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */\n readonly p3: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */\n readonly p4: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */\n getBounds(): DOMRect;\n toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n prototype: DOMQuad;\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n fromQuad(other?: DOMQuadInit): DOMQuad;\n fromRect(other?: DOMRectInit): DOMQuad;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */\ninterface DOMRect extends DOMRectReadOnly {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\ntype SVGRect = DOMRect;\ndeclare var SVGRect: typeof DOMRect;\n\ninterface DOMRectList {\n readonly length: number;\n item(index: number): DOMRect | null;\n [index: number]: DOMRect;\n}\n\ndeclare var DOMRectList: {\n prototype: DOMRectList;\n new(): DOMRectList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */\ninterface DOMRectReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */\n readonly bottom: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */\n readonly left: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */\n readonly right: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */\n readonly top: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */\n readonly width: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */\n readonly y: number;\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/**\n * A type returned by some APIs which contains a list of DOMString (strings).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)\n */\ninterface DOMStringList {\n /**\n * Returns the number of strings in strings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)\n */\n readonly length: number;\n /**\n * Returns true if strings contains string, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)\n */\n contains(string: string): boolean;\n /**\n * Returns the string with index index from strings.\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 * Used by the dataset HTML 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 * A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList)\n */\ninterface DOMTokenList {\n /**\n * Returns the number of tokens.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length)\n */\n readonly length: number;\n /**\n * Returns the associated set as string.\n *\n * Can be set, to change the associated attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value)\n */\n value: string;\n toString(): string;\n /**\n * Adds all arguments passed, except those already present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add)\n */\n add(...tokens: string[]): void;\n /**\n * Returns true if token is present, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains)\n */\n contains(token: string): boolean;\n /**\n * Returns the token with index index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item)\n */\n item(index: number): string | null;\n /**\n * Removes arguments passed, if they are present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove)\n */\n remove(...tokens: string[]): void;\n /**\n * Replaces token with newToken.\n *\n * Returns true if token was replaced with newToken, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace)\n */\n replace(token: string, newToken: string): boolean;\n /**\n * Returns true if token is in the associated attribute\'s supported tokens. Returns false otherwise.\n *\n * Throws a TypeError if the associated attribute has no supported tokens defined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports)\n */\n supports(token: string): boolean;\n /**\n * If force is not given, "toggles" token, removing it if it\'s present and adding it if it\'s not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).\n *\n * Returns true if token is now present, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if token is empty.\n *\n * Throws an "InvalidCharacterError" DOMException if token contains any spaces.\n *\n * [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 * Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer)\n */\ninterface DataTransfer {\n /**\n * Returns the kind of operation that is currently selected. If the kind of operation isn\'t one of those that is allowed by the effectAllowed attribute, then the operation will fail.\n *\n * Can be set, to change the selected operation.\n *\n * The possible values are "none", "copy", "link", and "move".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect)\n */\n dropEffect: "none" | "copy" | "link" | "move";\n /**\n * Returns the kinds of operations that are to be allowed.\n *\n * Can be set (during the dragstart event), to change the allowed operations.\n *\n * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",\n *\n * [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 * Returns a FileList of the files being dragged, if any.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files)\n */\n readonly files: FileList;\n /**\n * Returns a DataTransferItemList object, with the drag data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items)\n */\n readonly items: DataTransferItemList;\n /**\n * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types)\n */\n readonly types: ReadonlyArray<string>;\n /**\n * Removes the data of the specified formats. Removes all data if the argument is omitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData)\n */\n clearData(format?: string): void;\n /**\n * Returns the specified data. If there is no such data, returns the empty string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData)\n */\n getData(format: string): string;\n /**\n * Adds the specified data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData)\n */\n setData(format: string, data: string): void;\n /**\n * Uses the given element to update the drag feedback, replacing any previously specified feedback.\n *\n * [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 * One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem)\n */\ninterface DataTransferItem {\n /**\n * Returns the drag data item kind, one of: "string", "file".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind)\n */\n readonly kind: string;\n /**\n * Returns the drag data item type string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type)\n */\n readonly type: string;\n /**\n * Returns a File object, if the drag data item kind is File.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile)\n */\n getAsFile(): File | null;\n /**\n * Invokes the callback with the string data as the argument, if the drag data item kind is text.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString)\n */\n getAsString(callback: FunctionStringCallback | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */\n webkitGetAsEntry(): FileSystemEntry | null;\n}\n\ndeclare var DataTransferItem: {\n prototype: DataTransferItem;\n new(): DataTransferItem;\n};\n\n/**\n * A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList)\n */\ninterface DataTransferItemList {\n /**\n * Returns the number of items in the drag data store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length)\n */\n readonly length: number;\n /**\n * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.\n *\n * [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 * Removes all the entries in the drag data store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear)\n */\n clear(): void;\n /**\n * Removes the indexth entry in the drag data store.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */\ninterface DecompressionStream extends GenericTransformStream {\n}\n\ndeclare var DecompressionStream: {\n prototype: DecompressionStream;\n new(format: CompressionFormat): DecompressionStream;\n};\n\n/**\n * A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode)\n */\ninterface DelayNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */\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 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */\n readonly acceleration: DeviceMotionEventAcceleration | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */\n readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */\n readonly interval: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */\n readonly rotationRate: DeviceMotionEventRotationRate | null;\n}\n\ndeclare var DeviceMotionEvent: {\n prototype: DeviceMotionEvent;\n new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration)\n */\ninterface DeviceMotionEventAcceleration {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */\n readonly x: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */\n readonly y: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */\n readonly z: number | null;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate)\n */\ninterface DeviceMotionEventRotationRate {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */\n readonly alpha: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */\n readonly beta: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */\n readonly gamma: number | null;\n}\n\n/**\n * The DeviceOrientationEvent 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */\n readonly absolute: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */\n readonly alpha: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */\n readonly beta: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */\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 * 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 * Sets or gets the URL for the current document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)\n */\n readonly URL: string;\n /**\n * Sets or gets the color of all active links in the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor)\n */\n alinkColor: string;\n /**\n * Returns a reference to the collection of elements contained by the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all)\n */\n readonly all: HTMLAllCollection;\n /**\n * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors)\n */\n readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;\n /**\n * Retrieves a collection of all applet objects in the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets)\n */\n readonly applets: HTMLCollection;\n /**\n * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor)\n */\n bgColor: string;\n /**\n * Specifies the beginning and end of the document body.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body)\n */\n body: HTMLElement;\n /**\n * Returns document\'s encoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)\n */\n readonly characterSet: string;\n /**\n * Gets or sets the character set used to encode the object.\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 * Gets a value that indicates whether standards-compliant mode is switched on for the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode)\n */\n readonly compatMode: string;\n /**\n * Returns document\'s content type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType)\n */\n readonly contentType: string;\n /**\n * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can\'t be applied to this resource, the empty string will be returned.\n *\n * Can be set, to add a new cookie to the element\'s set of HTTP cookies.\n *\n * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie)\n */\n cookie: string;\n /**\n * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.\n *\n * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript)\n */\n readonly currentScript: HTMLOrSVGScriptElement | null;\n /**\n * Returns the Window object of the active document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView)\n */\n readonly defaultView: (WindowProxy & typeof globalThis) | null;\n /**\n * Sets or gets a value that indicates whether the document can be edited.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode)\n */\n designMode: string;\n /**\n * Sets or retrieves a value that indicates the reading order of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir)\n */\n dir: string;\n /**\n * Gets an object representing the document type declaration 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 * Gets a reference to the root node of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement)\n */\n readonly documentElement: HTMLElement;\n /**\n * Returns document\'s URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI)\n */\n readonly documentURI: string;\n /**\n * Sets or gets the security domain of the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain)\n */\n domain: string;\n /**\n * Retrieves a collection of all embed objects in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds)\n */\n readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * Sets or gets the foreground (text) color of the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor)\n */\n fgColor: string;\n /**\n * Retrieves a collection, in source order, of all form objects in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms)\n */\n readonly forms: HTMLCollectionOf<HTMLFormElement>;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen)\n */\n readonly fullscreen: boolean;\n /**\n * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled)\n */\n readonly fullscreenEnabled: boolean;\n /**\n * Returns the head element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head)\n */\n readonly head: HTMLHeadElement;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */\n readonly hidden: boolean;\n /**\n * Retrieves a collection, in source order, of img objects in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images)\n */\n readonly images: HTMLCollectionOf<HTMLImageElement>;\n /**\n * Gets the implementation object of the current document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation)\n */\n readonly implementation: DOMImplementation;\n /**\n * Returns the character encoding used to create the webpage that is loaded into the document object.\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 * Gets the date that the page was last modified, if the page supplies one.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified)\n */\n readonly lastModified: string;\n /**\n * Sets or gets the color of the document links.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor)\n */\n linkColor: string;\n /**\n * Retrieves a collection of all a objects that specify the href property and all area objects in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links)\n */\n readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;\n /**\n * Contains information about the current URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location)\n */\n get location(): Location;\n set location(href: string | Location);\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 /**\n * Fires when the state of the object has changed.\n * @param ev The event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event)\n */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */\n readonly pictureInPictureEnabled: boolean;\n /**\n * Return an HTMLCollection of the embed elements in the Document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins)\n */\n readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * Retrieves a value that indicates the current state of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState)\n */\n readonly readyState: DocumentReadyState;\n /**\n * Gets the URL of the location that referred the user to the current page.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer)\n */\n readonly referrer: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement)\n */\n readonly rootElement: SVGSVGElement | null;\n /**\n * Retrieves a collection of all script objects in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts)\n */\n readonly scripts: HTMLCollectionOf<HTMLScriptElement>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */\n readonly scrollingElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */\n readonly timeline: DocumentTimeline;\n /**\n * Contains the title of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title)\n */\n title: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */\n readonly visibilityState: DocumentVisibilityState;\n /**\n * Sets or gets the color of the links that the user has visited.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor)\n */\n vlinkColor: string;\n /**\n * Moves node from another document and returns it.\n *\n * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode)\n */\n adoptNode<T extends Node>(node: T): T;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents)\n */\n captureEvents(): void;\n /** @deprecated */\n caretRangeFromPoint(x: number, y: number): Range | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear)\n */\n clear(): void;\n /**\n * Closes an output stream and forces the sent data to display.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close)\n */\n close(): void;\n /**\n * Creates an attribute object with a specified name.\n * @param name String that sets the attribute object\'s name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute)\n */\n createAttribute(localName: string): Attr;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */\n createAttributeNS(namespace: string | null, qualifiedName: string): Attr;\n /**\n * Returns a CDATASection node whose data is data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection)\n */\n createCDATASection(data: string): CDATASection;\n /**\n * Creates a comment object with the specified data.\n * @param data Sets the comment object\'s data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment)\n */\n createComment(data: string): Comment;\n /**\n * Creates a new document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment)\n */\n createDocumentFragment(): DocumentFragment;\n /**\n * Creates an instance of the element for the specified tag.\n * @param tagName The name of an element.\n *\n * [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 * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.\n *\n * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.\n *\n * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:\n *\n * localName does not match the QName production.\n * Namespace prefix is not null and namespace is the empty string.\n * Namespace prefix is "xml" and namespace is not the XML namespace.\n * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.\n * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".\n *\n * When supplied, options\'s is can be used to create a customized built-in element.\n *\n * [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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */\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: "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: "MutationEvent"): MutationEvent;\n createEvent(eventInterface: "MutationEvents"): MutationEvent;\n createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;\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: "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 * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list\n * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.\n *\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 * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction)\n */\n createProcessingInstruction(target: string, data: string): ProcessingInstruction;\n /**\n * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)\n */\n createRange(): Range;\n /**\n * Creates a text string from the specified value.\n * @param data String that specifies the nodeValue property of the text node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode)\n */\n createTextNode(data: string): Text;\n /**\n * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.\n * @param filter A custom NodeFilter function to use.\n *\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 * Executes a command on the current document, current selection, or the given range.\n * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.\n * @param showUI Display the user interface, defaults to false.\n * @param value Value to assign.\n * @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 * Stops document\'s fullscreen element from being displayed fullscreen and resolves promise when done.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen)\n */\n exitFullscreen(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */\n exitPictureInPicture(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */\n exitPointerLock(): void;\n /**\n * Returns a reference to the first object with the specified value of the ID attribute.\n * @param elementId String that specifies the ID value.\n */\n getElementById(elementId: string): HTMLElement | null;\n /**\n * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName)\n */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n /**\n * Gets a collection of objects based on the value of the NAME or ID attribute.\n * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName)\n */\n getElementsByName(elementName: string): NodeListOf<HTMLElement>;\n /**\n * Retrieves a collection of objects based on the specified element name.\n * @param name Specifies the name of an element.\n *\n * [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 * If namespace and localName are "*" returns a HTMLCollection of all descendant elements.\n *\n * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.\n *\n * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.\n *\n * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.\n *\n * [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 * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection)\n */\n getSelection(): Selection | null;\n /**\n * Gets a value indicating whether the object currently has focus.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus)\n */\n hasFocus(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */\n hasStorageAccess(): Promise<boolean>;\n /**\n * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n *\n * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode)\n */\n importNode<T extends Node>(node: T, deep?: boolean): T;\n /**\n * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.\n * @param url Specifies a MIME type for the document.\n * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.\n * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.\n * @param replace Specifies whether the existing entry for the document is replaced in the history list.\n *\n * [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 * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.\n * @param commandId Specifies a command identifier.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled)\n */\n queryCommandEnabled(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm)\n */\n queryCommandIndeterm(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates the current state of the command.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState)\n */\n queryCommandState(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the current command is supported on the current range.\n * @param commandId Specifies a command identifier.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported)\n */\n queryCommandSupported(commandId: string): boolean;\n /**\n * Returns the current value of the document, range, or current selection for the given command.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue)\n */\n queryCommandValue(commandId: string): string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents)\n */\n releaseEvents(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */\n requestStorageAccess(): Promise<void>;\n /**\n * Writes one or more HTML expressions to a document in the specified window.\n * @param content Specifies the text and HTML tags to write.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write)\n */\n write(...text: string[]): void;\n /**\n * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.\n * @param content The text and HTML tags to write.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)\n */\n writeln(...text: string[]): void;\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Document: {\n prototype: Document;\n new(): Document;\n};\n\n/**\n * A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn\'t part of the active document tree structure, changes made to the fragment don\'t affect the document, cause reflow, or incur any performance impact that can occur when changes are made.\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}\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 /**\n * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets)\n */\n readonly styleSheets: StyleSheetList;\n /**\n * Returns the element for the specified x coordinate and the specified y coordinate.\n * @param x The x-offset\n * @param y The y-offset\n */\n elementFromPoint(x: number, y: number): Element | null;\n elementsFromPoint(x: number, y: number): Element[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */\n getAnimations(): Animation[];\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */\ninterface DocumentTimeline extends AnimationTimeline {\n}\n\ndeclare var DocumentTimeline: {\n prototype: DocumentTimeline;\n new(options?: DocumentTimelineOptions): DocumentTimeline;\n};\n\n/**\n * A Node containing a doctype.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType)\n */\ninterface DocumentType extends Node, ChildNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */\n readonly name: string;\n readonly ownerDocument: Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */\n readonly publicId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */\n readonly systemId: string;\n}\n\ndeclare var DocumentType: {\n prototype: DocumentType;\n new(): DocumentType;\n};\n\n/**\n * A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent)\n */\ninterface DragEvent extends MouseEvent {\n /**\n * Returns the DataTransfer object for the event.\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 * Inherits properties from its parent, AudioNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode)\n */\ninterface DynamicsCompressorNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */\n readonly attack: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */\n readonly knee: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */\n readonly ratio: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */\n readonly reduction: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */\n readonly release: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */\n readonly threshold: AudioParam;\n}\n\ndeclare var DynamicsCompressorNode: {\n prototype: DynamicsCompressorNode;\n new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */\ninterface EXT_blend_minmax {\n readonly MIN_EXT: 0x8007;\n readonly MAX_EXT: 0x8008;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */\ninterface EXT_color_buffer_float {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */\ninterface EXT_shader_texture_lod {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */\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 objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)\n */\ninterface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */\n readonly attributes: NamedNodeMap;\n /**\n * Allows for manipulation of element\'s class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList)\n */\n readonly classList: DOMTokenList;\n /**\n * Returns the value of element\'s class content attribute. Can be set to change it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className)\n */\n className: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */\n readonly clientHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */\n readonly clientLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */\n readonly clientTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */\n readonly clientWidth: number;\n /**\n * Returns the value of element\'s id content attribute. Can be set to change it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)\n */\n id: string;\n /**\n * Returns the local name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName)\n */\n readonly localName: string;\n /**\n * Returns the 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */\n outerHTML: string;\n readonly ownerDocument: Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */\n readonly part: DOMTokenList;\n /**\n * Returns the namespace prefix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix)\n */\n readonly prefix: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */\n readonly scrollHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */\n scrollLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */\n scrollTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */\n readonly scrollWidth: number;\n /**\n * Returns element\'s shadow root, if any, and if shadow root\'s mode is "open", and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot)\n */\n readonly shadowRoot: ShadowRoot | null;\n /**\n * Returns the value of element\'s slot content attribute. Can be set to change it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot)\n */\n slot: string;\n /**\n * Returns the HTML-uppercased qualified name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName)\n */\n readonly tagName: string;\n /**\n * Creates a shadow root for element and returns it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow)\n */\n attachShadow(init: ShadowRootInit): ShadowRoot;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */\n checkVisibility(options?: CheckVisibilityOptions): boolean;\n /**\n * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */\n computedStyleMap(): StylePropertyMapReadOnly;\n /**\n * Returns element\'s first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute)\n */\n getAttribute(qualifiedName: string): string | null;\n /**\n * Returns element\'s attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS)\n */\n getAttributeNS(namespace: string | null, localName: string): string | null;\n /**\n * Returns the qualified names of all element\'s attributes. Can contain duplicates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames)\n */\n getAttributeNames(): string[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */\n getAttributeNode(qualifiedName: string): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */\n getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */\n getBoundingClientRect(): DOMRect;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */\n getClientRects(): DOMRectList;\n /**\n * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName)\n */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */\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 * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute)\n */\n hasAttribute(qualifiedName: string): boolean;\n /**\n * Returns true if element has an attribute whose namespace is namespace and local name is localName.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS)\n */\n hasAttributeNS(namespace: string | null, localName: string): boolean;\n /**\n * Returns true if element has attributes, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes)\n */\n hasAttributes(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */\n hasPointerCapture(pointerId: number): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */\n insertAdjacentElement(where: InsertPosition, element: Element): Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */\n insertAdjacentHTML(position: InsertPosition, text: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */\n insertAdjacentText(where: InsertPosition, data: string): void;\n /**\n * Returns true if matching selectors against element\'s root yields element, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)\n */\n matches(selectors: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */\n releasePointerCapture(pointerId: number): void;\n /**\n * Removes element\'s first attribute whose qualified name is qualifiedName.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute)\n */\n removeAttribute(qualifiedName: string): void;\n /**\n * Removes element\'s attribute whose namespace is namespace and local name is localName.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS)\n */\n removeAttributeNS(namespace: string | null, localName: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */\n removeAttributeNode(attr: Attr): Attr;\n /**\n * Displays element fullscreen and resolves promise when done.\n *\n * When supplied, options\'s navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application\'s. The default value "auto" indicates no application preference.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen)\n */\n requestFullscreen(options?: FullscreenOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */\n requestPointerLock(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */\n scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /**\n * Sets the value of element\'s first attribute whose qualified name is qualifiedName to value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute)\n */\n setAttribute(qualifiedName: string, value: string): void;\n /**\n * Sets the value of element\'s attribute whose namespace is namespace and local name is localName to value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS)\n */\n setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */\n setAttributeNode(attr: Attr): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */\n setAttributeNodeNS(attr: Attr): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */\n setPointerCapture(pointerId: number): void;\n /**\n * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.\n *\n * Returns true if qualifiedName is now present, and false otherwise.\n *\n * [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 addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Element: {\n prototype: Element;\n new(): Element;\n};\n\ninterface ElementCSSInlineStyle {\n readonly attributeStyleMap: StylePropertyMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */\n readonly style: CSSStyleDeclaration;\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */\ninterface ElementInternals extends ARIAMixin {\n /**\n * Returns the form owner of internals\'s target element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * Returns a NodeList of all the label elements that internals\'s target element is associated with.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels)\n */\n readonly labels: NodeList;\n /**\n * Returns the ShadowRoot for internals\'s target element, if the target element is a shadow host, or null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)\n */\n readonly shadowRoot: ShadowRoot | null;\n /**\n * Returns the error message that would be shown to the user if internals\'s target element was to be checked for validity.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns the ValidityState object for internals\'s target element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity)\n */\n readonly validity: ValidityState;\n /**\n * Returns true if internals\'s target element will be validated when the form is submitted; false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * Returns true if internals\'s target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * Returns true if internals\'s target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn\'t canceled) reports the problem to the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity)\n */\n reportValidity(): boolean;\n /**\n * Sets both the state and submission value of internals\'s target element to value.\n *\n * If value is null, the element won\'t participate in form submission.\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 * Marks internals\'s target element as suffering from the constraints indicated by the flags argument, and sets the element\'s validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals\'s target element when the form owner is validated interactively or reportValidity() is called.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */\ninterface EncodedVideoChunk {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */\n readonly byteLength: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */\n readonly duration: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */\n readonly type: EncodedVideoChunkType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */\n copyTo(destination: AllowSharedBufferSource): void;\n}\n\ndeclare var EncodedVideoChunk: {\n prototype: EncodedVideoChunk;\n new(init: EncodedVideoChunkInit): EncodedVideoChunk;\n};\n\n/**\n * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */\n readonly colno: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */\n readonly error: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */\n readonly filename: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */\n readonly lineno: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/**\n * An event which takes place in the DOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)\n */\ninterface Event {\n /**\n * Returns true or false depending on how event was initialized. True if event goes through its target\'s ancestors in reverse tree order, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)\n */\n readonly bubbles: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)\n */\n cancelBubble: boolean;\n /**\n * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)\n */\n readonly cancelable: boolean;\n /**\n * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)\n */\n readonly composed: boolean;\n /**\n * Returns the object whose event listener\'s callback is currently being invoked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)\n */\n readonly currentTarget: EventTarget | null;\n /**\n * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)\n */\n readonly defaultPrevented: boolean;\n /**\n * Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)\n */\n readonly eventPhase: number;\n /**\n * Returns true if event was dispatched by the user agent, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)\n */\n readonly isTrusted: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)\n */\n returnValue: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)\n */\n readonly srcElement: EventTarget | null;\n /**\n * Returns the object to which event is dispatched (its target).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)\n */\n readonly target: EventTarget | null;\n /**\n * Returns the event\'s timestamp as the number of milliseconds measured relative to the time origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)\n */\n readonly timeStamp: DOMHighResTimeStamp;\n /**\n * Returns the type of event, e.g. "click", "hashchange", or "submit".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)\n */\n readonly type: string;\n /**\n * Returns the invocation target objects of event\'s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root\'s mode is "closed" that are not reachable from event\'s currentTarget.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)\n */\n composedPath(): EventTarget[];\n /**\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 * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)\n */\n preventDefault(): void;\n /**\n * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)\n */\n stopImmediatePropagation(): void;\n /**\n * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.\n *\n * [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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */\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 * Returns the state of this EventSource object\'s connection. It can have the values described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the URL providing the event stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)\n */\n readonly url: string;\n /**\n * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)\n */\n readonly withCredentials: boolean;\n /**\n * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.\n *\n * [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 * EventTarget is a DOM interface 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 * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.\n *\n * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options\'s capture.\n *\n * When set to true, options\'s capture prevents callback from being invoked when the event\'s eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event\'s eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event\'s eventPhase attribute value is AT_TARGET.\n *\n * When set to true, options\'s passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.\n *\n * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n *\n * If an AbortSignal is passed for options\'s signal, then the event listener will be removed when signal is aborted.\n *\n * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n *\n * [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 * Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\n dispatchEvent(event: Event): boolean;\n /**\n * Removes the event listener in target\'s event listener list with the same type, callback, and options.\n *\n * [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 * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External)\n */\ninterface External {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider)\n */\n AddSearchProvider(): void;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled)\n */\n IsSearchProviderInstalled(): void;\n}\n\n/** @deprecated */\ndeclare var External: {\n prototype: External;\n new(): External;\n};\n\n/**\n * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */\n readonly lastModified: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */\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 * An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It\'s also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)\n */\ninterface FileList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */\n readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */\n readonly result: string | ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */\n readAsArrayBuffer(blob: Blob): void;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)\n */\n readAsBinaryString(blob: Blob): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */\n readAsDataURL(blob: Blob): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */\ninterface FileSystem {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */\n readonly root: FileSystemDirectoryEntry;\n}\n\ndeclare var FileSystem: {\n prototype: FileSystem;\n new(): FileSystem;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */\ninterface FileSystemDirectoryEntry extends FileSystemEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */\n createReader(): FileSystemDirectoryReader;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */\n getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */\n getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */\n getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */\n removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */\n resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;\n}\n\ndeclare var FileSystemDirectoryHandle: {\n prototype: FileSystemDirectoryHandle;\n new(): FileSystemDirectoryHandle;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */\ninterface FileSystemDirectoryReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */\n readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryReader: {\n prototype: FileSystemDirectoryReader;\n new(): FileSystemDirectoryReader;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */\ninterface FileSystemEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */\n readonly filesystem: FileSystem;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */\n readonly fullPath: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */\n readonly isDirectory: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */\n readonly isFile: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */\n getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemEntry: {\n prototype: FileSystemEntry;\n new(): FileSystemEntry;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */\ninterface FileSystemFileEntry extends FileSystemEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */\n file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemFileEntry: {\n prototype: FileSystemFileEntry;\n new(): FileSystemFileEntry;\n};\n\n/**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */\n createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */\n getFile(): Promise<File>;\n}\n\ndeclare var FileSystemFileHandle: {\n prototype: FileSystemFileHandle;\n new(): FileSystemFileHandle;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)\n */\ninterface FileSystemHandle {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */\n readonly kind: FileSystemHandleKind;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */\n isSameEntry(other: FileSystemHandle): Promise<boolean>;\n}\n\ndeclare var FileSystemHandle: {\n prototype: FileSystemHandle;\n new(): FileSystemHandle;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)\n */\ninterface FileSystemWritableFileStream extends WritableStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */\n seek(position: number): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */\n truncate(size: number): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */\n write(data: FileSystemWriteChunkType): Promise<void>;\n}\n\ndeclare var FileSystemWritableFileStream: {\n prototype: FileSystemWritableFileStream;\n new(): FileSystemWritableFileStream;\n};\n\n/**\n * Focus-related events like focus, blur, focusin, or focusout.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent)\n */\ninterface FocusEvent extends UIEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */\n readonly relatedTarget: EventTarget | null;\n}\n\ndeclare var FocusEvent: {\n prototype: FocusEvent;\n new(type: string, eventInitDict?: FocusEventInit): FocusEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */\ninterface FontFace {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */\n ascentOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */\n descentOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */\n display: FontDisplay;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */\n family: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */\n featureSettings: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */\n lineGapOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */\n readonly loaded: Promise<FontFace>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */\n readonly status: FontFaceLoadStatus;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */\n stretch: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */\n style: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */\n unicodeRange: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */\n weight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": Event;\n "loadingdone": Event;\n "loadingerror": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */\ninterface FontFaceSet extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */\n readonly ready: Promise<FontFaceSet>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */\n readonly status: FontFaceSetLoadStatus;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */\n check(font: string, text?: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */\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(initialFaces: FontFace[]): FontFaceSet;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */\ninterface FontFaceSetLoadEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */\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 * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)\n */\ninterface FormData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */\n delete(name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */\n get(name: string): FormDataEntryValue | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */\n getAll(name: string): FormDataEntryValue[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */\n has(name: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */\ninterface FormDataEvent extends Event {\n /**\n * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted.\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 * A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode)\n */\ninterface GainNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */\n readonly gain: AudioParam;\n}\n\ndeclare var GainNode: {\n prototype: GainNode;\n new(context: BaseAudioContext, options?: GainOptions): GainNode;\n};\n\n/**\n * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)\n */\ninterface Gamepad {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */\n readonly axes: ReadonlyArray<number>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */\n readonly buttons: ReadonlyArray<GamepadButton>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */\n readonly connected: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */\n readonly index: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */\n readonly mapping: GamepadMappingType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */\n readonly timestamp: DOMHighResTimeStamp;\n readonly vibrationActuator: GamepadHapticActuator | null;\n}\n\ndeclare var Gamepad: {\n prototype: Gamepad;\n new(): Gamepad;\n};\n\n/**\n * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)\n */\ninterface GamepadButton {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */\n readonly pressed: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */\n readonly touched: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */\n readonly value: number;\n}\n\ndeclare var GamepadButton: {\n prototype: GamepadButton;\n new(): GamepadButton;\n};\n\n/**\n * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)\n */\ninterface GamepadEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */\n readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n prototype: GamepadEvent;\n new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;\n};\n\n/**\n * This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)\n */\ninterface GamepadHapticActuator {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */\n readonly type: GamepadHapticActuatorType;\n playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;\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 * An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user\'s location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation)\n */\ninterface Geolocation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */\n clearWatch(watchId: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */\n getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates)\n */\ninterface GeolocationCoordinates {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */\n readonly accuracy: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */\n readonly altitude: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */\n readonly altitudeAccuracy: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */\n readonly heading: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */\n readonly latitude: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */\n readonly longitude: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */\n readonly speed: number | null;\n}\n\ndeclare var GeolocationCoordinates: {\n prototype: GeolocationCoordinates;\n new(): GeolocationCoordinates;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition)\n */\ninterface GeolocationPosition {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */\n readonly coords: GeolocationCoordinates;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */\n readonly timestamp: EpochTimeStamp;\n}\n\ndeclare var GeolocationPosition: {\n prototype: GeolocationPosition;\n new(): GeolocationPosition;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */\ninterface GeolocationPositionError {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */\n readonly code: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */\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": MouseEvent;\n "beforeinput": InputEvent;\n "beforetoggle": Event;\n "blur": FocusEvent;\n "cancel": Event;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "close": Event;\n "compositionend": CompositionEvent;\n "compositionstart": CompositionEvent;\n "compositionupdate": CompositionEvent;\n "contextmenu": MouseEvent;\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 "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": Event;\n "touchcancel": TouchEvent;\n "touchend": TouchEvent;\n "touchmove": TouchEvent;\n "touchstart": TouchEvent;\n "transitioncancel": TransitionEvent;\n "transitionend": TransitionEvent;\n "transitionrun": TransitionEvent;\n "transitionstart": TransitionEvent;\n "volumechange": Event;\n "waiting": Event;\n "webkitanimationend": Event;\n "webkitanimationiteration": Event;\n "webkitanimationstart": Event;\n "webkittransitionend": Event;\n "wheel": WheelEvent;\n}\n\ninterface GlobalEventHandlers {\n /**\n * Fires when the user aborts the download.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)\n */\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: MouseEvent) => 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/HTMLElement/beforetoggle_event) */\n onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)\n */\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 /**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)\n */\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 /**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)\n */\n onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)\n */\n onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */\n onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)\n */\n oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => 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 /**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)\n */\n ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)\n */\n ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)\n */\n ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)\n */\n ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)\n */\n ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)\n */\n ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)\n */\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 /**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)\n */\n ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)\n */\n onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the end of playback is reached.\n * @param ev The event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event)\n */\n onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)\n */\n onerror: OnErrorEventHandler;\n /**\n * Fires when the object receives focus.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)\n */\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 /**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)\n */\n onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @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 /**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)\n */\n onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)\n */\n onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)\n */\n onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)\n */\n onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)\n */\n onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */\n onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)\n */\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 /**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)\n */\n onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event)\n */\n onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event)\n */\n onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)\n */\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 /**\n * Occurs when playback is paused.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)\n */\n onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the play method is requested.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)\n */\n onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)\n */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */\n onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)\n */\n onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;\n /**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)\n */\n onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user resets a form.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)\n */\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 /**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)\n */\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 /**\n * Occurs when the seek operation ends.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)\n */\n onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)\n */\n onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the current selection changes.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)\n */\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 /**\n * Occurs when the download has stopped.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)\n */\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 /**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)\n */\n onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)\n */\n ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */\n ontoggle: ((this: GlobalEventHandlers, ev: Event) => 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 /**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event)\n */\n onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)\n */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */\ninterface HTMLAllCollection {\n /**\n * Returns the number of elements in the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length)\n */\n readonly length: number;\n /**\n * Returns the item with index index from the collection (determined by tree order).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item)\n */\n item(nameOrIndex?: string): HTMLCollection | Element | null;\n /**\n * Returns the item with ID or name name from the collection.\n *\n * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.\n *\n * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.\n *\n * [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 * 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 /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset)\n */\n charset: string;\n /**\n * Sets or retrieves the coordinates of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords)\n */\n coords: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */\n download: string;\n /**\n * Sets or retrieves the language code of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang)\n */\n hreflang: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name)\n */\n name: string;\n ping: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */\n referrerPolicy: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel)\n */\n rel: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev)\n */\n rev: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape)\n */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target)\n */\n target: string;\n /**\n * Retrieves or sets the text of the object as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text)\n */\n text: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */\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 * 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 * Sets or retrieves a text alternative to the graphic.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt)\n */\n alt: string;\n /**\n * Sets or retrieves the coordinates of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords)\n */\n coords: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */\n download: string;\n /**\n * Sets or gets whether clicks in this region cause action.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref)\n */\n noHref: boolean;\n ping: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */\n referrerPolicy: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */\n rel: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the shape of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape)\n */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\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 * Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface.\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 * A HTML line break element (<br>). It inherits from HTMLElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement)\n */\ninterface HTMLBRElement extends HTMLElement {\n /**\n * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement/clear)\n */\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 * Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement)\n */\ninterface HTMLBaseElement extends HTMLElement {\n /**\n * Gets or sets the baseline URL on which relative links are based.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href)\n */\n href: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\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 * 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 /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/aLink)\n */\n aLink: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/background)\n */\n background: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/bgColor)\n */\n bgColor: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/link)\n */\n link: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/text)\n */\n text: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/vLink)\n */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction)\n */\n formAction: string;\n /**\n * Used to override the encoding (formEnctype attribute) specified on the form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype)\n */\n formEnctype: string;\n /**\n * Overrides the submit method attribute previously specified on a form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)\n */\n formMethod: string;\n /**\n * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)\n */\n formNoValidate: boolean;\n /**\n * Overrides the target attribute on a form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)\n */\n formTarget: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * Sets or retrieves the name of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name)\n */\n name: string;\n /**\n * Gets the classification and default behavior of the button.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type)\n */\n type: "submit" | "reset" | "button";\n /**\n * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * Sets or retrieves the default or selected value of the control.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate)\n */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLButtonElement: {\n prototype: HTMLButtonElement;\n new(): HTMLButtonElement;\n};\n\n/**\n * Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement)\n */\ninterface HTMLCanvasElement extends HTMLElement {\n /**\n * Gets or sets the height of a canvas element on a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height)\n */\n height: number;\n /**\n * Gets or sets the width of a canvas element on a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width)\n */\n width: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream) */\n captureStream(frameRequestRate?: number): MediaStream;\n /**\n * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.\n * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");\n *\n * [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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */\n toBlob(callback: BlobCallback, type?: string, quality?: any): void;\n /**\n * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.\n * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL)\n */\n toDataURL(type?: string, quality?: any): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */\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 * A generic collection (array-like object similar to 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 * Sets or retrieves the number of objects in a collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length)\n */\n readonly length: number;\n /**\n * Retrieves an object from various collections.\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 * Retrieves a select object or an object from an options collection.\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 * 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 /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact)\n */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement/value) */\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 * 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 * Returns an HTMLCollection of the option elements of the datalist element.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */\ninterface HTMLDetailsElement extends HTMLElement {\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement) */\ninterface HTMLDialogElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open) */\n open: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue) */\n returnValue: string;\n /**\n * Closes the dialog element.\n *\n * The argument, if provided, provides a return value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close)\n */\n close(returnValue?: string): void;\n /**\n * Displays the dialog element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show)\n */\n show(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal) */\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 * 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 /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement/align)\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDivElement: {\n prototype: HTMLDivElement;\n new(): HTMLDivElement;\n};\n\n/** @deprecated use Document */\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\n/** @deprecated */\ndeclare var HTMLDocument: {\n prototype: HTMLDocument;\n new(): HTMLDocument;\n};\n\ninterface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\n/**\n * Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)\n */\ninterface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) */\n accessKey: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */\n readonly accessKeyLabel: string;\n autocapitalize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */\n dir: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) */\n draggable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) */\n hidden: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) */\n inert: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) */\n innerText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */\n lang: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) */\n readonly offsetHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) */\n readonly offsetLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) */\n readonly offsetParent: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) */\n readonly offsetTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) */\n readonly offsetWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */\n outerText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */\n popover: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */\n spellcheck: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */\n title: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */\n translate: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */\n attachInternals(): ElementInternals;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */\n click(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */\n hidePopover(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */\n showPopover(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */\n togglePopover(force?: 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 * 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 /** Sets or retrieves the height of the object. */\n height: string;\n /**\n * Sets or retrieves the name of the object.\n * @deprecated\n */\n name: string;\n /** Sets or retrieves a URL to be loaded by the object. */\n src: string;\n type: string;\n /** Sets or retrieves the width of the object. */\n width: string;\n getSVGDocument(): Document | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLEmbedElement: {\n prototype: HTMLEmbedElement;\n new(): HTMLEmbedElement;\n};\n\n/**\n * Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement)\n */\ninterface HTMLFieldSetElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled) */\n disabled: boolean;\n /**\n * Returns an HTMLCollection of the form controls in the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements)\n */\n readonly elements: HTMLCollection;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form)\n */\n readonly form: HTMLFormElement | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */\n name: string;\n /**\n * Returns the string "fieldset".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type)\n */\n readonly type: string;\n /**\n * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate)\n */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFieldSetElement: {\n prototype: HTMLFieldSetElement;\n new(): HTMLFieldSetElement;\n};\n\n/**\n * Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement)\n */\ninterface HTMLFontElement extends HTMLElement {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/color)\n */\n color: string;\n /**\n * Sets or retrieves the current typeface family.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/face)\n */\n face: string;\n /**\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 * A collection of HTML form control elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection)\n */\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n /**\n * Returns the item with ID or name name from the collection.\n *\n * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.\n *\n * [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 * A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement)\n */\ninterface HTMLFormElement extends HTMLElement {\n /**\n * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset)\n */\n acceptCharset: string;\n /**\n * Sets or retrieves the URL to which the form content is sent for processing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action)\n */\n action: string;\n /**\n * Specifies whether autocomplete is applied to an editable text field.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)\n */\n autocomplete: AutoFillBase;\n /**\n * Retrieves a collection, in source order, of all controls in a given form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements)\n */\n readonly elements: HTMLFormControlsCollection;\n /**\n * Sets or retrieves the MIME encoding for the form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding)\n */\n encoding: string;\n /**\n * Sets or retrieves the encoding type for the form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype)\n */\n enctype: string;\n /**\n * Sets or retrieves the number of objects in a collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length)\n */\n readonly length: number;\n /**\n * Sets or retrieves how to send the form data to the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method)\n */\n method: string;\n /**\n * Sets or retrieves the name of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)\n */\n name: string;\n /**\n * Designates a form that is not validated when submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)\n */\n noValidate: boolean;\n rel: string;\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the window or frame at which to target content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target)\n */\n target: string;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)\n */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity) */\n reportValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit) */\n requestSubmit(submitter?: HTMLElement | null): void;\n /**\n * Fires when the user resets a form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset)\n */\n reset(): void;\n /**\n * Fires when a FORM is about to be submitted.\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/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement)\n */\ninterface HTMLFrameElement extends HTMLElement {\n /**\n * Retrieves the document object of the page or frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentDocument)\n */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentWindow)\n */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/frameBorder)\n */\n frameBorder: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/longDesc)\n */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginHeight)\n */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginWidth)\n */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/name)\n */\n name: string;\n /**\n * Sets or retrieves whether the user can resize the frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/noResize)\n */\n noResize: boolean;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/scrolling)\n */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/src)\n */\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 * 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 /**\n * Sets or retrieves the frame widths of the object.\n * @deprecated\n */\n cols: string;\n /**\n * Sets or retrieves the frame heights of the object.\n * @deprecated\n */\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 * 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 /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n color: string;\n /**\n * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.\n * @deprecated\n */\n noShade: boolean;\n /** @deprecated */\n size: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\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 * Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface.\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 different heading elements. It inherits methods and properties from the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement)\n */\ninterface HTMLHeadingElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement/align)\n */\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 * Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement)\n */\ninterface HTMLHtmlElement extends HTMLElement {\n /**\n * Sets or retrieves the DTD version that governs the current 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 * 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 /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/align)\n */\n align: string;\n allow: string;\n allowFullscreen: boolean;\n /**\n * Retrieves the document object of the page or frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentDocument)\n */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow)\n */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/frameBorder)\n */\n frameBorder: string;\n /**\n * Sets or retrieves the height of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)\n */\n height: string;\n loading: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/longDesc)\n */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginHeight)\n */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginWidth)\n */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name)\n */\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */\n referrerPolicy: ReferrerPolicy;\n readonly sandbox: DOMTokenList;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/scrolling)\n */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src)\n */\n src: string;\n /**\n * Sets or retrives the content of the page that is to contain.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc)\n */\n srcdoc: string;\n /**\n * Sets or retrieves the width of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width)\n */\n width: string;\n getSVGDocument(): Document | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLIFrameElement: {\n prototype: HTMLIFrameElement;\n new(): HTMLIFrameElement;\n};\n\n/**\n * Provides special properties and methods for manipulating <img> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)\n */\ninterface HTMLImageElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align)\n */\n align: string;\n /**\n * Sets or retrieves a text alternative to the graphic.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt)\n */\n alt: string;\n /**\n * Specifies the properties of a border drawn around an object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border)\n */\n border: string;\n /**\n * Retrieves whether the object is fully loaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete)\n */\n readonly complete: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin) */\n crossOrigin: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc) */\n readonly currentSrc: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */\n decoding: "async" | "sync" | "auto";\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */\n fetchPriority: string;\n /**\n * Sets or retrieves the height of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height)\n */\n height: number;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace)\n */\n hspace: number;\n /**\n * Sets or retrieves whether the image is a server-side image map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap)\n */\n isMap: boolean;\n /**\n * Sets or retrieves the policy for loading image elements that are outside the viewport.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading)\n */\n loading: "eager" | "lazy";\n /**\n * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc)\n */\n longDesc: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/lowsrc)\n */\n lowsrc: string;\n /**\n * Sets or retrieves the name of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name)\n */\n name: string;\n /**\n * The original height of the image resource before sizing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight)\n */\n readonly naturalHeight: number;\n /**\n * The original width of the image resource before sizing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth)\n */\n readonly naturalWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy) */\n referrerPolicy: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */\n sizes: string;\n /**\n * The address or URL of the a media resource that is to be considered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src)\n */\n src: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset) */\n srcset: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap)\n */\n useMap: string;\n /**\n * Sets or retrieves the vertical margin for the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace)\n */\n vspace: number;\n /**\n * Sets or retrieves the width of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width)\n */\n width: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */\n readonly y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode) */\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 * 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 /** Sets or retrieves a comma-separated list of content types. */\n accept: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** Sets or retrieves a text alternative to the graphic. */\n alt: string;\n /**\n * Specifies whether autocomplete is applied to an editable text field.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)\n */\n autocomplete: AutoFill;\n capture: string;\n /** Sets or retrieves the state of the check box or radio button. */\n checked: boolean;\n /** Sets or retrieves the state of the check box or radio button. */\n defaultChecked: boolean;\n /** Sets or retrieves the initial contents of the object. */\n defaultValue: string;\n dirName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */\n disabled: boolean;\n /**\n * Returns a FileList object on a file type input object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files)\n */\n files: FileList | null;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /**\n * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction)\n */\n formAction: string;\n /**\n * Used to override the encoding (formEnctype attribute) specified on the form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype)\n */\n formEnctype: string;\n /**\n * Overrides the submit method attribute previously specified on a form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)\n */\n formMethod: string;\n /**\n * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)\n */\n formNoValidate: boolean;\n /**\n * Overrides the target attribute on a form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)\n */\n formTarget: string;\n /**\n * Sets or retrieves the height of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height)\n */\n height: number;\n /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */\n indeterminate: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement> | null;\n /**\n * Specifies the ID of a pre-defined datalist of options for an input element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)\n */\n readonly list: HTMLDataListElement | null;\n /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */\n max: string;\n /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */\n maxLength: number;\n /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */\n min: string;\n minLength: number;\n /**\n * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple)\n */\n multiple: boolean;\n /** Sets or retrieves the name of the object. */\n name: string;\n /**\n * Gets or sets a string containing a regular expression that the user\'s input must match.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern)\n */\n pattern: string;\n /**\n * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder)\n */\n placeholder: string;\n readOnly: boolean;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required)\n */\n required: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */\n selectionDirection: "forward" | "backward" | "none" | null;\n /** Gets or sets the end position or offset of a text selection. */\n selectionEnd: number | null;\n /** Gets or sets the starting position or offset of a text selection. */\n selectionStart: number | null;\n size: number;\n /** The address or URL of the a media resource that is to be considered. */\n src: string;\n /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */\n step: string;\n /** Returns the content type of the object. */\n type: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n * @deprecated\n */\n useMap: string;\n /**\n * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)\n */\n readonly validity: ValidityState;\n /** Returns the value of the data at the cursor\'s current position. */\n value: string;\n /** Returns a Date object representing the form control\'s value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn\'t date- or time-based. */\n valueAsDate: Date | null;\n /** Returns the input field value as a number. */\n valueAsNumber: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */\n readonly webkitEntries: ReadonlyArray<FileSystemEntry>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */\n webkitdirectory: boolean;\n /**\n * Sets or retrieves the width of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width)\n */\n width: number;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity)\n */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity) */\n reportValidity(): boolean;\n /**\n * Makes the selection equal to the current object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select)\n */\n select(): void;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity)\n */\n setCustomValidity(error: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText) */\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * Sets the start and end positions of a selection in a text field.\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n *\n * [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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker) */\n showPicker(): void;\n /**\n * Decrements a range input control\'s value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control\'s step value multiplied by the parameter\'s value.\n * @param n Value to decrement the value by.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown)\n */\n stepDown(n?: number): void;\n /**\n * Increments a range input control\'s value by the value given by the Step attribute. If the optional parameter is used, will increment the input control\'s value by that value.\n * @param n Value to increment the value by.\n *\n * [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 * 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 /** Sets or retrieves the value of a list item. */\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 * Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement)\n */\ninterface HTMLLabelElement extends HTMLElement {\n /**\n * Returns the form control that is associated with this element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/control)\n */\n readonly control: HTMLElement | null;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the object to which the given label object is assigned.\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. It inherits properties and methods from the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement)\n */\ninterface HTMLLegendElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /** Retrieves a reference to the form that the object is embedded in. */\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 * Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement)\n */\ninterface HTMLLinkElement extends HTMLElement, LinkStyle {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */\n as: string;\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin) */\n crossOrigin: string | null;\n disabled: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */\n fetchPriority: string;\n /**\n * Sets or retrieves a destination URL or an anchor point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href)\n */\n href: string;\n /**\n * Sets or retrieves the language code of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang)\n */\n hreflang: string;\n imageSizes: string;\n imageSrcset: string;\n integrity: string;\n /** Sets or retrieves the media type. */\n media: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/referrerPolicy) */\n referrerPolicy: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/rel)\n */\n rel: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList) */\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n * @deprecated\n */\n rev: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes) */\n readonly sizes: DOMTokenList;\n /**\n * Sets or retrieves the window or frame at which to target content.\n * @deprecated\n */\n target: string;\n /** Sets or retrieves the MIME type of the object. */\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 * 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 * Retrieves a collection of the area objects defined for the given map object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas)\n */\n readonly areas: HTMLCollection;\n /**\n * Sets or retrieves the name of the object.\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 * 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 * 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 * Gets or sets a value that indicates whether to start playing the media automatically.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/autoplay)\n */\n autoplay: boolean;\n /**\n * Gets a collection of buffered time ranges.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/buffered)\n */\n readonly buffered: TimeRanges;\n /**\n * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/controls)\n */\n controls: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/crossOrigin) */\n crossOrigin: string | null;\n /**\n * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentSrc)\n */\n readonly currentSrc: string;\n /**\n * Gets or sets the current playback position, in seconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentTime)\n */\n currentTime: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultMuted) */\n defaultMuted: boolean;\n /**\n * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)\n */\n defaultPlaybackRate: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/disableRemotePlayback) */\n disableRemotePlayback: boolean;\n /**\n * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/duration)\n */\n readonly duration: number;\n /**\n * Gets information about whether the playback has ended or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended)\n */\n readonly ended: boolean;\n /**\n * Returns an object representing the current error state of the audio or video element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/error)\n */\n readonly error: MediaError | null;\n /**\n * Gets or sets a flag to specify whether playback should restart after it completes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loop)\n */\n loop: boolean;\n /**\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 * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/muted)\n */\n muted: boolean;\n /**\n * Gets the current network activity for the element.\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 * Gets a flag that specifies whether playback is paused.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/paused)\n */\n readonly paused: boolean;\n /**\n * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate)\n */\n playbackRate: number;\n /**\n * Gets TimeRanges for the current media resource that has been played.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/played)\n */\n readonly played: TimeRanges;\n /**\n * Gets or sets a value indicating what data should be preloaded, if any.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preload)\n */\n preload: "none" | "metadata" | "auto" | "";\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preservesPitch) */\n preservesPitch: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState) */\n readonly readyState: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote) */\n readonly remote: RemotePlayback;\n /**\n * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable)\n */\n readonly seekable: TimeRanges;\n /**\n * Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking)\n */\n readonly seeking: boolean;\n /**\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 address or URL of the a media resource that is to be considered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/src)\n */\n src: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/srcObject) */\n srcObject: MediaProvider | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/textTracks) */\n readonly textTracks: TextTrackList;\n /**\n * Gets or sets the volume level for audio portions of the media element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume)\n */\n volume: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack) */\n addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;\n /**\n * Returns a string that specifies whether the client can play a given media resource type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)\n */\n canPlayType(type: string): CanPlayTypeResult;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek) */\n fastSeek(time: number): void;\n /**\n * Resets the audio or video object and loads a new media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/load)\n */\n load(): void;\n /**\n * Pauses the current playback and sets paused to TRUE.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause)\n */\n pause(): void;\n /**\n * Loads and starts playback of a media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play)\n */\n play(): Promise<void>;\n /**\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 * 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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */\ninterface HTMLMenuElement extends HTMLElement {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact)\n */\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 * Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)\n */\ninterface HTMLMetaElement extends HTMLElement {\n /** Gets or sets meta-information to associate with httpEquiv or name. */\n content: string;\n /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */\n httpEquiv: string;\n media: string;\n /** Sets or retrieves the value specified in the content attribute of the meta object. */\n name: string;\n /**\n * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.\n * @deprecated\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high) */\n high: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low) */\n low: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max) */\n max: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min) */\n min: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum) */\n optimum: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value) */\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 * 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 * Sets or retrieves reference information about the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/cite)\n */\n cite: string;\n /**\n * Sets or retrieves the date and time of a modification to the object.\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 * 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 /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact)\n */\n compact: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed) */\n reversed: boolean;\n /**\n * The starting number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/start)\n */\n start: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/type) */\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 * 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 /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/align)\n */\n align: string;\n /**\n * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/archive)\n */\n archive: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/border)\n */\n border: string;\n /**\n * Sets or retrieves the URL of the file containing the compiled Java class.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/code)\n */\n code: string;\n /**\n * Sets or retrieves the URL of the component.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeBase)\n */\n codeBase: string;\n /**\n * Sets or retrieves the Internet media type for the code associated with the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeType)\n */\n codeType: string;\n /**\n * Retrieves the document object of the page or frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentDocument)\n */\n readonly contentDocument: Document | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentWindow) */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves the URL that references the data of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data)\n */\n data: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/declare)\n */\n declare: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the height of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height)\n */\n height: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/hspace)\n */\n hspace: number;\n /**\n * Sets or retrieves the name of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/name)\n */\n name: string;\n /**\n * Sets or retrieves a message to be displayed while an object is loading.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/standby)\n */\n standby: string;\n /**\n * Sets or retrieves the MIME type of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/type)\n */\n type: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)\n */\n useMap: string;\n /**\n * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/vspace)\n */\n vspace: number;\n /**\n * Sets or retrieves the width of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/width)\n */\n width: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity)\n */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/getSVGDocument) */\n getSVGDocument(): Document | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n *\n * [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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled) */\n disabled: boolean;\n /**\n * Sets or retrieves a value that you can use to implement your own label functionality for the object.\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 * <option> elements and inherits all classes 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 * Sets or retrieves the status of an option.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected)\n */\n defaultSelected: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled) */\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the ordinal position of an option in a list box.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index)\n */\n readonly index: number;\n /**\n * Sets or retrieves a value that you can use to implement your own label functionality for the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label)\n */\n label: string;\n /**\n * Sets or retrieves whether the option in the list box is the default item.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected)\n */\n selected: boolean;\n /**\n * Sets or retrieves the text string specified by the option tag.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text)\n */\n text: string;\n /**\n * Sets or retrieves the value which is returned to the server when the form control is submitted.\n *\n * [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 * HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection)\n */\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n /**\n * Returns the number of elements in the collection.\n *\n * When set to a smaller number, truncates the number of option elements in the corresponding container.\n *\n * When set to a greater number, adds new blank option elements to that container.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length)\n */\n length: number;\n /**\n * Returns the index of the first selected item, if any, or −1 if there is no selected item.\n *\n * Can be set, to change the selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex)\n */\n selectedIndex: number;\n /**\n * Inserts element before the node given by before.\n *\n * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.\n *\n * If before is omitted, null, or a number out of range, then element will be added at the end of the list.\n *\n * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add)\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /**\n * Removes the item with index index from the 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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue) */\n defaultValue: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */\n readonly form: HTMLFormElement | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */\n readonly htmlFor: DOMTokenList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */\n name: string;\n /**\n * Returns the string "output".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type)\n */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage) */\n readonly validationMessage: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity) */\n readonly validity: ValidityState;\n /**\n * Returns the element\'s current value.\n *\n * Can be set, to change the value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)\n */\n value: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate) */\n readonly willValidate: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity) */\n reportValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity) */\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 * 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 /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement/align)\n */\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 * 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 /**\n * Sets or retrieves the name of an input parameter for an element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/name)\n */\n name: string;\n /**\n * Sets or retrieves the content type of the resource designated by the value attribute.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/type)\n */\n type: string;\n /**\n * Sets or retrieves the value of an input parameter for an element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/value)\n */\n value: string;\n /**\n * Sets or retrieves the data type of the value attribute.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/valueType)\n */\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 * A <picture> HTML element. It doesn\'t implement specific properties or methods.\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 * 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 /**\n * Sets or gets a value that you can use to implement your own width functionality for the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement/width)\n */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * Defines the maximum, or "done" value for a progress element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/max)\n */\n max: number;\n /**\n * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/position)\n */\n readonly position: number;\n /**\n * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.\n *\n * [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 * 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 * Sets or retrieves reference information about the object.\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 async: boolean;\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */\n crossOrigin: string | null;\n /** Sets or retrieves the status of the script. */\n defer: boolean;\n /**\n * Sets or retrieves the event for which the script is written.\n * @deprecated\n */\n event: string;\n fetchPriority: string;\n /**\n * Sets or retrieves the object that is bound to the event script.\n * @deprecated\n */\n htmlFor: string;\n integrity: string;\n noModule: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */\n referrerPolicy: string;\n /** Retrieves the URL to an external file that contains the source code or data. */\n src: string;\n /** Retrieves or sets the text of the object as a string. */\n text: string;\n /** Sets or retrieves the MIME type for the associated scripting engine. */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static) */\n supports(type: string): boolean;\n};\n\n/**\n * A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement)\n */\ninterface HTMLSelectElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */\n autocomplete: AutoFill;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/form)\n */\n readonly form: HTMLFormElement | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * Sets or retrieves the number of objects in a collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length)\n */\n length: number;\n /**\n * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple)\n */\n multiple: boolean;\n /**\n * Sets or retrieves the name of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name)\n */\n name: string;\n /**\n * Returns an HTMLOptionsCollection of the list of options.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options)\n */\n readonly options: HTMLOptionsCollection;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required)\n */\n required: boolean;\n /**\n * Sets or retrieves the index of the selected option in a select object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedIndex)\n */\n selectedIndex: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions) */\n readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;\n /**\n * Sets or retrieves the number of rows in the list box.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size)\n */\n size: number;\n /**\n * Retrieves the type of select control based on the value of the MULTIPLE attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)\n */\n readonly type: string;\n /**\n * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * Sets or retrieves the value which is returned to the server when the form control is submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value)\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * Adds an element to the areas, controlRange, or options collection.\n * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.\n * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add)\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * Retrieves a select object or an object from an options collection.\n * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.\n * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item)\n */\n item(index: number): HTMLOptionElement | null;\n /**\n * Retrieves a select object or an object from an options collection.\n * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem)\n */\n namedItem(name: string): HTMLOptionElement | null;\n /**\n * Removes an element from the collection.\n * @param index Number that specifies the zero-based index of the element to remove from the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove)\n */\n remove(): void;\n remove(index: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity) */\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity)\n */\n setCustomValidity(error: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement) */\ninterface HTMLSlotElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name) */\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign) */\n assign(...nodes: (Element | Text)[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements) */\n assignedElements(options?: AssignedNodesOptions): Element[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedNodes) */\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 * 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 height: number;\n /**\n * Gets or sets the intended media type of the media source.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/media)\n */\n media: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes) */\n sizes: string;\n /**\n * The address or URL of the a media resource that is to be considered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/src)\n */\n src: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/srcset) */\n srcset: string;\n /**\n * Gets or sets the MIME type of a media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)\n */\n type: string;\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 * 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 * A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)\n */\ninterface HTMLStyleElement extends HTMLElement, LinkStyle {\n /**\n * Enables or disables the style sheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/disabled)\n */\n disabled: boolean;\n /**\n * Sets or retrieves the media type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/media)\n */\n media: string;\n /**\n * Retrieves the CSS language in which the style sheet is written.\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 * 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 * Sets or retrieves the alignment of the caption or legend.\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 * Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement)\n */\ninterface HTMLTableCellElement extends HTMLElement {\n /**\n * Sets or retrieves abbreviated text for the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr)\n */\n abbr: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/align)\n */\n align: string;\n /**\n * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/axis)\n */\n axis: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/bgColor)\n */\n bgColor: string;\n /**\n * Retrieves the position of the object in the cells collection of a row.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/cellIndex)\n */\n readonly cellIndex: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/ch)\n */\n ch: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/chOff)\n */\n chOff: string;\n /**\n * Sets or retrieves the number columns in the table that the object should span.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/colSpan)\n */\n colSpan: number;\n /**\n * Sets or retrieves a list of header cells that provide information for the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/headers)\n */\n headers: string;\n /**\n * Sets or retrieves the height of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/height)\n */\n height: string;\n /**\n * Sets or retrieves whether the browser automatically performs wordwrap.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/noWrap)\n */\n noWrap: boolean;\n /**\n * Sets or retrieves how many rows in a table the cell should span.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/rowSpan)\n */\n rowSpan: number;\n /**\n * Sets or retrieves the group of cells in a table to which the object\'s information applies.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope)\n */\n scope: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/vAlign)\n */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/width)\n */\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 * Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) 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 * Sets or retrieves the alignment of the object relative to the display or table.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/align)\n */\n align: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/ch)\n */\n ch: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/chOff)\n */\n chOff: string;\n /**\n * Sets or retrieves the number of columns in the group.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/span)\n */\n span: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/vAlign)\n */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/width)\n */\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 * 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 * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/align)\n */\n align: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/bgColor)\n */\n bgColor: string;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/border)\n */\n border: string;\n /**\n * Retrieves the caption object of a table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/caption)\n */\n caption: HTMLTableCaptionElement | null;\n /**\n * Sets or retrieves the amount of space between the border of the cell and the content of the cell.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellPadding)\n */\n cellPadding: string;\n /**\n * Sets or retrieves the amount of space between cells in a table.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellSpacing)\n */\n cellSpacing: string;\n /**\n * Sets or retrieves the way the border frame around the table is displayed.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/frame)\n */\n frame: string;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rows)\n */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /**\n * Sets or retrieves which dividing lines (inner borders) are displayed.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rules)\n */\n rules: string;\n /**\n * Sets or retrieves a description and/or structure of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/summary)\n */\n summary: string;\n /**\n * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies)\n */\n readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;\n /**\n * Retrieves the tFoot object of the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tFoot)\n */\n tFoot: HTMLTableSectionElement | null;\n /**\n * Retrieves the tHead object of the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tHead)\n */\n tHead: HTMLTableSectionElement | null;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/width)\n */\n width: string;\n /**\n * Creates an empty caption element in the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption)\n */\n createCaption(): HTMLTableCaptionElement;\n /**\n * Creates an empty tBody element in the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody)\n */\n createTBody(): HTMLTableSectionElement;\n /**\n * Creates an empty tFoot element in the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot)\n */\n createTFoot(): HTMLTableSectionElement;\n /**\n * Returns the tHead element object if successful, or null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead)\n */\n createTHead(): HTMLTableSectionElement;\n /**\n * Deletes the caption element and its contents from the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption)\n */\n deleteCaption(): void;\n /**\n * Removes the specified row (tr) from the element and from the rows collection.\n * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow)\n */\n deleteRow(index: number): void;\n /**\n * Deletes the tFoot element and its contents from the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot)\n */\n deleteTFoot(): void;\n /**\n * Deletes the tHead element and its contents from the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead)\n */\n deleteTHead(): void;\n /**\n * Creates a new row (tr) in the table, and adds the row to the rows collection.\n * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.\n *\n * [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 * 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 * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align)\n */\n align: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/bgColor)\n */\n bgColor: string;\n /**\n * Retrieves a collection of all cells in the table row.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/cells)\n */\n readonly cells: HTMLCollectionOf<HTMLTableCellElement>;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/ch)\n */\n ch: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/chOff)\n */\n chOff: string;\n /**\n * Retrieves the position of the object in the rows collection for the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/rowIndex)\n */\n readonly rowIndex: number;\n /**\n * Retrieves the position of the object in the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex)\n */\n readonly sectionRowIndex: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign)\n */\n vAlign: string;\n /**\n * Removes the specified cell from the table row, as well as from the cells collection.\n * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell)\n */\n deleteCell(index: number): void;\n /**\n * Creates a new cell in the table row, and adds the cell to the cells collection.\n * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.\n *\n * [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 * Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement)\n */\ninterface HTMLTableSectionElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align)\n */\n align: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/ch)\n */\n ch: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/chOff)\n */\n chOff: string;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows)\n */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign)\n */\n vAlign: string;\n /**\n * Removes the specified row (tr) from the element and from the rows collection.\n * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow)\n */\n deleteRow(index: number): void;\n /**\n * Creates a new row (tr) in the table, and adds the row to the rows collection.\n * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.\n *\n * [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 * 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 * Returns the template contents (a DocumentFragment).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)\n */\n readonly content: DocumentFragment;\n shadowRootMode: string;\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 * Provides special 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */\n autocomplete: AutoFill;\n /** Sets or retrieves the width of the object. */\n cols: number;\n /** Sets or retrieves the initial contents of the object. */\n defaultValue: string;\n dirName: string;\n disabled: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */\n maxLength: number;\n minLength: number;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */\n placeholder: string;\n /** Sets or retrieves the value indicated whether the content of the object is read-only. */\n readOnly: boolean;\n /** When present, marks an element that can\'t be submitted without a value. */\n required: boolean;\n /** Sets or retrieves the number of horizontal rows contained in the object. */\n rows: number;\n selectionDirection: "forward" | "backward" | "none";\n /** Gets or sets the end position or offset of a text selection. */\n selectionEnd: number;\n /** Gets or sets the starting position or offset of a text selection. */\n selectionStart: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */\n readonly textLength: number;\n /** Retrieves the type of control. */\n readonly type: string;\n /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Retrieves or sets the text in the entry field of the textArea element. */\n value: string;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Sets or retrieves how to handle wordwrapping in the object. */\n wrap: string;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */\n reportValidity(): boolean;\n /** Highlights the input area of a form element. */\n select(): void;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * Sets the start and end positions of a selection in a text field.\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | 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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement/dateTime) */\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 * Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement)\n */\ninterface HTMLTitleElement extends HTMLElement {\n /**\n * Retrieves or sets the text of the object 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\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement)\n */\ninterface HTMLTrackElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/default) */\n default: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/kind) */\n kind: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/label) */\n label: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/readyState) */\n readonly readyState: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src) */\n src: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/srclang) */\n srclang: string;\n /**\n * Returns the 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 * Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement)\n */\ninterface HTMLUListElement extends HTMLElement {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact)\n */\n compact: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/type)\n */\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 * 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": Event;\n "leavepictureinpicture": Event;\n}\n\n/**\n * Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)\n */\ninterface HTMLVideoElement extends HTMLMediaElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/disablePictureInPicture) */\n disablePictureInPicture: boolean;\n /**\n * Gets or sets the height of the video element.\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: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */\n onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;\n /** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */\n playsInline: boolean;\n /**\n * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/poster)\n */\n poster: string;\n /**\n * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoHeight)\n */\n readonly videoHeight: number;\n /**\n * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoWidth)\n */\n readonly videoWidth: number;\n /**\n * Gets or sets the width of the video element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)\n */\n width: number;\n cancelVideoFrameCallback(handle: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */\n getVideoPlaybackQuality(): VideoPlaybackQuality;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */\n requestPictureInPicture(): Promise<PictureInPictureWindow>;\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 * 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 * Returns the URL of the session history entry that is now current.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/newURL)\n */\n readonly newURL: string;\n /**\n * Returns the URL of the session history entry that was previously current.\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 * This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)\n */\ninterface Headers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */\n append(name: string, value: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */\n delete(name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */\n get(name: string): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */\n getSetCookie(): string[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */\n has(name: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */\ninterface Highlight {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */\n priority: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/scrollRestoration) */\n scrollRestoration: ScrollRestoration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/state) */\n readonly state: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/back) */\n back(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/forward) */\n forward(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/go) */\n go(delta?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/pushState) */\n pushState(data: any, unused: string, url?: string | URL | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/replaceState) */\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 * This IndexedDB API interface 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 * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)\n */\n readonly direction: IDBCursorDirection;\n /**\n * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)\n */\n readonly key: IDBValidKey;\n /**\n * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)\n */\n readonly primaryKey: IDBValidKey;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */\n readonly request: IDBRequest;\n /**\n * Returns the IDBObjectStore or IDBIndex the cursor was opened from.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)\n */\n readonly source: IDBObjectStore | IDBIndex;\n /**\n * Advances the cursor through the next count records in range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)\n */\n advance(count: number): void;\n /**\n * Advances the cursor to the next record in range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)\n */\n continue(key?: IDBValidKey): void;\n /**\n * Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)\n */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * Delete the record pointed at by the cursor with a new value.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)\n */\n delete(): IDBRequest<undefined>;\n /**\n * Updated the record pointed at by the cursor with a new value.\n *\n * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [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 * This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)\n */\ninterface IDBCursorWithValue extends IDBCursor {\n /**\n * Returns the cursor\'s current value.\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 * This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)\n */\ninterface IDBDatabase extends EventTarget {\n /**\n * Returns the name of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)\n */\n readonly name: string;\n /**\n * Returns a list of the names of object stores in the 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 * Returns the version of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)\n */\n readonly version: number;\n /**\n * Closes the connection once all running transactions have finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)\n */\n close(): void;\n /**\n * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * Deletes the object store with the given name.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)\n */\n deleteObjectStore(name: string): void;\n /**\n * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.\n *\n * [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 * In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)\n */\ninterface IDBFactory {\n /**\n * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n *\n * Throws a "DataError" DOMException if either input is not a valid key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)\n */\n cmp(first: any, second: any): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */\n databases(): Promise<IDBDatabaseInfo[]>;\n /**\n * Attempts to delete the named database. If the database already exists and there are open connections that don\'t close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request\'s result will be null.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)\n */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /**\n * Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request\'s result will be the connection.\n *\n * [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. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)\n */\ninterface IDBIndex {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */\n readonly keyPath: string | string[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */\n readonly multiEntry: boolean;\n /**\n * Returns the name of the index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)\n */\n name: string;\n /**\n * Returns the IDBObjectStore the index belongs to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)\n */\n readonly objectStore: IDBObjectStore;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */\n readonly unique: boolean;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n *\n * [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 * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n *\n * [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 * A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)\n */\ninterface IDBKeyRange {\n /**\n * Returns lower bound, or undefined if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)\n */\n readonly lower: any;\n /**\n * Returns true if the lower open flag is set, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)\n */\n readonly lowerOpen: boolean;\n /**\n * Returns upper bound, or undefined if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)\n */\n readonly upper: any;\n /**\n * Returns true if the upper open flag is set, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)\n */\n readonly upperOpen: boolean;\n /**\n * Returns true if key is included in the range, and false otherwise.\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 * Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.\n *\n * [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 * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)\n */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange spanning only key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)\n */\n only(value: any): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)\n */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/**\n * This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)\n */\ninterface IDBObjectStore {\n /**\n * Returns true if the store has a key generator, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)\n */\n readonly autoIncrement: boolean;\n /**\n * Returns a list of the names of indexes in the store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)\n */\n readonly indexNames: DOMStringList;\n /**\n * Returns the key path of the store, or null if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)\n */\n readonly keyPath: string | string[];\n /**\n * Returns the name of the store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)\n */\n name: string;\n /**\n * Returns the associated transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)\n */\n readonly transaction: IDBTransaction;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * Deletes all records in store.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)\n */\n clear(): IDBRequest<undefined>;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * Deletes records in store with the given key or in the given key range in query.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * Deletes the index in store with the given name.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)\n */\n deleteIndex(name: string): void;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */\n index(name: string): IDBIndex;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n *\n * [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 * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n *\n * [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 * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [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 * Also inherits methods from its parents IDBRequest and EventTarget.\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 request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)\n */\ninterface IDBRequest<T = any> extends EventTarget {\n /**\n * When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.\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 * Returns "pending" until a request is complete, then returns "done".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)\n */\n readonly readyState: IDBRequestReadyState;\n /**\n * When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)\n */\n readonly result: T;\n /**\n * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)\n */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /**\n * Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.\n *\n * [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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */\ninterface IDBTransaction extends EventTarget {\n /**\n * Returns the transaction\'s connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)\n */\n readonly db: IDBDatabase;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */\n readonly durability: IDBTransactionDurability;\n /**\n * If the transaction was aborted, returns the error (a DOMException) providing the reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)\n */\n readonly error: DOMException | null;\n /**\n * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)\n */\n readonly mode: IDBTransactionMode;\n /**\n * Returns a list of the names of object stores in the transaction\'s scope. For an upgrade transaction this is all object stores in the database.\n *\n * [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 * Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)\n */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */\n commit(): void;\n /**\n * Returns an IDBObjectStore in the transaction\'s scope.\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 * This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)\n */\ninterface IDBVersionChangeEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */\n readonly newVersion: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */\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. It lets the parameters of the filter response be specified, so that it can be tuned as needed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)\n */\ninterface IIRFilterNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse) */\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var IIRFilterNode: {\n prototype: IIRFilterNode;\n new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline) */\ninterface IdleDeadline {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout) */\n readonly didTimeout: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining) */\n timeRemaining(): DOMHighResTimeStamp;\n}\n\ndeclare var IdleDeadline: {\n prototype: IdleDeadline;\n new(): IdleDeadline;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */\ninterface ImageBitmap {\n /**\n * Returns the intrinsic height of the image, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)\n */\n readonly height: number;\n /**\n * Returns the intrinsic width of the image, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)\n */\n readonly width: number;\n /**\n * Releases imageBitmap\'s underlying bitmap data.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */\ninterface ImageBitmapRenderingContext {\n /** Returns the canvas element that the context is bound to. */\n readonly canvas: HTMLCanvasElement | OffscreenCanvas;\n /**\n * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.\n *\n * [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 underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)\n */\ninterface ImageData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */\n readonly colorSpace: PredefinedColorSpace;\n /**\n * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)\n */\n readonly data: Uint8ClampedArray;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)\n */\n readonly height: number;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\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: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\ninterface InnerHTML {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */\n innerHTML: string;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo)\n */\ninterface InputDeviceInfo extends MediaDeviceInfo {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities) */\n getCapabilities(): MediaTrackCapabilities;\n}\n\ndeclare var InputDeviceInfo: {\n prototype: InputDeviceInfo;\n new(): InputDeviceInfo;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent) */\ninterface InputEvent extends UIEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data) */\n readonly data: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/dataTransfer) */\n readonly dataTransfer: DataTransfer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/inputType) */\n readonly inputType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/isComposing) */\n readonly isComposing: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges) */\n getTargetRanges(): StaticRange[];\n}\n\ndeclare var InputEvent: {\n prototype: InputEvent;\n new(type: string, eventInitDict?: InputEventInit): InputEvent;\n};\n\n/**\n * provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document\'s viewport.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver)\n */\ninterface IntersectionObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root) */\n readonly root: Element | Document | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin) */\n readonly rootMargin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds) */\n readonly thresholds: ReadonlyArray<number>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe) */\n observe(target: Element): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords) */\n takeRecords(): IntersectionObserverEntry[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve) */\n unobserve(target: Element): void;\n}\n\ndeclare var IntersectionObserver: {\n prototype: IntersectionObserver;\n new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;\n};\n\n/**\n * This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry)\n */\ninterface IntersectionObserverEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect) */\n readonly boundingClientRect: DOMRectReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio) */\n readonly intersectionRatio: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect) */\n readonly intersectionRect: DOMRectReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting) */\n readonly isIntersecting: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds) */\n readonly rootBounds: DOMRectReadOnly | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target) */\n readonly target: Element;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time) */\n readonly time: DOMHighResTimeStamp;\n}\n\ndeclare var IntersectionObserverEntry: {\n prototype: IntersectionObserverEntry;\n new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey) */\n readonly altKey: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/charCode)\n */\n readonly charCode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/code) */\n readonly code: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/ctrlKey) */\n readonly ctrlKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/isComposing) */\n readonly isComposing: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key) */\n readonly key: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode)\n */\n readonly keyCode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/location) */\n readonly location: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/metaKey) */\n readonly metaKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/repeat) */\n readonly repeat: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/shiftKey) */\n readonly shiftKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState) */\n getModifierState(keyArg: string): boolean;\n /**\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect) */\ninterface KeyframeEffect extends AnimationEffect {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/composite) */\n composite: CompositeOperation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/iterationComposite) */\n iterationComposite: IterationCompositeOperation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/pseudoElement) */\n pseudoElement: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/target) */\n target: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/getKeyframes) */\n getKeyframes(): ComputedKeyframe[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/setKeyframes) */\n setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;\n}\n\ndeclare var KeyframeEffect: {\n prototype: KeyframeEffect;\n new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;\n new(source: KeyframeEffect): KeyframeEffect;\n};\n\ninterface LinkStyle {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */\n readonly sheet: CSSStyleSheet | null;\n}\n\n/**\n * The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location)\n */\ninterface Location {\n /**\n * Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/ancestorOrigins)\n */\n readonly ancestorOrigins: DOMStringList;\n /**\n * Returns the Location object\'s URL\'s fragment (includes leading "#" if non-empty).\n *\n * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hash)\n */\n hash: string;\n /**\n * Returns the Location object\'s URL\'s host and port (if different from the default port for the scheme).\n *\n * Can be set, to navigate to the same URL with a changed host and port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/host)\n */\n host: string;\n /**\n * Returns the Location object\'s URL\'s host.\n *\n * Can be set, to navigate to the same URL with a changed host.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hostname)\n */\n hostname: string;\n /**\n * Returns the Location object\'s URL.\n *\n * Can be set, to navigate to the given URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/href)\n */\n href: string;\n toString(): string;\n /**\n * Returns the Location object\'s URL\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/origin)\n */\n readonly origin: string;\n /**\n * Returns the Location object\'s URL\'s path.\n *\n * Can be set, to navigate to the same URL with a changed path.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname)\n */\n pathname: string;\n /**\n * Returns the Location object\'s URL\'s port.\n *\n * Can be set, to navigate to the same URL with a changed port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/port)\n */\n port: string;\n /**\n * Returns the Location object\'s URL\'s scheme.\n *\n * Can be set, to navigate to the same URL with a changed scheme.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/protocol)\n */\n protocol: string;\n /**\n * Returns the Location object\'s URL\'s query (includes leading "?" if non-empty).\n *\n * Can be set, to navigate to the same URL with a changed query (ignores leading "?").\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/search)\n */\n search: string;\n /**\n * Navigates to the given URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/assign)\n */\n assign(url: string | URL): void;\n /**\n * Reloads the current page.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload)\n */\n reload(): void;\n /**\n * Removes the current page from the session history and navigates to the given 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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)\n */\ninterface Lock {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */\n readonly mode: LockMode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */\n readonly name: string;\n}\n\ndeclare var Lock: {\n prototype: Lock;\n new(): Lock;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)\n */\ninterface LockManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */\n query(): Promise<LockManagerSnapshot>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */\n request(name: string, callback: LockGrantedCallback): Promise<any>;\n request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;\n}\n\ndeclare var LockManager: {\n prototype: LockManager;\n new(): LockManager;\n};\n\ninterface MIDIAccessEventMap {\n "statechange": Event;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess)\n */\ninterface MIDIAccess extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */\n readonly inputs: MIDIInputMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */\n onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */\n readonly outputs: MIDIOutputMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent)\n */\ninterface MIDIConnectionEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port) */\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 * 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 * 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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent)\n */\ninterface MIDIMessageEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data) */\n readonly data: Uint8Array | null;\n}\n\ndeclare var MIDIMessageEvent: {\n prototype: MIDIMessageEvent;\n new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput)\n */\ninterface MIDIOutput extends MIDIPort {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */\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 * 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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort)\n */\ninterface MIDIPort extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection) */\n readonly connection: MIDIPortConnectionState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/manufacturer) */\n readonly manufacturer: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/name) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state) */\n readonly state: MIDIPortDeviceState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type) */\n readonly type: MIDIPortType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/version) */\n readonly version: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/close) */\n close(): Promise<MIDIPort>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/open) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */\ninterface MediaCapabilities {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/**\n * The MediaDevicesInfo interface 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/deviceId) */\n readonly deviceId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/groupId) */\n readonly groupId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/kind) */\n readonly kind: MediaDeviceKind;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/label) */\n readonly label: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */\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 * Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices) */\n enumerateDevices(): Promise<MediaDeviceInfo[]>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getDisplayMedia) */\n getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getSupportedConstraints) */\n getSupportedConstraints(): MediaTrackSupportedConstraints;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia) */\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 * A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode)\n */\ninterface MediaElementAudioSourceNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode/mediaElement) */\n readonly mediaElement: HTMLMediaElement;\n}\n\ndeclare var MediaElementAudioSourceNode: {\n prototype: MediaElementAudioSourceNode;\n new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent) */\ninterface MediaEncryptedEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData) */\n readonly initData: ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initDataType) */\n readonly initDataType: string;\n}\n\ndeclare var MediaEncryptedEvent: {\n prototype: MediaEncryptedEvent;\n new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;\n};\n\n/**\n * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/code) */\n readonly code: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/message) */\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 * This EncryptedMediaExtensions API interface 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message) */\n readonly message: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/messageType) */\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 * This EncryptedMediaExtensions API interface 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/closed) */\n readonly closed: Promise<MediaKeySessionClosedReason>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/expiration) */\n readonly expiration: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keyStatuses) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId) */\n readonly sessionId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/generateRequest) */\n generateRequest(initDataType: string, initData: BufferSource): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/load) */\n load(sessionId: string): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/remove) */\n remove(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/update) */\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 * This EncryptedMediaExtensions API interface 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/size) */\n readonly size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/get) */\n get(keyId: BufferSource): MediaKeyStatus | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/has) */\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 * This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess)\n */\ninterface MediaKeySystemAccess {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/keySystem) */\n readonly keySystem: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/createMediaKeys) */\n createMediaKeys(): Promise<MediaKeys>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration) */\n getConfiguration(): MediaKeySystemConfiguration;\n}\n\ndeclare var MediaKeySystemAccess: {\n prototype: MediaKeySystemAccess;\n new(): MediaKeySystemAccess;\n};\n\n/**\n * This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys)\n */\ninterface MediaKeys {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */\n createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */\n setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;\n}\n\ndeclare var MediaKeys: {\n prototype: MediaKeys;\n new(): MediaKeys;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList) */\ninterface MediaList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText) */\n mediaText: string;\n toString(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium) */\n appendMedium(medium: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium) */\n deleteMedium(medium: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/item) */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var MediaList: {\n prototype: MediaList;\n new(): MediaList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata) */\ninterface MediaMetadata {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/album) */\n album: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artist) */\n artist: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artwork) */\n artwork: ReadonlyArray<MediaImage>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/title) */\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 * Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList)\n */\ninterface MediaQueryList extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches) */\n readonly matches: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media) */\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 * @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 * @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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent) */\ninterface MediaQueryListEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches) */\n readonly matches: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/media) */\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": Event;\n "pause": Event;\n "resume": Event;\n "start": Event;\n "stop": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder) */\ninterface MediaRecorder extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/audioBitsPerSecond) */\n readonly audioBitsPerSecond: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/mimeType) */\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: Event) => 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state) */\n readonly state: RecordingState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stream) */\n readonly stream: MediaStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/videoBitsPerSecond) */\n readonly videoBitsPerSecond: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause) */\n pause(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/requestData) */\n requestData(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume) */\n resume(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start) */\n start(timeslice?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static) */\n isTypeSupported(type: string): boolean;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession) */\ninterface MediaSession {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/metadata) */\n metadata: MediaMetadata | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/playbackState) */\n playbackState: MediaSessionPlaybackState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */\n setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */\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 * This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource)\n */\ninterface MediaSource extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/activeSourceBuffers) */\n readonly activeSourceBuffers: SourceBufferList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration) */\n duration: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceclose_event) */\n onsourceclose: ((this: MediaSource, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceended_event) */\n onsourceended: ((this: MediaSource, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceopen_event) */\n onsourceopen: ((this: MediaSource, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState) */\n readonly readyState: ReadyState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceBuffers) */\n readonly sourceBuffers: SourceBufferList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/addSourceBuffer) */\n addSourceBuffer(type: string): SourceBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/clearLiveSeekableRange) */\n clearLiveSeekableRange(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/endOfStream) */\n endOfStream(error?: EndOfStreamError): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/removeSourceBuffer) */\n removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/setLiveSeekableRange) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */\n isTypeSupported(type: string): boolean;\n};\n\ninterface MediaStreamEventMap {\n "addtrack": MediaStreamTrackEvent;\n "removetrack": MediaStreamTrackEvent;\n}\n\n/**\n * A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream)\n */\ninterface MediaStream extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/active) */\n readonly active: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/id) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack) */\n addTrack(track: MediaStreamTrack): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/clone) */\n clone(): MediaStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks) */\n getAudioTracks(): MediaStreamTrack[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTrackById) */\n getTrackById(trackId: string): MediaStreamTrack | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTracks) */\n getTracks(): MediaStreamTrack[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getVideoTracks) */\n getVideoTracks(): MediaStreamTrack[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removeTrack) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode) */\ninterface MediaStreamAudioDestinationNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode/stream) */\n readonly stream: MediaStream;\n}\n\ndeclare var MediaStreamAudioDestinationNode: {\n prototype: MediaStreamAudioDestinationNode;\n new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;\n};\n\n/**\n * A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode)\n */\ninterface MediaStreamAudioSourceNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode/mediaStream) */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) */\n contentHint: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) */\n enabled: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) */\n readonly kind: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) */\n readonly label: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) */\n readonly readyState: MediaStreamTrackState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) */\n applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) */\n clone(): MediaStreamTrack;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) */\n getCapabilities(): MediaTrackCapabilities;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) */\n getConstraints(): MediaTrackConstraints;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) */\n getSettings(): MediaTrackSettings;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) */\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 * Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent)\n */\ninterface MediaStreamTrackEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent/track) */\n readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n prototype: MediaStreamTrackEvent;\n new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\n/**\n * This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)\n */\ninterface MessageChannel {\n /**\n * Returns the first MessagePort object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)\n */\n readonly port1: MessagePort;\n /**\n * Returns the second MessagePort object.\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 * 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 * Returns the data of the message.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)\n */\n readonly data: T;\n /**\n * Returns the last event ID string, for server-sent events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)\n */\n readonly lastEventId: string;\n /**\n * Returns the origin of the message, for server-sent events and cross-document messaging.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)\n */\n readonly origin: string;\n /**\n * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)\n */\n readonly ports: ReadonlyArray<MessagePort>;\n /**\n * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)\n */\n readonly source: MessageEventSource | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)\n */\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 MessagePortEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)\n */\ninterface MessagePort extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */\n onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /**\n * Disconnects the port, so that it is no longer active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)\n */\n close(): void;\n /**\n * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n *\n * [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 * Begins dispatching messages received 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 * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.\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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/description)\n */\n readonly description: string;\n /**\n * Returns the Plugin object that implements this MIME type.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/enabledPlugin)\n */\n readonly enabledPlugin: Plugin;\n /**\n * Returns the MIME type\'s typical file extensions, in a comma-separated list.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/suffixes)\n */\n readonly suffixes: string;\n /**\n * Returns the MIME type.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/type)\n */\n readonly type: string;\n}\n\n/** @deprecated */\ndeclare var MimeType: {\n prototype: MimeType;\n new(): MimeType;\n};\n\n/**\n * Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray)\n */\ninterface MimeTypeArray {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/length)\n */\n readonly length: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/item)\n */\n item(index: number): MimeType | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/namedItem)\n */\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 * Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent)\n */\ninterface MouseEvent extends UIEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey) */\n readonly altKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/button) */\n readonly button: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/buttons) */\n readonly buttons: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientX) */\n readonly clientX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientY) */\n readonly clientY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey) */\n readonly ctrlKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX) */\n readonly layerX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY) */\n readonly layerY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey) */\n readonly metaKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX) */\n readonly movementX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementY) */\n readonly movementY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetX) */\n readonly offsetX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetY) */\n readonly offsetY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX) */\n readonly pageX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageY) */\n readonly pageY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget) */\n readonly relatedTarget: EventTarget | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenX) */\n readonly screenX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenY) */\n readonly screenY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/shiftKey) */\n readonly shiftKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/y) */\n readonly y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState) */\n getModifierState(keyArg: string): boolean;\n /**\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 * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.\n * @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent)\n */\ninterface MutationEvent extends Event {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrChange)\n */\n readonly attrChange: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrName)\n */\n readonly attrName: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/newValue)\n */\n readonly newValue: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/prevValue)\n */\n readonly prevValue: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/relatedNode)\n */\n readonly relatedNode: Node | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/initMutationEvent)\n */\n initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;\n readonly MODIFICATION: 1;\n readonly ADDITION: 2;\n readonly REMOVAL: 3;\n}\n\n/** @deprecated */\ndeclare var MutationEvent: {\n prototype: MutationEvent;\n new(): MutationEvent;\n readonly MODIFICATION: 1;\n readonly ADDITION: 2;\n readonly REMOVAL: 3;\n};\n\n/**\n * Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver)\n */\ninterface MutationObserver {\n /**\n * Stops observer from observing any mutations. Until the observe() method is used again, observer\'s callback will not be invoked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/disconnect)\n */\n disconnect(): void;\n /**\n * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).\n *\n * The options argument allows for setting mutation observation options via object members.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe)\n */\n observe(target: Node, options?: MutationObserverInit): void;\n /**\n * Empties the record queue and returns what was in there.\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 * A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver\'s callback.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord)\n */\ninterface MutationRecord {\n /**\n * Return the nodes added and removed respectively.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/addedNodes)\n */\n readonly addedNodes: NodeList;\n /**\n * Returns the local name of the changed attribute, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeName)\n */\n readonly attributeName: string | null;\n /**\n * Returns the namespace of the changed attribute, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeNamespace)\n */\n readonly attributeNamespace: string | null;\n /**\n * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/nextSibling)\n */\n readonly nextSibling: Node | null;\n /**\n * The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/oldValue)\n */\n readonly oldValue: string | null;\n /**\n * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/previousSibling)\n */\n readonly previousSibling: Node | null;\n /**\n * Return the nodes added and removed respectively.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/removedNodes)\n */\n readonly removedNodes: NodeList;\n /**\n * Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/target)\n */\n readonly target: Node;\n /**\n * Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes.\n *\n * [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 * A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap)\n */\ninterface NamedNodeMap {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem) */\n getNamedItem(qualifiedName: string): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS) */\n getNamedItemNS(namespace: string | null, localName: string): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item) */\n item(index: number): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem) */\n removeNamedItem(qualifiedName: string): Attr;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS) */\n removeNamedItemNS(namespace: string | null, localName: string): Attr;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem) */\n setNamedItem(attr: Attr): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItemNS) */\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)\n */\ninterface NavigationPreloadManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */\n disable(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */\n enable(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */\n getState(): Promise<NavigationPreloadState>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */\n setHeaderValue(value: string): Promise<void>;\n}\n\ndeclare var NavigationPreloadManager: {\n prototype: NavigationPreloadManager;\n new(): NavigationPreloadManager;\n};\n\n/**\n * The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.\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 * 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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/geolocation) */\n readonly geolocation: Geolocation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/maxTouchPoints) */\n readonly maxTouchPoints: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaCapabilities) */\n readonly mediaCapabilities: MediaCapabilities;\n /**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaSession) */\n readonly mediaSession: MediaSession;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/permissions) */\n readonly permissions: Permissions;\n /**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userActivation) */\n readonly userActivation: UserActivation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/wakeLock) */\n readonly wakeLock: WakeLock;\n /**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/getGamepads) */\n getGamepads(): (Gamepad | null)[];\n /**\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon) */\n sendBeacon(url: string | URL, data?: BodyInit | null): boolean;\n /**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */\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\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/NavigatorPlugins/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 * Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node)\n */\ninterface Node extends EventTarget {\n /**\n * Returns node\'s node document\'s document base URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI)\n */\n readonly baseURI: string;\n /**\n * Returns the children.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes)\n */\n readonly childNodes: NodeListOf<ChildNode>;\n /**\n * Returns the first child.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild)\n */\n readonly firstChild: ChildNode | null;\n /**\n * Returns true if node is connected and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected)\n */\n readonly isConnected: boolean;\n /**\n * Returns the last child.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild)\n */\n readonly lastChild: ChildNode | null;\n /**\n * Returns the next sibling.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)\n */\n readonly nextSibling: ChildNode | null;\n /**\n * Returns a string appropriate for the type of node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName)\n */\n readonly nodeName: string;\n /**\n * Returns the type of node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType)\n */\n readonly nodeType: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) */\n nodeValue: string | null;\n /**\n * Returns the node document. Returns null for documents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument)\n */\n readonly ownerDocument: Document | null;\n /**\n * Returns the parent element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement)\n */\n readonly parentElement: HTMLElement | null;\n /**\n * Returns the parent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode)\n */\n readonly parentNode: ParentNode | null;\n /**\n * Returns the previous sibling.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling)\n */\n readonly previousSibling: ChildNode | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent) */\n textContent: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild) */\n appendChild<T extends Node>(node: T): T;\n /**\n * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode)\n */\n cloneNode(deep?: boolean): Node;\n /**\n * Returns a bitmask indicating the position of other relative to node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition)\n */\n compareDocumentPosition(other: Node): number;\n /**\n * Returns true if other is an inclusive descendant of node, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains)\n */\n contains(other: Node | null): boolean;\n /**\n * Returns node\'s root.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode)\n */\n getRootNode(options?: GetRootNodeOptions): Node;\n /**\n * Returns whether node has children.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes)\n */\n hasChildNodes(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) */\n insertBefore<T extends Node>(node: T, child: Node | null): T;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) */\n isDefaultNamespace(namespace: string | null): boolean;\n /**\n * Returns whether node and otherNode have the same properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode)\n */\n isEqualNode(otherNode: Node | null): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) */\n isSameNode(otherNode: Node | null): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) */\n lookupNamespaceURI(prefix: string | null): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) */\n lookupPrefix(namespace: string | null): string | null;\n /**\n * Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize)\n */\n normalize(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild) */\n removeChild<T extends Node>(child: T): T;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) */\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 * An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator)\n */\ninterface NodeIterator {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter) */\n readonly filter: NodeFilter | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode) */\n readonly pointerBeforeReferenceNode: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode) */\n readonly referenceNode: Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/root) */\n readonly root: Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow) */\n readonly whatToShow: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/detach)\n */\n detach(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode) */\n nextNode(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/previousNode) */\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 * Returns the number of nodes in the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length)\n */\n readonly length: number;\n /**\n * Returns the node with index index from the collection. The nodes are sorted in tree order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item)\n */\n item(index: number): Node | null;\n /**\n * Performs the specified action for each node in an list.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;\n [index: number]: Node;\n}\n\ndeclare var NodeList: {\n prototype: NodeList;\n new(): NodeList;\n};\n\ninterface NodeListOf<TNode extends Node> extends NodeList {\n item(index: number): TNode;\n /**\n * Performs the specified action for each node in an list.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;\n [index: number]: TNode;\n}\n\ninterface NonDocumentTypeChildNode {\n /**\n * Returns the first following sibling that is an element, and null otherwise.\n *\n * [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 * This Notifications API interface 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */\n readonly badge: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */\n readonly body: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */\n readonly data: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */\n readonly dir: NotificationDirection;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */\n readonly icon: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */\n readonly requireInteraction: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */\n readonly silent: boolean | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */\n readonly tag: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */\n readonly title: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */\n readonly permission: NotificationPermission;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static) */\n requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */\ninterface OES_draw_buffers_indexed {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */\n blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */\n blendEquationiOES(buf: GLuint, mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */\n blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */\n blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */\n colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */\n disableiOES(target: GLenum, index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */\ninterface OES_vertex_array_object {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */\n createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */\ninterface OVR_multiview2 {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */\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. The complete event implements this interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent)\n */\ninterface OfflineAudioCompletionEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer) */\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 * An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn\'t render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext)\n */\ninterface OfflineAudioContext extends BaseAudioContext {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/length) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume) */\n resume(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/startRendering) */\n startRendering(): Promise<AudioBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/suspend) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */\ninterface OffscreenCanvas extends EventTarget {\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)\n */\n height: number;\n oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;\n oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)\n */\n width: number;\n /**\n * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.\n *\n * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn\'t supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)\n */\n convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n /**\n * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.\n *\n * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]\n *\n * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).\n *\n * [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 * Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.\n *\n * [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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */\ninterface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {\n readonly canvas: OffscreenCanvas;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */\n commit(): void;\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. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode)\n */\ninterface OscillatorNode extends AudioScheduledSourceNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/detune) */\n readonly detune: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/frequency) */\n readonly frequency: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/type) */\n type: OscillatorType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/setPeriodicWave) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) */\ninterface OverconstrainedError extends DOMException {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) */\n readonly constraint: string;\n}\n\ndeclare var OverconstrainedError: {\n prototype: OverconstrainedError;\n new(constraint: string, message?: string): OverconstrainedError;\n};\n\n/**\n * The PageTransitionEvent is 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 * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.\n *\n * For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.\n *\n * Things that can cause the page to be unsalvageable include:\n *\n * The user agent decided to not keep the Document alive in a session history entry after unload\n * Having iframes that are not salvageable\n * Active WebSocket objects\n * Aborting a Document\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 * A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can\'t have panning effects without at least two audio channels!\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode)\n */\ninterface PannerNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneInnerAngle) */\n coneInnerAngle: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterAngle) */\n coneOuterAngle: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterGain) */\n coneOuterGain: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/distanceModel) */\n distanceModel: DistanceModelType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/maxDistance) */\n maxDistance: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationX) */\n readonly orientationX: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationY) */\n readonly orientationY: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationZ) */\n readonly orientationZ: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/panningModel) */\n panningModel: PanningModelType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionX) */\n readonly positionX: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionY) */\n readonly positionY: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionZ) */\n readonly positionZ: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/refDistance) */\n refDistance: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/rolloffFactor) */\n rolloffFactor: number;\n /**\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 * @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 * This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)\n */\ninterface Path2D extends CanvasPath {\n /**\n * Adds to the path the path given by the argument.\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent)\n */\ninterface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */\n readonly methodDetails: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodName) */\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": Event;\n}\n\n/**\n * This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest)\n */\ninterface PaymentRequest extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */\n onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */\n abort(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */\n canMakePayment(): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/show) */\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): PaymentRequest;\n};\n\n/**\n * This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent)\n */\ninterface PaymentRequestUpdateEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent/updateWith) */\n updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n prototype: PaymentRequestUpdateEvent;\n new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\n/**\n * This Payment Request API interface 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */\n readonly details: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */\n readonly methodName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */\n readonly requestId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */\n complete(result?: PaymentComplete): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */\n retry(errorFields?: PaymentValidationErrors): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PaymentResponse: {\n prototype: PaymentResponse;\n new(): PaymentResponse;\n};\n\ninterface PerformanceEventMap {\n "resourcetimingbufferfull": Event;\n}\n\n/**\n * Provides access to performance-related information for the current page. It\'s part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.\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/eventCounts) */\n readonly eventCounts: EventCounts;\n /**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */\n readonly timeOrigin: DOMHighResTimeStamp;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timing)\n */\n readonly timing: PerformanceTiming;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */\n clearMarks(markName?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */\n clearMeasures(measureName?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */\n clearResourceTimings(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */\n getEntries(): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */\n getEntriesByType(type: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */\n now(): DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */\n setResourceTimingBufferSize(maxSize: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */\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 * Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)\n */\ninterface PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */\n readonly duration: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */\n readonly entryType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */\n readonly startTime: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming) */\ninterface PerformanceEventTiming extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable) */\n readonly cancelable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingEnd) */\n readonly processingEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingStart) */\n readonly processingStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/target) */\n readonly target: Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceEventTiming: {\n prototype: PerformanceEventTiming;\n new(): PerformanceEventTiming;\n};\n\n/**\n * PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)\n */\ninterface PerformanceMark extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */\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 entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)\n */\ninterface PerformanceMeasure extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */\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 * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/redirectCount)\n */\n readonly redirectCount: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/type)\n */\n readonly type: number;\n /**\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 * Provides methods and properties to store and retrieve metrics regarding the browser\'s document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming)\n */\ninterface PerformanceNavigationTiming extends PerformanceResourceTiming {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domComplete) */\n readonly domComplete: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd) */\n readonly domContentLoadedEventEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart) */\n readonly domContentLoadedEventStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domInteractive) */\n readonly domInteractive: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd) */\n readonly loadEventEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventStart) */\n readonly loadEventStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/redirectCount) */\n readonly redirectCount: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type) */\n readonly type: NavigationTimingType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd) */\n readonly unloadEventEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart) */\n readonly unloadEventStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceNavigationTiming: {\n prototype: PerformanceNavigationTiming;\n new(): PerformanceNavigationTiming;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */\ninterface PerformanceObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */\n observe(options?: PerformanceObserverInit): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */\ninterface PerformanceObserverEntryList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */\n getEntries(): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming) */\ninterface PerformancePaintTiming extends PerformanceEntry {\n}\n\ndeclare var PerformancePaintTiming: {\n prototype: PerformancePaintTiming;\n new(): PerformancePaintTiming;\n};\n\n/**\n * Enables retrieval and analysis of detailed network timing data regarding the loading of an application\'s resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)\n */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */\n readonly connectEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */\n readonly connectStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */\n readonly decodedBodySize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */\n readonly domainLookupEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */\n readonly domainLookupStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */\n readonly encodedBodySize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */\n readonly fetchStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */\n readonly initiatorType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */\n readonly nextHopProtocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */\n readonly redirectEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */\n readonly redirectStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */\n readonly requestStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */\n readonly responseEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */\n readonly responseStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */\n readonly secureConnectionStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */\n readonly transferSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */\n readonly workerStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */\ninterface PerformanceServerTiming {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */\n readonly description: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */\n readonly duration: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\n/**\n * A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.\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 * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectEnd)\n */\n readonly connectEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectStart)\n */\n readonly connectStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domComplete)\n */\n readonly domComplete: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)\n */\n readonly domContentLoadedEventEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)\n */\n readonly domContentLoadedEventStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domInteractive)\n */\n readonly domInteractive: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domLoading)\n */\n readonly domLoading: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupEnd)\n */\n readonly domainLookupEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupStart)\n */\n readonly domainLookupStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/fetchStart)\n */\n readonly fetchStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventEnd)\n */\n readonly loadEventEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventStart)\n */\n readonly loadEventStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/navigationStart)\n */\n readonly navigationStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectEnd)\n */\n readonly redirectEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectStart)\n */\n readonly redirectStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/requestStart)\n */\n readonly requestStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseEnd)\n */\n readonly responseEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseStart)\n */\n readonly responseStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/secureConnectionStart)\n */\n readonly secureConnectionStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventEnd)\n */\n readonly unloadEventEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventStart)\n */\n readonly unloadEventStart: number;\n /**\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 * PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave().\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */\ninterface PermissionStatus extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */\ninterface Permissions {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent) */\ninterface PictureInPictureEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow) */\ninterface PictureInPictureWindow extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/height) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width) */\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 * 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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/description)\n */\n readonly description: string;\n /**\n * Returns the plugin library\'s filename, if applicable on the current platform.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/filename)\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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/name)\n */\n readonly name: string;\n /**\n * Returns the specified MimeType object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/item)\n */\n item(index: number): MimeType | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/namedItem)\n */\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 * Used to store a list of Plugin objects describing the available plugins; it\'s returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray)\n */\ninterface PluginArray {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/length)\n */\n readonly length: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/item)\n */\n item(index: number): Plugin | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/namedItem)\n */\n namedItem(name: string): Plugin | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/refresh)\n */\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 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height) */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */\n readonly isPrimary: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerId) */\n readonly pointerId: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerType) */\n readonly pointerType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pressure) */\n readonly pressure: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tangentialPressure) */\n readonly tangentialPressure: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltX) */\n readonly tiltX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltY) */\n readonly tiltY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/twist) */\n readonly twist: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/width) */\n readonly width: number;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents)\n */\n getCoalescedEvents(): PointerEvent[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents) */\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 event handler for the popstate event on the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)\n */\ninterface PopStateEvent extends Event {\n /**\n * Returns a copy of the information that was provided to pushState() or replaceState().\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 * A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don\'t recognize them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)\n */\ninterface ProcessingInstruction extends CharacterData, LinkStyle {\n readonly ownerDocument: Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target) */\n readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n prototype: ProcessingInstruction;\n new(): ProcessingInstruction;\n};\n\n/**\n * Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)\n */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */\n readonly lengthComputable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */\n readonly loaded: number;\n readonly target: T | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */\ninterface PromiseRejectionEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */\n readonly promise: Promise<any>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential)\n */\ninterface PublicKeyCredential extends Credential {\n readonly authenticatorAttachment: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */\n readonly rawId: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response) */\n readonly response: AuthenticatorResponse;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */\n getClientExtensionResults(): AuthenticationExtensionsClientOutputs;\n}\n\ndeclare var PublicKeyCredential: {\n prototype: PublicKeyCredential;\n new(): PublicKeyCredential;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable) */\n isConditionalMediationAvailable(): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */\n isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;\n};\n\n/**\n * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)\n */\ninterface PushManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */\n getSubscription(): Promise<PushSubscription | null>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)\n */\ninterface PushSubscription {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */\n readonly endpoint: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */\n readonly expirationTime: EpochTimeStamp | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */\n readonly options: PushSubscriptionOptions;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */\n toJSON(): PushSubscriptionJSON;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)\n */\ninterface PushSubscriptionOptions {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */\n readonly applicationServerKey: ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */\n readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate) */\ninterface RTCCertificate {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/expires) */\n readonly expires: EpochTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/getFingerprints) */\n getFingerprints(): RTCDtlsFingerprint[];\n}\n\ndeclare var RTCCertificate: {\n prototype: RTCCertificate;\n new(): RTCCertificate;\n};\n\ninterface RTCDTMFSenderEventMap {\n "tonechange": RTCDTMFToneChangeEvent;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender) */\ninterface RTCDTMFSender extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/canInsertDTMF) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer) */\n readonly toneBuffer: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/insertDTMF) */\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 * Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent)\n */\ninterface RTCDTMFToneChangeEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent/tone) */\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": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel) */\ninterface RTCDataChannel extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) */\n binaryType: BinaryType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) */\n readonly bufferedAmount: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) */\n bufferedAmountLowThreshold: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) */\n readonly id: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) */\n readonly label: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) */\n readonly maxPacketLifeTime: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) */\n readonly maxRetransmits: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) */\n readonly ordered: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) */\n readonly protocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) */\n readonly readyState: RTCDataChannelState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) */\n send(data: string): void;\n send(data: Blob): void;\n send(data: ArrayBuffer): void;\n send(data: ArrayBufferView): void;\n addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDataChannel: {\n prototype: RTCDataChannel;\n new(): RTCDataChannel;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent) */\ninterface RTCDataChannelEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent/channel) */\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": Event;\n "statechange": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport) */\ninterface RTCDtlsTransport extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */\n readonly iceTransport: RTCIceTransport;\n onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/statechange_event) */\n onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */\n readonly state: RTCDtlsTransportState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */\ninterface RTCEncodedAudioFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */\n getMetadata(): RTCEncodedAudioFrameMetadata;\n}\n\ndeclare var RTCEncodedAudioFrame: {\n prototype: RTCEncodedAudioFrame;\n new(): RTCEncodedAudioFrame;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */\ninterface RTCEncodedVideoFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */\n readonly type: RTCEncodedVideoFrameType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */\n getMetadata(): RTCEncodedVideoFrameMetadata;\n}\n\ndeclare var RTCEncodedVideoFrame: {\n prototype: RTCEncodedVideoFrame;\n new(): RTCEncodedVideoFrame;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError) */\ninterface RTCError extends DOMException {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/errorDetail) */\n readonly errorDetail: RTCErrorDetailType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/receivedAlert) */\n readonly receivedAlert: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sctpCauseCode) */\n readonly sctpCauseCode: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sdpLineNumber) */\n readonly sdpLineNumber: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sentAlert) */\n readonly sentAlert: number | null;\n}\n\ndeclare var RTCError: {\n prototype: RTCError;\n new(init: RTCErrorInit, message?: string): RTCError;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent) */\ninterface RTCErrorEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent/error) */\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 Internet 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/address) */\n readonly address: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/candidate) */\n readonly candidate: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/component) */\n readonly component: RTCIceComponent | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/foundation) */\n readonly foundation: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/port) */\n readonly port: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/priority) */\n readonly priority: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/protocol) */\n readonly protocol: RTCIceProtocol | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedAddress) */\n readonly relatedAddress: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedPort) */\n readonly relatedPort: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMLineIndex) */\n readonly sdpMLineIndex: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMid) */\n readonly sdpMid: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/tcpType) */\n readonly tcpType: RTCIceTcpCandidateType | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/type) */\n readonly type: RTCIceCandidateType | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/usernameFragment) */\n readonly usernameFragment: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/toJSON) */\n toJSON(): RTCIceCandidateInit;\n}\n\ndeclare var RTCIceCandidate: {\n prototype: RTCIceCandidate;\n new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;\n};\n\ninterface RTCIceTransportEventMap {\n "gatheringstatechange": Event;\n "selectedcandidatepairchange": Event;\n "statechange": Event;\n}\n\n/**\n * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringState) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state) */\n readonly state: RTCIceTransportState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/getSelectedCandidatePair) */\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 * A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it\'s no longer needed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection)\n */\ninterface RTCPeerConnection extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates) */\n readonly canTrickleIceCandidates: boolean | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionState) */\n readonly connectionState: RTCPeerConnectionState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentLocalDescription) */\n readonly currentLocalDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentRemoteDescription) */\n readonly currentRemoteDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceConnectionState) */\n readonly iceConnectionState: RTCIceConnectionState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceGatheringState) */\n readonly iceGatheringState: RTCIceGatheringState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/localDescription) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription) */\n readonly pendingLocalDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingRemoteDescription) */\n readonly pendingRemoteDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/remoteDescription) */\n readonly remoteDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/sctp) */\n readonly sctp: RTCSctpTransport | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState) */\n readonly signalingState: RTCSignalingState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate) */\n addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;\n /** @deprecated */\n addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack) */\n addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver) */\n addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createAnswer) */\n createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createDataChannel) */\n createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createOffer) */\n createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getConfiguration) */\n getConfiguration(): RTCConfiguration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getReceivers) */\n getReceivers(): RTCRtpReceiver[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getSenders) */\n getSenders(): RTCRtpSender[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getStats) */\n getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getTransceivers) */\n getTransceivers(): RTCRtpTransceiver[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/removeTrack) */\n removeTrack(sender: RTCRtpSender): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/restartIce) */\n restartIce(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setConfiguration) */\n setConfiguration(configuration?: RTCConfiguration): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setLocalDescription) */\n setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;\n /** @deprecated */\n setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setRemoteDescription) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static) */\n generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent) */\ninterface RTCPeerConnectionIceErrorEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address) */\n readonly address: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */\n readonly errorCode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */\n readonly errorText: string;\n readonly port: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */\n readonly url: string;\n}\n\ndeclare var RTCPeerConnectionIceErrorEvent: {\n prototype: RTCPeerConnectionIceErrorEvent;\n new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;\n};\n\n/**\n * Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent)\n */\ninterface RTCPeerConnectionIceEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent/candidate) */\n readonly candidate: RTCIceCandidate | null;\n}\n\ndeclare var RTCPeerConnectionIceEvent: {\n prototype: RTCPeerConnectionIceEvent;\n new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;\n};\n\n/**\n * This WebRTC API interface 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */\n readonly track: MediaStreamTrack;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */\n transform: RTCRtpTransform | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport) */\n readonly transport: RTCDtlsTransport | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources) */\n getContributingSources(): RTCRtpContributingSource[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters) */\n getParameters(): RTCRtpReceiveParameters;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats) */\n getStats(): Promise<RTCStatsReport>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources) */\n getSynchronizationSources(): RTCRtpSynchronizationSource[];\n}\n\ndeclare var RTCRtpReceiver: {\n prototype: RTCRtpReceiver;\n new(): RTCRtpReceiver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static) */\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransform) */\ninterface RTCRtpScriptTransform {\n}\n\ndeclare var RTCRtpScriptTransform: {\n prototype: RTCRtpScriptTransform;\n new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform;\n};\n\n/**\n * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/dtmf) */\n readonly dtmf: RTCDTMFSender | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track) */\n readonly track: MediaStreamTrack | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform) */\n transform: RTCRtpTransform | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport) */\n readonly transport: RTCDtlsTransport | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters) */\n getParameters(): RTCRtpSendParameters;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getStats) */\n getStats(): Promise<RTCStatsReport>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack) */\n replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters) */\n setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams) */\n setStreams(...streams: MediaStream[]): void;\n}\n\ndeclare var RTCRtpSender: {\n prototype: RTCRtpSender;\n new(): RTCRtpSender;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static) */\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver) */\ninterface RTCRtpTransceiver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/currentDirection) */\n readonly currentDirection: RTCRtpTransceiverDirection | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/direction) */\n direction: RTCRtpTransceiverDirection;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/mid) */\n readonly mid: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/receiver) */\n readonly receiver: RTCRtpReceiver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */\n readonly sender: RTCRtpSender;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */\n setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */\n stop(): void;\n}\n\ndeclare var RTCRtpTransceiver: {\n prototype: RTCRtpTransceiver;\n new(): RTCRtpTransceiver;\n};\n\ninterface RTCSctpTransportEventMap {\n "statechange": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport) */\ninterface RTCSctpTransport extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxChannels) */\n readonly maxChannels: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize) */\n readonly maxMessageSize: number;\n onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state) */\n readonly state: RTCSctpTransportState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/transport) */\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 * One end of a connection—or potential connection—and how it\'s configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription)\n */\ninterface RTCSessionDescription {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/sdp) */\n readonly sdp: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type) */\n readonly type: RTCSdpType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON) */\n toJSON(): any;\n}\n\ndeclare var RTCSessionDescription: {\n prototype: RTCSessionDescription;\n new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent) */\ninterface RTCTrackEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver) */\n readonly receiver: RTCRtpReceiver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/streams) */\n readonly streams: ReadonlyArray<MediaStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/track) */\n readonly track: MediaStreamTrack;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/transceiver) */\n readonly transceiver: RTCRtpTransceiver;\n}\n\ndeclare var RTCTrackEvent: {\n prototype: RTCTrackEvent;\n new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList) */\ninterface RadioNodeList extends NodeList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value) */\n value: string;\n}\n\ndeclare var RadioNodeList: {\n prototype: RadioNodeList;\n new(): RadioNodeList;\n};\n\n/**\n * 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 * Returns the node, furthest away from the document, that is an ancestor of both range\'s start node and end node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)\n */\n readonly commonAncestorContainer: Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneContents) */\n cloneContents(): DocumentFragment;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneRange) */\n cloneRange(): Range;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/collapse) */\n collapse(toStart?: boolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints) */\n compareBoundaryPoints(how: number, sourceRange: Range): number;\n /**\n * Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/comparePoint)\n */\n comparePoint(node: Node, offset: number): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */\n createContextualFragment(fragment: string): DocumentFragment;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */\n deleteContents(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */\n detach(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/extractContents) */\n extractContents(): DocumentFragment;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect) */\n getBoundingClientRect(): DOMRect;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getClientRects) */\n getClientRects(): DOMRectList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/insertNode) */\n insertNode(node: Node): void;\n /**\n * Returns whether range intersects node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode)\n */\n intersectsNode(node: Node): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange) */\n isPointInRange(node: Node, offset: number): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNode) */\n selectNode(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents) */\n selectNodeContents(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEnd) */\n setEnd(node: Node, offset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter) */\n setEndAfter(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore) */\n setEndBefore(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStart) */\n setStart(node: Node, offset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter) */\n setStartAfter(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore) */\n setStartBefore(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/surroundContents) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */\ninterface ReadableByteStreamController {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */\n readonly byobRequest: ReadableStreamBYOBRequest | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */\n enqueue(chunk: ArrayBufferView): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */\n error(e?: any): void;\n}\n\ndeclare var ReadableByteStreamController: {\n prototype: ReadableByteStreamController;\n new(): ReadableByteStreamController;\n};\n\n/**\n * This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)\n */\ninterface ReadableStream<R = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */\n readonly locked: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */\n cancel(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */\n getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;\n getReader(): ReadableStreamDefaultReader<R>;\n getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */\n tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */\ninterface ReadableStreamBYOBReader extends ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */\n read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamBYOBReader: {\n prototype: ReadableStreamBYOBReader;\n new(stream: ReadableStream): ReadableStreamBYOBReader;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */\ninterface ReadableStreamBYOBRequest {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */\n readonly view: ArrayBufferView | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */\n respond(bytesWritten: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */\n respondWithNewView(view: ArrayBufferView): void;\n}\n\ndeclare var ReadableStreamBYOBRequest: {\n prototype: ReadableStreamBYOBRequest;\n new(): ReadableStreamBYOBRequest;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */\ninterface ReadableStreamDefaultController<R = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */\n enqueue(chunk?: R): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */\n read(): Promise<ReadableStreamReadResult<R>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */\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<undefined>;\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state) */\n readonly state: RemotePlaybackState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability) */\n cancelWatchAvailability(id?: number): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt) */\n prompt(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */\ninterface Report {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */\n readonly body: ReportBody | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */\n readonly url: string;\n toJSON(): any;\n}\n\ndeclare var Report: {\n prototype: Report;\n new(): Report;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */\ninterface ReportBody {\n toJSON(): any;\n}\n\ndeclare var ReportBody: {\n prototype: ReportBody;\n new(): ReportBody;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */\ninterface ReportingObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */\n observe(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */\n takeRecords(): ReportList;\n}\n\ndeclare var ReportingObserver: {\n prototype: ReportingObserver;\n new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;\n};\n\n/**\n * This Fetch API interface represents a resource request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)\n */\ninterface Request extends Body {\n /**\n * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser\'s cache when fetching.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)\n */\n readonly cache: RequestCache;\n /**\n * Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)\n */\n readonly credentials: RequestCredentials;\n /**\n * Returns the kind of resource requested by request, e.g., "document" or "script".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)\n */\n readonly destination: RequestDestination;\n /**\n * Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)\n */\n readonly headers: Headers;\n /**\n * Returns request\'s subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)\n */\n readonly integrity: string;\n /**\n * Returns a boolean indicating whether or not request can outlive the global in which it was created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)\n */\n readonly keepalive: boolean;\n /**\n * Returns request\'s HTTP method, which is "GET" by default.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)\n */\n readonly method: string;\n /**\n * Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)\n */\n readonly mode: RequestMode;\n /**\n * Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)\n */\n readonly redirect: RequestRedirect;\n /**\n * Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global\'s default. This is used during fetching to determine the value of the `Referer` header of the request being made.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)\n */\n readonly referrer: string;\n /**\n * Returns the referrer policy associated with request. This is used during fetching to compute the value of the request\'s referrer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)\n */\n readonly referrerPolicy: ReferrerPolicy;\n /**\n * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)\n */\n readonly signal: AbortSignal;\n /**\n * Returns the URL of request as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)\n */\n readonly url: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo | URL, init?: RequestInit): Request;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver) */\ninterface ResizeObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/observe) */\n observe(target: Element, options?: ResizeObserverOptions): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/unobserve) */\n unobserve(target: Element): void;\n}\n\ndeclare var ResizeObserver: {\n prototype: ResizeObserver;\n new(callback: ResizeObserverCallback): ResizeObserver;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry) */\ninterface ResizeObserverEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/borderBoxSize) */\n readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentBoxSize) */\n readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect) */\n readonly contentRect: DOMRectReadOnly;\n readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target) */\n readonly target: Element;\n}\n\ndeclare var ResizeObserverEntry: {\n prototype: ResizeObserverEntry;\n new(): ResizeObserverEntry;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize) */\ninterface ResizeObserverSize {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/blockSize) */\n readonly blockSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/inlineSize) */\n readonly inlineSize: number;\n}\n\ndeclare var ResizeObserverSize: {\n prototype: ResizeObserverSize;\n new(): ResizeObserverSize;\n};\n\n/**\n * This Fetch API interface represents the response to a request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)\n */\ninterface Response extends Body {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */\n readonly headers: Headers;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */\n readonly ok: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */\n readonly redirected: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */\n readonly status: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */\n readonly statusText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */\n readonly type: ResponseType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */\n readonly url: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */\n error(): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */\n json(data: any, init?: ResponseInit): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */\n redirect(url: string | URL, status?: number): Response;\n};\n\n/**\n * Provides access to the properties of <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 readonly relList: DOMTokenList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */\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 * Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle)\n */\ninterface SVGAngle {\n readonly unitType: number;\n value: number;\n valueAsString: string;\n valueInSpecifiedUnits: number;\n convertToSpecifiedUnits(unitType: number): void;\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_ANGLETYPE_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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateElement) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateMotionElement) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateTransformElement) */\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 * 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 readonly animVal: SVGAngle;\n readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n prototype: SVGAnimatedAngle;\n new(): SVGAnimatedAngle;\n};\n\n/**\n * 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 readonly animVal: boolean;\n baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n prototype: SVGAnimatedBoolean;\n new(): SVGAnimatedBoolean;\n};\n\n/**\n * Used for attributes whose value must be a constant 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 readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n prototype: SVGAnimatedEnumeration;\n new(): SVGAnimatedEnumeration;\n};\n\n/**\n * 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 readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n prototype: SVGAnimatedInteger;\n new(): SVGAnimatedInteger;\n};\n\n/**\n * Used for attributes of basic type <length> which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength)\n */\ninterface SVGAnimatedLength {\n readonly animVal: SVGLength;\n readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n prototype: SVGAnimatedLength;\n new(): SVGAnimatedLength;\n};\n\n/**\n * 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 readonly animVal: SVGLengthList;\n readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n prototype: SVGAnimatedLengthList;\n new(): SVGAnimatedLengthList;\n};\n\n/**\n * Used for attributes of basic type <Number> which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber)\n */\ninterface SVGAnimatedNumber {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n prototype: SVGAnimatedNumber;\n new(): SVGAnimatedNumber;\n};\n\n/**\n * The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList)\n */\ninterface SVGAnimatedNumberList {\n readonly animVal: SVGNumberList;\n readonly baseVal: SVGNumberList;\n}\n\ndeclare var SVGAnimatedNumberList: {\n prototype: SVGAnimatedNumberList;\n new(): SVGAnimatedNumberList;\n};\n\ninterface SVGAnimatedPoints {\n readonly animatedPoints: SVGPointList;\n readonly points: SVGPointList;\n}\n\n/**\n * Used for attributes of type SVGPreserveAspectRatio which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio)\n */\ninterface SVGAnimatedPreserveAspectRatio {\n readonly animVal: SVGPreserveAspectRatio;\n readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n prototype: SVGAnimatedPreserveAspectRatio;\n new(): SVGAnimatedPreserveAspectRatio;\n};\n\n/**\n * Used for attributes of basic SVGRect which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect)\n */\ninterface SVGAnimatedRect {\n readonly animVal: DOMRectReadOnly;\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. You need to create SVG attribute before doing anything else, everything should be declared inside this.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString)\n */\ninterface SVGAnimatedString {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal) */\n readonly animVal: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal) */\n baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n prototype: SVGAnimatedString;\n new(): SVGAnimatedString;\n};\n\n/**\n * Used for 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 readonly animVal: SVGTransformList;\n readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n prototype: SVGAnimatedTransformList;\n new(): SVGAnimatedTransformList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement) */\ninterface SVGAnimationElement extends SVGElement, SVGTests {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement) */\n readonly targetElement: SVGElement | null;\n beginElement(): void;\n beginElementAt(offset: number): void;\n endElement(): void;\n endElementAt(offset: number): void;\n getCurrentTime(): number;\n getSimpleDuration(): number;\n getStartTime(): number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimationElement: {\n prototype: SVGAnimationElement;\n new(): SVGAnimationElement;\n};\n\n/**\n * An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement)\n */\ninterface SVGCircleElement extends SVGGeometryElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cx) */\n readonly cx: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy) */\n readonly cy: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/r) */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/clipPathUnits) */\n readonly clipPathUnits: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/transform) */\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 * 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 readonly amplitude: SVGAnimatedNumber;\n readonly exponent: SVGAnimatedNumber;\n readonly intercept: SVGAnimatedNumber;\n readonly offset: SVGAnimatedNumber;\n readonly slope: SVGAnimatedNumber;\n readonly tableValues: SVGAnimatedNumberList;\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_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 * 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 * 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 readonly ownerSVGElement: SVGSVGElement | null;\n readonly viewportElement: SVGElement | null;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGElement: {\n prototype: SVGElement;\n new(): SVGElement;\n};\n\n/**\n * 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 readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly rx: SVGAnimatedLength;\n readonly ry: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGEllipseElement: {\n prototype: SVGEllipseElement;\n new(): SVGEllipseElement;\n};\n\n/**\n * Corresponds to the <feBlend> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement)\n */\ninterface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\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 * Corresponds to the <feColorMatrix> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement)\n */\ninterface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1) */\n readonly in1: SVGAnimatedString;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type) */\n readonly type: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/values) */\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 * Corresponds to the <feComponentTransfer> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement)\n */\ninterface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEComponentTransferElement: {\n prototype: SVGFEComponentTransferElement;\n new(): SVGFEComponentTransferElement;\n};\n\n/**\n * Corresponds to the <feComposite> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement)\n */\ninterface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly k1: SVGAnimatedNumber;\n readonly k2: SVGAnimatedNumber;\n readonly k3: SVGAnimatedNumber;\n readonly k4: SVGAnimatedNumber;\n readonly operator: SVGAnimatedEnumeration;\n readonly SVG_FECOMPOSITE_OPERATOR_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 * Corresponds to the <feConvolveMatrix> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement)\n */\ninterface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly bias: SVGAnimatedNumber;\n readonly divisor: SVGAnimatedNumber;\n readonly edgeMode: SVGAnimatedEnumeration;\n readonly in1: SVGAnimatedString;\n readonly kernelMatrix: SVGAnimatedNumberList;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly orderX: SVGAnimatedInteger;\n readonly orderY: SVGAnimatedInteger;\n readonly preserveAlpha: SVGAnimatedBoolean;\n readonly targetX: SVGAnimatedInteger;\n readonly targetY: SVGAnimatedInteger;\n readonly SVG_EDGEMODE_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 * Corresponds to the <feDiffuseLighting> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement)\n */\ninterface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly diffuseConstant: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly surfaceScale: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDiffuseLightingElement: {\n prototype: SVGFEDiffuseLightingElement;\n new(): SVGFEDiffuseLightingElement;\n};\n\n/**\n * Corresponds to the <feDisplacementMap> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement)\n */\ninterface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly scale: SVGAnimatedNumber;\n readonly xChannelSelector: SVGAnimatedEnumeration;\n readonly yChannelSelector: SVGAnimatedEnumeration;\n readonly SVG_CHANNEL_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 * Corresponds to the <feDistantLight> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement)\n */\ninterface SVGFEDistantLightElement extends SVGElement {\n readonly azimuth: SVGAnimatedNumber;\n readonly elevation: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDistantLightElement: {\n prototype: SVGFEDistantLightElement;\n new(): SVGFEDistantLightElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement) */\ninterface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly dx: SVGAnimatedNumber;\n readonly dy: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n readonly stdDeviationX: SVGAnimatedNumber;\n readonly stdDeviationY: SVGAnimatedNumber;\n setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDropShadowElement: {\n prototype: SVGFEDropShadowElement;\n new(): SVGFEDropShadowElement;\n};\n\n/**\n * 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 * 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 * 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 * 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 * 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 * Corresponds to the <feGaussianBlur> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement)\n */\ninterface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly stdDeviationX: SVGAnimatedNumber;\n readonly stdDeviationY: SVGAnimatedNumber;\n setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEGaussianBlurElement: {\n prototype: SVGFEGaussianBlurElement;\n new(): SVGFEGaussianBlurElement;\n};\n\n/**\n * 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 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 * 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 * Corresponds to the <feMergeNode> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement)\n */\ninterface SVGFEMergeNodeElement extends SVGElement {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeNodeElement: {\n prototype: SVGFEMergeNodeElement;\n new(): SVGFEMergeNodeElement;\n};\n\n/**\n * Corresponds to the <feMorphology> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement)\n */\ninterface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly operator: SVGAnimatedEnumeration;\n readonly radiusX: SVGAnimatedNumber;\n readonly radiusY: SVGAnimatedNumber;\n readonly SVG_MORPHOLOGY_OPERATOR_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 * Corresponds to the <feOffset> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement)\n */\ninterface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly dx: SVGAnimatedNumber;\n readonly dy: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEOffsetElement: {\n prototype: SVGFEOffsetElement;\n new(): SVGFEOffsetElement;\n};\n\n/**\n * Corresponds to the <fePointLight> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement)\n */\ninterface SVGFEPointLightElement extends SVGElement {\n readonly x: SVGAnimatedNumber;\n readonly y: SVGAnimatedNumber;\n readonly z: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEPointLightElement: {\n prototype: SVGFEPointLightElement;\n new(): SVGFEPointLightElement;\n};\n\n/**\n * Corresponds to the <feSpecularLighting> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement)\n */\ninterface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly specularConstant: SVGAnimatedNumber;\n readonly specularExponent: SVGAnimatedNumber;\n readonly surfaceScale: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpecularLightingElement: {\n prototype: SVGFESpecularLightingElement;\n new(): SVGFESpecularLightingElement;\n};\n\n/**\n * Corresponds to the <feSpotLight> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement)\n */\ninterface SVGFESpotLightElement extends SVGElement {\n readonly limitingConeAngle: SVGAnimatedNumber;\n readonly pointsAtX: SVGAnimatedNumber;\n readonly pointsAtY: SVGAnimatedNumber;\n readonly pointsAtZ: SVGAnimatedNumber;\n readonly specularExponent: SVGAnimatedNumber;\n readonly x: SVGAnimatedNumber;\n readonly y: SVGAnimatedNumber;\n readonly z: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpotLightElement: {\n prototype: SVGFESpotLightElement;\n new(): SVGFESpotLightElement;\n};\n\n/**\n * Corresponds to the <feTile> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement)\n */\ninterface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETileElement: {\n prototype: SVGFETileElement;\n new(): SVGFETileElement;\n};\n\n/**\n * Corresponds to the <feTurbulence> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement)\n */\ninterface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly baseFrequencyX: SVGAnimatedNumber;\n readonly baseFrequencyY: SVGAnimatedNumber;\n readonly numOctaves: SVGAnimatedInteger;\n readonly seed: SVGAnimatedNumber;\n readonly stitchTiles: SVGAnimatedEnumeration;\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_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 * 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 readonly filterUnits: SVGAnimatedEnumeration;\n readonly height: SVGAnimatedLength;\n readonly primitiveUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFilterElement: {\n prototype: SVGFilterElement;\n new(): SVGFilterElement;\n};\n\ninterface SVGFilterPrimitiveStandardAttributes {\n readonly height: SVGAnimatedLength;\n readonly result: SVGAnimatedString;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n}\n\ninterface SVGFitToViewBox {\n /** [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 * 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 readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGForeignObjectElement: {\n prototype: SVGForeignObjectElement;\n new(): SVGForeignObjectElement;\n};\n\n/**\n * 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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement) */\ninterface SVGGeometryElement extends SVGGraphicsElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/pathLength) */\n readonly pathLength: SVGAnimatedNumber;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength) */\n getPointAtLength(distance: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getTotalLength) */\n getTotalLength(): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInFill) */\n isPointInFill(point?: DOMPointInit): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInStroke) */\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 readonly gradientTransform: SVGAnimatedTransformList;\n readonly gradientUnits: SVGAnimatedEnumeration;\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 * 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 readonly transform: SVGAnimatedTransformList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox) */\n getBBox(options?: SVGBoundingBoxOptions): DOMRect;\n getCTM(): DOMMatrix | null;\n getScreenCTM(): DOMMatrix | null;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGraphicsElement: {\n prototype: SVGGraphicsElement;\n new(): SVGGraphicsElement;\n};\n\n/**\n * Corresponds to the <image> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement)\n */\ninterface SVGImageElement extends SVGGraphicsElement, SVGURIReference {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossorigin) */\n crossOrigin: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height) */\n readonly height: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio) */\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/width) */\n readonly width: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/x) */\n readonly x: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/y) */\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 * Correspond to the <length> basic data type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength)\n */\ninterface SVGLength {\n readonly unitType: number;\n value: number;\n valueAsString: string;\n valueInSpecifiedUnits: number;\n convertToSpecifiedUnits(unitType: number): void;\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_LENGTHTYPE_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 defines a list of SVGLength objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList)\n */\ninterface SVGLengthList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGLength): SVGLength;\n clear(): void;\n getItem(index: number): SVGLength;\n initialize(newItem: SVGLength): SVGLength;\n insertItemBefore(newItem: SVGLength, index: number): SVGLength;\n removeItem(index: number): SVGLength;\n replaceItem(newItem: SVGLength, index: number): SVGLength;\n [index: number]: SVGLength;\n}\n\ndeclare var SVGLengthList: {\n prototype: SVGLengthList;\n new(): SVGLengthList;\n};\n\n/**\n * 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 readonly x1: SVGAnimatedLength;\n readonly x2: SVGAnimatedLength;\n readonly y1: SVGAnimatedLength;\n readonly y2: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLineElement: {\n prototype: SVGLineElement;\n new(): SVGLineElement;\n};\n\n/**\n * Corresponds to the <linearGradient> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement)\n */\ninterface SVGLinearGradientElement extends SVGGradientElement {\n readonly x1: SVGAnimatedLength;\n readonly x2: SVGAnimatedLength;\n readonly y1: SVGAnimatedLength;\n readonly y2: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLinearGradientElement: {\n prototype: SVGLinearGradientElement;\n new(): SVGLinearGradientElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMPathElement) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement) */\ninterface SVGMarkerElement extends SVGElement, SVGFitToViewBox {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerHeight) */\n readonly markerHeight: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerUnits) */\n readonly markerUnits: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerWidth) */\n readonly markerWidth: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientAngle) */\n readonly orientAngle: SVGAnimatedAngle;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientType) */\n readonly orientType: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refX) */\n readonly refX: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refY) */\n readonly refY: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAngle) */\n setOrientToAngle(angle: SVGAngle): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAuto) */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/height) */\n readonly height: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskContentUnits) */\n readonly maskContentUnits: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskUnits) */\n readonly maskUnits: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/width) */\n readonly width: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/x) */\n readonly x: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */\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 * 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 * Corresponds to the <number> basic data type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber)\n */\ninterface SVGNumber {\n value: number;\n}\n\ndeclare var SVGNumber: {\n prototype: SVGNumber;\n new(): SVGNumber;\n};\n\n/**\n * The SVGNumberList defines a list of SVGNumber objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList)\n */\ninterface SVGNumberList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGNumber): SVGNumber;\n clear(): void;\n getItem(index: number): SVGNumber;\n initialize(newItem: SVGNumber): SVGNumber;\n insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;\n removeItem(index: number): SVGNumber;\n replaceItem(newItem: SVGNumber, index: number): SVGNumber;\n [index: number]: SVGNumber;\n}\n\ndeclare var SVGNumberList: {\n prototype: SVGNumberList;\n new(): SVGNumberList;\n};\n\n/**\n * Corresponds to the <path> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement)\n */\ninterface SVGPathElement extends SVGGeometryElement {\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 * 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 readonly height: SVGAnimatedLength;\n readonly patternContentUnits: SVGAnimatedEnumeration;\n readonly patternTransform: SVGAnimatedTransformList;\n readonly patternUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPatternElement: {\n prototype: SVGPatternElement;\n new(): SVGPatternElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList) */\ninterface SVGPointList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/numberOfItems) */\n readonly numberOfItems: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem) */\n appendItem(newItem: DOMPoint): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/clear) */\n clear(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem) */\n getItem(index: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize) */\n initialize(newItem: DOMPoint): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore) */\n insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem) */\n removeItem(index: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem) */\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 * 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 * 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 * Corresponds to the preserveAspectRatio attribute, which is available for some of SVG\'s elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio)\n */\ninterface SVGPreserveAspectRatio {\n align: number;\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 * Corresponds to the <RadialGradient> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement)\n */\ninterface SVGRadialGradientElement extends SVGGradientElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly fr: SVGAnimatedLength;\n readonly fx: SVGAnimatedLength;\n readonly fy: SVGAnimatedLength;\n readonly r: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRadialGradientElement: {\n prototype: SVGRadialGradientElement;\n new(): SVGRadialGradientElement;\n};\n\n/**\n * 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 readonly height: SVGAnimatedLength;\n readonly rx: SVGAnimatedLength;\n readonly ry: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRectElement: {\n prototype: SVGRectElement;\n new(): SVGRectElement;\n};\n\ninterface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {\n}\n\n/**\n * Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement)\n */\ninterface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {\n currentScale: number;\n readonly currentTranslate: DOMPointReadOnly;\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n animationsPaused(): boolean;\n checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;\n checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;\n createSVGAngle(): SVGAngle;\n createSVGLength(): SVGLength;\n createSVGMatrix(): DOMMatrix;\n createSVGNumber(): SVGNumber;\n createSVGPoint(): DOMPoint;\n createSVGRect(): DOMRect;\n createSVGTransform(): SVGTransform;\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n deselectAll(): void;\n /** @deprecated */\n forceRedraw(): void;\n getCurrentTime(): number;\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 pauseAnimations(): void;\n setCurrentTime(seconds: number): void;\n /** @deprecated */\n suspendRedraw(maxWaitMilliseconds: number): number;\n unpauseAnimations(): void;\n /** @deprecated */\n unsuspendRedraw(suspendHandleID: number): void;\n /** @deprecated */\n unsuspendRedrawAll(): void;\n addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSVGElement: {\n prototype: SVGSVGElement;\n new(): SVGSVGElement;\n};\n\n/**\n * 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 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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSetElement) */\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 * Corresponds to the <stop> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement)\n */\ninterface SVGStopElement extends SVGElement {\n readonly offset: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStopElement: {\n prototype: SVGStopElement;\n new(): SVGStopElement;\n};\n\n/**\n * The SVGStringList defines a list of DOMString objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList)\n */\ninterface SVGStringList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: string): string;\n clear(): void;\n getItem(index: number): string;\n initialize(newItem: string): string;\n insertItemBefore(newItem: string, index: number): string;\n removeItem(index: number): string;\n replaceItem(newItem: string, index: number): string;\n [index: number]: string;\n}\n\ndeclare var SVGStringList: {\n prototype: SVGStringList;\n new(): SVGStringList;\n};\n\n/**\n * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/media) */\n media: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/title) */\n title: string;\n /**\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 * 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 * 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 * 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 readonly requiredExtensions: SVGStringList;\n readonly systemLanguage: SVGStringList;\n}\n\n/**\n * Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement)\n */\ninterface SVGTextContentElement extends SVGGraphicsElement {\n readonly lengthAdjust: SVGAnimatedEnumeration;\n readonly textLength: SVGAnimatedLength;\n getCharNumAtPosition(point?: DOMPointInit): number;\n getComputedTextLength(): number;\n getEndPositionOfChar(charnum: number): DOMPoint;\n getExtentOfChar(charnum: number): DOMRect;\n getNumberOfChars(): number;\n getRotationOfChar(charnum: number): number;\n getStartPositionOfChar(charnum: number): DOMPoint;\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 * 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 * Corresponds to the <textPath> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement)\n */\ninterface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {\n readonly method: SVGAnimatedEnumeration;\n readonly spacing: SVGAnimatedEnumeration;\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 * Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement)\n */\ninterface SVGTextPositioningElement extends SVGTextContentElement {\n readonly dx: SVGAnimatedLengthList;\n readonly dy: SVGAnimatedLengthList;\n readonly rotate: SVGAnimatedNumberList;\n readonly x: SVGAnimatedLengthList;\n readonly y: SVGAnimatedLengthList;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPositioningElement: {\n prototype: SVGTextPositioningElement;\n new(): SVGTextPositioningElement;\n};\n\n/**\n * 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 * SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform)\n */\ninterface SVGTransform {\n readonly angle: number;\n readonly matrix: DOMMatrix;\n readonly type: number;\n setMatrix(matrix?: DOMMatrix2DInit): void;\n setRotate(angle: number, cx: number, cy: number): void;\n setScale(sx: number, sy: number): void;\n setSkewX(angle: number): void;\n setSkewY(angle: number): void;\n setTranslate(tx: number, ty: number): void;\n readonly SVG_TRANSFORM_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 defines a list of SVGTransform objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList)\n */\ninterface SVGTransformList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGTransform): SVGTransform;\n clear(): void;\n consolidate(): SVGTransform | null;\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n getItem(index: number): SVGTransform;\n initialize(newItem: SVGTransform): SVGTransform;\n insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;\n removeItem(index: number): SVGTransform;\n replaceItem(newItem: SVGTransform, index: number): SVGTransform;\n [index: number]: SVGTransform;\n}\n\ndeclare var SVGTransformList: {\n prototype: SVGTransformList;\n new(): SVGTransformList;\n};\n\ninterface SVGURIReference {\n readonly href: SVGAnimatedString;\n}\n\n/**\n * 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 * Corresponds to the <use> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement)\n */\ninterface SVGUseElement extends SVGGraphicsElement, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: 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 * 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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availHeight) */\n readonly availHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availWidth) */\n readonly availWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth) */\n readonly colorDepth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/height) */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/orientation) */\n readonly orientation: ScreenOrientation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth) */\n readonly pixelDepth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/width) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation) */\ninterface ScreenOrientation extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) */\n readonly angle: number;\n onchange: ((this: ScreenOrientation, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */\n readonly type: OrientationType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */\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 * 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 * @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 * Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)\n */\ninterface SecurityPolicyViolationEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */\n readonly blockedURI: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */\n readonly columnNumber: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */\n readonly disposition: SecurityPolicyViolationEventDisposition;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */\n readonly documentURI: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */\n readonly effectiveDirective: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */\n readonly lineNumber: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */\n readonly originalPolicy: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */\n readonly referrer: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */\n readonly sample: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */\n readonly sourceFile: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */\n readonly statusCode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */\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. To obtain a Selection object for examination or modification, call Window.getSelection().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection)\n */\ninterface Selection {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode) */\n readonly anchorNode: Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */\n readonly anchorOffset: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */\n readonly focusNode: Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */\n readonly focusOffset: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed) */\n readonly isCollapsed: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount) */\n readonly rangeCount: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/type) */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/addRange) */\n addRange(range: Range): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */\n collapse(node: Node | null, offset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd) */\n collapseToEnd(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart) */\n collapseToStart(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/containsNode) */\n containsNode(node: Node, allowPartialContainment?: boolean): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument) */\n deleteFromDocument(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */\n empty(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend) */\n extend(node: Node, offset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt) */\n getRangeAt(index: number): Range;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/modify) */\n modify(alter?: string, direction?: string, granularity?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */\n removeAllRanges(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeRange) */\n removeRange(range: Range): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren) */\n selectAllChildren(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent) */\n setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */\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 * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */\n readonly scriptURL: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */\n readonly state: ServiceWorkerState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */\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 ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)\n */\ninterface ServiceWorkerContainer extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */\n readonly ready: Promise<ServiceWorkerRegistration>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */\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 * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */\n readonly active: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */\n readonly installing: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */\n readonly pushManager: PushManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */\n readonly scope: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */\n readonly waiting: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */\n unregister(): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */\n update(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n prototype: ServiceWorkerRegistration;\n new(): ServiceWorkerRegistration;\n};\n\ninterface ShadowRootEventMap {\n "slotchange": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */\ninterface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */\n readonly delegatesFocus: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */\n readonly host: Element;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */\n readonly mode: ShadowRootMode;\n onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */\n readonly slotAssignment: SlotAssignmentMode;\n /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker) */\ninterface SharedWorker extends EventTarget, AbstractWorker {\n /**\n * Returns sharedWorker\'s MessagePort object which can be used to communicate with the global environment.\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 * A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer)\n */\ninterface SourceBuffer extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowEnd) */\n appendWindowEnd: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowStart) */\n appendWindowStart: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/buffered) */\n readonly buffered: TimeRanges;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode) */\n mode: AppendMode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */\n onabort: ((this: SourceBuffer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */\n onerror: ((this: SourceBuffer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */\n onupdate: ((this: SourceBuffer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */\n onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */\n onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset) */\n timestampOffset: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating) */\n readonly updating: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort) */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendBuffer) */\n appendBuffer(data: BufferSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/changeType) */\n changeType(type: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/remove) */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/addsourcebuffer_event) */\n onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/removesourcebuffer_event) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative) */\ninterface SpeechRecognitionAlternative {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */\n readonly confidence: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */\n readonly transcript: string;\n}\n\ndeclare var SpeechRecognitionAlternative: {\n prototype: SpeechRecognitionAlternative;\n new(): SpeechRecognitionAlternative;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult) */\ninterface SpeechRecognitionResult {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/isFinal) */\n readonly isFinal: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */\n item(index: number): SpeechRecognitionAlternative;\n [index: number]: SpeechRecognitionAlternative;\n}\n\ndeclare var SpeechRecognitionResult: {\n prototype: SpeechRecognitionResult;\n new(): SpeechRecognitionResult;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList) */\ninterface SpeechRecognitionResultList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */\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 * This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused) */\n readonly paused: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending) */\n readonly pending: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speaking) */\n readonly speaking: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/cancel) */\n cancel(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/getVoices) */\n getVoices(): SpeechSynthesisVoice[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pause) */\n pause(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/resume) */\n resume(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speak) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent) */\ninterface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent/error) */\n readonly error: SpeechSynthesisErrorCode;\n}\n\ndeclare var SpeechSynthesisErrorEvent: {\n prototype: SpeechSynthesisErrorEvent;\n new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;\n};\n\n/**\n * This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent)\n */\ninterface SpeechSynthesisEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex) */\n readonly charIndex: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charLength) */\n readonly charLength: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/elapsedTime) */\n readonly elapsedTime: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/utterance) */\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 * This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance)\n */\ninterface SpeechSynthesisUtterance extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/lang) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch) */\n pitch: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/rate) */\n rate: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text) */\n text: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/voice) */\n voice: SpeechSynthesisVoice | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/volume) */\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 * This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice)\n */\ninterface SpeechSynthesisVoice {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default) */\n readonly default: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang) */\n readonly lang: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService) */\n readonly localService: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI) */\n readonly voiceURI: string;\n}\n\ndeclare var SpeechSynthesisVoice: {\n prototype: SpeechSynthesisVoice;\n new(): SpeechSynthesisVoice;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StaticRange) */\ninterface StaticRange extends AbstractRange {\n}\n\ndeclare var StaticRange: {\n prototype: StaticRange;\n new(init: StaticRangeInit): StaticRange;\n};\n\n/**\n * The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode)\n */\ninterface StereoPannerNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode/pan) */\n readonly pan: AudioParam;\n}\n\ndeclare var StereoPannerNode: {\n prototype: StereoPannerNode;\n new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;\n};\n\n/**\n * This Web Storage API interface provides access to a particular domain\'s session or local storage. It allows, for example, the addition, modification, or deletion of stored data items.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage)\n */\ninterface Storage {\n /**\n * Returns the number of key/value pairs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)\n */\n readonly length: number;\n /**\n * Removes all key/value pairs, if there are any.\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)\n */\n clear(): void;\n /**\n * Returns the current value associated with the given key, or null if the given key does not exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)\n */\n getItem(key: string): string | null;\n /**\n * Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)\n */\n key(index: number): string | null;\n /**\n * Removes the key/value pair with the given key, if a key/value pair with the given key exists.\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)\n */\n removeItem(key: string): void;\n /**\n * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.\n *\n * Throws a "QuotaExceededError" DOMException exception if the new value couldn\'t be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\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 * A StorageEvent is sent to a window when a storage area it 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 * Returns the key of the storage item being changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/key)\n */\n readonly key: string | null;\n /**\n * Returns the new value of the key of the storage item whose value is being changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/newValue)\n */\n readonly newValue: string | null;\n /**\n * Returns the old value of the key of the storage item whose value is being changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/oldValue)\n */\n readonly oldValue: string | null;\n /**\n * 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 * Returns the URL of the document whose storage item changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/url)\n */\n readonly url: string;\n /**\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)\n */\ninterface StorageManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */\n estimate(): Promise<StorageEstimate>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */\n getDirectory(): Promise<FileSystemDirectoryHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persist) */\n persist(): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap) */\ninterface StylePropertyMap extends StylePropertyMapReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append) */\n append(property: string, ...values: (CSSStyleValue | string)[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear) */\n clear(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete) */\n delete(property: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set) */\n set(property: string, ...values: (CSSStyleValue | string)[]): void;\n}\n\ndeclare var StylePropertyMap: {\n prototype: StylePropertyMap;\n new(): StylePropertyMap;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */\ninterface StylePropertyMapReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */\n readonly size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */\n get(property: string): undefined | CSSStyleValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */\n getAll(property: string): CSSStyleValue[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */\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 * A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet)\n */\ninterface StyleSheet {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled) */\n disabled: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) */\n readonly href: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) */\n readonly media: MediaList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) */\n readonly ownerNode: Element | ProcessingInstruction | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) */\n readonly parentStyleSheet: CSSStyleSheet | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/title) */\n readonly title: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/type) */\n readonly type: string;\n}\n\ndeclare var StyleSheet: {\n prototype: StyleSheet;\n new(): StyleSheet;\n};\n\n/**\n * A list of StyleSheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList)\n */\ninterface StyleSheetList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item) */\n item(index: number): CSSStyleSheet | null;\n [index: number]: CSSStyleSheet;\n}\n\ndeclare var StyleSheetList: {\n prototype: StyleSheetList;\n new(): StyleSheetList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent) */\ninterface SubmitEvent extends Event {\n /**\n * Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button.\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 * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)\n */\ninterface SubtleCrypto {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */\n generateKey(algorithm: "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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */\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 textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element\'s text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text)\n */\ninterface Text extends CharacterData, Slottable {\n /**\n * Returns the combined data of all direct Text node siblings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText)\n */\n readonly wholeText: string;\n /**\n * Splits data at the given offset and returns the remainder as Text node.\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 * A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)\n */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * Returns the result of running encoding\'s decoder. The method can be invoked zero or more times with options\'s stream set to true, and then once without options\'s stream (or set to false), to process a fragmented input. If the invocation without options\'s stream (or set to false) has no input, it\'s clearest to omit both arguments.\n *\n * ```\n * var string = "", decoder = new TextDecoder(encoding), buffer;\n * while(buffer = next_chunk()) {\n * string += decoder.decode(buffer, {stream:true});\n * }\n * string += decoder.decode(); // end-of-queue\n * ```\n *\n * If the error mode is "fatal" and encoding\'s decoder returns error, throws a TypeError.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */\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 * TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)\n */\ninterface TextEncoder extends TextEncoderCommon {\n /**\n * Returns the result of running UTF-8\'s encoder.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)\n */\n encode(input?: string): Uint8Array;\n /**\n * Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)\n */\n encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /**\n * Returns "utf-8".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)\n */\n readonly encoding: string;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/**\n * The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)\n */\ninterface TextMetrics {\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)\n */\n readonly actualBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)\n */\n readonly actualBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)\n */\n readonly actualBoundingBoxLeft: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)\n */\n readonly actualBoundingBoxRight: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)\n */\n readonly alphabeticBaseline: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)\n */\n readonly emHeightAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)\n */\n readonly emHeightDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)\n */\n readonly fontBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)\n */\n readonly fontBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)\n */\n readonly hangingBaseline: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)\n */\n readonly ideographicBaseline: number;\n /**\n * Returns the measurement described below.\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 * This interface also inherits properties from EventTarget.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack)\n */\ninterface TextTrack extends EventTarget {\n /**\n * Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/activeCues)\n */\n readonly activeCues: TextTrackCueList | null;\n /**\n * Returns the text track list of cues, as a TextTrackCueList object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cues)\n */\n readonly cues: TextTrackCueList | null;\n /**\n * Returns the ID of the given track.\n *\n * For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.\n *\n * For TextTrack objects corresponding to track elements, this is the ID of the track element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/id)\n */\n readonly id: string;\n /**\n * Returns the text track in-band metadata track dispatch type string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)\n */\n readonly inBandMetadataTrackDispatchType: string;\n /**\n * Returns the text track kind string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/kind)\n */\n readonly kind: TextTrackKind;\n /**\n * Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/label)\n */\n readonly label: string;\n /**\n * Returns the text track language string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/language)\n */\n readonly language: string;\n /**\n * Returns the text track mode, represented by a string from the following list:\n *\n * Can be set, to change the mode.\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 * Adds the given cue to textTrack\'s text track list of cues.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/addCue)\n */\n addCue(cue: TextTrackCue): void;\n /**\n * Removes the given cue from textTrack\'s text track 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 * TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)\n */\ninterface TextTrackCue extends EventTarget {\n /**\n * Returns the text track cue end time, in seconds.\n *\n * Can be set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/endTime)\n */\n endTime: number;\n /**\n * Returns the text track cue identifier.\n *\n * Can be set.\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 * Returns true if the text track cue pause-on-exit flag is set, false otherwise.\n *\n * Can be set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/pauseOnExit)\n */\n pauseOnExit: boolean;\n /**\n * Returns the text track cue start time, in seconds.\n *\n * Can be set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/startTime)\n */\n startTime: number;\n /**\n * Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList) */\ninterface TextTrackCueList {\n /**\n * 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 * Returns the first text track cue (in text track cue order) with text track cue identifier id.\n *\n * Returns null if none of the cues have the given identifier or if the argument is the empty string.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList) */\ninterface TextTrackList extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/length) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById) */\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 * Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges)\n */\ninterface TimeRanges {\n /**\n * 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 * Returns the time for the end of the range with the given index.\n *\n * Throws an "IndexSizeError" DOMException if the index is out of range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/end)\n */\n end(index: number): number;\n /**\n * Returns the time for the start of the range with the given index.\n *\n * Throws an "IndexSizeError" DOMException if the index is out of range.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */\ninterface ToggleEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */\n readonly newState: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */\n readonly oldState: string;\n}\n\ndeclare var ToggleEvent: {\n prototype: ToggleEvent;\n new(type: string, eventInitDict?: ToggleEventInit): ToggleEvent;\n};\n\n/**\n * A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch)\n */\ninterface Touch {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientX) */\n readonly clientX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientY) */\n readonly clientY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/force) */\n readonly force: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/identifier) */\n readonly identifier: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageX) */\n readonly pageX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageY) */\n readonly pageY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusX) */\n readonly radiusX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusY) */\n readonly radiusY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/rotationAngle) */\n readonly rotationAngle: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenX) */\n readonly screenX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenY) */\n readonly screenY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/target) */\n readonly target: EventTarget;\n}\n\ndeclare var Touch: {\n prototype: Touch;\n new(touchInitDict: TouchInit): Touch;\n};\n\n/**\n * An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent)\n */\ninterface TouchEvent extends UIEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey) */\n readonly altKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/changedTouches) */\n readonly changedTouches: TouchList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/ctrlKey) */\n readonly ctrlKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/metaKey) */\n readonly metaKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/shiftKey) */\n readonly shiftKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/targetTouches) */\n readonly targetTouches: TouchList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/touches) */\n readonly touches: TouchList;\n}\n\ndeclare var TouchEvent: {\n prototype: TouchEvent;\n new(type: string, eventInitDict?: TouchEventInit): TouchEvent;\n};\n\n/**\n * A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList)\n */\ninterface TouchList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/item) */\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, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent)\n */\ninterface TrackEvent extends Event {\n /**\n * Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */\ninterface TransformStream<I = any, O = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */\n readonly readable: ReadableStream<O>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */\ninterface TransformStreamDefaultController<O = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */\n enqueue(chunk?: O): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */\n error(reason?: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/**\n * Events providing information related to transitions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent)\n */\ninterface TransitionEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime) */\n readonly elapsedTime: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/propertyName) */\n readonly propertyName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/pseudoElement) */\n readonly pseudoElement: string;\n}\n\ndeclare var TransitionEvent: {\n prototype: TransitionEvent;\n new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;\n};\n\n/**\n * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode) */\n currentNode: Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter) */\n readonly filter: NodeFilter | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/root) */\n readonly root: Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow) */\n readonly whatToShow: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild) */\n firstChild(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild) */\n lastChild(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode) */\n nextNode(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling) */\n nextSibling(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode) */\n parentNode(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode) */\n previousNode(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling) */\n previousSibling(): Node | null;\n}\n\ndeclare var TreeWalker: {\n prototype: TreeWalker;\n new(): TreeWalker;\n};\n\n/**\n * Simple user interface events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent)\n */\ninterface UIEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail) */\n readonly detail: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/view) */\n readonly view: Window | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/which)\n */\n readonly which: number;\n /**\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 represents an object providing static methods used for creating object URLs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)\n */\ninterface URL {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */\n hash: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */\n host: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */\n hostname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */\n href: string;\n toString(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */\n password: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */\n pathname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */\n port: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */\n protocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */\n search: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */\n readonly searchParams: URLSearchParams;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */\n username: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */\n canParse(url: string | URL, base?: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */\n createObjectURL(obj: Blob | MediaSource): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */\n revokeObjectURL(url: string): void;\n};\n\ntype webkitURL = URL;\ndeclare var webkitURL: typeof URL;\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */\ninterface URLSearchParams {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */\n readonly size: number;\n /**\n * 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 * Deletes the given search parameter, and its associated value, 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 * 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 * Returns all the values association with a given search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)\n */\n getAll(name: string): string[];\n /**\n * Returns a Boolean indicating if such a search parameter exists.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)\n */\n has(name: string, value?: string): boolean;\n /**\n * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)\n */\n set(name: string, value: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */\n sort(): void;\n /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation) */\ninterface UserActivation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */\n readonly hasBeenActive: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */\n readonly isActive: boolean;\n}\n\ndeclare var UserActivation: {\n prototype: UserActivation;\n new(): UserActivation;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue) */\ninterface VTTCue extends TextTrackCue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/align) */\n align: AlignSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/line) */\n line: LineAndPositionSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/lineAlign) */\n lineAlign: LineAlignSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/position) */\n position: LineAndPositionSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/positionAlign) */\n positionAlign: PositionAlignSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/region) */\n region: VTTRegion | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/size) */\n size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/snapToLines) */\n snapToLines: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/text) */\n text: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/vertical) */\n vertical: DirectionSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/getCueAsHTML) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */\ninterface VTTRegion {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */\n id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */\n lines: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */\n regionAnchorX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */\n regionAnchorY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */\n scroll: ScrollSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */\n viewportAnchorX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */\n viewportAnchorY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */\n width: number;\n}\n\ndeclare var VTTRegion: {\n prototype: VTTRegion;\n new(): VTTRegion;\n};\n\n/**\n * The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element\'s value fails to validate, if it\'s not valid.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState)\n */\ninterface ValidityState {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */\n readonly badInput: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */\n readonly customError: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */\n readonly patternMismatch: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow) */\n readonly rangeOverflow: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow) */\n readonly rangeUnderflow: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch) */\n readonly stepMismatch: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong) */\n readonly tooLong: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort) */\n readonly tooShort: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */\n readonly typeMismatch: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */\n readonly valid: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */\n readonly valueMissing: boolean;\n}\n\ndeclare var ValidityState: {\n prototype: ValidityState;\n new(): ValidityState;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */\ninterface VideoColorSpace {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */\n readonly fullRange: boolean | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */\n readonly matrix: VideoMatrixCoefficients | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */\n readonly primaries: VideoColorPrimaries | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */\n readonly transfer: VideoTransferCharacteristics | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)\n */\ninterface VideoDecoder extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */\n readonly decodeQueueSize: number;\n ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */\n readonly state: CodecState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */\n configure(config: VideoDecoderConfig): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */\n decode(chunk: EncodedVideoChunk): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */\n flush(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */\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 isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;\n};\n\ninterface VideoEncoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)\n */\ninterface VideoEncoder extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */\n readonly encodeQueueSize: number;\n ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */\n readonly state: CodecState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */\n configure(config: VideoEncoderConfig): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */\n encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;\n flush(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */\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 isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */\ninterface VideoFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */\n readonly codedHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */\n readonly codedRect: DOMRectReadOnly | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */\n readonly codedWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */\n readonly colorSpace: VideoColorSpace;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */\n readonly displayHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */\n readonly displayWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */\n readonly duration: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */\n readonly format: VideoPixelFormat | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */\n readonly visibleRect: DOMRectReadOnly | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */\n allocationSize(options?: VideoFrameCopyToOptions): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */\n clone(): VideoFrame;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */\n close(): void;\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 * 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 * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames)\n */\n readonly corruptedVideoFrames: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/creationTime) */\n readonly creationTime: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames) */\n readonly droppedVideoFrames: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/totalVideoFrames) */\n readonly totalVideoFrames: number;\n}\n\ndeclare var VideoPlaybackQuality: {\n prototype: VideoPlaybackQuality;\n new(): VideoPlaybackQuality;\n};\n\ninterface VisualViewportEventMap {\n "resize": Event;\n "scroll": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport) */\ninterface VisualViewport extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/height) */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft) */\n readonly offsetLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetTop) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft) */\n readonly pageLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageTop) */\n readonly pageTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scale) */\n readonly scale: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/width) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */\ninterface WEBGL_compressed_texture_astc {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */\ninterface WEBGL_debug_shaders {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */\ninterface WEBGL_draw_buffers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */\ninterface WEBGL_lose_context {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */\n loseContext(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */\n restoreContext(): void;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */\ninterface WEBGL_multi_draw {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock)\n */\ninterface WakeLock {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock/request) */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released) */\n readonly released: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/type) */\n readonly type: WakeLockType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release) */\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 * A WaveShaperNode always has exactly one input and one output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode)\n */\ninterface WaveShaperNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/curve) */\n curve: Float32Array | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/oversample) */\n oversample: OverSampleType;\n}\n\ndeclare var WaveShaperNode: {\n prototype: WaveShaperNode;\n new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */\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, 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, 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 | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */\n createSampler(): WebGLSampler | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */\n createTransformFeedback(): WebGLTransformFeedback | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */\n createVertexArray(): WebGLVertexArrayObject | null;\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, 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 | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: 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 | 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/WebGLRenderingContext/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, usage: GLenum, srcOffset: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, 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, 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, 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 | null): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: 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 | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: 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 | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: 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/WebGLRenderingContext/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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */\n readonly size: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/**\n * 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 WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)\n */\ninterface WebGLContextEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/**\n * 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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/**\n * Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation.\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 * 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 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/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 | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */\n createFramebuffer(): WebGLFramebuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */\n createProgram(): WebGLProgram | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */\n createRenderbuffer(): WebGLRenderbuffer | null;\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 | null;\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 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): 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): 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 | 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 | 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 | 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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */\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. A WebGLProgram requires both types of shaders.\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */\n readonly precision: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */\n readonly rangeMax: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/**\n * 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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/**\n * 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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */\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/WebGLVertexArrayObjectOES) */\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/**\n * Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)\n */\ninterface WebSocket extends EventTarget {\n /**\n * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n *\n * Can be set, to change how binary data is returned. The default is "blob".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)\n */\n binaryType: BinaryType;\n /**\n * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.\n *\n * If the WebSocket connection is closed, this attribute\'s value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)\n */\n readonly bufferedAmount: number;\n /**\n * Returns the extensions selected by the server, if any.\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 * Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor\'s second argument to perform subprotocol negotiation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)\n */\n readonly protocol: string;\n /**\n * Returns the state of the WebSocket object\'s connection. It can have the values described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the URL that was used to establish the WebSocket connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)\n */\n readonly url: string;\n /**\n * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)\n */\n close(code?: number, reason?: string): void;\n /**\n * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)\n */\ninterface WebTransport {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */\n readonly closed: Promise<WebTransportCloseInfo>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */\n readonly datagrams: WebTransportDatagramDuplexStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */\n readonly incomingBidirectionalStreams: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */\n readonly incomingUnidirectionalStreams: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */\n readonly ready: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */\n close(closeInfo?: WebTransportCloseInfo): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */\n createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)\n */\ninterface WebTransportBidirectionalStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */\n readonly writable: WritableStream;\n}\n\ndeclare var WebTransportBidirectionalStream: {\n prototype: WebTransportBidirectionalStream;\n new(): WebTransportBidirectionalStream;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)\n */\ninterface WebTransportDatagramDuplexStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */\n incomingHighWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */\n incomingMaxAge: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */\n readonly maxDatagramSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */\n outgoingHighWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */\n outgoingMaxAge: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)\n */\ninterface WebTransportError extends DOMException {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */\n readonly source: WebTransportErrorSource;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */\n readonly streamErrorCode: number | null;\n}\n\ndeclare var WebTransportError: {\n prototype: WebTransportError;\n new(message?: string, options?: WebTransportErrorOptions): WebTransportError;\n};\n\n/**\n * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode) */\n readonly deltaMode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaX) */\n readonly deltaX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaY) */\n readonly deltaY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaZ) */\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 * 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 * Returns true if the window has been closed, false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)\n */\n readonly closed: boolean;\n /**\n * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)\n */\n readonly customElements: CustomElementRegistry;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */\n readonly devicePixelRatio: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */\n readonly document: Document;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)\n */\n readonly event: Event | undefined;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)\n */\n readonly external: External;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */\n readonly frameElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */\n readonly frames: WindowProxy;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */\n readonly history: History;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */\n readonly innerHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */\n readonly innerWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */\n get location(): Location;\n set location(href: string | Location);\n /**\n * Returns true if the location bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)\n */\n readonly locationbar: BarProp;\n /**\n * Returns true if the menu bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)\n */\n readonly menubar: BarProp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */\n opener: any;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)\n */\n readonly orientation: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */\n readonly outerHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */\n readonly outerWidth: number;\n /**\n * @deprecated This is a legacy alias of `scrollX`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)\n */\n readonly pageXOffset: number;\n /**\n * @deprecated This is a legacy alias of `scrollY`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)\n */\n readonly pageYOffset: number;\n /**\n * Refers to either the parent WindowProxy, or itself.\n *\n * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)\n */\n readonly parent: WindowProxy;\n /**\n * Returns true if the personal bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)\n */\n readonly personalbar: BarProp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */\n readonly screen: Screen;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */\n readonly screenLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */\n readonly screenTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */\n readonly screenX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */\n readonly screenY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */\n readonly scrollX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */\n readonly scrollY: number;\n /**\n * Returns true if the scrollbars are visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)\n */\n readonly scrollbars: BarProp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */\n readonly self: Window & typeof globalThis;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */\n readonly speechSynthesis: SpeechSynthesis;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)\n */\n status: string;\n /**\n * Returns true if the status bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)\n */\n readonly statusbar: BarProp;\n /**\n * Returns true if the toolbar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)\n */\n readonly toolbar: BarProp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */\n readonly top: WindowProxy | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */\n readonly visualViewport: VisualViewport | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */\n readonly window: Window & typeof globalThis;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */\n alert(message?: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */\n blur(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */\n cancelIdleCallback(handle: number): void;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)\n */\n captureEvents(): void;\n /**\n * Closes the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)\n */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */\n confirm(message?: string): boolean;\n /**\n * Moves the focus to the window\'s browsing context, if any.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)\n */\n focus(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */\n getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */\n getSelection(): Selection | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */\n matchMedia(query: string): MediaQueryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */\n moveBy(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */\n moveTo(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */\n open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n /**\n * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.\n *\n * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.\n *\n * If the origin of the target window doesn\'t match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".\n *\n * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */\n print(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */\n prompt(message?: string, _default?: string): string | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)\n */\n releaseEvents(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */\n requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */\n resizeBy(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */\n resizeTo(width: number, height: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /**\n * Cancels the document load.\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 "pageshow": PageTransitionEvent;\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/pageshow_event) */\n onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => 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/caches)\n */\n readonly caches: CacheStorage;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */\n readonly crossOriginIsolated: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */\n readonly crypto: Crypto;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */\n readonly indexedDB: IDBFactory;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */\n readonly isSecureContext: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */\n readonly performance: Performance;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */\n atob(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */\n btoa(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */\n clearInterval(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */\n clearTimeout(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/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/fetch) */\n fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */\n queueMicrotask(callback: VoidFunction): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */\n reportError(e: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/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 {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)\n */\ninterface Worker extends EventTarget, AbstractWorker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */\n onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n /**\n * Clones message and transmits it to worker\'s global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.\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 * Aborts worker\'s associated global environment.\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet)\n */\ninterface Worklet {\n /**\n * Loads and executes the module script given by moduleURL into all of worklet\'s global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.\n *\n * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".\n *\n * Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.\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 * This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)\n */\ninterface WritableStream<W = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */\n readonly locked: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */\n abort(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */\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 * This Streams API interface represents a controller allowing control of a WritableStream\'s state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)\n */\ninterface WritableStreamDefaultController {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */\n readonly signal: AbortSignal;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/**\n * This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)\n */\ninterface WritableStreamDefaultWriter<W = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */\n readonly closed: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */\n readonly ready: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */\n abort(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */\n releaseLock(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */\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 * An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents.\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 * Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.\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 * Returns client\'s state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the response body.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)\n */\n readonly response: any;\n /**\n * Returns response as text.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)\n */\n readonly responseText: string;\n /**\n * Returns the response type.\n *\n * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n *\n * When set: setting to "document" is ignored if current global object is not a Window object.\n *\n * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)\n */\n responseType: XMLHttpRequestResponseType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */\n readonly responseURL: string;\n /**\n * Returns the response as document.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseXML)\n */\n readonly responseXML: Document | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */\n readonly status: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */\n readonly statusText: string;\n /**\n * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this\'s synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)\n */\n timeout: number;\n /**\n * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)\n */\n readonly upload: XMLHttpRequestUpload;\n /**\n * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.\n *\n * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)\n */\n withCredentials: boolean;\n /**\n * Cancels any network activity.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)\n */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */\n getAllResponseHeaders(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */\n getResponseHeader(name: string): string | null;\n /**\n * Sets the request method, request URL, and synchronous flag.\n *\n * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.\n *\n * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n *\n * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.\n *\n * [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 * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)\n *\n * Throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)\n */\n overrideMimeType(mime: string): void;\n /**\n * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)\n */\n send(body?: Document | XMLHttpRequestBodyInit | null): void;\n /**\n * Combines a header in author request headers.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.\n *\n * [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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */\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 * Provides the 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer/serializeToString) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver) */\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 its DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression)\n */\ninterface XPathExpression {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression/evaluate) */\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 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/booleanValue) */\n readonly booleanValue: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/invalidIteratorState) */\n readonly invalidIteratorState: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/numberValue) */\n readonly numberValue: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/resultType) */\n readonly resultType: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/singleNodeValue) */\n readonly singleNodeValue: Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotLength) */\n readonly snapshotLength: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/stringValue) */\n readonly stringValue: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext) */\n iterateNext(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotItem) */\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. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor)\n */\ninterface XSLTProcessor {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */\n clearParameters(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */\n getParameter(namespaceURI: string | null, localName: string): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */\n importStylesheet(style: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */\n removeParameter(namespaceURI: string | null, localName: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */\n reset(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */\n setParameter(namespaceURI: string | null, localName: string, value: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */\n transformToDocument(source: Node): Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */\n transformToFragment(source: Node, output: Document): DocumentFragment;\n}\n\ndeclare var XSLTProcessor: {\n prototype: XSLTProcessor;\n new(): XSLTProcessor;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */\ninterface Console {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */\n assert(condition?: boolean, ...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */\n clear(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */\n count(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */\n countReset(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */\n debug(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */\n dir(item?: any, options?: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */\n dirxml(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */\n error(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */\n group(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */\n groupCollapsed(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */\n groupEnd(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */\n info(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */\n log(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */\n table(tabularData?: any, properties?: string[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */\n time(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */\n timeEnd(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */\n trace(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\n/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */\ndeclare namespace CSS {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/highlights_static) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static) */\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/JavaScript_interface/Global) */\n interface Global<T extends ValueType = ValueType> {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */\n value: ValueTypeMap[T];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */\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/JavaScript_interface/Instance) */\n interface Instance {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/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/JavaScript_interface/Memory) */\n interface Memory {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */\n readonly buffer: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/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/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/JavaScript_interface/Module/customSections_static) */\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */\n exports(moduleObject: Module): ModuleExportDescriptor[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/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/JavaScript_interface/Table) */\n interface Table {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */\n get(index: number): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */\n grow(delta: number, value?: any): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/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/JavaScript_interface/compile_static) */\n function compile(bytes: BufferSource): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/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/JavaScript_interface/instantiateStreaming_static) */\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */\n function validate(bytes: BufferSource): boolean;\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 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 {\n (lock: Lock | null): any;\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 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 * Returns true if the window has been closed, false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)\n */\ndeclare var closed: boolean;\n/**\n * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)\n */\ndeclare var customElements: CustomElementRegistry;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */\ndeclare var devicePixelRatio: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */\ndeclare var document: Document;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)\n */\ndeclare var event: Event | undefined;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)\n */\ndeclare var external: External;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */\ndeclare var frameElement: Element | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */\ndeclare var frames: WindowProxy;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */\ndeclare var history: History;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */\ndeclare var innerHeight: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */\ndeclare var innerWidth: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */\ndeclare var length: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */\ndeclare var location: Location;\n/**\n * Returns true if the location bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)\n */\ndeclare var locationbar: BarProp;\n/**\n * Returns true if the menu bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)\n */\ndeclare var menubar: BarProp;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */\n/** @deprecated */\ndeclare const name: void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */\ndeclare var opener: any;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)\n */\ndeclare var orientation: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */\ndeclare var outerHeight: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */\ndeclare var outerWidth: number;\n/**\n * @deprecated This is a legacy alias of `scrollX`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)\n */\ndeclare var pageXOffset: number;\n/**\n * @deprecated This is a legacy alias of `scrollY`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)\n */\ndeclare var pageYOffset: number;\n/**\n * Refers to either the parent WindowProxy, or itself.\n *\n * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)\n */\ndeclare var parent: WindowProxy;\n/**\n * Returns true if the personal bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)\n */\ndeclare var personalbar: BarProp;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */\ndeclare var screen: Screen;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */\ndeclare var screenLeft: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */\ndeclare var screenTop: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */\ndeclare var screenX: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */\ndeclare var screenY: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */\ndeclare var scrollX: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */\ndeclare var scrollY: number;\n/**\n * Returns true if the scrollbars are visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)\n */\ndeclare var scrollbars: BarProp;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */\ndeclare var self: Window & typeof globalThis;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */\ndeclare var speechSynthesis: SpeechSynthesis;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)\n */\ndeclare var status: string;\n/**\n * Returns true if the status bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)\n */\ndeclare var statusbar: BarProp;\n/**\n * Returns true if the toolbar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)\n */\ndeclare var toolbar: BarProp;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */\ndeclare var top: WindowProxy | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */\ndeclare var visualViewport: VisualViewport | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */\ndeclare var window: Window & typeof globalThis;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */\ndeclare function alert(message?: any): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */\ndeclare function blur(): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */\ndeclare function cancelIdleCallback(handle: number): void;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)\n */\ndeclare function captureEvents(): void;\n/**\n * Closes the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)\n */\ndeclare function close(): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */\ndeclare function confirm(message?: string): boolean;\n/**\n * Moves the focus to the window\'s browsing context, if any.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)\n */\ndeclare function focus(): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */\ndeclare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */\ndeclare function getSelection(): Selection | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */\ndeclare function matchMedia(query: string): MediaQueryList;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */\ndeclare function moveBy(x: number, y: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */\ndeclare function moveTo(x: number, y: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */\ndeclare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n/**\n * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.\n *\n * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.\n *\n * If the origin of the target window doesn\'t match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".\n *\n * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */\ndeclare function print(): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */\ndeclare function prompt(message?: string, _default?: string): string | null;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)\n */\ndeclare function releaseEvents(): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */\ndeclare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */\ndeclare function resizeBy(x: number, y: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */\ndeclare function resizeTo(width: number, height: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */\ndeclare function scroll(options?: ScrollToOptions): void;\ndeclare function scroll(x: number, y: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */\ndeclare function scrollBy(options?: ScrollToOptions): void;\ndeclare function scrollBy(x: number, y: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */\ndeclare function scrollTo(options?: ScrollToOptions): void;\ndeclare function scrollTo(x: number, y: number): void;\n/**\n * Cancels the document load.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)\n */\ndeclare function stop(): void;\ndeclare function toString(): string;\n/**\n * Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n *\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/**\n * Fires when the user aborts the download.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)\n */\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: MouseEvent) => 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/HTMLElement/beforetoggle_event) */\ndeclare var onbeforetoggle: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)\n */\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/**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)\n */\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/**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)\n */\ndeclare var onchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)\n */\ndeclare var onclick: ((this: Window, ev: MouseEvent) => 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/**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)\n */\ndeclare var oncontextmenu: ((this: Window, ev: MouseEvent) => 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/**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)\n */\ndeclare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)\n */\ndeclare var ondrag: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)\n */\ndeclare var ondragend: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)\n */\ndeclare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)\n */\ndeclare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)\n */\ndeclare var ondragover: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)\n */\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/**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)\n */\ndeclare var ondurationchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)\n */\ndeclare var onemptied: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the end of playback is reached.\n * @param ev The event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event)\n */\ndeclare var onended: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)\n */\ndeclare var onerror: OnErrorEventHandler;\n/**\n * Fires when the object receives focus.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)\n */\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/**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)\n */\ndeclare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @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/**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)\n */\ndeclare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)\n */\ndeclare var onload: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)\n */\ndeclare var onloadeddata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)\n */\ndeclare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)\n */\ndeclare var onloadstart: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */\ndeclare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)\n */\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/**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)\n */\ndeclare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event)\n */\ndeclare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event)\n */\ndeclare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)\n */\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/**\n * Occurs when playback is paused.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)\n */\ndeclare var onpause: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the play method is requested.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)\n */\ndeclare var onplay: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)\n */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */\ndeclare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)\n */\ndeclare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\n/**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)\n */\ndeclare var onratechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user resets a form.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)\n */\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/**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)\n */\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/**\n * Occurs when the seek operation ends.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)\n */\ndeclare var onseeked: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)\n */\ndeclare var onseeking: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the current selection changes.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)\n */\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/**\n * Occurs when the download has stopped.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)\n */\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/**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)\n */\ndeclare var onsuspend: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)\n */\ndeclare var ontimeupdate: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */\ndeclare var ontoggle: ((this: Window, ev: Event) => 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/**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event)\n */\ndeclare var onvolumechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)\n */\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/pageshow_event) */\ndeclare var onpageshow: ((this: Window, ev: PageTransitionEvent) => 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/caches)\n */\ndeclare var caches: CacheStorage;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */\ndeclare var crossOriginIsolated: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */\ndeclare var crypto: Crypto;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */\ndeclare var indexedDB: IDBFactory;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */\ndeclare var isSecureContext: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */\ndeclare var origin: string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */\ndeclare var performance: Performance;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */\ndeclare function atob(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */\ndeclare function btoa(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */\ndeclare function clearInterval(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */\ndeclare function clearTimeout(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/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/fetch) */\ndeclare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */\ndeclare function queueMicrotask(callback: VoidFunction): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */\ndeclare function reportError(e: any): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/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 = ArrayBuffer | ArrayBufferView;\ntype AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;\ntype AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;\ntype AutoFillSection = `section-${string}`;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | 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 DOMHighResTimeStamp = number;\ntype EpochTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;\ntype Float32List = Float32Array | 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 Int32List = Int32Array | 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 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 | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;\ntype Uint32List = Uint32Array | 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" | "running" | "suspended";\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 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 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 EncodedVideoChunkType = "delta" | "key";\ntype EndOfStreamError = "decode" | "network";\ntype EndingType = "native" | "transparent";\ntype FileSystemHandleKind = "directory" | "file";\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 GamepadHapticActuatorType = "vibration";\ntype GamepadHapticEffectType = "dual-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 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 NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";\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 PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";\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 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 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 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 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',uo["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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */\n setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;\n}\n\ninterface AudioParamMap extends ReadonlyMap<string, AudioParam> {\n}\n\ninterface BaseAudioContext {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */\n createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */\n createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;\n}\n\ninterface CSSKeyframesRule {\n [Symbol.iterator](): IterableIterator<CSSKeyframeRule>;\n}\n\ninterface CSSNumericArray {\n [Symbol.iterator](): IterableIterator<CSSNumericValue>;\n entries(): IterableIterator<[number, CSSNumericValue]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSNumericValue>;\n}\n\ninterface CSSRuleList {\n [Symbol.iterator](): IterableIterator<CSSRule>;\n}\n\ninterface CSSStyleDeclaration {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface CSSTransformValue {\n [Symbol.iterator](): IterableIterator<CSSTransformComponent>;\n entries(): IterableIterator<[number, CSSTransformComponent]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSTransformComponent>;\n}\n\ninterface CSSUnparsedValue {\n [Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;\n entries(): IterableIterator<[number, CSSUnparsedSegment]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSUnparsedSegment>;\n}\n\ninterface Cache {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */\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 DOMRectList {\n [Symbol.iterator](): IterableIterator<DOMRect>;\n}\n\ninterface DOMStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface DOMTokenList {\n [Symbol.iterator](): IterableIterator<string>;\n entries(): IterableIterator<[number, string]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<string>;\n}\n\ninterface DataTransferItemList {\n [Symbol.iterator](): IterableIterator<DataTransferItem>;\n}\n\ninterface EventCounts extends ReadonlyMap<string, number> {\n}\n\ninterface FileList {\n [Symbol.iterator](): IterableIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormData {\n [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns a list of keys in the list. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the list. */\n values(): IterableIterator<FormDataEntryValue>;\n}\n\ninterface HTMLAllCollection {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionBase {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionOf<T extends Element> {\n [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface HTMLFormElement {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLSelectElement {\n [Symbol.iterator](): IterableIterator<HTMLOptionElement>;\n}\n\ninterface Headers {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\n entries(): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\n keys(): IterableIterator<string>;\n /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\n values(): IterableIterator<string>;\n}\n\ninterface Highlight extends Set<AbstractRange> {\n}\n\ninterface HighlightRegistry extends Map<string, Highlight> {\n}\n\ninterface IDBDatabase {\n /**\n * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.\n *\n * [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 * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [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 MIDIInputMap extends ReadonlyMap<string, MIDIInput> {\n}\n\ninterface MIDIOutput {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */\n send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;\n}\n\ninterface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {\n}\n\ninterface MediaKeyStatusMap {\n [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;\n entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;\n keys(): IterableIterator<BufferSource>;\n values(): IterableIterator<MediaKeyStatus>;\n}\n\ninterface MediaList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface MessageEvent<T = any> {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)\n */\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](): IterableIterator<MimeType>;\n}\n\ninterface NamedNodeMap {\n [Symbol.iterator](): IterableIterator<Attr>;\n}\n\ninterface Navigator {\n /**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */\n vibrate(pattern: Iterable<number>): boolean;\n}\n\ninterface NodeList {\n [Symbol.iterator](): IterableIterator<Node>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[number, Node]>;\n /** Returns an list of keys in the list. */\n keys(): IterableIterator<number>;\n /** Returns an list of values in the list. */\n values(): IterableIterator<Node>;\n}\n\ninterface NodeListOf<TNode extends Node> {\n [Symbol.iterator](): IterableIterator<TNode>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[number, TNode]>;\n /** Returns an list of keys in the list. */\n keys(): IterableIterator<number>;\n /** Returns an list of values in the list. */\n values(): IterableIterator<TNode>;\n}\n\ninterface Plugin {\n [Symbol.iterator](): IterableIterator<MimeType>;\n}\n\ninterface PluginArray {\n [Symbol.iterator](): IterableIterator<Plugin>;\n}\n\ninterface RTCRtpTransceiver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */\n setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;\n}\n\ninterface RTCStatsReport extends ReadonlyMap<string, any> {\n}\n\ninterface SVGLengthList {\n [Symbol.iterator](): IterableIterator<SVGLength>;\n}\n\ninterface SVGNumberList {\n [Symbol.iterator](): IterableIterator<SVGNumber>;\n}\n\ninterface SVGPointList {\n [Symbol.iterator](): IterableIterator<DOMPoint>;\n}\n\ninterface SVGStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface SVGTransformList {\n [Symbol.iterator](): IterableIterator<SVGTransform>;\n}\n\ninterface SourceBufferList {\n [Symbol.iterator](): IterableIterator<SourceBuffer>;\n}\n\ninterface SpeechRecognitionResult {\n [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;\n}\n\ninterface SpeechRecognitionResultList {\n [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;\n}\n\ninterface StylePropertyMapReadOnly {\n [Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;\n entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;\n keys(): IterableIterator<string>;\n values(): IterableIterator<Iterable<CSSStyleValue>>;\n}\n\ninterface StyleSheetList {\n [Symbol.iterator](): IterableIterator<CSSStyleSheet>;\n}\n\ninterface SubtleCrypto {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */\n generateKey(algorithm: "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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */\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](): IterableIterator<TextTrackCue>;\n}\n\ninterface TextTrackList {\n [Symbol.iterator](): IterableIterator<TextTrack>;\n}\n\ninterface TouchList {\n [Symbol.iterator](): IterableIterator<Touch>;\n}\n\ninterface URLSearchParams {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an array of key, value pairs for every entry in the search params. */\n entries(): IterableIterator<[string, string]>;\n /** Returns a list of keys in the search params. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the search params. */\n values(): IterableIterator<string>;\n}\n\ninterface WEBGL_draw_buffers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WEBGL_multi_draw {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | 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>): Iterable<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/WebGLRenderingContext/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',uo["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',uo["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\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\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',uo["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',uo["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 = unknown> extends Iterator<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n return(value: TReturn): IteratorResult<T, TReturn>;\n throw(e: any): IteratorResult<T, TReturn>;\n [Symbol.iterator](): Generator<T, TReturn, TNext>;\n}\n\ninterface GeneratorFunction {\n /**\n * Creates a new Generator object.\n * @param args A list of arguments the function accepts.\n */\n new (...args: any[]): Generator;\n /**\n * Creates a new Generator object.\n * @param args A list of arguments the function accepts.\n */\n (...args: any[]): Generator;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: Generator;\n}\n\ninterface GeneratorFunctionConstructor {\n /**\n * Creates a new Generator function.\n * @param args A list of arguments the function accepts.\n */\n new (...args: string[]): GeneratorFunction;\n /**\n * Creates a new Generator function.\n * @param args A list of arguments the function accepts.\n */\n (...args: string[]): GeneratorFunction;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: GeneratorFunction;\n}\n',uo["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 = undefined> {\n // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n return?(value?: TReturn): IteratorResult<T, TReturn>;\n throw?(e?: any): IteratorResult<T, TReturn>;\n}\n\ninterface Iterable<T> {\n [Symbol.iterator](): Iterator<T>;\n}\n\ninterface IterableIterator<T> extends Iterator<T> {\n [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface Array<T> {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): IterableIterator<T>;\n}\n\ninterface ArrayConstructor {\n /**\n * Creates an array from an iterable object.\n * @param iterable An iterable object to convert to an array.\n */\n from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];\n\n /**\n * Creates an array from an iterable object.\n * @param iterable An iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n}\n\ninterface ReadonlyArray<T> {\n /** Iterator of values in the array. */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): IterableIterator<T>;\n}\n\ninterface IArguments {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<any>;\n}\n\ninterface Map<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): IterableIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): IterableIterator<V>;\n}\n\ninterface ReadonlyMap<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): IterableIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): IterableIterator<V>;\n}\n\ninterface MapConstructor {\n new (): 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 Set<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): IterableIterator<T>;\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): IterableIterator<[T, T]>;\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): IterableIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): IterableIterator<T>;\n}\n\ninterface ReadonlySet<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): IterableIterator<[T, T]>;\n\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): IterableIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): IterableIterator<T>;\n}\n\ninterface SetConstructor {\n new <T>(iterable?: Iterable<T> | null): Set<T>;\n}\n\ninterface WeakSet<T extends 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 String {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Int8Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int8ArrayConstructor {\n new (elements: Iterable<number>): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;\n}\n\ninterface Uint8Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint8ArrayConstructor {\n new (elements: Iterable<number>): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;\n}\n\ninterface Uint8ClampedArray {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (elements: Iterable<number>): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\n\ninterface Int16Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int16ArrayConstructor {\n new (elements: Iterable<number>): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;\n}\n\ninterface Uint16Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint16ArrayConstructor {\n new (elements: Iterable<number>): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;\n}\n\ninterface Int32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int32ArrayConstructor {\n new (elements: Iterable<number>): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;\n}\n\ninterface Uint32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint32ArrayConstructor {\n new (elements: Iterable<number>): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;\n}\n\ninterface Float32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Float32ArrayConstructor {\n new (elements: Iterable<number>): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;\n}\n\ninterface Float64Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Float64ArrayConstructor {\n new (elements: Iterable<number>): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;\n}\n",uo["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',uo["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',uo["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',uo["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',uo["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]: string;\n}\n\ninterface DataView {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Int8Array {\n readonly [Symbol.toStringTag]: "Int8Array";\n}\n\ninterface Uint8Array {\n readonly [Symbol.toStringTag]: "Uint8Array";\n}\n\ninterface Uint8ClampedArray {\n readonly [Symbol.toStringTag]: "Uint8ClampedArray";\n}\n\ninterface Int16Array {\n readonly [Symbol.toStringTag]: "Int16Array";\n}\n\ninterface Uint16Array {\n readonly [Symbol.toStringTag]: "Uint16Array";\n}\n\ninterface Int32Array {\n readonly [Symbol.toStringTag]: "Int32Array";\n}\n\ninterface Uint32Array {\n readonly [Symbol.toStringTag]: "Uint32Array";\n}\n\ninterface Float32Array {\n readonly [Symbol.toStringTag]: "Float32Array";\n}\n\ninterface Float64Array {\n readonly [Symbol.toStringTag]: "Float64Array";\n}\n\ninterface ArrayConstructor {\n readonly [Symbol.species]: ArrayConstructor;\n}\ninterface MapConstructor {\n readonly [Symbol.species]: MapConstructor;\n}\ninterface SetConstructor {\n readonly [Symbol.species]: SetConstructor;\n}\ninterface ArrayBufferConstructor {\n readonly [Symbol.species]: ArrayBufferConstructor;\n}\n',uo["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 {\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 {\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 {\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 {\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 {\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 {\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 {\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 {\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 {\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',uo["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',uo["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',uo["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/en-US/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',uo["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.object" />\n/// <reference lib="es2017.sharedmemory" />\n/// <reference lib="es2017.string" />\n/// <reference lib="es2017.intl" />\n/// <reference lib="es2017.typedarrays" />\n/// <reference lib="es2017.date" />\n',uo["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',uo["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',uo["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',uo["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 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 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 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 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',uo["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.species]: SharedArrayBuffer;\n readonly [Symbol.toStringTag]: "SharedArrayBuffer";\n}\n\ninterface SharedArrayBufferConstructor {\n readonly prototype: SharedArrayBuffer;\n new (byteLength: number): SharedArrayBuffer;\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 | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, 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 | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, 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 | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, 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 | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, 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 | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, 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 | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, 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 | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, 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 | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, 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, 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.\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, 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 | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n readonly [Symbol.toStringTag]: "Atomics";\n}\n\ndeclare var Atomics: Atomics;\n',uo["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',uo["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;\n}\n\ninterface Uint8ArrayConstructor {\n new (): Uint8Array;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (): Uint8ClampedArray;\n}\n\ninterface Int16ArrayConstructor {\n new (): Int16Array;\n}\n\ninterface Uint16ArrayConstructor {\n new (): Uint16Array;\n}\n\ninterface Int32ArrayConstructor {\n new (): Int32Array;\n}\n\ninterface Uint32ArrayConstructor {\n new (): Uint32Array;\n}\n\ninterface Float32ArrayConstructor {\n new (): Float32Array;\n}\n\ninterface Float64ArrayConstructor {\n new (): Float64Array;\n}\n',uo["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 = unknown> extends AsyncIterator<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): 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',uo["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 = undefined> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [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> {\n [Symbol.asyncIterator](): AsyncIterator<T>;\n}\n\ninterface AsyncIterableIterator<T> extends AsyncIterator<T> {\n [Symbol.asyncIterator](): AsyncIterableIterator<T>;\n}\n',uo["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',uo["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',uo["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 // We can only have one definition for \'type\' in TypeScript, and so you can learn where the keys come from here:\n type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";\n type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";\n type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;\n\n interface NumberFormatPart {\n type: NumberFormatPartTypes;\n value: string;\n }\n\n interface NumberFormat {\n formatToParts(number?: number | bigint): NumberFormatPart[];\n }\n}\n',uo["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',uo["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',uo["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',uo["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',uo["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',uo["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: any;\n }\n}\n',uo["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',uo["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',uo["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',uo["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/en-US/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 {\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: ArrayBufferLike;\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(): IterableIterator<[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) => 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) => any, thisArg?: any): BigInt64Array;\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) => 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) => 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) => 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(): IterableIterator<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) => bigint, thisArg?: any): BigInt64Array;\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) => 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) => 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) => 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) => 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;\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) => 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;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(): 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;\n\n /** Yields each value in the array. */\n values(): IterableIterator<bigint>;\n\n [Symbol.iterator](): IterableIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigInt64Array";\n\n [index: number]: bigint;\n}\n\ninterface BigInt64ArrayConstructor {\n readonly prototype: BigInt64Array;\n new (length?: number): BigInt64Array;\n new (array: Iterable<bigint>): BigInt64Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;\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;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from(arrayLike: ArrayLike<bigint>): BigInt64Array;\n from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;\n}\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 {\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: ArrayBufferLike;\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(): IterableIterator<[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) => 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) => any, thisArg?: any): BigUint64Array;\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) => 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) => 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) => 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(): IterableIterator<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) => bigint, thisArg?: any): BigUint64Array;\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) => 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) => 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) => 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) => 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;\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) => 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;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(): 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;\n\n /** Yields each value in the array. */\n values(): IterableIterator<bigint>;\n\n [Symbol.iterator](): IterableIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigUint64Array";\n\n [index: number]: bigint;\n}\n\ninterface BigUint64ArrayConstructor {\n readonly prototype: BigUint64Array;\n new (length?: number): BigUint64Array;\n new (array: Iterable<bigint>): BigUint64Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;\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;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from(arrayLike: ArrayLike<bigint>): BigUint64Array;\n from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;\n}\n\ndeclare var BigUint64Array: BigUint64ArrayConstructor;\n\ninterface DataView {\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 resolvedOptions(): ResolvedNumberFormatOptions;\n }\n}\n',uo["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',uo["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',uo["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',uo["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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).\n */\n const RelativeTimeFormat: {\n /**\n * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).\n */\n supportedLocalesOf(\n locales?: LocalesArgument,\n options?: RelativeTimeFormatOptions,\n ): UnicodeBCP47LocaleIdentifier[];\n };\n\n interface NumberFormatOptions {\n compactDisplay?: "short" | "long" | undefined;\n notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;\n signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;\n unit?: string | undefined;\n unitDisplay?: "short" | "long" | "narrow" | undefined;\n currencyDisplay?: string | undefined;\n currencySign?: string | undefined;\n }\n\n interface ResolvedNumberFormatOptions {\n compactDisplay?: "short" | "long";\n notation?: "standard" | "scientific" | "engineering" | "compact";\n signDisplay?: "auto" | "never" | "always" | "exceptZero";\n unit?: string;\n unitDisplay?: "short" | "long" | "narrow";\n currencyDisplay?: string;\n currencySign?: string;\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/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/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/en-US/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/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).\n */\n resolvedOptions(): ResolvedDisplayNamesOptions;\n }\n\n /**\n * The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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',uo["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',uo["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',uo["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\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 | BigUint64Array, 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 | BigUint64Array, 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 | BigUint64Array, 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 | BigUint64Array, 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 | BigUint64Array, 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 | BigUint64Array, 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 | BigUint64Array, 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 | BigUint64Array, 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, 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, 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 | BigUint64Array, index: number, value: bigint): bigint;\n}\n',uo["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\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): IterableIterator<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',uo["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 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): IterableIterator<RegExpMatchArray>;\n}\n',uo["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',uo["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',uo["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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).\n */\n supportedLocalesOf(locales: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];\n };\n}\n',uo["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',uo["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',uo["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\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): void;\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',uo["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 {\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 {\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 {\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 {\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 {\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 {\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 {\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 {\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 {\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 {\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 {\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',uo["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.sharedmemory" />\n/// <reference lib="es2022.string" />\n/// <reference lib="es2022.regexp" />\n',uo["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\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',uo["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',uo["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/en-US/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 interface Segmenter {\n /**\n * Returns `Segments` object containing the segments of the input string, using the segmenter\'s locale and granularity.\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 resolvedOptions(): ResolvedSegmenterOptions;\n }\n\n interface ResolvedSegmenterOptions {\n locale: string;\n granularity: "grapheme" | "word" | "sentence";\n }\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 * @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;\n\n /** Returns an iterator to iterate over the segments. */\n [Symbol.iterator](): IterableIterator<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 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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/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/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).\n * with some or all possible options.\n *\n * [MDN](https://developer.mozilla.org/en-US/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/en-US/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',uo["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',uo["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 with a regular expression.\n * Default is false. Read-only.\n */\n readonly hasIndices: boolean;\n}\n',uo["lib.es2022.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 * 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',uo["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',uo["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, ASCII character 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, ASCII character 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 {\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: Int8Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: Int8Array) => 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: Int8Array) => 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;\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;\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;\n}\n\ninterface Uint8Array {\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: Uint8Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: Uint8Array) => 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: Uint8Array) => 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;\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;\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;\n}\n\ninterface Uint8ClampedArray {\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: Uint8ClampedArray,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: Uint8ClampedArray,\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: Uint8ClampedArray,\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;\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;\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;\n}\n\ninterface Int16Array {\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: Int16Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: Int16Array) => 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: Int16Array) => 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;\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;\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;\n}\n\ninterface Uint16Array {\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: Uint16Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: Uint16Array,\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: Uint16Array,\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;\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;\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;\n}\n\ninterface Int32Array {\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: Int32Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: Int32Array) => 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: Int32Array) => 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;\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;\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;\n}\n\ninterface Uint32Array {\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: Uint32Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: Uint32Array,\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: Uint32Array,\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;\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;\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;\n}\n\ninterface Float32Array {\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: Float32Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: Float32Array,\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: Float32Array,\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;\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;\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;\n}\n\ninterface Float64Array {\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: Float64Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: Float64Array,\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: Float64Array,\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;\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;\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;\n}\n\ninterface BigInt64Array {\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: BigInt64Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: bigint,\n index: number,\n array: BigInt64Array,\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: BigInt64Array,\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;\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;\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;\n}\n\ninterface BigUint64Array {\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: BigUint64Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: bigint,\n index: number,\n array: BigUint64Array,\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: BigUint64Array,\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;\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;\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;\n}\n",uo["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',uo["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',uo["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',uo["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) from the X axis to a point.\n * @param y A numeric expression representing the cartesian y-coordinate.\n * @param x A numeric expression representing the cartesian x-coordinate.\n */\n atan2(y: number, x: number): number;\n /**\n * Returns the smallest integer greater than or equal to its numeric argument.\n * @param x A numeric expression.\n */\n ceil(x: number): number;\n /**\n * Returns the cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n cos(x: number): number;\n /**\n * Returns e (the base of natural logarithms) raised to a power.\n * @param x A numeric expression representing the power of e.\n */\n exp(x: number): number;\n /**\n * Returns the greatest integer less than or equal to its numeric argument.\n * @param x A numeric expression.\n */\n floor(x: number): number;\n /**\n * Returns the natural logarithm (base e) of a number.\n * @param x A numeric expression.\n */\n log(x: number): number;\n /**\n * Returns the larger of a set of supplied numeric expressions.\n * @param values Numeric expressions to be evaluated.\n */\n max(...values: number[]): number;\n /**\n * Returns the smaller of a set of supplied numeric expressions.\n * @param values Numeric expressions to be evaluated.\n */\n min(...values: number[]): number;\n /**\n * Returns the value of a base expression taken to a specified power.\n * @param x The base value of the expression.\n * @param y The exponent value of the expression.\n */\n pow(x: number, y: number): number;\n /** Returns a pseudorandom number between 0 and 1. */\n random(): number;\n /**\n * Returns a supplied numeric expression rounded to the nearest 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 the time on the local computer and Universal Coordinated Time (UTC). */\n getTimezoneOffset(): number;\n /**\n * Sets the date and time value in the Date object.\n * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.\n */\n setTime(time: number): number;\n /**\n * Sets the milliseconds value in the Date object using local time.\n * @param ms A numeric value equal to the millisecond value.\n */\n setMilliseconds(ms: number): number;\n /**\n * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).\n * @param ms A numeric value equal to the millisecond value.\n */\n setUTCMilliseconds(ms: number): number;\n\n /**\n * Sets the seconds value in the Date object using local time.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setSeconds(sec: number, ms?: number): number;\n /**\n * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCSeconds(sec: number, ms?: number): number;\n /**\n * Sets the minutes value in the Date object using local time.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setMinutes(min: number, sec?: number, ms?: number): number;\n /**\n * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCMinutes(min: number, sec?: number, ms?: number): number;\n /**\n * Sets the hour value in the Date object using local time.\n * @param hours A numeric value equal to the hours value.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setHours(hours: number, min?: number, sec?: number, ms?: number): number;\n /**\n * Sets the hours value in the Date object using Universal Coordinated Time (UTC).\n * @param hours A numeric value equal to the hours value.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;\n /**\n * Sets the numeric day-of-the-month value of the Date object using local time.\n * @param date A numeric value equal to the day of the month.\n */\n setDate(date: number): number;\n /**\n * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).\n * @param date A numeric value equal to the day of the month.\n */\n setUTCDate(date: number): number;\n /**\n * Sets the month value in the Date object using local time.\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.\n */\n setMonth(month: number, date?: number): number;\n /**\n * Sets the month value in the Date object using Universal Coordinated Time (UTC).\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.\n */\n setUTCMonth(month: number, date?: number): number;\n /**\n * Sets the year of the Date object using local time.\n * @param year A numeric value for the year.\n * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.\n * @param date A numeric value equal for the day of the month.\n */\n setFullYear(year: number, month?: number, date?: number): number;\n /**\n * Sets the year value in the Date object using Universal Coordinated Time (UTC).\n * @param year A numeric value equal to the year.\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.\n * @param date A numeric value equal to the day of the month.\n */\n setUTCFullYear(year: number, month?: number, date?: number): number;\n /** Returns a date converted to a string using Universal Coordinated Time (UTC). */\n toUTCString(): string;\n /** Returns a date as a string value in ISO format. */\n toISOString(): string;\n /** Used by the JSON.stringify method to enable the transformation of an object\'s data for JavaScript Object Notation (JSON) serialization. */\n toJSON(key?: any): string;\n}\n\ninterface DateConstructor {\n new (): Date;\n new (value: number | string): Date;\n /**\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 */\n parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;\n /**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n * @param value A JavaScript value, usually an object or array, to be converted.\n * @param replacer A function that transforms the results.\n * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\n stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;\n /**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n * @param value A JavaScript value, usually an object or array, to be converted.\n * @param replacer An array of strings and numbers that acts as 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 */\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, ASCII character 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.\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.\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 {\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n byteOffset: number;\n}\n\ninterface DataView {\n readonly buffer: ArrayBuffer;\n readonly byteLength: number;\n readonly byteOffset: number;\n /**\n * Gets the Float32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @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}\n\ninterface DataViewConstructor {\n readonly prototype: DataView;\n new (buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }, byteOffset?: number, byteLength?: number): DataView;\n}\ndeclare var DataView: DataViewConstructor;\n\n/**\n * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested\n * number of bytes could not be allocated an exception is raised.\n */\ninterface Int8Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param 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: Int8Array) => 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: Int8Array) => any, thisArg?: any): Int8Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int8Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int8Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param 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: Int8Array) => 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;\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(): Int8Array;\n\n [index: number]: number;\n}\ninterface Int8ArrayConstructor {\n readonly prototype: Int8Array;\n new (length: number): Int8Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Int8Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;\n}\ndeclare var Int8Array: Int8ArrayConstructor;\n\n/**\n * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint8Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param 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: Uint8Array) => 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: Uint8Array) => any, thisArg?: any): Uint8Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint8Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint8Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param 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: Uint8Array) => 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;\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(): Uint8Array;\n\n [index: number]: number;\n}\n\ninterface Uint8ArrayConstructor {\n readonly prototype: Uint8Array;\n new (length: number): Uint8Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Uint8Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;\n}\ndeclare var Uint8Array: Uint8ArrayConstructor;\n\n/**\n * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.\n * If the requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint8ClampedArray {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint8ClampedArray;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint8ClampedArray;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param 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: Uint8ClampedArray) => 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;\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(): Uint8ClampedArray;\n\n [index: number]: number;\n}\n\ninterface Uint8ClampedArrayConstructor {\n readonly prototype: Uint8ClampedArray;\n new (length: number): Uint8ClampedArray;\n new (array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\ndeclare var Uint8ClampedArray: Uint8ClampedArrayConstructor;\n\n/**\n * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Int16Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param 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: Int16Array) => 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: Int16Array) => any, thisArg?: any): Int16Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int16Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int16Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param 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: Int16Array) => 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;\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(): Int16Array;\n\n [index: number]: number;\n}\n\ninterface Int16ArrayConstructor {\n readonly prototype: Int16Array;\n new (length: number): Int16Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Int16Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;\n}\ndeclare var Int16Array: Int16ArrayConstructor;\n\n/**\n * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint16Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param 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: Uint16Array) => 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: Uint16Array) => any, thisArg?: any): Uint16Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint16Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint16Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param 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: Uint16Array) => 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;\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(): Uint16Array;\n\n [index: number]: number;\n}\n\ninterface Uint16ArrayConstructor {\n readonly prototype: Uint16Array;\n new (length: number): Uint16Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Uint16Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;\n}\ndeclare var Uint16Array: Uint16ArrayConstructor;\n/**\n * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Int32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param 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: Int32Array) => 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: Int32Array) => any, thisArg?: any): Int32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param 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: Int32Array) => 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;\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(): Int32Array;\n\n [index: number]: number;\n}\n\ninterface Int32ArrayConstructor {\n readonly prototype: Int32Array;\n new (length: number): Int32Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Int32Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;\n}\ndeclare var Int32Array: Int32ArrayConstructor;\n\n/**\n * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param 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: Uint32Array) => 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: Uint32Array) => any, thisArg?: any): Uint32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param 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: Uint32Array) => 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;\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(): Uint32Array;\n\n [index: number]: number;\n}\n\ninterface Uint32ArrayConstructor {\n readonly prototype: Uint32Array;\n new (length: number): Uint32Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Uint32Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;\n}\ndeclare var Uint32Array: Uint32ArrayConstructor;\n\n/**\n * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number\n * of bytes could not be allocated an exception is raised.\n */\ninterface Float32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param 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: Float32Array) => 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: Float32Array) => any, thisArg?: any): Float32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Float32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Float32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param 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: Float32Array) => 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;\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(): Float32Array;\n\n [index: number]: number;\n}\n\ninterface Float32ArrayConstructor {\n readonly prototype: Float32Array;\n new (length: number): Float32Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Float32Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;\n}\ndeclare var Float32Array: Float32ArrayConstructor;\n\n/**\n * A typed array of 64-bit float values. The contents are initialized to 0. If the requested\n * number of bytes could not be allocated an exception is raised.\n */\ninterface Float64Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param 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: Float64Array) => 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: Float64Array) => any, thisArg?: any): Float64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Float64Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Float64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param 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: Float64Array) => 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;\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(): Float64Array;\n\n [index: number]: number;\n}\n\ninterface Float64ArrayConstructor {\n readonly prototype: Float64Array;\n new (length: number): Float64Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Float64Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;\n}\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 NumberFormatOptions {\n localeMatcher?: string | undefined;\n style?: string | undefined;\n currency?: string | undefined;\n currencySign?: string | undefined;\n useGrouping?: boolean | 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: string;\n currency?: string;\n minimumIntegerDigits: number;\n minimumFractionDigits: number;\n maximumFractionDigits: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n useGrouping: boolean;\n }\n\n interface NumberFormat {\n format(value: number): string;\n resolvedOptions(): ResolvedNumberFormatOptions;\n }\n\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',uo["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',uo["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\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',uo["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="es2023" />\n/// <reference lib="esnext.intl" />\n/// <reference lib="esnext.decorators" />\n/// <reference lib="esnext.disposable" />\n/// <reference lib="esnext.promise" />\n/// <reference lib="esnext.object" />\n/// <reference lib="esnext.collection" />\n',uo["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',uo["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\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',uo["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',uo["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 interface NumberRangeFormatPart extends NumberFormatPart {\n source: "startRange" | "endRange" | "shared";\n }\n\n interface NumberFormat {\n formatRange(start: number | bigint, end: number | bigint): string;\n formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];\n }\n}\n',uo["lib.esnext.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',uo["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 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',uo["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',uo["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 FileSystemDirectoryHandle {\n [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;\n entries(): AsyncIterableIterator<[string, FileSystemHandle]>;\n keys(): AsyncIterableIterator<string>;\n values(): AsyncIterableIterator<FileSystemHandle>;\n}\n',uo["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 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 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 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 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<undefined>;\n preloadResponse?: Promise<any>;\n replacesClientId?: string;\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 ImageEncodeOptions {\n quality?: number;\n type?: string;\n}\n\ninterface ImportMeta {\n url: 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 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 configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n type: MediaDecodingType;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\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 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 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 {\n contributingSources?: number[];\n payloadType?: number;\n sequenceNumber?: number;\n synchronizationSource?: number;\n}\n\ninterface RTCEncodedVideoFrameMetadata {\n contributingSources?: number[];\n dependencies?: number[];\n frameId?: number;\n height?: number;\n payloadType?: number;\n spatialIndex?: number;\n synchronizationSource?: 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 ReadableStreamReadDoneResult<T> {\n done: true;\n value?: T;\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 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 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 keyFrame?: boolean;\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 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 WebTransportSendStreamOptions {\n sendOrder?: number;\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;\n}\n\n/**\n * A controller object that allows you to abort one or more DOM requests as and when desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)\n */\ninterface AbortController {\n /**\n * Returns the AbortSignal object associated with this object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)\n */\n readonly signal: AbortSignal;\n /**\n * Invoking this method will set this object\'s AbortSignal\'s aborted flag and signal to any observers that the associated activity is to be aborted.\n *\n * [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 * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)\n */\ninterface AbortSignal extends EventTarget {\n /**\n * Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise.\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */\n readonly reason: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */\n abort(reason?: any): AbortSignal;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */\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 * A file-like object of immutable, raw data. Blobs represent data that isn\'t necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user\'s system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)\n */\ninterface Blob {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */\n readonly size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */\n arrayBuffer(): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */\n slice(start?: number, end?: number, contentType?: string): Blob;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */\n stream(): ReadableStream<Uint8Array>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */\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> | 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/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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */\ninterface BroadcastChannel extends EventTarget {\n /**\n * Returns the channel name (as passed to the constructor).\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 * Closes the BroadcastChannel object, opening it up to garbage collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)\n */\n close(): void;\n /**\n * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.\n *\n * [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 * This Streams API interface 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */\ninterface CSSImageValue extends CSSStyleValue {\n}\n\ndeclare var CSSImageValue: {\n prototype: CSSImageValue;\n new(): CSSImageValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */\ninterface CSSKeywordValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */\ninterface CSSMathInvert extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathInvert: {\n prototype: CSSMathInvert;\n new(arg: CSSNumberish): CSSMathInvert;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */\ninterface CSSMathMax extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMax: {\n prototype: CSSMathMax;\n new(...args: CSSNumberish[]): CSSMathMax;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */\ninterface CSSMathMin extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMin: {\n prototype: CSSMathMin;\n new(...args: CSSNumberish[]): CSSMathMin;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */\ninterface CSSMathNegate extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathNegate: {\n prototype: CSSMathNegate;\n new(arg: CSSNumberish): CSSMathNegate;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */\ninterface CSSMathProduct extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathProduct: {\n prototype: CSSMathProduct;\n new(...args: CSSNumberish[]): CSSMathProduct;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */\ninterface CSSMathSum extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathSum: {\n prototype: CSSMathSum;\n new(...args: CSSNumberish[]): CSSMathSum;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */\ninterface CSSMathValue extends CSSNumericValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */\n readonly operator: CSSMathOperator;\n}\n\ndeclare var CSSMathValue: {\n prototype: CSSMathValue;\n new(): CSSMathValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */\ninterface CSSMatrixComponent extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */\n matrix: DOMMatrix;\n}\n\ndeclare var CSSMatrixComponent: {\n prototype: CSSMatrixComponent;\n new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */\ninterface CSSNumericArray {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */\ninterface CSSNumericValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */\n add(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */\n div(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */\n equals(...value: CSSNumberish[]): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */\n max(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */\n min(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */\n mul(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */\n sub(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */\n to(unit: string): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */\n toSum(...units: string[]): CSSMathSum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */\n type(): CSSNumericType;\n}\n\ndeclare var CSSNumericValue: {\n prototype: CSSNumericValue;\n new(): CSSNumericValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */\ninterface CSSPerspective extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */\n length: CSSPerspectiveValue;\n}\n\ndeclare var CSSPerspective: {\n prototype: CSSPerspective;\n new(length: CSSPerspectiveValue): CSSPerspective;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */\ninterface CSSRotate extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */\n angle: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */\n x: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */\n y: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */\ninterface CSSScale extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */\n x: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */\n y: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */\n z: CSSNumberish;\n}\n\ndeclare var CSSScale: {\n prototype: CSSScale;\n new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */\ninterface CSSSkew extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */\n ax: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkew: {\n prototype: CSSSkew;\n new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */\ninterface CSSSkewX extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */\n ax: CSSNumericValue;\n}\n\ndeclare var CSSSkewX: {\n prototype: CSSSkewX;\n new(ax: CSSNumericValue): CSSSkewX;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */\ninterface CSSSkewY extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkewY: {\n prototype: CSSSkewY;\n new(ay: CSSNumericValue): CSSSkewY;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */\ninterface CSSStyleValue {\n toString(): string;\n}\n\ndeclare var CSSStyleValue: {\n prototype: CSSStyleValue;\n new(): CSSStyleValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */\ninterface CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */\n is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */\n toMatrix(): DOMMatrix;\n toString(): string;\n}\n\ndeclare var CSSTransformComponent: {\n prototype: CSSTransformComponent;\n new(): CSSTransformComponent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */\ninterface CSSTransformValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */\n readonly is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */\ninterface CSSTranslate extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */\n x: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */\n y: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */\n z: CSSNumericValue;\n}\n\ndeclare var CSSTranslate: {\n prototype: CSSTranslate;\n new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */\ninterface CSSUnitValue extends CSSNumericValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */\n readonly unit: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */\n value: number;\n}\n\ndeclare var CSSUnitValue: {\n prototype: CSSUnitValue;\n new(value: number, unit: string): CSSUnitValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */\ninterface CSSUnparsedValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */\ninterface CSSVariableReferenceValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */\n readonly fallback: CSSUnparsedValue | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */\n variable: string;\n}\n\ndeclare var CSSVariableReferenceValue: {\n prototype: CSSVariableReferenceValue;\n new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;\n};\n\n/**\n * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don\'t have to use it in conjunction with service workers, even though it is defined in the service worker spec.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)\n */\ninterface Cache {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */\n add(request: RequestInfo | URL): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */\n addAll(requests: RequestInfo[]): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */\n delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */\n keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */\n match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */\n matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */\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 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */\n delete(cacheName: string): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */\n has(cacheName: string): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */\n keys(): Promise<string[]>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */\n match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */\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 * An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)\n */\ninterface CanvasGradient {\n /**\n * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\n *\n * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.\n *\n * [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 * 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 * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.\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/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. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client)\n */\ninterface Client {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType) */\n readonly frameType: FrameType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/type) */\n readonly type: ClientTypes;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/url) */\n readonly url: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/postMessage) */\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 * Provides access to Client objects. Access it via self.clients within a service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients)\n */\ninterface Clients {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim) */\n claim(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get) */\n get(id: string): Promise<Client | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/matchAll) */\n matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/openWindow) */\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. This is delivered to the listener indicated by the WebSocket object\'s onclose attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)\n */\ninterface CloseEvent extends Event {\n /**\n * Returns the WebSocket connection close code provided by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)\n */\n readonly code: number;\n /**\n * Returns the WebSocket connection close reason provided by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)\n */\n readonly reason: string;\n /**\n * Returns true if the connection closed cleanly; false otherwise.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */\ninterface CompressionStream extends GenericTransformStream {\n}\n\ndeclare var CompressionStream: {\n prototype: CompressionStream;\n new(format: CompressionFormat): CompressionStream;\n};\n\n/**\n * This Streams API interface 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/CountQueuingStrategy)\n */\ninterface CountQueuingStrategy extends QueuingStrategy {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */\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 * Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)\n */\ninterface Crypto {\n /**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */\n getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n /**\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 dictionary of the Web Crypto API represents a cryptographic key.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)\n */\ninterface CryptoKey {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */\n readonly algorithm: KeyAlgorithm;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */\n readonly extractable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */\n readonly type: KeyType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */\ninterface CustomEvent<T = any> extends Event {\n /**\n * Returns any custom data event was created with. Typically used for synthetic events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)\n */\n readonly detail: T;\n /**\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 * An abnormal event (called an exception) which 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 * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)\n */\n readonly code: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */\n readonly message: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */\ninterface DOMMatrix extends DOMMatrixReadOnly {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n m11: number;\n m12: number;\n m13: number;\n m14: number;\n m21: number;\n m22: number;\n m23: number;\n m24: number;\n m31: number;\n m32: number;\n m33: number;\n m34: number;\n m41: number;\n m42: number;\n m43: number;\n m44: number;\n invertSelf(): DOMMatrix;\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n skewXSelf(sx?: number): DOMMatrix;\n skewYSelf(sy?: number): DOMMatrix;\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n prototype: DOMMatrix;\n new(init?: string | number[]): DOMMatrix;\n fromFloat32Array(array32: Float32Array): DOMMatrix;\n fromFloat64Array(array64: Float64Array): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */\ninterface DOMMatrixReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */\n readonly a: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */\n readonly b: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */\n readonly c: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */\n readonly d: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */\n readonly e: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */\n readonly f: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */\n readonly is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */\n readonly isIdentity: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */\n readonly m11: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */\n readonly m12: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */\n readonly m13: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */\n readonly m14: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */\n readonly m21: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */\n readonly m22: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */\n readonly m23: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */\n readonly m24: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */\n readonly m31: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */\n readonly m32: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */\n readonly m33: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */\n readonly m34: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */\n readonly m41: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */\n readonly m42: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */\n readonly m43: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */\n readonly m44: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */\n flipX(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */\n flipY(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */\n inverse(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */\n multiply(other?: DOMMatrixInit): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)\n */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */\n skewX(sx?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */\n skewY(sy?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */\n toFloat32Array(): Float32Array;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */\n toFloat64Array(): Float64Array;\n toJSON(): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */\n transformPoint(point?: DOMPointInit): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrixReadOnly: {\n prototype: DOMMatrixReadOnly;\n new(init?: string | number[]): DOMMatrixReadOnly;\n fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */\ninterface DOMPoint extends DOMPointReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */\n w: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */\n x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */\n y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */\ninterface DOMPointReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */\n readonly w: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */\n readonly y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */\n readonly z: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */\ninterface DOMQuad {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */\n readonly p1: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */\n readonly p2: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */\n readonly p3: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */\n readonly p4: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */\n getBounds(): DOMRect;\n toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n prototype: DOMQuad;\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n fromQuad(other?: DOMQuadInit): DOMQuad;\n fromRect(other?: DOMRectInit): DOMQuad;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */\ninterface DOMRect extends DOMRectReadOnly {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */\ninterface DOMRectReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */\n readonly bottom: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */\n readonly left: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */\n readonly right: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */\n readonly top: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */\n readonly width: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */\n readonly y: number;\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/**\n * A type returned by some APIs which contains a list of DOMString (strings).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)\n */\ninterface DOMStringList {\n /**\n * Returns the number of strings in strings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)\n */\n readonly length: number;\n /**\n * Returns true if strings contains string, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)\n */\n contains(string: string): boolean;\n /**\n * Returns the string with index index from strings.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */\ninterface DecompressionStream extends GenericTransformStream {\n}\n\ndeclare var DecompressionStream: {\n prototype: DecompressionStream;\n new(format: CompressionFormat): DecompressionStream;\n};\n\ninterface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n "rtctransform": Event;\n}\n\n/**\n * (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope)\n */\ninterface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {\n /**\n * Returns dedicatedWorkerGlobal\'s name, i.e. the value given to the Worker constructor. Primarily useful for debugging.\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/message_event) */\n onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */\n onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */\n onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\n /**\n * Aborts dedicatedWorkerGlobal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)\n */\n close(): void;\n /**\n * Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */\ninterface EXT_blend_minmax {\n readonly MIN_EXT: 0x8007;\n readonly MAX_EXT: 0x8008;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */\ninterface EXT_color_buffer_float {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */\ninterface EXT_shader_texture_lod {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */\ninterface EncodedVideoChunk {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */\n readonly byteLength: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */\n readonly duration: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */\n readonly type: EncodedVideoChunkType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */\n copyTo(destination: AllowSharedBufferSource): void;\n}\n\ndeclare var EncodedVideoChunk: {\n prototype: EncodedVideoChunk;\n new(init: EncodedVideoChunkInit): EncodedVideoChunk;\n};\n\n/**\n * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */\n readonly colno: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */\n readonly error: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */\n readonly filename: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */\n readonly lineno: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/**\n * An event which takes place in the DOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)\n */\ninterface Event {\n /**\n * Returns true or false depending on how event was initialized. True if event goes through its target\'s ancestors in reverse tree order, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)\n */\n readonly bubbles: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)\n */\n cancelBubble: boolean;\n /**\n * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)\n */\n readonly cancelable: boolean;\n /**\n * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)\n */\n readonly composed: boolean;\n /**\n * Returns the object whose event listener\'s callback is currently being invoked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)\n */\n readonly currentTarget: EventTarget | null;\n /**\n * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)\n */\n readonly defaultPrevented: boolean;\n /**\n * Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)\n */\n readonly eventPhase: number;\n /**\n * Returns true if event was dispatched by the user agent, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)\n */\n readonly isTrusted: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)\n */\n returnValue: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)\n */\n readonly srcElement: EventTarget | null;\n /**\n * Returns the object to which event is dispatched (its target).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)\n */\n readonly target: EventTarget | null;\n /**\n * Returns the event\'s timestamp as the number of milliseconds measured relative to the time origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)\n */\n readonly timeStamp: DOMHighResTimeStamp;\n /**\n * Returns the type of event, e.g. "click", "hashchange", or "submit".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)\n */\n readonly type: string;\n /**\n * Returns the invocation target objects of event\'s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root\'s mode is "closed" that are not reachable from event\'s currentTarget.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)\n */\n composedPath(): EventTarget[];\n /**\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 * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)\n */\n preventDefault(): void;\n /**\n * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)\n */\n stopImmediatePropagation(): void;\n /**\n * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.\n *\n * [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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */\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 * Returns the state of this EventSource object\'s connection. It can have the values described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the URL providing the event stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)\n */\n readonly url: string;\n /**\n * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)\n */\n readonly withCredentials: boolean;\n /**\n * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.\n *\n * [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 * EventTarget is a DOM interface 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 * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.\n *\n * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options\'s capture.\n *\n * When set to true, options\'s capture prevents callback from being invoked when the event\'s eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event\'s eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event\'s eventPhase attribute value is AT_TARGET.\n *\n * When set to true, options\'s passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.\n *\n * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n *\n * If an AbortSignal is passed for options\'s signal, then the event listener will be removed when signal is aborted.\n *\n * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n *\n * [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 * Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\n dispatchEvent(event: Event): boolean;\n /**\n * Removes the event listener in target\'s event listener list with the same type, callback, and options.\n *\n * [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 * Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)\n */\ninterface ExtendableEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) */\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 * This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data) */\n readonly data: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId) */\n readonly lastEventId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/ports) */\n readonly ports: ReadonlyArray<MessagePort>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/source) */\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 service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)\n */\ninterface FetchEvent extends ExtendableEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId) */\n readonly clientId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled) */\n readonly handled: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse) */\n readonly preloadResponse: Promise<any>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) */\n readonly request: Request;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId) */\n readonly resultingClientId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */\n readonly lastModified: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */\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 * An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It\'s also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)\n */\ninterface FileList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */\n readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */\n readonly result: string | ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */\n readAsArrayBuffer(blob: Blob): void;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)\n */\n readAsBinaryString(blob: Blob): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */\n readAsDataURL(blob: Blob): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */\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 * Allows to read File or Blob objects in a synchronous way.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync)\n */\ninterface FileReaderSync {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer) */\n readAsArrayBuffer(blob: Blob): ArrayBuffer;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString)\n */\n readAsBinaryString(blob: Blob): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL) */\n readAsDataURL(blob: Blob): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsText) */\n readAsText(blob: Blob, encoding?: string): string;\n}\n\ndeclare var FileReaderSync: {\n prototype: FileReaderSync;\n new(): FileReaderSync;\n};\n\n/**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */\n getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */\n getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */\n removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */\n resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;\n}\n\ndeclare var FileSystemDirectoryHandle: {\n prototype: FileSystemDirectoryHandle;\n new(): FileSystemDirectoryHandle;\n};\n\n/**\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle) */\n createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */\n createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */\n getFile(): Promise<File>;\n}\n\ndeclare var FileSystemFileHandle: {\n prototype: FileSystemFileHandle;\n new(): FileSystemFileHandle;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)\n */\ninterface FileSystemHandle {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */\n readonly kind: FileSystemHandleKind;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */\n isSameEntry(other: FileSystemHandle): Promise<boolean>;\n}\n\ndeclare var FileSystemHandle: {\n prototype: FileSystemHandle;\n new(): FileSystemHandle;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle)\n */\ninterface FileSystemSyncAccessHandle {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/flush) */\n flush(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */\n getSize(): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */\n read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */\n truncate(newSize: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */\n write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;\n}\n\ndeclare var FileSystemSyncAccessHandle: {\n prototype: FileSystemSyncAccessHandle;\n new(): FileSystemSyncAccessHandle;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)\n */\ninterface FileSystemWritableFileStream extends WritableStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */\n seek(position: number): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */\n truncate(size: number): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */\n write(data: FileSystemWriteChunkType): Promise<void>;\n}\n\ndeclare var FileSystemWritableFileStream: {\n prototype: FileSystemWritableFileStream;\n new(): FileSystemWritableFileStream;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */\ninterface FontFace {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */\n ascentOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */\n descentOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */\n display: FontDisplay;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */\n family: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */\n featureSettings: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */\n lineGapOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */\n readonly loaded: Promise<FontFace>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */\n readonly status: FontFaceLoadStatus;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */\n stretch: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */\n style: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */\n unicodeRange: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */\n weight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": Event;\n "loadingdone": Event;\n "loadingerror": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */\ninterface FontFaceSet extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */\n readonly ready: Promise<FontFaceSet>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */\n readonly status: FontFaceSetLoadStatus;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */\n check(font: string, text?: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */\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(initialFaces: FontFace[]): FontFaceSet;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */\ninterface FontFaceSetLoadEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */\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 * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)\n */\ninterface FormData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */\n delete(name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */\n get(name: string): FormDataEntryValue | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */\n getAll(name: string): FormDataEntryValue[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */\n has(name: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */\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\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 * This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)\n */\ninterface Headers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */\n append(name: string, value: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */\n delete(name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */\n get(name: string): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */\n getSetCookie(): string[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */\n has(name: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */\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 * This IndexedDB API interface 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 * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)\n */\n readonly direction: IDBCursorDirection;\n /**\n * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)\n */\n readonly key: IDBValidKey;\n /**\n * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)\n */\n readonly primaryKey: IDBValidKey;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */\n readonly request: IDBRequest;\n /**\n * Returns the IDBObjectStore or IDBIndex the cursor was opened from.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)\n */\n readonly source: IDBObjectStore | IDBIndex;\n /**\n * Advances the cursor through the next count records in range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)\n */\n advance(count: number): void;\n /**\n * Advances the cursor to the next record in range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)\n */\n continue(key?: IDBValidKey): void;\n /**\n * Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)\n */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * Delete the record pointed at by the cursor with a new value.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)\n */\n delete(): IDBRequest<undefined>;\n /**\n * Updated the record pointed at by the cursor with a new value.\n *\n * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [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 * This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)\n */\ninterface IDBCursorWithValue extends IDBCursor {\n /**\n * Returns the cursor\'s current value.\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 * This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)\n */\ninterface IDBDatabase extends EventTarget {\n /**\n * Returns the name of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)\n */\n readonly name: string;\n /**\n * Returns a list of the names of object stores in the 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 * Returns the version of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)\n */\n readonly version: number;\n /**\n * Closes the connection once all running transactions have finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)\n */\n close(): void;\n /**\n * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * Deletes the object store with the given name.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)\n */\n deleteObjectStore(name: string): void;\n /**\n * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.\n *\n * [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 * In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)\n */\ninterface IDBFactory {\n /**\n * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n *\n * Throws a "DataError" DOMException if either input is not a valid key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)\n */\n cmp(first: any, second: any): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */\n databases(): Promise<IDBDatabaseInfo[]>;\n /**\n * Attempts to delete the named database. If the database already exists and there are open connections that don\'t close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request\'s result will be null.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)\n */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /**\n * Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request\'s result will be the connection.\n *\n * [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. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)\n */\ninterface IDBIndex {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */\n readonly keyPath: string | string[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */\n readonly multiEntry: boolean;\n /**\n * Returns the name of the index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)\n */\n name: string;\n /**\n * Returns the IDBObjectStore the index belongs to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)\n */\n readonly objectStore: IDBObjectStore;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */\n readonly unique: boolean;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n *\n * [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 * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n *\n * [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 * A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)\n */\ninterface IDBKeyRange {\n /**\n * Returns lower bound, or undefined if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)\n */\n readonly lower: any;\n /**\n * Returns true if the lower open flag is set, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)\n */\n readonly lowerOpen: boolean;\n /**\n * Returns upper bound, or undefined if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)\n */\n readonly upper: any;\n /**\n * Returns true if the upper open flag is set, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)\n */\n readonly upperOpen: boolean;\n /**\n * Returns true if key is included in the range, and false otherwise.\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 * Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.\n *\n * [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 * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)\n */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange spanning only key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)\n */\n only(value: any): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)\n */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/**\n * This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)\n */\ninterface IDBObjectStore {\n /**\n * Returns true if the store has a key generator, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)\n */\n readonly autoIncrement: boolean;\n /**\n * Returns a list of the names of indexes in the store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)\n */\n readonly indexNames: DOMStringList;\n /**\n * Returns the key path of the store, or null if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)\n */\n readonly keyPath: string | string[];\n /**\n * Returns the name of the store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)\n */\n name: string;\n /**\n * Returns the associated transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)\n */\n readonly transaction: IDBTransaction;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * Deletes all records in store.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)\n */\n clear(): IDBRequest<undefined>;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * Deletes records in store with the given key or in the given key range in query.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * Deletes the index in store with the given name.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)\n */\n deleteIndex(name: string): void;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */\n index(name: string): IDBIndex;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n *\n * [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 * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n *\n * [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 * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [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 * Also inherits methods from its parents IDBRequest and EventTarget.\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 request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)\n */\ninterface IDBRequest<T = any> extends EventTarget {\n /**\n * When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.\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 * Returns "pending" until a request is complete, then returns "done".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)\n */\n readonly readyState: IDBRequestReadyState;\n /**\n * When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)\n */\n readonly result: T;\n /**\n * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)\n */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /**\n * Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.\n *\n * [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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */\ninterface IDBTransaction extends EventTarget {\n /**\n * Returns the transaction\'s connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)\n */\n readonly db: IDBDatabase;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */\n readonly durability: IDBTransactionDurability;\n /**\n * If the transaction was aborted, returns the error (a DOMException) providing the reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)\n */\n readonly error: DOMException | null;\n /**\n * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)\n */\n readonly mode: IDBTransactionMode;\n /**\n * Returns a list of the names of object stores in the transaction\'s scope. For an upgrade transaction this is all object stores in the database.\n *\n * [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 * Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)\n */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */\n commit(): void;\n /**\n * Returns an IDBObjectStore in the transaction\'s scope.\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 * This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)\n */\ninterface IDBVersionChangeEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */\n readonly newVersion: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */\ninterface ImageBitmap {\n /**\n * Returns the intrinsic height of the image, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)\n */\n readonly height: number;\n /**\n * Returns the intrinsic width of the image, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)\n */\n readonly width: number;\n /**\n * Releases imageBitmap\'s underlying bitmap data.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */\ninterface ImageBitmapRenderingContext {\n /**\n * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.\n *\n * [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 underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)\n */\ninterface ImageData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */\n readonly colorSpace: PredefinedColorSpace;\n /**\n * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)\n */\n readonly data: Uint8ClampedArray;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)\n */\n readonly height: number;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\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: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */\ninterface KHR_parallel_shader_compile {\n readonly COMPLETION_STATUS_KHR: 0x91B1;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)\n */\ninterface Lock {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */\n readonly mode: LockMode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */\n readonly name: string;\n}\n\ndeclare var Lock: {\n prototype: Lock;\n new(): Lock;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)\n */\ninterface LockManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */\n query(): Promise<LockManagerSnapshot>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */\n request(name: string, callback: LockGrantedCallback): Promise<any>;\n request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;\n}\n\ndeclare var LockManager: {\n prototype: LockManager;\n new(): LockManager;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */\ninterface MediaCapabilities {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/**\n * This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)\n */\ninterface MessageChannel {\n /**\n * Returns the first MessagePort object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)\n */\n readonly port1: MessagePort;\n /**\n * Returns the second MessagePort object.\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 * 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 * Returns the data of the message.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)\n */\n readonly data: T;\n /**\n * Returns the last event ID string, for server-sent events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)\n */\n readonly lastEventId: string;\n /**\n * Returns the origin of the message, for server-sent events and cross-document messaging.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)\n */\n readonly origin: string;\n /**\n * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)\n */\n readonly ports: ReadonlyArray<MessagePort>;\n /**\n * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)\n */\n readonly source: MessageEventSource | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)\n */\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 MessagePortEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)\n */\ninterface MessagePort extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */\n onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /**\n * Disconnects the port, so that it is no longer active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)\n */\n close(): void;\n /**\n * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n *\n * [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 * Begins dispatching messages received 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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)\n */\ninterface NavigationPreloadManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */\n disable(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */\n enable(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */\n getState(): Promise<NavigationPreloadState>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */\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 * This Notifications API interface 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */\n readonly badge: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */\n readonly body: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */\n readonly data: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */\n readonly dir: NotificationDirection;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */\n readonly icon: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */\n readonly requireInteraction: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */\n readonly silent: boolean | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */\n readonly tag: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */\n readonly title: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */\n readonly permission: NotificationPermission;\n};\n\n/**\n * The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action) */\n readonly action: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/notification) */\n readonly notification: Notification;\n}\n\ndeclare var NotificationEvent: {\n prototype: NotificationEvent;\n new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */\ninterface OES_draw_buffers_indexed {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */\n blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */\n blendEquationiOES(buf: GLuint, mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */\n blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */\n blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */\n colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */\n disableiOES(target: GLenum, index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */\ninterface OES_vertex_array_object {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */\n createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */\ninterface OVR_multiview2 {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */\ninterface OffscreenCanvas extends EventTarget {\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)\n */\n height: number;\n oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;\n oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)\n */\n width: number;\n /**\n * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.\n *\n * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn\'t supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)\n */\n convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n /**\n * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.\n *\n * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]\n *\n * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).\n *\n * [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 * Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.\n *\n * [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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */\ninterface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {\n readonly canvas: OffscreenCanvas;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */\n commit(): void;\n}\n\ndeclare var OffscreenCanvasRenderingContext2D: {\n prototype: OffscreenCanvasRenderingContext2D;\n new(): OffscreenCanvasRenderingContext2D;\n};\n\n/**\n * This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)\n */\ninterface Path2D extends CanvasPath {\n /**\n * Adds to the path the path given by the argument.\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 * Provides access to performance-related information for the current page. It\'s part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */\n readonly timeOrigin: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */\n clearMarks(markName?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */\n clearMeasures(measureName?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */\n clearResourceTimings(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */\n getEntries(): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */\n getEntriesByType(type: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */\n now(): DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */\n setResourceTimingBufferSize(maxSize: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */\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 * Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)\n */\ninterface PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */\n readonly duration: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */\n readonly entryType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */\n readonly startTime: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\n/**\n * PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)\n */\ninterface PerformanceMark extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */\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 entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)\n */\ninterface PerformanceMeasure extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */\n readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */\ninterface PerformanceObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */\n observe(options?: PerformanceObserverInit): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */\ninterface PerformanceObserverEntryList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */\n getEntries(): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\n/**\n * Enables retrieval and analysis of detailed network timing data regarding the loading of an application\'s resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)\n */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */\n readonly connectEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */\n readonly connectStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */\n readonly decodedBodySize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */\n readonly domainLookupEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */\n readonly domainLookupStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */\n readonly encodedBodySize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */\n readonly fetchStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */\n readonly initiatorType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */\n readonly nextHopProtocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */\n readonly redirectEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */\n readonly redirectStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */\n readonly requestStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */\n readonly responseEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */\n readonly responseStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */\n readonly secureConnectionStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */\n readonly transferSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */\n readonly workerStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */\ninterface PerformanceServerTiming {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */\n readonly description: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */\n readonly duration: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\ninterface PermissionStatusEventMap {\n "change": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */\ninterface PermissionStatus extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */\ninterface Permissions {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\n/**\n * Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)\n */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */\n readonly lengthComputable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */\n readonly loaded: number;\n readonly target: T | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */\ninterface PromiseRejectionEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */\n readonly promise: Promise<any>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/**\n * This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent)\n */\ninterface PushEvent extends ExtendableEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data) */\n readonly data: PushMessageData | null;\n}\n\ndeclare var PushEvent: {\n prototype: PushEvent;\n new(type: string, eventInitDict?: PushEventInit): PushEvent;\n};\n\n/**\n * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)\n */\ninterface PushManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */\n getSubscription(): Promise<PushSubscription | null>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * This Push API interface 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/arrayBuffer) */\n arrayBuffer(): ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob) */\n blob(): Blob;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json) */\n json(): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text) */\n text(): string;\n}\n\ndeclare var PushMessageData: {\n prototype: PushMessageData;\n new(): PushMessageData;\n};\n\n/**\n * This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)\n */\ninterface PushSubscription {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */\n readonly endpoint: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */\n readonly expirationTime: EpochTimeStamp | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */\n readonly options: PushSubscriptionOptions;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */\n toJSON(): PushSubscriptionJSON;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)\n */\ninterface PushSubscriptionOptions {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */\n readonly applicationServerKey: ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */\n readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */\ninterface RTCEncodedAudioFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */\n getMetadata(): RTCEncodedAudioFrameMetadata;\n}\n\ndeclare var RTCEncodedAudioFrame: {\n prototype: RTCEncodedAudioFrame;\n new(): RTCEncodedAudioFrame;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */\ninterface RTCEncodedVideoFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */\n readonly type: RTCEncodedVideoFrameType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */\n getMetadata(): RTCEncodedVideoFrameMetadata;\n}\n\ndeclare var RTCEncodedVideoFrame: {\n prototype: RTCEncodedVideoFrame;\n new(): RTCEncodedVideoFrame;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer) */\ninterface RTCRtpScriptTransformer extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options) */\n readonly options: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable) */\n readonly writable: WritableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame) */\n generateKeyFrame(rid?: string): Promise<number>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest) */\n sendKeyFrameRequest(): Promise<void>;\n}\n\ndeclare var RTCRtpScriptTransformer: {\n prototype: RTCRtpScriptTransformer;\n new(): RTCRtpScriptTransformer;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent) */\ninterface RTCTransformEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer) */\n readonly transformer: RTCRtpScriptTransformer;\n}\n\ndeclare var RTCTransformEvent: {\n prototype: RTCTransformEvent;\n new(): RTCTransformEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */\ninterface ReadableByteStreamController {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */\n readonly byobRequest: ReadableStreamBYOBRequest | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */\n enqueue(chunk: ArrayBufferView): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */\n error(e?: any): void;\n}\n\ndeclare var ReadableByteStreamController: {\n prototype: ReadableByteStreamController;\n new(): ReadableByteStreamController;\n};\n\n/**\n * This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)\n */\ninterface ReadableStream<R = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */\n readonly locked: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */\n cancel(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */\n getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;\n getReader(): ReadableStreamDefaultReader<R>;\n getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */\n tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */\ninterface ReadableStreamBYOBReader extends ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */\n read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamBYOBReader: {\n prototype: ReadableStreamBYOBReader;\n new(stream: ReadableStream): ReadableStreamBYOBReader;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */\ninterface ReadableStreamBYOBRequest {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */\n readonly view: ArrayBufferView | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */\n respond(bytesWritten: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */\n respondWithNewView(view: ArrayBufferView): void;\n}\n\ndeclare var ReadableStreamBYOBRequest: {\n prototype: ReadableStreamBYOBRequest;\n new(): ReadableStreamBYOBRequest;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */\ninterface ReadableStreamDefaultController<R = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */\n enqueue(chunk?: R): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */\n read(): Promise<ReadableStreamReadResult<R>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */\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<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */\n cancel(reason?: any): Promise<void>;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */\ninterface Report {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */\n readonly body: ReportBody | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */\n readonly url: string;\n toJSON(): any;\n}\n\ndeclare var Report: {\n prototype: Report;\n new(): Report;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */\ninterface ReportBody {\n toJSON(): any;\n}\n\ndeclare var ReportBody: {\n prototype: ReportBody;\n new(): ReportBody;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */\ninterface ReportingObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */\n observe(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */\n takeRecords(): ReportList;\n}\n\ndeclare var ReportingObserver: {\n prototype: ReportingObserver;\n new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;\n};\n\n/**\n * This Fetch API interface represents a resource request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)\n */\ninterface Request extends Body {\n /**\n * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser\'s cache when fetching.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)\n */\n readonly cache: RequestCache;\n /**\n * Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)\n */\n readonly credentials: RequestCredentials;\n /**\n * Returns the kind of resource requested by request, e.g., "document" or "script".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)\n */\n readonly destination: RequestDestination;\n /**\n * Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)\n */\n readonly headers: Headers;\n /**\n * Returns request\'s subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)\n */\n readonly integrity: string;\n /**\n * Returns a boolean indicating whether or not request can outlive the global in which it was created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)\n */\n readonly keepalive: boolean;\n /**\n * Returns request\'s HTTP method, which is "GET" by default.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)\n */\n readonly method: string;\n /**\n * Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)\n */\n readonly mode: RequestMode;\n /**\n * Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)\n */\n readonly redirect: RequestRedirect;\n /**\n * Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global\'s default. This is used during fetching to determine the value of the `Referer` header of the request being made.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)\n */\n readonly referrer: string;\n /**\n * Returns the referrer policy associated with request. This is used during fetching to compute the value of the request\'s referrer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)\n */\n readonly referrerPolicy: ReferrerPolicy;\n /**\n * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)\n */\n readonly signal: AbortSignal;\n /**\n * Returns the URL of request as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)\n */\n readonly url: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo | URL, init?: RequestInit): Request;\n};\n\n/**\n * This Fetch API interface represents the response to a request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)\n */\ninterface Response extends Body {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */\n readonly headers: Headers;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */\n readonly ok: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */\n readonly redirected: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */\n readonly status: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */\n readonly statusText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */\n readonly type: ResponseType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */\n readonly url: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */\n error(): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */\n json(data: any, init?: ResponseInit): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */\n redirect(url: string | URL, status?: number): Response;\n};\n\n/**\n * Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)\n */\ninterface SecurityPolicyViolationEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */\n readonly blockedURI: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */\n readonly columnNumber: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */\n readonly disposition: SecurityPolicyViolationEventDisposition;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */\n readonly documentURI: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */\n readonly effectiveDirective: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */\n readonly lineNumber: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */\n readonly originalPolicy: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */\n readonly referrer: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */\n readonly sample: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */\n readonly sourceFile: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */\n readonly statusCode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */\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 * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */\n readonly scriptURL: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */\n readonly state: ServiceWorkerState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */\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 ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)\n */\ninterface ServiceWorkerContainer extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */\n readonly ready: Promise<ServiceWorkerRegistration>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */\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 "fetch": FetchEvent;\n "install": ExtendableEvent;\n "message": ExtendableMessageEvent;\n "messageerror": MessageEvent;\n "notificationclick": NotificationEvent;\n "notificationclose": NotificationEvent;\n "push": PushEvent;\n "pushsubscriptionchange": Event;\n}\n\n/**\n * This ServiceWorker API interface represents the global execution context of a service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)\n */\ninterface ServiceWorkerGlobalScope extends WorkerGlobalScope {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients) */\n readonly clients: Clients;\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/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: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */\n readonly registration: ServiceWorkerRegistration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) */\n readonly serviceWorker: ServiceWorker;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) */\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 * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */\n readonly active: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */\n readonly installing: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */\n readonly pushManager: PushManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */\n readonly scope: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */\n readonly waiting: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */\n unregister(): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */\n update(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n prototype: ServiceWorkerRegistration;\n new(): ServiceWorkerRegistration;\n};\n\ninterface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "connect": MessageEvent;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope) */\ninterface SharedWorkerGlobalScope extends WorkerGlobalScope {\n /**\n * Returns sharedWorkerGlobal\'s name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name.\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 * Aborts sharedWorkerGlobal.\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)\n */\ninterface StorageManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */\n estimate(): Promise<StorageEstimate>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */\n getDirectory(): Promise<FileSystemDirectoryHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */\n persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n prototype: StorageManager;\n new(): StorageManager;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */\ninterface StylePropertyMapReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */\n readonly size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */\n get(property: string): undefined | CSSStyleValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */\n getAll(property: string): CSSStyleValue[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */\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 * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)\n */\ninterface SubtleCrypto {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */\n generateKey(algorithm: "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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */\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 * A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)\n */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * Returns the result of running encoding\'s decoder. The method can be invoked zero or more times with options\'s stream set to true, and then once without options\'s stream (or set to false), to process a fragmented input. If the invocation without options\'s stream (or set to false) has no input, it\'s clearest to omit both arguments.\n *\n * ```\n * var string = "", decoder = new TextDecoder(encoding), buffer;\n * while(buffer = next_chunk()) {\n * string += decoder.decode(buffer, {stream:true});\n * }\n * string += decoder.decode(); // end-of-queue\n * ```\n *\n * If the error mode is "fatal" and encoding\'s decoder returns error, throws a TypeError.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */\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 * TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)\n */\ninterface TextEncoder extends TextEncoderCommon {\n /**\n * Returns the result of running UTF-8\'s encoder.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)\n */\n encode(input?: string): Uint8Array;\n /**\n * Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)\n */\n encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /**\n * Returns "utf-8".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)\n */\n readonly encoding: string;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/**\n * The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)\n */\ninterface TextMetrics {\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)\n */\n readonly actualBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)\n */\n readonly actualBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)\n */\n readonly actualBoundingBoxLeft: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)\n */\n readonly actualBoundingBoxRight: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)\n */\n readonly alphabeticBaseline: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)\n */\n readonly emHeightAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)\n */\n readonly emHeightDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)\n */\n readonly fontBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)\n */\n readonly fontBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)\n */\n readonly hangingBaseline: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)\n */\n readonly ideographicBaseline: number;\n /**\n * Returns the measurement described below.\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */\ninterface TransformStream<I = any, O = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */\n readonly readable: ReadableStream<O>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */\ninterface TransformStreamDefaultController<O = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */\n enqueue(chunk?: O): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */\n error(reason?: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/**\n * The URL interface represents an object providing static methods used for creating object URLs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)\n */\ninterface URL {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */\n hash: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */\n host: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */\n hostname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */\n href: string;\n toString(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */\n password: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */\n pathname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */\n port: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */\n protocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */\n search: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */\n readonly searchParams: URLSearchParams;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */\n username: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */\n canParse(url: string | URL, base?: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */\n createObjectURL(obj: Blob): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */\n revokeObjectURL(url: string): void;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */\ninterface URLSearchParams {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */\n readonly size: number;\n /**\n * 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 * Deletes the given search parameter, and its associated value, 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 * 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 * Returns all the values association with a given search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)\n */\n getAll(name: string): string[];\n /**\n * Returns a Boolean indicating if such a search parameter exists.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)\n */\n has(name: string, value?: string): boolean;\n /**\n * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)\n */\n set(name: string, value: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */\n sort(): void;\n /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */\ninterface VideoColorSpace {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */\n readonly fullRange: boolean | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */\n readonly matrix: VideoMatrixCoefficients | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */\n readonly primaries: VideoColorPrimaries | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */\n readonly transfer: VideoTransferCharacteristics | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)\n */\ninterface VideoDecoder extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */\n readonly decodeQueueSize: number;\n ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */\n readonly state: CodecState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */\n configure(config: VideoDecoderConfig): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */\n decode(chunk: EncodedVideoChunk): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */\n flush(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */\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 isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;\n};\n\ninterface VideoEncoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)\n */\ninterface VideoEncoder extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */\n readonly encodeQueueSize: number;\n ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */\n readonly state: CodecState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */\n configure(config: VideoEncoderConfig): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */\n encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;\n flush(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */\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 isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */\ninterface VideoFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */\n readonly codedHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */\n readonly codedRect: DOMRectReadOnly | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */\n readonly codedWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */\n readonly colorSpace: VideoColorSpace;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */\n readonly displayHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */\n readonly displayWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */\n readonly duration: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */\n readonly format: VideoPixelFormat | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */\n readonly visibleRect: DOMRectReadOnly | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */\n allocationSize(options?: VideoFrameCopyToOptions): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */\n clone(): VideoFrame;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */\n close(): void;\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */\ninterface WEBGL_compressed_texture_astc {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */\ninterface WEBGL_debug_shaders {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */\ninterface WEBGL_draw_buffers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */\ninterface WEBGL_lose_context {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */\n loseContext(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */\n restoreContext(): void;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */\ninterface WEBGL_multi_draw {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */\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, 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, 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 | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */\n createSampler(): WebGLSampler | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */\n createTransformFeedback(): WebGLTransformFeedback | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */\n createVertexArray(): WebGLVertexArrayObject | null;\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, 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 | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: 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 | 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/WebGLRenderingContext/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, usage: GLenum, srcOffset: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, 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, 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, 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 | null): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: 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 | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: 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 | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: 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/WebGLRenderingContext/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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */\n readonly size: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/**\n * 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 WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)\n */\ninterface WebGLContextEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/**\n * 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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/**\n * Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation.\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 * 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 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/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 | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */\n createFramebuffer(): WebGLFramebuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */\n createProgram(): WebGLProgram | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */\n createRenderbuffer(): WebGLRenderbuffer | null;\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 | null;\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 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): 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): 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 | 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 | 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 | 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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */\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. A WebGLProgram requires both types of shaders.\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 * 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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */\n readonly precision: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */\n readonly rangeMax: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/**\n * 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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/**\n * 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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */\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/WebGLVertexArrayObjectOES) */\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/**\n * Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)\n */\ninterface WebSocket extends EventTarget {\n /**\n * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n *\n * Can be set, to change how binary data is returned. The default is "blob".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)\n */\n binaryType: BinaryType;\n /**\n * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.\n *\n * If the WebSocket connection is closed, this attribute\'s value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)\n */\n readonly bufferedAmount: number;\n /**\n * Returns the extensions selected by the server, if any.\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 * Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor\'s second argument to perform subprotocol negotiation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)\n */\n readonly protocol: string;\n /**\n * Returns the state of the WebSocket object\'s connection. It can have the values described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the URL that was used to establish the WebSocket connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)\n */\n readonly url: string;\n /**\n * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)\n */\n close(code?: number, reason?: string): void;\n /**\n * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)\n */\ninterface WebTransport {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */\n readonly closed: Promise<WebTransportCloseInfo>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */\n readonly datagrams: WebTransportDatagramDuplexStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */\n readonly incomingBidirectionalStreams: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */\n readonly incomingUnidirectionalStreams: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */\n readonly ready: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */\n close(closeInfo?: WebTransportCloseInfo): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */\n createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)\n */\ninterface WebTransportBidirectionalStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */\n readonly writable: WritableStream;\n}\n\ndeclare var WebTransportBidirectionalStream: {\n prototype: WebTransportBidirectionalStream;\n new(): WebTransportBidirectionalStream;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)\n */\ninterface WebTransportDatagramDuplexStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */\n incomingHighWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */\n incomingMaxAge: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */\n readonly maxDatagramSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */\n outgoingHighWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */\n outgoingMaxAge: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */\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 * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)\n */\ninterface WebTransportError extends DOMException {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */\n readonly source: WebTransportErrorSource;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */\n readonly streamErrorCode: number | null;\n}\n\ndeclare var WebTransportError: {\n prototype: WebTransportError;\n new(message?: string, options?: WebTransportErrorOptions): WebTransportError;\n};\n\n/**\n * This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient)\n */\ninterface WindowClient extends Client {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focused) */\n readonly focused: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState) */\n readonly visibilityState: DocumentVisibilityState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focus) */\n focus(): Promise<WindowClient>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/navigate) */\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/caches)\n */\n readonly caches: CacheStorage;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */\n readonly crossOriginIsolated: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */\n readonly crypto: Crypto;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */\n readonly indexedDB: IDBFactory;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */\n readonly isSecureContext: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */\n readonly performance: Performance;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */\n atob(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */\n btoa(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */\n clearInterval(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */\n clearTimeout(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/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/fetch) */\n fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */\n queueMicrotask(callback: VoidFunction): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */\n reportError(e: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */\n structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)\n */\ninterface Worker extends EventTarget, AbstractWorker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */\n onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n /**\n * Clones message and transmits it to worker\'s global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.\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 * Aborts worker\'s associated global environment.\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 * This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope)\n */\ninterface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {\n /**\n * Returns workerGlobal\'s WorkerLocation object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)\n */\n readonly location: WorkerLocation;\n /**\n * Returns workerGlobal\'s WorkerNavigator object.\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 onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n /**\n * Returns workerGlobal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)\n */\n readonly self: WorkerGlobalScope & typeof globalThis;\n /**\n * Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).\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 absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation)\n */\ninterface WorkerLocation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash) */\n readonly hash: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host) */\n readonly host: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname) */\n readonly hostname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/href) */\n readonly href: string;\n toString(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname) */\n readonly pathname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port) */\n readonly port: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol) */\n readonly protocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search) */\n readonly search: string;\n}\n\ndeclare var WorkerLocation: {\n prototype: WorkerLocation;\n new(): WorkerLocation;\n};\n\n/**\n * A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)\n */\ninterface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities) */\n readonly mediaCapabilities: MediaCapabilities;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */\n readonly permissions: Permissions;\n}\n\ndeclare var WorkerNavigator: {\n prototype: WorkerNavigator;\n new(): WorkerNavigator;\n};\n\n/**\n * This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)\n */\ninterface WritableStream<W = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */\n readonly locked: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */\n abort(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */\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 * This Streams API interface represents a controller allowing control of a WritableStream\'s state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)\n */\ninterface WritableStreamDefaultController {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */\n readonly signal: AbortSignal;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/**\n * This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)\n */\ninterface WritableStreamDefaultWriter<W = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */\n readonly closed: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */\n readonly ready: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */\n abort(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */\n releaseLock(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */\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 * Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.\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 * Returns client\'s state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the response body.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)\n */\n readonly response: any;\n /**\n * Returns response as text.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)\n */\n readonly responseText: string;\n /**\n * Returns the response type.\n *\n * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n *\n * When set: setting to "document" is ignored if current global object is not a Window object.\n *\n * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)\n */\n responseType: XMLHttpRequestResponseType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */\n readonly responseURL: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */\n readonly status: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */\n readonly statusText: string;\n /**\n * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this\'s synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)\n */\n timeout: number;\n /**\n * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)\n */\n readonly upload: XMLHttpRequestUpload;\n /**\n * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.\n *\n * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)\n */\n withCredentials: boolean;\n /**\n * Cancels any network activity.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)\n */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */\n getAllResponseHeaders(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */\n getResponseHeader(name: string): string | null;\n /**\n * Sets the request method, request URL, and synchronous flag.\n *\n * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.\n *\n * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n *\n * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.\n *\n * [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 * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)\n *\n * Throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)\n */\n overrideMimeType(mime: string): void;\n /**\n * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)\n */\n send(body?: XMLHttpRequestBodyInit | null): void;\n /**\n * Combines a header in author request headers.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.\n *\n * [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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */\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/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */\ninterface Console {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */\n assert(condition?: boolean, ...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */\n clear(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */\n count(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */\n countReset(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */\n debug(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */\n dir(item?: any, options?: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */\n dirxml(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */\n error(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */\n group(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */\n groupCollapsed(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */\n groupEnd(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */\n info(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */\n log(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */\n table(tabularData?: any, properties?: string[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */\n time(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */\n timeEnd(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */\n trace(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\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/JavaScript_interface/Global) */\n interface Global<T extends ValueType = ValueType> {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */\n value: ValueTypeMap[T];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */\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/JavaScript_interface/Instance) */\n interface Instance {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/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/JavaScript_interface/Memory) */\n interface Memory {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */\n readonly buffer: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/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/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/JavaScript_interface/Module/customSections_static) */\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */\n exports(moduleObject: Module): ModuleExportDescriptor[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/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/JavaScript_interface/Table) */\n interface Table {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */\n get(index: number): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */\n grow(delta: number, value?: any): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/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/JavaScript_interface/compile_static) */\n function compile(bytes: BufferSource): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/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/JavaScript_interface/instantiateStreaming_static) */\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */\n function validate(bytes: BufferSource): boolean;\n}\n\ninterface EncodedVideoChunkOutputCallback {\n (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;\n}\n\ninterface FrameRequestCallback {\n (time: DOMHighResTimeStamp): void;\n}\n\ninterface LockGrantedCallback {\n (lock: Lock | null): any;\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 * Returns dedicatedWorkerGlobal\'s name, i.e. the value given to the Worker constructor. Primarily useful for debugging.\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/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;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */\ndeclare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\n/**\n * Aborts dedicatedWorkerGlobal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)\n */\ndeclare function close(): void;\n/**\n * Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.\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 * Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\ndeclare function dispatchEvent(event: Event): boolean;\n/**\n * Returns workerGlobal\'s WorkerLocation object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)\n */\ndeclare var location: WorkerLocation;\n/**\n * Returns workerGlobal\'s WorkerNavigator object.\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;\ndeclare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n/**\n * Returns workerGlobal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)\n */\ndeclare var self: WorkerGlobalScope & typeof globalThis;\n/**\n * Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)\n */\ndeclare function importScripts(...urls: (string | URL)[]): void;\n/**\n * Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n *\n * [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/caches)\n */\ndeclare var caches: CacheStorage;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */\ndeclare var crossOriginIsolated: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */\ndeclare var crypto: Crypto;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */\ndeclare var indexedDB: IDBFactory;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */\ndeclare var isSecureContext: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */\ndeclare var origin: string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */\ndeclare var performance: Performance;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */\ndeclare function atob(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */\ndeclare function btoa(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */\ndeclare function clearInterval(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */\ndeclare function clearTimeout(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/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/fetch) */\ndeclare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */\ndeclare function queueMicrotask(callback: VoidFunction): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */\ndeclare function reportError(e: any): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/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;\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 = ArrayBuffer | ArrayBufferView;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype CSSKeywordish = string | CSSKeywordValue;\ntype CSSNumberish = number | CSSNumericValue;\ntype CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;\ntype CSSUnparsedSegment = string | CSSVariableReferenceValue;\ntype CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame;\ntype DOMHighResTimeStamp = number;\ntype EpochTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;\ntype Float32List = Float32Array | 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 Int32List = Int32Array | 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 | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;\ntype Uint32List = Uint32Array | GLuint[];\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype AlphaOption = "discard" | "keep";\ntype AvcBitstreamFormat = "annexb" | "avc";\ntype BinaryType = "arraybuffer" | "blob";\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 DocumentVisibilityState = "hidden" | "visible";\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 NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";\ntype PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";\ntype PermissionState = "denied" | "granted" | "prompt";\ntype PredefinedColorSpace = "display-p3" | "srgb";\ntype PremultiplyAlpha = "default" | "none" | "premultiply";\ntype PushEncryptionKeyName = "auth" | "p256dh";\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',uo["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',uo["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](): IterableIterator<CSSNumericValue>;\n entries(): IterableIterator<[number, CSSNumericValue]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSNumericValue>;\n}\n\ninterface CSSTransformValue {\n [Symbol.iterator](): IterableIterator<CSSTransformComponent>;\n entries(): IterableIterator<[number, CSSTransformComponent]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSTransformComponent>;\n}\n\ninterface CSSUnparsedValue {\n [Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;\n entries(): IterableIterator<[number, CSSUnparsedSegment]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSUnparsedSegment>;\n}\n\ninterface Cache {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */\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 DOMStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface FileList {\n [Symbol.iterator](): IterableIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormData {\n [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns a list of keys in the list. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the list. */\n values(): IterableIterator<FormDataEntryValue>;\n}\n\ninterface Headers {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\n entries(): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\n keys(): IterableIterator<string>;\n /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\n values(): IterableIterator<string>;\n}\n\ninterface IDBDatabase {\n /**\n * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.\n *\n * [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 * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [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 MessageEvent<T = any> {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)\n */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\n}\n\ninterface StylePropertyMapReadOnly {\n [Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;\n entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;\n keys(): IterableIterator<string>;\n values(): IterableIterator<Iterable<CSSStyleValue>>;\n}\n\ninterface SubtleCrypto {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */\n generateKey(algorithm: "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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */\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 URLSearchParams {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an array of key, value pairs for every entry in the search params. */\n entries(): IterableIterator<[string, string]>;\n /** Returns a list of keys in the search params. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the search params. */\n values(): IterableIterator<string>;\n}\n\ninterface WEBGL_draw_buffers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WEBGL_multi_draw {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | 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>): Iterable<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/WebGLRenderingContext/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';function Em(g){return typeof g=="string"?/^file:\/\/\//.test(g)?!!uo[g.substr(8)]:!1:g.path.indexOf("/lib.")===0?!!uo[g.path.slice(1)]:!1}var v1e=class m6{constructor(v,T){this._extraLibs=Object.create(null),this._languageService=h1e(this),this._ctx=v,this._compilerOptions=T.compilerOptions,this._extraLibs=T.extraLibs,this._inlayHintsOptions=T.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(W=>W.uri).filter(W=>!Em(W)).map(W=>W.toString()).concat(Object.keys(this._extraLibs))}_getModel(v){let T=this._ctx.getMirrorModels();for(let W=0;W<T.length;W++){const X=T[W].uri;if(X.toString()===v||X.toString(!0)===v)return T[W]}return null}getScriptVersion(v){let T=this._getModel(v);return T?T.version.toString():this.isDefaultLibFileName(v)?"1":v in this._extraLibs?String(this._extraLibs[v].version):""}async getScriptText(v){return this._getScriptText(v)}_getScriptText(v){let T,W=this._getModel(v);const X="lib."+v+".d.ts";if(W)T=W.getValue();else if(v in uo)T=uo[v];else if(X in uo)T=uo[X];else if(v in this._extraLibs)T=this._extraLibs[v].content;else return;return T}getScriptSnapshot(v){const T=this._getScriptText(v);if(T!==void 0)return{getText:(W,X)=>T.substring(W,X),getLength:()=>T.length,getChangeRange:()=>{}}}getScriptKind(v){switch(v.substr(v.lastIndexOf(".")+1)){case"ts":return qC.TS;case"tsx":return qC.TSX;case"js":return qC.JS;case"jsx":return qC.JSX;default:return this.getCompilationSettings().allowJs?qC.JS:qC.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(v){switch(v.target){case 99:const T="lib.esnext.full.d.ts";if(T in uo||T in this._extraLibs)return T;case 7:case 6:case 5:case 4:case 3:case 2:default:const W="lib.es".concat(2013+(v.target||99),".full.d.ts");return W in uo||W in this._extraLibs?W:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(v){return v===this.getDefaultLibFileName(this._compilerOptions)}readFile(v){return this._getScriptText(v)}fileExists(v){return this._getScriptText(v)!==void 0}async getLibFiles(){return uo}static clearFiles(v){const T=[];for(const W of v){const X={...W};if(X.file=X.file?{fileName:X.file.fileName}:void 0,W.relatedInformation){X.relatedInformation=[];for(const ue of W.relatedInformation){const Te={...ue};Te.file=Te.file?{fileName:Te.file.fileName}:void 0,X.relatedInformation.push(Te)}}T.push(X)}return T}async getSyntacticDiagnostics(v){if(Em(v))return[];const T=this._languageService.getSyntacticDiagnostics(v);return m6.clearFiles(T)}async getSemanticDiagnostics(v){if(Em(v))return[];const T=this._languageService.getSemanticDiagnostics(v);return m6.clearFiles(T)}async getSuggestionDiagnostics(v){if(Em(v))return[];const T=this._languageService.getSuggestionDiagnostics(v);return m6.clearFiles(T)}async getCompilerOptionsDiagnostics(v){if(Em(v))return[];const T=this._languageService.getCompilerOptionsDiagnostics();return m6.clearFiles(T)}async getCompletionsAtPosition(v,T){if(!Em(v))return this._languageService.getCompletionsAtPosition(v,T,void 0)}async getCompletionEntryDetails(v,T,W){return this._languageService.getCompletionEntryDetails(v,T,W,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(v,T,W){if(!Em(v))return this._languageService.getSignatureHelpItems(v,T,W)}async getQuickInfoAtPosition(v,T){if(!Em(v))return this._languageService.getQuickInfoAtPosition(v,T)}async getDocumentHighlights(v,T,W){if(!Em(v))return this._languageService.getDocumentHighlights(v,T,W)}async getDefinitionAtPosition(v,T){if(!Em(v))return this._languageService.getDefinitionAtPosition(v,T)}async getReferencesAtPosition(v,T){if(!Em(v))return this._languageService.getReferencesAtPosition(v,T)}async getNavigationTree(v){if(!Em(v))return this._languageService.getNavigationTree(v)}async getFormattingEditsForDocument(v,T){return Em(v)?[]:this._languageService.getFormattingEditsForDocument(v,T)}async getFormattingEditsForRange(v,T,W,X){return Em(v)?[]:this._languageService.getFormattingEditsForRange(v,T,W,X)}async getFormattingEditsAfterKeystroke(v,T,W,X){return Em(v)?[]:this._languageService.getFormattingEditsAfterKeystroke(v,T,W,X)}async findRenameLocations(v,T,W,X,ue){if(!Em(v))return this._languageService.findRenameLocations(v,T,W,X,ue)}async getRenameInfo(v,T,W){return Em(v)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(v,T,W)}async getEmitOutput(v,T,W){if(Em(v))return{outputFiles:[],emitSkipped:!0};const X=this._languageService.getEmitOutput(v,T,W),ue=X.diagnostics?m6.clearFiles(X.diagnostics):void 0;return{...X,diagnostics:ue}}async getCodeFixesAtPosition(v,T,W,X,ue){if(Em(v))return[];const Te={};try{return this._languageService.getCodeFixesAtPosition(v,T,W,X,ue,Te)}catch(Be){return[]}}async updateExtraLibs(v){this._extraLibs=v}async provideInlayHints(v,T,W){var Te;if(Em(v))return[];const X=(Te=this._inlayHintsOptions)!=null?Te:{},ue={start:T,length:W-T};try{return this._languageService.provideInlayHints(v,ue,X)}catch(Be){return[]}}};function N9e(g,v){let T=v1e;if(v.customWorkerPath)if(typeof importScripts>"u")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(v.customWorkerPath);const W=self.customTSWorkerFactory;if(!W)throw new Error("The script at ".concat(v.customWorkerPath," does not add customTSWorkerFactory to self"));T=W(v1e,_1e,uo)}return new T(g,v)}globalThis.ts=g1e,self.onmessage=()=>{m1e((g,v)=>N9e(g,v))};/*! *****************************************************************************
|
||
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.
|
||
***************************************************************************** */})();
|
||
//# sourceMappingURL=ts.worker-58P_SjQh.js.map
|